[Libreoffice-commits] core.git: sc/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Sat Nov 28 07:33:59 UTC 2020
sc/source/filter/xml/xmlconti.cxx | 28 ----------------------------
sc/source/filter/xml/xmlconti.hxx | 4 ----
2 files changed, 32 deletions(-)
New commits:
commit 19382197332ee94b4725160267e987b447b49245
Author: Noel <noelgrandin at gmail.com>
AuthorDate: Fri Nov 27 15:12:34 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Nov 28 08:33:19 2020 +0100
fastparser in ScXMLContentContext
Change-Id: Ie189edfb150f90ab079f40d526df06b21845e9da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106772
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sc/source/filter/xml/xmlconti.cxx b/sc/source/filter/xml/xmlconti.cxx
index 1c5d55292fdc..871cabf888be 100644
--- a/sc/source/filter/xml/xmlconti.cxx
+++ b/sc/source/filter/xml/xmlconti.cxx
@@ -46,34 +46,6 @@ ScXMLContentContext::~ScXMLContentContext()
{
}
-SvXMLImportContextRef ScXMLContentContext::CreateChildContext( sal_uInt16 nPrefix,
- const OUString& rLName,
- const css::uno::Reference<css::xml::sax::XAttributeList>& xAttrList )
-{
- if ((nPrefix == XML_NAMESPACE_TEXT) && IsXMLToken(rLName, XML_S))
- {
- sal_Int32 nRepeat(0);
- sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
- for( sal_Int16 i=0; i < nAttrCount; ++i )
- {
- const OUString& sAttrName(xAttrList->getNameByIndex( i ));
- const OUString& sAttrValue(xAttrList->getValueByIndex( i ));
- OUString aLocalName;
- sal_uInt16 nPrfx = GetScImport().GetNamespaceMap().GetKeyByAttrName(
- sAttrName, &aLocalName );
- if ((nPrfx == XML_NAMESPACE_TEXT) && IsXMLToken(aLocalName, XML_C))
- nRepeat = sAttrValue.toInt32();
- }
- if (nRepeat)
- for (sal_Int32 j = 0; j < nRepeat; ++j)
- sValue.append(' ');
- else
- sValue.append(' ');
- }
-
- return new SvXMLImportContext( GetImport(), nPrefix, rLName );
-}
-
css::uno::Reference< css::xml::sax::XFastContextHandler > ScXMLContentContext::createFastChildContext(
sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
{
diff --git a/sc/source/filter/xml/xmlconti.hxx b/sc/source/filter/xml/xmlconti.hxx
index 7fd2cb0274db..2eb568a27e24 100644
--- a/sc/source/filter/xml/xmlconti.hxx
+++ b/sc/source/filter/xml/xmlconti.hxx
@@ -36,10 +36,6 @@ public:
virtual ~ScXMLContentContext() override;
- virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference<css::xml::sax::XAttributeList>& xAttrList ) override;
-
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
More information about the Libreoffice-commits
mailing list