diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-23 09:59:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-23 15:33:20 +0100 |
commit | 470bcd37f6dead1346ab39be140045ca17516205 (patch) | |
tree | 5f9931946e2f49874ee3a7b99b737ab310c73340 /reportdesign | |
parent | e5e337fb77cff58436dd943b1e623811d3a11bd3 (diff) |
loplugin:unusedmethods
Change-Id: Ic2212a502bbd42217934884f4fce49f6f8d4765c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87236
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlfilter.cxx | 192 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlfilter.hxx | 19 |
2 files changed, 0 insertions, 211 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx index 3897a5200b5f..f7160a765014 100644 --- a/reportdesign/source/filter/xml/xmlfilter.cxx +++ b/reportdesign/source/filter/xml/xmlfilter.cxx @@ -789,198 +789,6 @@ const SvXMLTokenMap& ORptFilter::GetReportElemTokenMap() const return *m_pReportElemTokenMap; } -const SvXMLTokenMap& ORptFilter::GetSubDocumentElemTokenMap() const -{ - if (!m_pSubDocumentElemTokenMap) - m_pSubDocumentElemTokenMap = OXMLHelper::GetSubDocumentElemTokenMap(); - return *m_pSubDocumentElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetFunctionElemTokenMap() const -{ - if (!m_pFunctionElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_REPORT, XML_NAME, XML_TOK_FUNCTION_NAME }, - { XML_NAMESPACE_REPORT, XML_FORMULA, XML_TOK_FUNCTION_FORMULA}, - { XML_NAMESPACE_REPORT, XML_PRE_EVALUATED, XML_TOK_PRE_EVALUATED }, - { XML_NAMESPACE_REPORT, XML_INITIAL_FORMULA,XML_TOK_INITIAL_FORMULA }, - { XML_NAMESPACE_REPORT, XML_DEEP_TRAVERSING,XML_TOK_DEEP_TRAVERSING }, - XML_TOKEN_MAP_END - }; - m_pFunctionElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pFunctionElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetFormatElemTokenMap() const -{ - if (!m_pFormatElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_REPORT, XML_ENABLED , XML_TOK_ENABLED }, - { XML_NAMESPACE_REPORT, XML_FORMULA , XML_TOK_FORMULA }, - { XML_NAMESPACE_REPORT, XML_STYLE_NAME , XML_TOK_FORMAT_STYLE_NAME }, - XML_TOKEN_MAP_END - }; - m_pFormatElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pFormatElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetGroupElemTokenMap() const -{ - if (!m_pGroupElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_REPORT, XML_START_NEW_COLUMN , XML_TOK_START_NEW_COLUMN }, - { XML_NAMESPACE_REPORT, XML_RESET_PAGE_NUMBER , XML_TOK_RESET_PAGE_NUMBER }, - { XML_NAMESPACE_REPORT, XML_PRINT_HEADER_ON_EACH_PAGE , XML_TOK_PRINT_HEADER_ON_EACH_PAGE }, - { XML_NAMESPACE_REPORT, XML_RESET_PAGE_NUMBER , XML_TOK_RESET_PAGE_NUMBER }, - { XML_NAMESPACE_REPORT, XML_SORT_EXPRESSION , XML_TOK_SORT_EXPRESSION }, - { XML_NAMESPACE_REPORT, XML_GROUP_EXPRESSION , XML_TOK_GROUP_EXPRESSION }, - { XML_NAMESPACE_REPORT, XML_GROUP_HEADER , XML_TOK_GROUP_HEADER }, - { XML_NAMESPACE_REPORT, XML_GROUP , XML_TOK_GROUP_GROUP }, - { XML_NAMESPACE_REPORT, XML_DETAIL , XML_TOK_GROUP_DETAIL }, - { XML_NAMESPACE_REPORT, XML_GROUP_FOOTER , XML_TOK_GROUP_FOOTER }, - { XML_NAMESPACE_REPORT, XML_SORT_ASCENDING , XML_TOK_SORT_ASCENDING }, - { XML_NAMESPACE_REPORT, XML_KEEP_TOGETHER , XML_TOK_GROUP_KEEP_TOGETHER }, - { XML_NAMESPACE_REPORT, XML_FUNCTION , XML_TOK_GROUP_FUNCTION }, - XML_TOKEN_MAP_END - }; - m_pGroupElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pGroupElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetReportElementElemTokenMap() const -{ - if (!m_pElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_REPORT, XML_PRINT_REPEATED_VALUES ,XML_TOK_PRINT_REPEATED_VALUES }, - { XML_NAMESPACE_REPORT, XML_PRINT_WHEN_GROUP_CHANGE ,XML_TOK_PRINT_WHEN_GROUP_CHANGE }, - { XML_NAMESPACE_REPORT, XML_CONDITIONAL_PRINT_EXPRESSION,XML_TOK_REP_CONDITIONAL_PRINT_EXPRESSION }, - { XML_NAMESPACE_REPORT, XML_REPORT_COMPONENT ,XML_TOK_COMPONENT }, - { XML_NAMESPACE_REPORT, XML_FORMAT_CONDITION ,XML_TOK_FORMATCONDITION }, - XML_TOKEN_MAP_END - }; - m_pElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetControlElemTokenMap() const -{ - if (!m_pControlElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_FORM, XML_LABEL ,XML_TOK_LABEL }, - { XML_NAMESPACE_FORM, XML_PROPERTIES ,XML_TOK_PROPERTIES }, - { XML_NAMESPACE_FORM, XML_SIZE ,XML_TOK_SIZE }, - { XML_NAMESPACE_FORM, XML_IMAGE_DATA ,XML_TOK_IMAGE_DATA }, - { XML_NAMESPACE_REPORT, XML_SCALE ,XML_TOK_SCALE }, - { XML_NAMESPACE_REPORT, XML_REPORT_ELEMENT ,XML_TOK_REPORT_ELEMENT }, - { XML_NAMESPACE_REPORT, XML_FORMULA ,XML_TOK_DATA_FORMULA }, - { XML_NAMESPACE_REPORT, XML_PRESERVE_IRI ,XML_TOK_PRESERVE_IRI }, - { XML_NAMESPACE_REPORT, XML_SELECT_PAGE ,XML_TOK_SELECT_PAGE }, - XML_TOKEN_MAP_END - }; - m_pControlElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pControlElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetControlPropertyElemTokenMap() const -{ - if (!m_pControlElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_FORM, XML_PROPERTY_NAME ,XML_TOK_PROPERTY_NAME }, - { XML_NAMESPACE_OOO, XML_VALUE_TYPE ,XML_TOK_VALUE_TYPE }, - { XML_NAMESPACE_FORM, XML_LIST_PROPERTY ,XML_TOK_LIST_PROPERTY }, - { XML_NAMESPACE_OOO, XML_VALUE ,XML_TOK_VALUE }, - { XML_NAMESPACE_OOO, XML_CURRENCY ,XML_TOK_CURRENCY }, - { XML_NAMESPACE_OOO, XML_DATE_VALUE ,XML_TOK_DATE_VALUE }, - { XML_NAMESPACE_OOO, XML_TIME_VALUE ,XML_TOK_TIME_VALUE }, - { XML_NAMESPACE_OOO, XML_STRING_VALUE ,XML_TOK_STRING_VALUE }, - { XML_NAMESPACE_OOO, XML_BOOLEAN_VALUE ,XML_TOK_BOOLEAN_VALUE }, - XML_TOKEN_MAP_END - }; - m_pControlElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pControlElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetComponentElemTokenMap() const -{ - if (!m_pComponentElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_DRAW, XML_NAME , XML_TOK_NAME }, - { XML_NAMESPACE_DRAW, XML_TEXT_STYLE_NAME , XML_TOK_TEXT_STYLE_NAME }, - { XML_NAMESPACE_REPORT, XML_TRANSFORM , XML_TOK_TRANSFORM }, - XML_TOKEN_MAP_END - }; - m_pComponentElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pComponentElemTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetColumnTokenMap() const -{ - if (!m_pColumnTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_TABLE, XML_NAME , XML_TOK_NAME }, - { XML_NAMESPACE_TABLE, XML_STYLE_NAME , XML_TOK_COLUMN_STYLE_NAME }, - { XML_NAMESPACE_TABLE, XML_TABLE_COLUMN , XML_TOK_COLUMN }, - { XML_NAMESPACE_TABLE, XML_TABLE_ROW , XML_TOK_ROW }, - { XML_NAMESPACE_TABLE, XML_TABLE_CELL , XML_TOK_CELL }, - { XML_NAMESPACE_TABLE, XML_TABLE_COLUMNS , XML_TOK_TABLE_COLUMNS }, - { XML_NAMESPACE_TABLE, XML_TABLE_ROWS , XML_TOK_TABLE_ROWS }, - { XML_NAMESPACE_TABLE, XML_COVERED_TABLE_CELL , XML_TOK_COV_CELL }, - { XML_NAMESPACE_TABLE, XML_NUMBER_COLUMNS_SPANNED , XML_TOK_NUMBER_COLUMNS_SPANNED }, - { XML_NAMESPACE_TABLE, XML_NUMBER_ROWS_SPANNED , XML_TOK_NUMBER_ROWS_SPANNED }, - { XML_NAMESPACE_REPORT, XML_CONDITIONAL_PRINT_EXPRESSION, XML_TOK_CONDITIONAL_PRINT_EXPRESSION}, - XML_TOKEN_MAP_END - }; - m_pColumnTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pColumnTokenMap; -} - -const SvXMLTokenMap& ORptFilter::GetSectionElemTokenMap() const -{ - if (!m_pSectionElemTokenMap) - { - static const SvXMLTokenMapEntry aElemTokenMap[]= - { - { XML_NAMESPACE_TABLE, XML_TABLE , XML_TOK_TABLE }, - { XML_NAMESPACE_TABLE, XML_NAME , XML_TOK_SECTION_NAME }, - { XML_NAMESPACE_REPORT, XML_VISIBLE , XML_TOK_VISIBLE }, - { XML_NAMESPACE_REPORT, XML_FORCE_NEW_PAGE , XML_TOK_FORCE_NEW_PAGE }, - { XML_NAMESPACE_REPORT, XML_FORCE_NEW_COLUMN , XML_TOK_FORCE_NEW_COLUMN }, - { XML_NAMESPACE_REPORT, XML_KEEP_TOGETHER , XML_TOK_KEEP_TOGETHER }, - { XML_NAMESPACE_REPORT, XML_REPEAT_SECTION , XML_TOK_REPEAT_SECTION }, - { XML_NAMESPACE_TABLE, XML_STYLE_NAME , XML_TOK_SECT_STYLE_NAME }, - { XML_NAMESPACE_REPORT, XML_PAGE_PRINT_OPTION , XML_TOK_PAGE_PRINT_OPTION }, - - XML_TOKEN_MAP_END - }; - m_pSectionElemTokenMap.reset(new SvXMLTokenMap( aElemTokenMap )); - } - return *m_pSectionElemTokenMap; -} - const SvXMLTokenMap& ORptFilter::GetCellElemTokenMap() const { if (!m_pCellElemTokenMap) diff --git a/reportdesign/source/filter/xml/xmlfilter.hxx b/reportdesign/source/filter/xml/xmlfilter.hxx index ec8ba1509e67..23f71a25fb85 100644 --- a/reportdesign/source/filter/xml/xmlfilter.hxx +++ b/reportdesign/source/filter/xml/xmlfilter.hxx @@ -69,15 +69,6 @@ private: mutable ::std::unique_ptr<SvXMLTokenMap> m_pDocContentElemTokenMap; mutable ::std::unique_ptr<SvXMLTokenMap> m_pReportElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pGroupElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pSectionElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pComponentElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pControlElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pFunctionElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pSubDocumentElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pFormatElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pColumnTokenMap; mutable ::std::unique_ptr<SvXMLTokenMap> m_pCellElemTokenMap; rtl::Reference < XMLPropertyHandlerFactory > m_xPropHdlFactory; @@ -129,16 +120,6 @@ public: const SvXMLTokenMap& GetDocContentElemTokenMap() const; const SvXMLTokenMap& GetReportElemTokenMap() const; - const SvXMLTokenMap& GetGroupElemTokenMap() const; - const SvXMLTokenMap& GetSectionElemTokenMap() const; - const SvXMLTokenMap& GetComponentElemTokenMap() const; - const SvXMLTokenMap& GetReportElementElemTokenMap() const; - const SvXMLTokenMap& GetControlElemTokenMap() const; - const SvXMLTokenMap& GetControlPropertyElemTokenMap() const; - const SvXMLTokenMap& GetFunctionElemTokenMap() const; - const SvXMLTokenMap& GetFormatElemTokenMap() const; - const SvXMLTokenMap& GetSubDocumentElemTokenMap() const; - const SvXMLTokenMap& GetColumnTokenMap() const; const SvXMLTokenMap& GetCellElemTokenMap() const; const rtl::Reference< XMLPropertySetMapper >& GetCellStylesPropertySetMapper() const { |