[Libreoffice-commits] core.git: include/xmloff sw/source xmloff/inc xmloff/source

Noel Grandin noel at peralex.com
Wed Jul 15 03:36:51 PDT 2015


 include/xmloff/ProgressBarHelper.hxx               |    1 -
 include/xmloff/XMLTextShapeStyleContext.hxx        |    2 --
 include/xmloff/XMLTextTableContext.hxx             |    3 ---
 include/xmloff/numehelp.hxx                        |    1 -
 include/xmloff/shapeimport.hxx                     |    1 -
 include/xmloff/txtparae.hxx                        |   11 -----------
 include/xmloff/txtstyli.hxx                        |    2 --
 include/xmloff/xmlexp.hxx                          |    4 ----
 include/xmloff/xmlexppr.hxx                        |   18 ------------------
 include/xmloff/xmlimp.hxx                          |    3 ---
 include/xmloff/xmlnumfe.hxx                        |    3 ---
 include/xmloff/xmlnumfi.hxx                        |    2 --
 include/xmloff/xmlnumi.hxx                         |    3 ---
 include/xmloff/xmlstyle.hxx                        |    3 ---
 sw/source/filter/xml/xmltbli.cxx                   |    5 -----
 sw/source/filter/xml/xmltbli.hxx                   |    3 ---
 xmloff/inc/XMLChartPropertySetMapper.hxx           |    5 -----
 xmloff/inc/XMLElementPropertyContext.hxx           |    1 -
 xmloff/inc/XMLLineNumberingImportContext.hxx       |    4 ----
 xmloff/inc/txtvfldi.hxx                            |    4 ----
 xmloff/source/draw/sdxmlexp.cxx                    |    3 ---
 xmloff/source/draw/sdxmlexp_impl.hxx               |   10 ----------
 xmloff/source/draw/sdxmlimp.cxx                    |    1 -
 xmloff/source/draw/sdxmlimp_impl.hxx               |    4 ----
 xmloff/source/draw/ximp3dscene.hxx                 |   12 ------------
 xmloff/source/draw/ximpgrp.hxx                     |    9 ---------
 xmloff/source/draw/ximppage.hxx                    |    3 ---
 xmloff/source/draw/ximpshap.hxx                    |    2 --
 xmloff/source/draw/ximpstyl.hxx                    |    8 --------
 xmloff/source/forms/elementimport.hxx              |    4 ----
 xmloff/source/forms/propertyimport.hxx             |    6 ------
 xmloff/source/style/PageMasterExportPropMapper.hxx |    4 ----
 xmloff/source/text/XMLTextNumRuleInfo.hxx          |    5 -----
 xmloff/source/text/txtparaimphint.hxx              |    2 --
 xmloff/source/transform/CreateElemTContext.hxx     |    4 ----
 xmloff/source/transform/TransformerBase.hxx        |    5 -----
 36 files changed, 161 deletions(-)

New commits:
commit a62129aa632c2d574a6560efc19f9de84aed1670
Author: Noel Grandin <noel at peralex.com>
Date:   Tue Jul 14 16:41:37 2015 +0200

    loplugin:unusedmethods xmloff
    
    Change-Id: I9d15d8edcc6746c055336bf31e5b0c15cb971ffe
    Reviewed-on: https://gerrit.libreoffice.org/17061
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/xmloff/ProgressBarHelper.hxx b/include/xmloff/ProgressBarHelper.hxx
index 827e35f..6de978c 100644
--- a/include/xmloff/ProgressBarHelper.hxx
+++ b/include/xmloff/ProgressBarHelper.hxx
@@ -48,7 +48,6 @@ public:
                                 const bool bStrict);
             ~ProgressBarHelper();
 
-            void SetText(OUString& rText) { if (xStatusIndicator.is()) xStatusIndicator->setText(rText); }
             void SetRange(sal_Int32 nVal) { nRange = nVal; }
             void SetReference(sal_Int32 nVal) { nReference = nVal; }
             void SetValue(sal_Int32 nValue);
diff --git a/include/xmloff/XMLTextShapeStyleContext.hxx b/include/xmloff/XMLTextShapeStyleContext.hxx
index 45ddee1..066562a 100644
--- a/include/xmloff/XMLTextShapeStyleContext.hxx
+++ b/include/xmloff/XMLTextShapeStyleContext.hxx
@@ -54,8 +54,6 @@ public:
             const OUString& rLocalName,
             const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE;
 
