summaryrefslogtreecommitdiff
path: root/xmloff/source/style/PagePropertySetContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-28 15:25:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-29 15:28:22 +0200
commit9814c1f2edf56ecc0f31001db9234ef335488879 (patch)
tree5087cafe5763b87d6a7775d3e8b396af39dd3513 /xmloff/source/style/PagePropertySetContext.cxx
parentfee0404b00e1e97f429ae1eaa38458873385355f (diff)
use fastparser in SvXMLPropertySetContext subclasses
Change-Id: I977f1cf198652d3c73e5a0f473794975a5647617 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101564 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style/PagePropertySetContext.cxx')
-rw-r--r--xmloff/source/style/PagePropertySetContext.cxx31
1 files changed, 13 insertions, 18 deletions
diff --git a/xmloff/source/style/PagePropertySetContext.cxx b/xmloff/source/style/PagePropertySetContext.cxx
index 24fbe25bf8c1..31c541f56b35 100644
--- a/xmloff/source/style/PagePropertySetContext.cxx
+++ b/xmloff/source/style/PagePropertySetContext.cxx
@@ -48,12 +48,11 @@ PagePropertySetContext::~PagePropertySetContext()
{
}
-SvXMLImportContextRef PagePropertySetContext::CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const Reference< xml::sax::XAttributeList > & xAttrList,
- ::std::vector< XMLPropertyState > &rProperties,
- const XMLPropertyState& rProp )
+css::uno::Reference< css::xml::sax::XFastContextHandler > PagePropertySetContext::createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
+ ::std::vector< XMLPropertyState > &rProperties,
+ const XMLPropertyState& rProp )
{
sal_Int32 nPos = CTF_PM_GRAPHICPOSITION;
sal_Int32 nFil = CTF_PM_GRAPHICFILTER;
@@ -74,7 +73,6 @@ SvXMLImportContextRef PagePropertySetContext::CreateChildContext(
default:
break;
}
- SvXMLImportContextRef xContext;
switch( mxMapper->getPropertySetMapper()
->GetEntryContextId( rProp.mnIndex ) )
@@ -88,9 +86,9 @@ SvXMLImportContextRef PagePropertySetContext::CreateChildContext(
nFil == mxMapper->getPropertySetMapper()
->GetEntryContextId( rProp.mnIndex-1 ),
"invalid property map!");
- xContext =
- new XMLBackgroundImageContext( GetImport(), nPrefix,
- rLocalName, xAttrList,
+ return
+ new XMLBackgroundImageContext( GetImport(), nElement,
+ xAttrList,
rProp,
rProp.mnIndex-2,
rProp.mnIndex-1,
@@ -100,24 +98,21 @@ SvXMLImportContextRef PagePropertySetContext::CreateChildContext(
break;
case CTF_PM_TEXTCOLUMNS:
- xContext = new XMLTextColumnsContext( GetImport(), nPrefix,
- rLocalName, xAttrList, rProp,
+ return new XMLTextColumnsContext( GetImport(), nElement,
+ xAttrList, rProp,
rProperties );
break;
case CTF_PM_FTN_LINE_WEIGHT:
- xContext = new XMLFootnoteSeparatorImport(
- GetImport(), nPrefix, rLocalName, rProperties,
+ return new XMLFootnoteSeparatorImport(
+ GetImport(), nElement, rProperties,
mxMapper->getPropertySetMapper(), rProp.mnIndex);
break;
}
- if (!xContext)
- xContext = SvXMLPropertySetContext::CreateChildContext( nPrefix, rLocalName,
+ return SvXMLPropertySetContext::createFastChildContext( nElement,
xAttrList,
rProperties, rProp );
-
- return xContext;
}