summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-05 12:17:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-05 12:46:06 +0100
commit76b4fb8b7149af1d68a75b10acb4d9a83875e114 (patch)
tree0e5bd4a57e5243d17d00f6d059b1202918502d63 /editeng/source
parent65123d41f62597053bc3893ee4fb46868a6b1f2d (diff)
use more FastParser in SvxXMLTextImportContex
Change-Id: I3d9586ec11538193fd0b8eb410d2a56202e666d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90010 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/xml/xmltxtimp.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/editeng/source/xml/xmltxtimp.cxx b/editeng/source/xml/xmltxtimp.cxx
index fdfc588c2679..6497ac2e9ae8 100644
--- a/editeng/source/xml/xmltxtimp.cxx
+++ b/editeng/source/xml/xmltxtimp.cxx
@@ -79,6 +79,11 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SvxXMLTextImportContex
{
pContext = new SvxXMLTextImportContext( GetImport(), mxText );
}
+ else if( nElement == XML_ELEMENT(OFFICE, XML_AUTOMATIC_STYLES ) )
+ {
+ pContext = new SvXMLStylesContext( GetImport() );
+ GetImport().GetTextImport()->SetAutoStyles( static_cast<SvXMLStylesContext*>(pContext) );
+ }
return pContext;
}
@@ -91,8 +96,7 @@ SvXMLImportContextRef SvxXMLTextImportContext::CreateChildContext( sal_uInt16 nP
}
else if( XML_NAMESPACE_OFFICE == nPrefix && IsXMLToken( rLocalName, XML_AUTOMATIC_STYLES ) )
{
- pContext = new SvXMLStylesContext( GetImport(), nPrefix, rLocalName, xAttrList );
- GetImport().GetTextImport()->SetAutoStyles( static_cast<SvXMLStylesContext*>(pContext) );
+ // dealt with in createFastChildContext
}
else
{