-    bool IsAutoUpdate() const { return bAutoUpdate; }
-
     virtual void CreateAndInsert( bool bOverwrite ) SAL_OVERRIDE;
 
     virtual void Finish( bool bOverwrite ) SAL_OVERRIDE;
diff --git a/include/xmloff/XMLTextTableContext.hxx b/include/xmloff/XMLTextTableContext.hxx
index a039beb..ec05f28 100644
--- a/include/xmloff/XMLTextTableContext.hxx
+++ b/include/xmloff/XMLTextTableContext.hxx
@@ -40,9 +40,6 @@ public:
             sal_uInt16 nPrfx,
             const OUString& rLName );
     virtual ~XMLTextTableContext();
-
-    virtual ::com::sun::star::uno::Reference <
-            ::com::sun::star::text::XTextContent > GetXTextContent() const = 0;
 };
 
 #endif
diff --git a/include/xmloff/numehelp.hxx b/include/xmloff/numehelp.hxx
index a2a7d75..64c0e16 100644
--- a/include/xmloff/numehelp.hxx
+++ b/include/xmloff/numehelp.hxx
@@ -84,7 +84,6 @@ public :
     XMLNumberFormatAttributesExportHelper(::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& xNumberFormatsSupplier,
                                             SvXMLExport& rExport );
     ~XMLNumberFormatAttributesExportHelper();
-    void SetExport(SvXMLExport* pExp) { this->pExport = pExp; }
 
     sal_Int16 GetCellType(const sal_Int32 nNumberFormat, OUString& sCurrency, bool& bIsStandard);
     static void WriteAttributes(SvXMLExport& rXMLExport,
diff --git a/include/xmloff/shapeimport.hxx b/include/xmloff/shapeimport.hxx
index de96023..4b28de2 100644
--- a/include/xmloff/shapeimport.hxx
+++ b/include/xmloff/shapeimport.hxx
@@ -195,7 +195,6 @@ public:
     sal_Int32 GetDiffuseColor() { return maDiffuseColor; }
     const ::basegfx::B3DVector& GetDirection() { return maDirection; }
     bool GetEnabled() { return mbEnabled; }
-    bool GetSpecular() { return mbSpecular; }
 };
 
 
diff --git a/include/xmloff/txtparae.hxx b/include/xmloff/txtparae.hxx
index 00dc25e..96c2afc 100644
--- a/include/xmloff/txtparae.hxx
+++ b/include/xmloff/txtparae.hxx
@@ -424,11 +424,6 @@ protected:
         const enum ::xmloff::token::XMLTokenEnum pElements[],
         bool bAutoStyles);
 
-    void exportIndexMark(
-        const ::com::sun::star::uno::Reference<
-            ::com::sun::star::beans::XPropertySet> & rPropSet,
-        bool bAutoStyles);
-
     void exportSoftPageBreak(
         const ::com::sun::star::uno::Reference<
             ::com::sun::star::beans::XPropertySet> & rPropSet,
@@ -476,12 +471,6 @@ protected:
         const XMLTextNumRuleInfo& rNewList,
         bool bAutoStyles );
 
