diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xmloff/xmlimp.hxx | 5 | ||||
-rw-r--r-- | include/xmloff/xmlmetai.hxx | 16 |
2 files changed, 12 insertions, 9 deletions
diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx index 364411681aa8..77b620a3f1df 100644 --- a/include/xmloff/xmlimp.hxx +++ b/include/xmloff/xmlimp.hxx @@ -55,6 +55,8 @@ #include <xmloff/formlayerimport.hxx> #include <comphelper/attributelist.hxx> #include <sax/fastattribs.hxx> +#include <rtl/ustring.hxx> +#include <unordered_map> #include <com/sun/star/beans/NamedValue.hpp> @@ -225,6 +227,7 @@ class XMLOFF_DLLPUBLIC SvXMLImport : public cppu::WeakImplHelper< css::uno::Reference< css::xml::sax::XFastDocumentHandler > mxFastDocumentHandler; static css::uno::Reference< css::xml::sax::XFastTokenHandler > xTokenHandler; static std::unordered_map< sal_Int32, std::pair< OUString, OUString > > aNamespaceMap; + static std::unordered_map< OUString, OUString, OUStringHash > aNamespaceURIPrefixMap; static bool bIsNSMapsInitialized; static void initializeNamespaceMaps(); @@ -378,6 +381,8 @@ public: static const OUString getNameFromToken( sal_Int32 nToken ); static const OUString getNamespacePrefixFromToken( sal_Int32 nToken ); + static const OUString getNamespaceURIFromToken( sal_Int32 nToken ); + static const OUString getNamespacePrefixFromURI( const OUString& rURI ); SvXMLNamespaceMap& GetNamespaceMap() { return *mpNamespaceMap; } const SvXMLNamespaceMap& GetNamespaceMap() const { return *mpNamespaceMap; } diff --git a/include/xmloff/xmlmetai.hxx b/include/xmloff/xmlmetai.hxx index 2b9160251bc0..9b9f59da7f10 100644 --- a/include/xmloff/xmlmetai.hxx +++ b/include/xmloff/xmlmetai.hxx @@ -40,22 +40,20 @@ private: css::uno::Reference< css::xml::dom::XSAXDocumentBuilder2> mxDocBuilder; public: - SvXMLMetaDocumentContext(SvXMLImport& rImport, sal_uInt16 nPrfx, - const OUString& rLName, - const css::uno::Reference< css::document::XDocumentProperties>& xDocProps); - SvXMLMetaDocumentContext(SvXMLImport& rImport, const css::uno::Reference< css::document::XDocumentProperties>& xDocProps); virtual ~SvXMLMetaDocumentContext() override; - virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, - const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList ) override; + virtual void SAL_CALL characters( const OUString& aChars ) override; + + virtual void SAL_CALL startFastElement( sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; - virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override; + virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override; - virtual void EndElement() 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; public: static void setBuildId(const OUString & rGenerator, |