diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-24 03:33:36 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-24 05:33:53 +0100 |
commit | a3fccd27deeee38af5bb08c31e6317002a0e3e9e (patch) | |
tree | 6dbb5d57c846f83e86fb5a09a62dbc0643e012bb /xmloff | |
parent | 695dca68537e56e66657a43667793af5eb4b6695 (diff) |
unusedcode.easy: remove unused code
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/xmlnumfi.hxx | 1 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 47 |
2 files changed, 0 insertions, 48 deletions
diff --git a/xmloff/inc/xmloff/xmlnumfi.hxx b/xmloff/inc/xmloff/xmlnumfi.hxx index d00169641f9f..cd93e810461c 100644 --- a/xmloff/inc/xmloff/xmlnumfi.hxx +++ b/xmloff/inc/xmloff/xmlnumfi.hxx @@ -213,7 +213,6 @@ public: void AddNfKeyword( sal_uInt16 nIndex ); sal_Bool ReplaceNfKeyword( sal_uInt16 nOld, sal_uInt16 nNew ); void AddCondition( const sal_Int32 nIndex ); - void AddCondition( const sal_Int32 nIndex, const rtl::OUString& rFormat, const LocaleDataWrapper& rData ); void AddCondition( const rtl::OUString& rCondition, const rtl::OUString& rApplyName ); void AddColor( sal_uInt32 const nColor ); diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 5483632252af..f428ab90a494 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -2064,53 +2064,6 @@ void SvXMLNumFormatContext::AddCondition( const sal_Int32 nIndex ) } } -void SvXMLNumFormatContext::AddCondition( const sal_Int32 nIndex, const rtl::OUString& rFormat, const LocaleDataWrapper& rData ) -{ - rtl::OUString rCondition = aMyConditions[nIndex].sCondition; - OUString sValue(RTL_CONSTASCII_USTRINGPARAM("value()")); //! define constant - sal_Int32 nValLen = sValue.getLength(); - - if ( rCondition.copy( 0, nValLen ) == sValue ) - { - //! test for valid conditions - //! test for default conditions - - OUString sRealCond = rCondition.copy( nValLen, rCondition.getLength() - nValLen ); - sal_Bool bDefaultCond = sal_False; - - //! collect all conditions first and adjust default to >=0, >0 or <0 depending on count - //! allow blanks in conditions - sal_Bool bFirstCond = ( aConditions.getLength() == 0 ); - if ( bFirstCond && aMyConditions.size() == 1 && sRealCond.compareToAscii( ">=0" ) == 0 ) - bDefaultCond = sal_True; - - if ( nType == XML_TOK_STYLES_TEXT_STYLE && nIndex == 2 ) - { - // The third condition in a number format with a text part can only be - // "all other numbers", the condition string must be empty. - bDefaultCond = sal_True; - } - - if (!bDefaultCond) - { - sal_Int32 nPos = sRealCond.indexOf( '.' ); - if ( nPos >= 0 ) - { // #i8026# #103991# localize decimal separator - const String& rDecSep = rData.getNumDecimalSep(); - if ( rDecSep.Len() > 1 || rDecSep.GetChar(0) != '.' ) - sRealCond = sRealCond.replaceAt( nPos, 1, rDecSep ); - } - aConditions.append( (sal_Unicode) '[' ); - aConditions.append( sRealCond ); - aConditions.append( (sal_Unicode) ']' ); - } - - aConditions.append( rFormat ); - - aConditions.append( (sal_Unicode) ';' ); - } -} - void SvXMLNumFormatContext::AddCondition( const rtl::OUString& rCondition, const rtl::OUString& rApplyName ) { MyCondition aCondition; |