summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-21 15:09:05 +0200
committerNoel Grandin <noel@peralex.com>2015-12-22 09:53:27 +0200
commit4e8e81f0d6dcbdd4d491cec09dfb485ffa30ab98 (patch)
tree81e13e477a97cdbe4b025329dc6b2732aae15524 /reportdesign/source/filter/xml
parente24c4c40c052591414cedab2fba152170d385580 (diff)
loplugin:unusedfields in reportdesign
Change-Id: Ida5e91105d204b431edf743a9f5272febd50e688
Diffstat (limited to 'reportdesign/source/filter/xml')
-rw-r--r--reportdesign/source/filter/xml/xmlExport.hxx4
-rw-r--r--reportdesign/source/filter/xml/xmlHelper.hxx3
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.hxx45
3 files changed, 27 insertions, 25 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.hxx b/reportdesign/source/filter/xml/xmlExport.hxx
index 517b7a32e12e..4d8a343feade 100644
--- a/reportdesign/source/filter/xml/xmlExport.hxx
+++ b/reportdesign/source/filter/xml/xmlExport.hxx
@@ -111,8 +111,6 @@ private:
OUString m_sTableStyle;
OUString m_sCellStyle;
OUString m_sColumnStyle;
- rtl::Reference < SvXMLExportPropertyMapper> m_xExportHelper;
- rtl::Reference < SvXMLExportPropertyMapper> m_xSectionPropMapper;
rtl::Reference < SvXMLExportPropertyMapper> m_xTableStylesExportPropertySetMapper;
rtl::Reference < SvXMLExportPropertyMapper> m_xCellStylesExportPropertySetMapper;
rtl::Reference < SvXMLExportPropertyMapper> m_xColumnStylesExportPropertySetMapper;
@@ -120,8 +118,6 @@ private:
rtl::Reference < SvXMLExportPropertyMapper > m_xParaPropMapper;
rtl::Reference < XMLPropertyHandlerFactory > m_xPropHdlFactory;
- mutable rtl::Reference < XMLPropertySetMapper > m_xControlStylePropertyMapper;
- mutable rtl::Reference < XMLPropertySetMapper > m_xColumnStylesPropertySetMapper;
mutable rtl::Reference < XMLPropertySetMapper > m_xCellStylesPropertySetMapper;
Reference<XReportDefinition> m_xReportDefinition;
bool m_bAllreadyFilled;
diff --git a/reportdesign/source/filter/xml/xmlHelper.hxx b/reportdesign/source/filter/xml/xmlHelper.hxx
index 20350762c4cc..cd901bd67af3 100644
--- a/reportdesign/source/filter/xml/xmlHelper.hxx
+++ b/reportdesign/source/filter/xml/xmlHelper.hxx
@@ -40,9 +40,6 @@ namespace rptxml
{
OPropertyHandlerFactory(const OPropertyHandlerFactory&) = delete;
void operator =(const OPropertyHandlerFactory&) = delete;
- protected:
- mutable ::std::unique_ptr<XMLConstantsPropertyHandler> m_pDisplayHandler;
- mutable ::std::unique_ptr<XMLPropertyHandler> m_pTextAlignHandler;
public:
OPropertyHandlerFactory();
virtual ~OPropertyHandlerFactory();
diff --git a/reportdesign/source/filter/xml/xmlfilter.hxx b/reportdesign/source/filter/xml/xmlfilter.hxx
index 105c0e547475..1def596e2ef4 100644
--- a/reportdesign/source/filter/xml/xmlfilter.hxx
+++ b/reportdesign/source/filter/xml/xmlfilter.hxx
@@ -44,7 +44,7 @@
namespace rptui
{
- class OReportModel;
+class OReportModel;
}
namespace rptxml
{
@@ -70,7 +70,6 @@ public:
private:
TGroupFunctionMap m_aFunctions;
- Reference< XComponent > m_xSrcDoc;
mutable ::std::unique_ptr<SvXMLTokenMap> m_pDocElemTokenMap;
mutable ::std::unique_ptr<SvXMLTokenMap> m_pReportElemTokenMap;
@@ -97,16 +96,16 @@ private:
bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception);
SvXMLImportContext* CreateStylesContext(const OUString& rLocalName,
- const Reference< XAttributeList>& xAttrList, bool bIsAutoStyle );
+ const Reference< XAttributeList>& xAttrList, bool bIsAutoStyle );
SvXMLImportContext* CreateMetaContext(const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList );
+ const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList );
SvXMLImportContext* CreateFontDeclsContext(const OUString& rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList );
protected:
// SvXMLImport
virtual SvXMLImportContext *CreateContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
+ const OUString& rLocalName,
+ const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
virtual XMLShapeImportHelper* CreateShapeImport() override;
@@ -121,15 +120,17 @@ public:
static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw( css::uno::RuntimeException );
static OUString getImplementationName_Static() throw( css::uno::RuntimeException );
static css::uno::Reference< css::uno::XInterface > SAL_CALL
- create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
+ create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
- inline Reference<XReportDefinition> getReportDefinition() const { return m_xReportDefinition; }
+ inline Reference<XReportDefinition> getReportDefinition() const {
+ return m_xReportDefinition;
+ }
void FinishStyles();
virtual void SAL_CALL startDocument()
- throw( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) override;
+ throw( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL endDocument()
- throw( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) override;
+ throw( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) override;
const SvXMLTokenMap& GetDocElemTokenMap() const;
const SvXMLTokenMap& GetReportElemTokenMap() const;
@@ -145,9 +146,15 @@ public:
const SvXMLTokenMap& GetColumnTokenMap() const;
const SvXMLTokenMap& GetCellElemTokenMap() const;
- inline rtl::Reference < XMLPropertySetMapper > GetCellStylesPropertySetMapper() const { return m_xCellStylesPropertySetMapper; }
- inline rtl::Reference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper() const { return m_xColumnStylesPropertySetMapper; }
- inline rtl::Reference < XMLPropertySetMapper > GetRowStylesPropertySetMapper() const { return m_xRowStylesPropertySetMapper; }
+ inline rtl::Reference < XMLPropertySetMapper > GetCellStylesPropertySetMapper() const {
+ return m_xCellStylesPropertySetMapper;
+ }
+ inline rtl::Reference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper() const {
+ return m_xColumnStylesPropertySetMapper;
+ }
+ inline rtl::Reference < XMLPropertySetMapper > GetRowStylesPropertySetMapper() const {
+ return m_xRowStylesPropertySetMapper;
+ }
static OUString convertFormula(const OUString& _sFormula);
/** inserts a new function
*
@@ -155,7 +162,9 @@ public:
*/
void insertFunction(const css::uno::Reference< css::report::XFunction > & _xFunction);
void removeFunction(const OUString& _sFunctionName);
- inline const TGroupFunctionMap& getFunctions() const { return m_aFunctions; }
+ inline const TGroupFunctionMap& getFunctions() const {
+ return m_aFunctions;
+ }
bool isOldFormat() const;
};
@@ -170,7 +179,7 @@ public:
static OUString getImplementationName_Static( ) throw (css::uno::RuntimeException);
static Sequence< OUString > getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
- create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
+ create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
};
/** Imports only content
@@ -183,7 +192,7 @@ public:
static OUString getImplementationName_Static( ) throw (css::uno::RuntimeException);
static Sequence< OUString > getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
- create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
+ create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
};
/** Imports only styles
@@ -196,7 +205,7 @@ public:
static OUString getImplementationName_Static( ) throw (css::uno::RuntimeException);
static Sequence< OUString > getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
- create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
+ create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
};
/** Imports only meta data
@@ -209,7 +218,7 @@ public:
static OUString getImplementationName_Static( ) throw (css::uno::RuntimeException);
static Sequence< OUString > getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
- create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
+ create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
};