summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLChangeElementImportContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLChangeElementImportContext.cxx')
-rw-r--r--xmloff/source/text/XMLChangeElementImportContext.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/xmloff/source/text/XMLChangeElementImportContext.cxx b/xmloff/source/text/XMLChangeElementImportContext.cxx
index a3bce265ae43..4fc81a755eda 100644
--- a/xmloff/source/text/XMLChangeElementImportContext.cxx
+++ b/xmloff/source/text/XMLChangeElementImportContext.cxx
@@ -44,17 +44,15 @@ XMLChangeElementImportContext::XMLChangeElementImportContext(
{
}
-SvXMLImportContextRef XMLChangeElementImportContext::CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const Reference<XAttributeList> & xAttrList)
+css::uno::Reference< css::xml::sax::XFastContextHandler > XMLChangeElementImportContext::createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
{
SvXMLImportContextRef xContext;
- if ( (XML_NAMESPACE_OFFICE == nPrefix) &&
- IsXMLToken( rLocalName, XML_CHANGE_INFO) )
+ if ( nElement == XML_ELEMENT(OFFICE, XML_CHANGE_INFO) )
{
- xContext = new XMLChangeInfoContext(GetImport(), nPrefix, rLocalName,
+ xContext = new XMLChangeInfoContext(GetImport(),
rChangedRegion, maType);
}
else
@@ -63,7 +61,7 @@ SvXMLImportContextRef XMLChangeElementImportContext::CreateChildContext(
rChangedRegion.UseRedlineText();
xContext = GetImport().GetTextImport()->CreateTextChildContext(
- GetImport(), nPrefix, rLocalName, xAttrList,
+ GetImport(), nElement, xAttrList,
XMLTextType::ChangedRegion);
if (!xContext)
@@ -74,7 +72,7 @@ SvXMLImportContextRef XMLChangeElementImportContext::CreateChildContext(
}
}
- return xContext;
+ return xContext.get();
}
void XMLChangeElementImportContext::startFastElement( sal_Int32, const Reference< css::xml::sax::XFastAttributeList >& )