From 554a8cad7063b434b14c34b7e5c0e3811d1a2a1b Mon Sep 17 00:00:00 2001 From: Daniel Sikeler Date: Fri, 21 Aug 2015 17:56:51 +0200 Subject: fastparser impl. for XMLPageNumberImportContext Change-Id: I79ea2ef8a3f0d5889e9882934b9456a466d516c0 --- xmloff/inc/txtfldi.hxx | 5 ++++- xmloff/source/text/txtfldi.cxx | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx index a12058adac0b..75633a119b3e 100644 --- a/xmloff/inc/txtfldi.hxx +++ b/xmloff/inc/txtfldi.hxx @@ -413,7 +413,10 @@ public: XMLTextImportHelper& rHlp, /// Text import helper sal_uInt16 nPrfx, /// namespace prefix const OUString& sLocalName); /// element name w/o prefix - + XMLPageNumberImportContext( + SvXMLImport& rImport, + XMLTextImportHelper& rHlp, + sal_Int32 Element ); /// process attribute values virtual void ProcessAttribute( sal_uInt16 nAttrToken, diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index cbfbd33cc4ab..f0b44fc71f9a 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -977,6 +977,22 @@ XMLPageNumberImportContext::XMLPageNumberImportContext( bValid = true; } +XMLPageNumberImportContext::XMLPageNumberImportContext( + SvXMLImport& rImport, + XMLTextImportHelper& rHlp, + sal_Int32 Element ) +: XMLTextFieldImportContext( rImport, rHlp, sAPI_page_number, Element ), + sPropertySubType(sAPI_sub_type), + sPropertyNumberingType(sAPI_numbering_type), + sPropertyOffset(sAPI_offset), + sNumberSync(GetXMLToken(XML_FALSE)), + nPageAdjust(0), + eSelectPage(PageNumberType_CURRENT), + sNumberFormatOK(false) +{ + bValid = true; +} + void XMLPageNumberImportContext::ProcessAttribute( sal_uInt16 nAttrToken, const OUString& sAttrValue ) -- cgit