-    /// export a redline text portion
-    void exportChange(
-        const ::com::sun::star::uno::Reference <
-            ::com::sun::star::beans::XPropertySet > & rPropSet,
-        bool bAutoStyle);
-
     /// export a ruby
     void exportRuby(
         const ::com::sun::star::uno::Reference<
diff --git a/include/xmloff/txtstyli.hxx b/include/xmloff/txtstyli.hxx
index 4c06d71..dba063d 100644
--- a/include/xmloff/txtstyli.hxx
+++ b/include/xmloff/txtstyli.hxx
@@ -78,8 +78,6 @@ public:
             const OUString& rLocalName,
             const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE;
 
-    bool IsAutoUpdate() const { return bAutoUpdate; }
-
     const OUString& GetListStyle() const { return sListStyleName; }
     // XML import: reconstrution of assignment of paragraph style to outline levels (#i69629#)
     bool IsListStyleSet() const
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index 83c03dc..ad738eb 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -407,10 +407,6 @@ public:
     // Get document handler. This methods are not const, because the
     // reference allowes modifications through the handler.
     const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & GetDocHandler() { return mxHandler; }
-    const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XExtendedDocumentHandler > & GetExtDocHandler()
-    {
-        return mxExtHandler;
-    }
 
     // Get original URL.
     const OUString& GetOrigFileName() const { return msOrigFileName; }
diff --git a/include/xmloff/xmlexppr.hxx b/include/xmloff/xmlexppr.hxx
index dad0faa..9a67145 100644
--- a/include/xmloff/xmlexppr.hxx
+++ b/include/xmloff/xmlexppr.hxx
@@ -130,24 +130,6 @@ public:
     bool Equals( const ::std::vector< XMLPropertyState >& aProperties1,
                      const ::std::vector< XMLPropertyState >& aProperties2 ) const;
 
-    /** fills the given attribute list with the items in the given set
-     */
-    void exportXML(
-           SvXMLAttributeList& rAttrList,
-           const ::std::vector< XMLPropertyState >& rProperties,
-           const SvXMLUnitConverter& rUnitConverter,
-           const SvXMLNamespaceMap& rNamespaceMap,
-           SvXmlExportFlags nFlags = SvXmlExportFlags::NONE ) const;
-    /** like above but only properties whose property map index is within the
-        specified range are exported */
-    void exportXML(
-           SvXMLAttributeList& rAttrList,
-           const ::std::vector< XMLPropertyState >& rProperties,
-           const SvXMLUnitConverter& rUnitConverter,
-           const SvXMLNamespaceMap& rNamespaceMap,
-           sal_Int32 nPropMapStartIdx, sal_Int32 nPropMapEndIdx,
-           SvXmlExportFlags nFlags = SvXmlExportFlags::NONE ) const;
-
     void exportXML(
             SvXMLExport& rExport,
             const ::std::vector< XMLPropertyState >& rProperties,
diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx
index 2939f6e..ceb6f782 100644
--- a/include/xmloff/xmlimp.hxx
+++ b/include/xmloff/xmlimp.hxx
@@ -413,9 +413,6 @@ public:
     void SetError( sal_Int32 nId, const OUString& rMsg1,
                                   const OUString& rMsg2 );
 
-    /** return current error flags */
-    SvXMLErrorFlags GetErrorFlags()  { return mnErrorFlags; }
-
     virtual void DisposingModel();
 
     ::comphelper::UnoInterfaceToUniqueIdentifierMapper& getInterfaceToIdentifierMapper();
diff --git a/include/xmloff/xmlnumfe.hxx b/include/xmloff/xmlnumfe.hxx
index 9a770a1..2463b6e 100644
--- a/include/xmloff/xmlnumfe.hxx
+++ b/include/xmloff/xmlnumfe.hxx
@@ -126,9 +126,6 @@ public:
 
     /// obtain number format with system languange for a given key
     sal_uInt32 ForceSystemLanguage( sal_uInt32 nKey );
-
-    /// determine whether number format uses system language
-    bool IsSystemLanguage( sal_uInt32 nKey );
 };
 
 #endif
diff --git a/include/xmloff/xmlnumfi.hxx b/include/xmloff/xmlnumfi.hxx
index e3426ac..2f8a647 100644
--- a/include/xmloff/xmlnumfi.hxx
+++ b/include/xmloff/xmlnumfi.hxx
@@ -183,11 +183,9 @@ public:
     sal_Int32 CreateAndInsert( com::sun::star::uno::Reference< com::sun::star::util::XNumberFormatsSupplier >& xFormatsSupplier );
     sal_uInt16 GetType() const                      { return nType; }   // SvXMLStylesTokens
 
-    bool IsFromSystem() const                   { return bFromSystem; }
     bool HasLongDoW() const                     { return bHasLongDoW; }
     void SetHasLongDoW(bool bSet)               { bHasLongDoW = bSet; }
     bool HasEra() const                         { return bHasEra; }
-    void SetHasEra(bool bSet)                   { bHasEra = bSet; }
 
     void UpdateCalendar( const OUString& rNewCalendar );
 
diff --git a/include/xmloff/xmlnumi.hxx b/include/xmloff/xmlnumi.hxx
index c4ef733..7818087 100644
--- a/include/xmloff/xmlnumi.hxx
+++ b/include/xmloff/xmlnumi.hxx
@@ -78,9 +78,6 @@ public:
     const ::com::sun::star::uno::Reference <
         ::com::sun::star::container::XIndexReplace >& GetNumRules() const
         { return xNumRules; }
-    bool IsOutline() const { return bOutline; }
-    bool IsConsecutive() const { return bConsecutive; }
-    sal_Int32 GetLevels() const { return nLevels; }
 
     static ::com::sun::star::uno::Reference <
         ::com::sun::star::container::XIndexReplace >
diff --git a/include/xmloff/xmlstyle.hxx b/include/xmloff/xmlstyle.hxx
index bc8d4b6..7c24399 100644
--- a/include/xmloff/xmlstyle.hxx
+++ b/include/xmloff/xmlstyle.hxx
@@ -116,9 +116,6 @@ public:
     const OUString&  GetParentName() const { return maParentName; }
     const OUString&  GetFollow() const { return maFollow; }
 
-    const OUString&  GetHelpFile() const { return maHelpFile; }
-    sal_uInt32  GetHelpId() const { return mnHelpId; }
-
     sal_uInt16 GetFamily() const { return mnFamily; }
 
     bool IsValid() const { return mbValid; }
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 877a111..8fcd9d5 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -2907,9 +2907,4 @@ void SwXMLTableContext::EndElement()
     }
 }
 
