diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 11:05:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 14:53:50 +0100 |
commit | ecf2926ce13db8244a198de9f69bcefcae68b4b6 (patch) | |
tree | 9ee745a87431272b6b3ea71a8eee0e52f70c1933 /sw | |
parent | 60722c31373daaaf195dbf1ebd3414ca0db696c3 (diff) |
convert SvxNumberFormat to rtl::OUString
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/poolfmt.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/rtf/rtfnum.cxx | 8 | ||||
-rw-r--r-- | sw/source/filter/ww8/rtfexport.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8num.cxx | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx index 7e30267eb0ae..44786d8e1e0c 100644 --- a/sw/source/core/doc/poolfmt.cxx +++ b/sw/source/core/doc/poolfmt.cxx @@ -1933,7 +1933,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( sal_uInt16 nId ) pNewRule->Set( 1, aFmt ); aFmt.SetNumberingType(SVX_NUM_CHARS_LOWER_LETTER); - aFmt.SetSuffix( ')'); + aFmt.SetSuffix(rtl::OUString(static_cast<sal_Unicode>(')'))); aFmt.SetIncludeUpperLevels( 1 ); aFmt.SetStart( 3 ); diff --git a/sw/source/filter/rtf/rtfnum.cxx b/sw/source/filter/rtf/rtfnum.cxx index dbd051c6d226..da74753db95f 100644 --- a/sw/source/filter/rtf/rtfnum.cxx +++ b/sw/source/filter/rtf/rtfnum.cxx @@ -1015,21 +1015,21 @@ NUMATTR_SETUNDERLINE: // Punkt ist, dann will RTF den Punkt als Trenner zwischen den Ebenen // haben - das haben wir aber schon als default if( 1 < pCurNumFmt->GetIncludeUpperLevels() && - 1 == pCurNumFmt->GetPrefix().Len() && - '.' == pCurNumFmt->GetPrefix().GetChar( 0 ) && + 1 == pCurNumFmt->GetPrefix().getLength() && + '.' == pCurNumFmt->GetPrefix()[0] && SVX_NUM_CHAR_SPECIAL != pCurNumFmt->GetNumberingType() ) pCurNumFmt->SetPrefix( aEmptyStr ); // falls das ein nicht numerierter Absatz mit ein Prefix-Text mit // einem Zeichen ist, dann setze den als Bulletzeichen if( pCurNumFmt->GetCharFmt() && SVX_NUM_NUMBER_NONE == pCurNumFmt->GetNumberingType() && - 3 == nListNo && 1 == pCurNumFmt->GetPrefix().Len() ) + 3 == nListNo && 1 == pCurNumFmt->GetPrefix().getLength() ) { SwCharFmt* pChFmt = pCurNumFmt->GetCharFmt(); pCurNumFmt->SetNumberingType(SVX_NUM_CHAR_SPECIAL); pCurNumFmt->SetBulletFont( FindFontOfItem( pChFmt->GetFont() ) ); - pCurNumFmt->SetBulletChar( pCurNumFmt->GetPrefix().GetChar( 0 ) ); + pCurNumFmt->SetBulletChar( pCurNumFmt->GetPrefix()[0] ); pCurNumFmt->SetPrefix( aEmptyStr ); // den Font oder sogar das gesamte CharFormat loeschen? diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx index 93f831365135..9d9cc373bd34 100644 --- a/sw/source/filter/ww8/rtfexport.cxx +++ b/sw/source/filter/ww8/rtfexport.cxx @@ -198,8 +198,8 @@ static bool IsExportNumRule( const SwNumRule& rRule, sal_uInt8* pEnd = 0 ) for( nLvl = 0; nLvl < nEnd; ++nLvl ) if( SVX_NUM_NUMBER_NONE != ( pNFmt = &rRule.Get( nLvl )) - ->GetNumberingType() || pNFmt->GetPrefix().Len() || - (pNFmt->GetSuffix().Len() && pNFmt->GetSuffix() != aDotStr )) + ->GetNumberingType() || !pNFmt->GetPrefix().isEmpty() || + (!pNFmt->GetSuffix().isEmpty() && !pNFmt->GetSuffix().equals(aDotStr)) ) break; if( pEnd ) diff --git a/sw/source/filter/ww8/wrtw8num.cxx b/sw/source/filter/ww8/wrtw8num.cxx index b1b4714e5c80..068a27db92c7 100644 --- a/sw/source/filter/ww8/wrtw8num.cxx +++ b/sw/source/filter/ww8/wrtw8num.cxx @@ -412,7 +412,7 @@ void MSWordExportBase::AbstractNumberingDefinitions() xub_StrLen nFnd = sNumStr.Search( sSrch ); if( STRING_NOTFOUND != nFnd ) { - *pLvlPos = (sal_uInt8)(nFnd + rFmt.GetPrefix().Len() + 1 ); + *pLvlPos = (sal_uInt8)(nFnd + rFmt.GetPrefix().getLength() + 1 ); ++pLvlPos; sNumStr.SetChar( nFnd, (char)i ); } @@ -429,7 +429,7 @@ void MSWordExportBase::AbstractNumberingDefinitions() } } - if( rFmt.GetPrefix().Len() ) + if( !rFmt.GetPrefix().isEmpty() ) sNumStr.Insert( rFmt.GetPrefix(), 0 ); sNumStr += rFmt.GetSuffix(); } |