diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-28 15:25:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-29 15:28:22 +0200 |
commit | 9814c1f2edf56ecc0f31001db9234ef335488879 (patch) | |
tree | 5087cafe5763b87d6a7775d3e8b396af39dd3513 /include/xmloff | |
parent | fee0404b00e1e97f429ae1eaa38458873385355f (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 'include/xmloff')
-rw-r--r-- | include/xmloff/xmlprcon.hxx | 25 | ||||
-rw-r--r-- | include/xmloff/xmlprmap.hxx | 6 |
2 files changed, 14 insertions, 17 deletions
diff --git a/include/xmloff/xmlprcon.hxx b/include/xmloff/xmlprcon.hxx index 97d9487716dc..9a430adb97ff 100644 --- a/include/xmloff/xmlprcon.hxx +++ b/include/xmloff/xmlprcon.hxx @@ -39,15 +39,6 @@ protected: public: SvXMLPropertySetContext( - SvXMLImport& rImport, sal_uInt16 nPrfx, - const OUString& rLName, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, - sal_uInt32 nFamily, - ::std::vector< XMLPropertyState > &rProps, - const rtl::Reference < SvXMLImportPropertyMapper > &rMap, - sal_Int32 nStartIdx = -1, sal_Int32 nEndIdx = -1 ); - - SvXMLPropertySetContext( SvXMLImport& rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, sal_uInt32 nFamily, @@ -60,18 +51,18 @@ public: virtual void SAL_CALL startFastElement( sal_Int32 /*nElement*/, const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) 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 >& AttrList ) override; // This method is called from this instance implementation of // CreateChildContext if the element matches an entry in the // SvXMLImportItemMapper with the mid flag MID_FLAG_ELEMENT_ITEM_IMPORT - virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, - const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, - ::std::vector< XMLPropertyState > &rProperties, - const XMLPropertyState& rProp ); + virtual css::uno::Reference< css::xml::sax::XFastContextHandler > createFastChildContext( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, + ::std::vector< XMLPropertyState > &rProperties, + const XMLPropertyState& rProp ); }; diff --git a/include/xmloff/xmlprmap.hxx b/include/xmloff/xmlprmap.hxx index 19e9ab80c0c4..f38223cc13b8 100644 --- a/include/xmloff/xmlprmap.hxx +++ b/include/xmloff/xmlprmap.hxx @@ -93,6 +93,12 @@ public: sal_uInt16 nNamespace, const OUString& rStrName, sal_uInt32 nPropType, sal_Int32 nStartAt = -1 ) const; + /** Returns the index of an entry with the given XML-name and namespace + If there is no matching entry the method returns -1 */ + sal_Int32 GetEntryIndex( + sal_Int32 nElement, sal_uInt32 nPropType, + sal_Int32 nStartAt = -1 ) const; + /** Retrieves a PropertyHandler for that property which placed at nIndex in the XMLPropertyMapEntry-array */ const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nIndex ) const; |