diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-21 09:32:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-21 16:01:41 +0200 |
commit | ee9f2f58a5a54f994ef055edf0dd675f81bbd8ae (patch) | |
tree | faba2c96136afd9bb08493b56a3818cea1290dad /xmloff/source/style | |
parent | 7fef4817e96ca3e804e4a2c7d65afaf4c522f97f (diff) |
use fast-parser in XMLIndexBibliographyConfigurationContext
Change-Id: If83d582978803c0e79bf59f4e0576410a1849289
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101133
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index 03ac41d85077..d91180681e89 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -410,6 +410,16 @@ SvXMLStyleContext *SvXMLStylesContext::CreateStyleChildContext( { pStyle = GetImport().GetDataStylesImport()->CreateChildContext(GetImport(), nElement, xAttrList, *this); + if (pStyle) + return pStyle; + } + + switch (nElement) + { + case XML_ELEMENT(TEXT, XML_BIBLIOGRAPHY_CONFIGURATION): + pStyle = new XMLIndexBibliographyConfigurationContext( + GetImport(), nElement, xAttrList); + break; } return pStyle; @@ -478,11 +488,6 @@ SvXMLStyleContext *SvXMLStylesContext::CreateStyleChildContext( sal_uInt16 p_nPr xAttrList); break; - case XML_TOK_TEXT_BIBLIOGRAPHY_CONFIG: - pStyle = new XMLIndexBibliographyConfigurationContext( - GetImport(), p_nPrefix, rLocalName, xAttrList); - break; - case XML_TOK_TEXT_LINENUMBERING_CONFIG: pStyle = new XMLLineNumberingImportContext( GetImport(), p_nPrefix, rLocalName, xAttrList); |