-Reference < XTextContent > SwXMLTableContext::GetXTextContent() const
-{
-    return xTextContent;
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/filter/xml/xmltbli.hxx b/sw/source/filter/xml/xmltbli.hxx
index 2882cb4..eb25273 100644
--- a/sw/source/filter/xml/xmltbli.hxx
+++ b/sw/source/filter/xml/xmltbli.hxx
@@ -186,9 +186,6 @@ public:
 
     virtual void EndElement() SAL_OVERRIDE;
 
-    virtual ::com::sun::star::uno::Reference <
-            ::com::sun::star::text::XTextContent > GetXTextContent() const SAL_OVERRIDE;
-
     void SetHasSubTables( bool bNew ) { bHasSubTables = bNew; }
 };
 
diff --git a/xmloff/inc/XMLChartPropertySetMapper.hxx b/xmloff/inc/XMLChartPropertySetMapper.hxx
index 7ead995..e1827ae 100644
--- a/xmloff/inc/XMLChartPropertySetMapper.hxx
+++ b/xmloff/inc/XMLChartPropertySetMapper.hxx
@@ -30,9 +30,6 @@ class SvXMLExport;
 
 class XMLChartPropHdlFactory : public XMLPropertyHandlerFactory
 {
-private:
-    const XMLPropertyHandler* GetShapePropertyHandler( sal_Int32 nType ) const;
-
 public:
     virtual ~XMLChartPropHdlFactory();
     virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const SAL_OVERRIDE;
@@ -81,8 +78,6 @@ public:
                                   SvXMLExport& rExport );
     virtual ~XMLChartExportPropertyMapper();
 
-    void setAdaptPercentage( bool bNewValue );
-
     void setChartDoc( com::sun::star::uno::Reference<
             com::sun::star::chart2::XChartDocument > xChartDoc );
 };
diff --git a/xmloff/inc/XMLElementPropertyContext.hxx b/xmloff/inc/XMLElementPropertyContext.hxx
index f89630b..02f7c06 100644
--- a/xmloff/inc/XMLElementPropertyContext.hxx
+++ b/xmloff/inc/XMLElementPropertyContext.hxx
@@ -36,7 +36,6 @@ protected:
     ::std::vector< XMLPropertyState > &rProperties;
     XMLPropertyState aProp;
 
-    bool IsInsert() const { return bInsert; }
     void SetInsert( bool bIns ) { bInsert = bIns; }
 
 public:
diff --git a/xmloff/inc/XMLLineNumberingImportContext.hxx b/xmloff/inc/XMLLineNumberingImportContext.hxx
index 3dd9aee..0b93f45 100644
--- a/xmloff/inc/XMLLineNumberingImportContext.hxx
+++ b/xmloff/inc/XMLLineNumberingImportContext.hxx
@@ -109,10 +109,6 @@ protected:
         const OUString& rLocalName,
         const ::com::sun::star::uno::Reference<
             ::com::sun::star::xml::sax::XAttributeList> & xAttrList ) SAL_OVERRIDE;
-
-    void ProcessAttribute(
-        const OUString& sLocalName,
-        const OUString& sValue);
 };
 
 #endif
