extract some common code from ImportContext classes

Desktop / LibreOffice - Noel Grandin [gmail.com] - 7 January 2020 16:45 EST

which reduces code bloat, and lets us log when elements are ignored

Change-Id: I5ca12bc1fcbfa3bea49ebde819fd80bd233a96a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86338

e1383444c6d0 extract some common code from ImportContext classes
dbaccess/source/filter/xml/xmlConnectionData.cxx | 3 --
dbaccess/source/filter/xml/xmlDataSource.cxx | 3 --
.../source/filter/xml/xmlDataSourceSetting.cxx | 3 --
.../source/filter/xml/xmlDataSourceSettings.cxx | 3 --
dbaccess/source/filter/xml/xmlDatabase.cxx | 3 --
.../source/filter/xml/xmlDatabaseDescription.cxx | 3 --
dbaccess/source/filter/xml/xmlDocuments.cxx | 3 --
.../source/filter/xml/xmlHierarchyCollection.cxx | 3 --
dbaccess/source/filter/xml/xmlQuery.cxx | 3 --
dbaccess/source/filter/xml/xmlTable.cxx | 3 --
dbaccess/source/filter/xml/xmlTableFilterList.cxx | 3 --
dbaccess/source/filter/xml/xmlfilter.cxx | 16 +------
editeng/source/misc/SvXMLAutoCorrectImport.cxx | 6 +--
editeng/source/xml/xmltxtimp.cxx | 6 ---
linguistic/source/convdicxml.cxx | 9 ++--
reportdesign/source/filter/xml/xmlCell.cxx | 3 --
reportdesign/source/filter/xml/xmlColumn.cxx | 3 --
.../source/filter/xml/xmlControlProperty.cxx | 3 --
reportdesign/source/filter/xml/xmlGroup.cxx | 3 --
reportdesign/source/filter/xml/xmlMasterFields.cxx | 3 --
reportdesign/source/filter/xml/xmlReport.cxx | 3 --
.../source/filter/xml/xmlReportElement.cxx | 4 --
.../source/filter/xml/xmlReportElementBase.cxx | 2 -
reportdesign/source/filter/xml/xmlRow.cxx | 2 +-
reportdesign/source/filter/xml/xmlSection.cxx | 3 --
reportdesign/source/filter/xml/xmlSubDocument.cxx | 3 --
reportdesign/source/filter/xml/xmlTable.cxx | 3 --
reportdesign/source/filter/xml/xmlfilter.cxx | 18 +-------
.../filter/xml/XMLCalculationSettingsContext.cxx | 3 --
sc/source/filter/xml/XMLDDELinksContext.cxx | 12 ------
sc/source/filter/xml/XMLDetectiveContext.cxx | 2 -
.../filter/xml/XMLTableHeaderFooterContext.cxx | 4 --
sc/source/filter/xml/XMLTableShapesContext.cxx | 3 --
sc/source/filter/xml/XMLTableSourceContext.cxx | 2 +-
sc/source/filter/xml/XMLTrackedChangesContext.cxx | 49 ----------------------
sc/source/filter/xml/celltextparacontext.cxx | 6 +--
sc/source/filter/xml/importcontext.cxx | 2 +-
sc/source/filter/xml/xmlannoi.cxx | 3 --
sc/source/filter/xml/xmlbodyi.cxx | 3 --
sc/source/filter/xml/xmlcelli.cxx | 6 ---
sc/source/filter/xml/xmlcoli.cxx | 5 +--
sc/source/filter/xml/xmlcvali.cxx | 17 --------
sc/source/filter/xml/xmldpimp.cxx | 27 ------------
sc/source/filter/xml/xmldrani.cxx | 21 ----------
sc/source/filter/xml/xmlexternaltabi.cxx | 6 +--
sc/source/filter/xml/xmlfilti.cxx | 21 ----------
sc/source/filter/xml/xmlimprt.cxx | 17 --------
sc/source/filter/xml/xmllabri.cxx | 2 -
sc/source/filter/xml/xmlmappingi.cxx | 6 ---
sc/source/filter/xml/xmlnexpi.cxx | 3 --
sc/source/filter/xml/xmlrowi.cxx | 6 ---
sc/source/filter/xml/xmlsorti.cxx | 3 --
sc/source/filter/xml/xmltabi.cxx | 9 +---
sc/source/filter/xml/xmltransformationi.cxx | 3 --
starmath/source/mathmlimport.cxx | 6 +--
svx/source/xml/xmlxtimp.cxx | 2 +-
sw/source/core/swg/SwXMLBlockImport.cxx | 12 ++----
sw/source/filter/xml/xmlbrsh.cxx | 4 --
sw/source/filter/xml/xmlimp.cxx | 7 +---
sw/source/filter/xml/xmlitem.cxx | 8 ++--
sw/source/filter/xml/xmlmeta.cxx | 3 --
sw/source/filter/xml/xmlscript.cxx | 4 --
sw/source/filter/xml/xmltbli.cxx | 15 -------
sw/source/filter/xml/xmltext.cxx | 5 ---
xmloff/source/chart/SchXMLAxisContext.cxx | 2 -
xmloff/source/chart/SchXMLChartContext.cxx | 5 ---
xmloff/source/chart/SchXMLImport.cxx | 6 +--
xmloff/source/chart/SchXMLParagraphContext.cxx | 2 +-
xmloff/source/chart/SchXMLPlotAreaContext.cxx | 3 --
xmloff/source/chart/SchXMLSeries2Context.cxx | 3 --
xmloff/source/chart/SchXMLTableContext.cxx | 17 +-------
xmloff/source/chart/SchXMLTextListContext.cxx | 4 --
xmloff/source/chart/XMLLabelSeparatorContext.cxx | 4 +-
xmloff/source/chart/XMLSymbolImageContext.cxx | 4 --
xmloff/source/chart/contexts.cxx | 2 +-
xmloff/source/core/DocumentSettingsContext.cxx | 6 ---
.../source/core/XMLEmbeddedObjectImportContext.cxx | 3 +-
xmloff/source/core/xmlictxt.cxx | 9 ++--
xmloff/source/core/xmlimp.cxx | 8 +++-
xmloff/source/draw/XMLReplacementImageContext.cxx | 3 --
xmloff/source/draw/animationimport.cxx | 3 +-
xmloff/source/draw/layerimp.cxx | 5 +--
xmloff/source/draw/sdxmlimp.cxx | 7 +---
xmloff/source/draw/ximpshow.cxx | 2 +-
xmloff/source/forms/layerimport.cxx | 7 ----
xmloff/source/forms/propertyimport.cxx | 22 ++--------
xmloff/source/meta/xmlmetai.cxx | 3 +-
xmloff/source/meta/xmlversion.cxx | 4 --
xmloff/source/script/xmlbasici.cxx | 3 --
xmloff/source/style/FillStyleContext.cxx | 4 --
xmloff/source/style/PageHeaderFooterContext.cxx | 3 --
xmloff/source/style/XMLBackgroundImageContext.cxx | 4 --
xmloff/source/style/xmlnumfi.cxx | 9 ++--
xmloff/source/style/xmlnumi.cxx | 12 ------
xmloff/source/style/xmlprcon.cxx | 11 ++---
xmloff/source/style/xmlstyle.cxx | 5 ---
xmloff/source/style/xmltabi.cxx | 4 --
.../text/XMLAutoTextContainerEventImport.cxx | 3 +-
.../source/text/XMLFootnoteBodyImportContext.cxx | 2 -
xmloff/source/text/XMLFootnoteImportContext.cxx | 2 -
xmloff/source/text/XMLIndexBodyContext.cxx | 6 +--
xmloff/source/text/XMLSectionImportContext.cxx | 7 +---
xmloff/source/text/XMLTextColumnsContext.cxx | 4 --
xmloff/source/text/XMLTextFrameContext.cxx | 5 ---
.../source/text/XMLTextFrameHyperlinkContext.cxx | 2 -
xmloff/source/text/XMLTextHeaderFooterContext.cxx | 2 -
xmloff/source/text/XMLTextListBlockContext.cxx | 2 -
xmloff/source/text/XMLTextListItemContext.cxx | 3 --
xmloff/source/text/txtparai.cxx | 9 ----
xmloff/source/xforms/SchemaContext.cxx | 8 ++--
xmloff/source/xforms/SchemaSimpleTypeContext.cxx | 9 +---
xmloff/source/xforms/TokenContext.cxx | 1 -
xmloff/source/xforms/XFormsInstanceContext.cxx | 1 -
113 files changed, 74 insertions(+), 611 deletions(-)

Upstream: cgit.freedesktop.org


  • Share