diff options
author | Michael Stahl <mst@openoffice.org> | 2011-10-11 14:19:00 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-10-11 17:57:00 +0200 |
commit | 3ca2bef76886450058d1667703aeafe4c2e456c3 (patch) | |
tree | b18d70f79bfcfd2b2e34790e86edafb4c4337a80 /xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx | |
parent | 02c32e0f0e75a9df80888051d1ec189fa14129bd (diff) |
#i108468#: clean up xmluconv code duplication, part 1:
move convertNumber64 from SvXMLUnitConverter to sax::converter.
remove duplicate methods from SvXMLUnitConverter:
convertBool, convertPercent, convertColor, convertNumber, convertDouble,
indexOfComma, encodeBase64, decodeBase64, decodeBase64SomeChars,
clearUndefinedChars
Diffstat (limited to 'xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx index 2462ca195a04..1aa206d5ccb0 100644 --- a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx +++ b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx @@ -29,8 +29,12 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_xmloff.hxx" - #include "XMLIndexChapterInfoEntryContext.hxx" + +#include <com/sun/star/text/ChapterFormat.hpp> + +#include <sax/tools/converter.hxx> + #include "XMLIndexTemplateContext.hxx" #include <xmloff/xmlictxt.hxx> #include <xmloff/xmlimp.hxx> @@ -39,7 +43,6 @@ #include "xmloff/xmlnmspe.hxx" #include <xmloff/xmltoken.hxx> #include <xmloff/xmluconv.hxx> -#include <com/sun/star/text/ChapterFormat.hpp> using namespace ::com::sun::star::text; @@ -123,8 +126,8 @@ void XMLIndexChapterInfoEntryContext::StartElement( else if ( IsXMLToken( sLocalName, XML_OUTLINE_LEVEL ) ) { sal_Int32 nTmp; - - if (SvXMLUnitConverter::convertNumber(nTmp, xAttrList->getValueByIndex(nAttr))) + if (::sax::Converter::convertNumber(nTmp, + xAttrList->getValueByIndex(nAttr))) { //control on range is carried out in the UNO level nOutlineLevel = static_cast<sal_uInt16>(nTmp); |