diff --git a/xmloff/inc/txtvfldi.hxx b/xmloff/inc/txtvfldi.hxx
index 3bd5b92..fdef070 100644
--- a/xmloff/inc/txtvfldi.hxx
+++ b/xmloff/inc/txtvfldi.hxx
@@ -204,10 +204,6 @@ protected:
     // various accessor methods:
     inline OUString GetName()    { return sName; }
     inline bool IsStringValue()     { return aValueHelper.IsStringValue();}
-    inline bool IsNameOK()          { return bNameOK; }
-    inline bool IsFormulaOK()       { return bFormulaOK; }
-    inline bool IsDescriptionOK()   { return bDescriptionOK; }
-    inline bool IsDisplayOK()       { return bDisplayOK; }
 };
 
 
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 17cba20..59a3b42 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -398,7 +398,6 @@ SdXMLExport::SdXMLExport(
         (bIsDraw) ? XML_GRAPHICS : XML_PRESENTATION, nExportFlags ),
     mnDocMasterPageCount(0L),
     mnDocDrawPageCount(0L),
-    mnShapeStyleInfoIndex(0L),
     mnObjectCount(0L),
     mpPageMasterInfoList(new ImpXMLEXPPageMasterList()),
     mpPageMasterUsageList(new ImpXMLEXPPageMasterList()),
