diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 17:42:54 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 17:42:54 +0000 |
commit | 241ec6777987bf30c2cf875ee79d39de95617f48 (patch) | |
tree | a5c5027aac228562dff009ff5dfb82953e221e2a /xmloff/source | |
parent | b2baaff1657e89329e3bbd1771d46c190a9c129c (diff) |
INTEGRATION: CWS warnings01 (1.10.32); FILE MERGED
2005/11/17 15:19:23 pl 1.10.32.2: #i55991# removed warnings
2005/11/03 17:47:09 cl 1.10.32.1: warning free code changes for unxlngi6
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/text/XMLLineNumberingImportContext.cxx | 61 |
1 files changed, 29 insertions, 32 deletions
diff --git a/xmloff/source/text/XMLLineNumberingImportContext.cxx b/xmloff/source/text/XMLLineNumberingImportContext.cxx index 852298ce16f3..aad16d5649da 100644 --- a/xmloff/source/text/XMLLineNumberingImportContext.cxx +++ b/xmloff/source/text/XMLLineNumberingImportContext.cxx @@ -4,9 +4,9 @@ * * $RCSfile: XMLLineNumberingImportContext.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2005-09-09 15:14:07 $ + * last change: $Author: hr $ $Date: 2006-06-19 18:42:54 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -98,31 +98,29 @@ XMLLineNumberingImportContext::XMLLineNumberingImportContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLocalName, - const Reference<XAttributeList> & xAttrList) : - SvXMLStyleContext(rImport, nPrfx, rLocalName, xAttrList, XML_STYLE_FAMILY_TEXT_LINENUMBERINGCONFIG), - sStyleName(), - sNumFormat(GetXMLToken(XML_1)), - sNumLetterSync(GetXMLToken(XML_FALSE)), - sSeparator(), - nOffset(-1), - nNumberPosition(style::LineNumberPosition::LEFT), - nIncrement(-1), - nSeparatorIncrement(-1), - bNumberLines(sal_True), - bCountEmptyLines(sal_True), - bCountInFloatingFrames(sal_False), - bRestartNumbering(sal_False), - sCharStyleName(RTL_CONSTASCII_USTRINGPARAM("CharStyleName")), - sCountEmptyLines(RTL_CONSTASCII_USTRINGPARAM("CountEmptyLines")), - sCountLinesInFrames(RTL_CONSTASCII_USTRINGPARAM("CountLinesInFrames")), - sDistance(RTL_CONSTASCII_USTRINGPARAM("Distance")), - sInterval(RTL_CONSTASCII_USTRINGPARAM("Interval")), - sSeparatorText(RTL_CONSTASCII_USTRINGPARAM("SeparatorText")), - sNumberPosition(RTL_CONSTASCII_USTRINGPARAM("NumberPosition")), - sNumberingType(RTL_CONSTASCII_USTRINGPARAM("NumberingType")), - sIsOn(RTL_CONSTASCII_USTRINGPARAM("IsOn")), - sRestartAtEachPage(RTL_CONSTASCII_USTRINGPARAM("RestartAtEachPage")), - sSeparatorInterval(RTL_CONSTASCII_USTRINGPARAM("SeparatorInterval")) + const Reference<XAttributeList> & xAttrList) +: SvXMLStyleContext(rImport, nPrfx, rLocalName, xAttrList, XML_STYLE_FAMILY_TEXT_LINENUMBERINGCONFIG) +, sCharStyleName(RTL_CONSTASCII_USTRINGPARAM("CharStyleName")) +, sCountEmptyLines(RTL_CONSTASCII_USTRINGPARAM("CountEmptyLines")) +, sCountLinesInFrames(RTL_CONSTASCII_USTRINGPARAM("CountLinesInFrames")) +, sDistance(RTL_CONSTASCII_USTRINGPARAM("Distance")) +, sInterval(RTL_CONSTASCII_USTRINGPARAM("Interval")) +, sSeparatorText(RTL_CONSTASCII_USTRINGPARAM("SeparatorText")) +, sNumberPosition(RTL_CONSTASCII_USTRINGPARAM("NumberPosition")) +, sNumberingType(RTL_CONSTASCII_USTRINGPARAM("NumberingType")) +, sIsOn(RTL_CONSTASCII_USTRINGPARAM("IsOn")) +, sRestartAtEachPage(RTL_CONSTASCII_USTRINGPARAM("RestartAtEachPage")) +, sSeparatorInterval(RTL_CONSTASCII_USTRINGPARAM("SeparatorInterval")) +, sNumFormat(GetXMLToken(XML_1)) +, sNumLetterSync(GetXMLToken(XML_FALSE)) +, nOffset(-1) +, nNumberPosition(style::LineNumberPosition::LEFT) +, nIncrement(-1) +, nSeparatorIncrement(-1) +, bNumberLines(sal_True) +, bCountEmptyLines(sal_True) +, bCountInFloatingFrames(sal_False) +, bRestartNumbering(sal_False) { } @@ -246,11 +244,11 @@ void XMLLineNumberingImportContext::ProcessAttribute( case XML_TOK_LINENUMBERING_NUMBER_POSITION: { - sal_uInt16 nTmp; - if (SvXMLUnitConverter::convertEnum(nTmp, sValue, + sal_uInt16 nTmp16; + if (SvXMLUnitConverter::convertEnum(nTmp16, sValue, aLineNumberPositionMap)) { - nNumberPosition = nTmp; + nNumberPosition = nTmp16; } break; } @@ -264,8 +262,7 @@ void XMLLineNumberingImportContext::ProcessAttribute( } } -void XMLLineNumberingImportContext::CreateAndInsert( - sal_Bool bOverwrite) +void XMLLineNumberingImportContext::CreateAndInsert(sal_Bool) { // insert and block mode is handled in insertStyleFamily |