@@ -409,8 +408,6 @@ SdXMLExport::SdXMLExport(
     mpPropertySetMapper(0L),
     mpPresPagePropsMapper(0L),
     mbIsDraw(bIsDraw),
-    mbFamilyGraphicUsed(false),
-    mbFamilyPresentationUsed(false),
     msZIndex( GetXMLToken(XML_ZINDEX) ),
     msEmptyPres( "IsEmptyPresentationObject" ),
     msModel( "Model" ),
diff --git a/xmloff/source/draw/sdxmlexp_impl.hxx b/xmloff/source/draw/sdxmlexp_impl.hxx
index cff480c..7b27f8c 100644
--- a/xmloff/source/draw/sdxmlexp_impl.hxx
+++ b/xmloff/source/draw/sdxmlexp_impl.hxx
@@ -82,7 +82,6 @@ class SdXMLExport : public SvXMLExport
     com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > mxDocDrawPages;
     sal_Int32                   mnDocMasterPageCount;
     sal_Int32                   mnDocDrawPageCount;
-    sal_uInt32                  mnShapeStyleInfoIndex;
     sal_uInt32                  mnObjectCount;
 
     // temporary infos
@@ -115,8 +114,6 @@ class SdXMLExport : public SvXMLExport
     SdXMLFormatMap  maUsedTimeStyles;           // this is a vector with the used formatings for time fields
 
     bool                    mbIsDraw;
-    bool                    mbFamilyGraphicUsed;
-    bool                    mbFamilyPresentationUsed;
 
     const OUString         msZIndex;
     const OUString         msEmptyPres;
@@ -135,7 +132,6 @@ class SdXMLExport : public SvXMLExport
 
     ImpXMLEXPPageMasterInfo* ImpGetOrCreatePageMasterInfo( com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage > xMasterPage );
     void ImpPrepPageMasterInfos();
-    void ImpPrepDrawMasterInfos();
     void ImpWritePageMasterInfos();
     void ImpPrepAutoLayoutInfos();
     HeaderFooterPageSettingsImpl ImpPrepDrawPageHeaderFooterDecls( const com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage >& xDrawPage );
@@ -181,18 +177,12 @@ public:
     virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
     // get factories and mappers
-    XMLSdPropHdlFactory* GetSdPropHdlFactory() const { return mpSdPropHdlFactory; }
     XMLShapeExportPropertyMapper* GetPropertySetMapper() const { return mpPropertySetMapper; }
     XMLPageExportPropertyMapper* GetPresPagePropsMapper() const { return mpPresPagePropsMapper; }
 
     bool IsDraw() const { return mbIsDraw; }
     bool IsImpress() const { return !mbIsDraw; }
 
-    bool IsFamilyGraphicUsed() const { return mbFamilyGraphicUsed; }
-    void SetFamilyGraphicUsed() { mbFamilyGraphicUsed = true; }
-    bool IsFamilyPresentationUsed() const { return mbFamilyPresentationUsed; }
-    void SetFamilyPresentationUsed() { mbFamilyPresentationUsed = true; }
-
     virtual void addDataStyle(const sal_Int32 nNumberFormat, bool bTimeFormat = false ) SAL_OVERRIDE;
     virtual void exportDataStyles() SAL_OVERRIDE;
     virtual void exportAutoDataStyles() SAL_OVERRIDE;
diff --git a/xmloff/source/draw/sdxmlimp.cxx b/xmloff/source/draw/sdxmlimp.cxx
index b38d117..4de2b98 100644
--- a/xmloff/source/draw/sdxmlimp.cxx
+++ b/xmloff/source/draw/sdxmlimp.cxx
@@ -299,7 +299,6 @@ SdXMLImport::SdXMLImport(
     mpDrawPageAttrTokenMap(0L),
     mpDrawPageElemTokenMap(0L),
     mpPresentationPlaceholderAttrTokenMap(0L),
-    mnStyleFamilyMask(0),
     mnNewPageCount(0L),
     mnNewMasterPageCount(0L),
     mbIsDraw(bIsDraw),
diff --git a/xmloff/source/draw/sdxmlimp_impl.hxx b/xmloff/source/draw/sdxmlimp_impl.hxx
index 23e1929..1f21426 100644
--- a/xmloff/source/draw/sdxmlimp_impl.hxx
+++ b/xmloff/source/draw/sdxmlimp_impl.hxx
@@ -191,8 +191,6 @@ class SdXMLImport: public SvXMLImport
     SvXMLTokenMap*              mpDrawPageElemTokenMap;
     SvXMLTokenMap*              mpPresentationPlaceholderAttrTokenMap;
 
-    sal_uInt16                  mnStyleFamilyMask;
-
     sal_Int32                   mnNewPageCount;
     sal_Int32                   mnNewMasterPageCount;
 
@@ -251,9 +249,7 @@ public:
         const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
 
     // Styles and AutoStyles contexts
-    const SdXMLMasterStylesContext* GetMasterStylesContext() const { return mpMasterStylesContext; }
 
-    sal_uInt16 GetStyleFamilyMask() const { return mnStyleFamilyMask; }
     bool IsStylesOnlyMode() const { return !mbLoadDoc; }
 
     const SvXMLTokenMap& GetDocElemTokenMap();
diff --git a/xmloff/source/draw/ximp3dscene.hxx b/xmloff/source/draw/ximp3dscene.hxx
index b2fd872..4d94de3 100644
--- a/xmloff/source/draw/ximp3dscene.hxx
+++ b/xmloff/source/draw/ximp3dscene.hxx
@@ -35,13 +35,6 @@ class SdXML3DSceneShapeContext : public SdXMLShapeContext, public SdXML3DSceneAt
     // this is the scene at the same time
     com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > mxChildren;
 
-    const SdXMLImport& GetSdImport() const { return static_cast<const SdXMLImport&>(GetImport()); }
-    SdXMLImport& GetSdImport() { return static_cast<SdXMLImport&>(GetImport()); }
-
-protected:
-    void SetLocalShapesContext(com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rNew)
-        { mxChildren = rNew; }
-
 public:
     TYPEINFO_OVERRIDE();
 
@@ -60,11 +53,6 @@ public:
     virtual SvXMLImportContext *CreateChildContext(
         sal_uInt16 nPrefix, const OUString& rLocalName,
         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList ) SAL_OVERRIDE;
-
-    const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext() const
-        { return mxShapes; }
-    com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext()
-        { return mxShapes; }
 };
 
 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_XIMP3DSCENE_HXX
diff --git a/xmloff/source/draw/ximpgrp.hxx b/xmloff/source/draw/ximpgrp.hxx
index bf69293..7ad41a1 100644
--- a/xmloff/source/draw/ximpgrp.hxx
+++ b/xmloff/source/draw/ximpgrp.hxx
@@ -34,10 +34,6 @@ class SdXMLGroupShapeContext : public SdXMLShapeContext
     // the shape group this group is working on
     com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > mxChildren;
 
-protected:
-    void SetLocalShapesContext(com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rNew)
-        { mxShapes = rNew; }
-
 public:
     TYPEINFO_OVERRIDE();
 
@@ -52,11 +48,6 @@ public:
         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList ) SAL_OVERRIDE;
     virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList) SAL_OVERRIDE;
     virtual void EndElement() SAL_OVERRIDE;
-
-    const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext() const
-        { return mxShapes; }
-    com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext()
-        { return mxShapes; }
 };
 
 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_XIMPGRP_HXX
diff --git a/xmloff/source/draw/ximppage.hxx b/xmloff/source/draw/ximppage.hxx
index de944c8..be34be6 100644
--- a/xmloff/source/draw/ximppage.hxx
+++ b/xmloff/source/draw/ximppage.hxx
@@ -43,9 +43,6 @@ protected:
     OUString               maUseDateTimeDeclName;
     OUString               msNavOrder;
 
-    void SetLocalShapesContext(com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rNew)
-        { mxShapes = rNew; }
-
     /** sets the page style on this page */
     void SetStyle( OUString& rStyleName );
 
diff --git a/xmloff/source/draw/ximpshap.hxx b/xmloff/source/draw/ximpshap.hxx
index ac95e7d..08cc0ff 100644
--- a/xmloff/source/draw/ximpshap.hxx
+++ b/xmloff/source/draw/ximpshap.hxx
@@ -530,8 +530,6 @@ public:
 
     // this is called from the parent group for each unparsed attribute in the attribute list
     virtual void processAttribute( sal_uInt16 nPrefix, const OUString& rLocalName, const OUString& rValue ) SAL_OVERRIDE;
-
-    const OUString& getMimeType() const { return maMimeType; }
 };
 
 // draw:floating-frame
diff --git a/xmloff/source/draw/ximpstyl.hxx b/xmloff/source/draw/ximpstyl.hxx
index b1a6938..593ff18 100644
--- a/xmloff/source/draw/ximpstyl.hxx
+++ b/xmloff/source/draw/ximpstyl.hxx
@@ -88,7 +88,6 @@ public:
         sal_uInt16 nPrefix, const OUString& rLocalName,
         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
 
-    const OUString& GetName() const { return msName; }
     const SdXMLPageMasterStyleContext* GetPageMasterStyle() const { return mpPageMasterStyle; }
 };
 
@@ -118,8 +117,6 @@ public:
 
     virtual void EndElement() SAL_OVERRIDE;
 
-    const OUString& GetPageMasterName() const { return msPageMasterName; }
-    const OUString& GetEncodedName() const { return msName; }
     const OUString& GetDisplayName() const { return msDisplayName; }
 
 };
@@ -148,9 +145,6 @@ public:
 
     const OUString& GetName() const { return msName; }
     sal_Int32 GetX() const { return mnX; }
-    sal_Int32 GetY() const { return mnY; }
-    sal_Int32 GetWidth() const { return mnWidth; }
-    sal_Int32 GetHeight() const { return mnHeight; }
 };
 typedef ::std::vector< SdXMLPresentationPlaceholderContext* > ImpPlaceholderList;
 
@@ -259,8 +253,6 @@ public:
         sal_uInt16 nPrefix,
         const OUString& rLocalName,
         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
-
-    const ImpMasterPageList& GetMasterPageList() const { return maMasterPageList; }
 };
 
 // <pres:header-decl>, <pres:footer-decl> and <pres:date-time-decl>
diff --git a/xmloff/source/forms/elementimport.hxx b/xmloff/source/forms/elementimport.hxx
index a1a4344..c74ba87 100644
--- a/xmloff/source/forms/elementimport.hxx
+++ b/xmloff/source/forms/elementimport.hxx
@@ -163,10 +163,6 @@ namespace xmloff
         void implApplyGenericProperties();
         void implApplySpecificProperties();
 
-        /** sets the style properties which have been read for the element (if any)
-        */
-        void implSetStyleProperties( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject );
-
         PropertyGroups::const_iterator impl_matchPropertyGroup( const PropertyGroups& i_propertyGroups ) const;
 
         virtual OUString determineDefaultServiceName() const;
diff --git a/xmloff/source/forms/propertyimport.hxx b/xmloff/source/forms/propertyimport.hxx
index fe4ec0e..41b02d3 100644
--- a/xmloff/source/forms/propertyimport.hxx
+++ b/xmloff/source/forms/propertyimport.hxx
@@ -117,12 +117,6 @@ namespace xmloff
         */
         bool    encounteredAttribute(const OUString& _rAttributeName) const;
 
-        /** determine if the element imported by the object had an given attribute.
-            <p>Please be aware of the fact that the name given must be a local name, i.e. not contain a namespace.
-            All form relevant attributes are in the same namespace, so this would be an redundant information.</p>
-        */
-        bool    encounteredAttribute(const sal_Char* _pAttributeName) const { return encounteredAttribute(OUString::createFromAscii(_pAttributeName)); }
-
         /** enables the tracking of the encountered attributes
             <p>The tracking will raise the import costs a little bit, but it's cheaper than
             derived classes tracking this themself.</p>
diff --git a/xmloff/source/style/PageMasterExportPropMapper.hxx b/xmloff/source/style/PageMasterExportPropMapper.hxx
index c2699a6..26299be 100644
--- a/xmloff/source/style/PageMasterExportPropMapper.hxx
+++ b/xmloff/source/style/PageMasterExportPropMapper.hxx
@@ -60,10 +60,6 @@ public:
                             const ::std::vector< XMLPropertyState >* pProperties = 0,
                             sal_uInt32 nIdx = 0
                             ) const SAL_OVERRIDE;
-
-    inline XMLBackgroundImageExport& GetBackgroundImageExport()
-                                { return aBackgroundImageExport; }
-
 };
 
 #endif
diff --git a/xmloff/source/text/XMLTextNumRuleInfo.hxx b/xmloff/source/text/XMLTextNumRuleInfo.hxx
index 8ca93af..9628e02 100644
--- a/xmloff/source/text/XMLTextNumRuleInfo.hxx
+++ b/xmloff/source/text/XMLTextNumRuleInfo.hxx
@@ -87,11 +87,6 @@ public:
     {
         return msNumRulesName;
     }
-    inline const ::com::sun::star::uno::Reference <
-        ::com::sun::star::container::XIndexReplace >& GetNumRules() const
-    {
-        return mxNumRules;
-    }
     inline sal_Int16 GetListLevelStartValue() const
     {
         return mnListLevelStartValue;
diff --git a/xmloff/source/text/txtparaimphint.hxx b/xmloff/source/text/txtparaimphint.hxx
index de10748..5b28d99 100644
--- a/xmloff/source/text/txtparaimphint.hxx
+++ b/xmloff/source/text/txtparaimphint.hxx
@@ -67,9 +67,7 @@ public:
     // We don't use virtual methods to differ between the sub classes,
     // because this seems to be to expensive if compared to inline methods.
     sal_uInt8 GetType() const { return nType; }
-    bool IsStyle() { return XML_HINT_STYLE==nType; }
     bool IsReference() { return XML_HINT_REFERENCE==nType; }
-    bool IsHyperlink() { return XML_HINT_HYPERLINK==nType; }
     bool IsIndexMark() { return XML_HINT_INDEX_MARK==nType; }
 };
 
diff --git a/xmloff/source/transform/CreateElemTContext.hxx b/xmloff/source/transform/CreateElemTContext.hxx
index 6746089..c8e1df9 100644
--- a/xmloff/source/transform/CreateElemTContext.hxx
+++ b/xmloff/source/transform/CreateElemTContext.hxx
@@ -27,10 +27,6 @@ class XMLCreateElemTransformerContext : public XMLTransformerContext
 {
     sal_uInt16 m_nActionMap;
 
-protected:
-
-    sal_uInt16 GetActionMap() const { return m_nActionMap; }
-
 public:
     XMLCreateElemTransformerContext( XMLTransformerBase& rTransformer,
                            const OUString& rQName,
diff --git a/xmloff/source/transform/TransformerBase.hxx b/xmloff/source/transform/TransformerBase.hxx
index ec95efc..6520e65 100644
--- a/xmloff/source/transform/TransformerBase.hxx
+++ b/xmloff/source/transform/TransformerBase.hxx
@@ -76,11 +76,6 @@ protected:
                                       const OUString& rLocalName,
                                       const OUString& rQName );
 
-    // this method may return an empty reference when the transformer service
-    // was created outside the xmloff environment.
-    // It is strictly forbidden to use this as a write access to the model!
-    const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& getModel() const { return mxModel; }
-
 public:
     XMLTransformerBase( XMLTransformerActionInit *pInit=0,
                            ::xmloff::token::XMLTokenEnum *pTKMapInit=0 ) throw();


More information about the Libreoffice-commits mailing list