diff options
author | August Sodora <augsod@gmail.com> | 2011-12-05 00:47:35 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-05 00:47:35 -0500 |
commit | 5ca762a9caf9b89f225d2c8ddd32d265d4bddb61 (patch) | |
tree | ba775b42c3e59e3e8e51d9c3e56f3149e2d7db29 /basctl | |
parent | fb7adf3f34d538faec842df6aed733f502c9f6e6 (diff) |
String->OUString
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index 0f425cf439b4..ddb3781e3f87 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -82,7 +82,7 @@ DBG_NAME( ModulWindow ) TYPEINIT1( ModulWindow , IDEBaseWindow ); -void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage, const String& rTitle, bool bOutput ) +void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage, const ::rtl::OUString& rTitle, bool bOutput ) { short nLeftMargin = LMARGPRN; Size aSz = pPrinter->GetOutputSize(); @@ -122,17 +122,20 @@ void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage, { aFont.SetWeight( WEIGHT_NORMAL ); pPrinter->SetFont( aFont ); - String aPageStr( RTL_CONSTASCII_USTRINGPARAM( " [" ) ); - aPageStr += String( IDEResId( RID_STR_PAGE ) ); - aPageStr += ' '; - aPageStr += String::CreateFromInt32( nCurPage ); - aPageStr += ']'; aPos.X() += pPrinter->GetTextWidth( rTitle ); + if( bOutput ) - pPrinter->DrawText( aPos, aPageStr ); + { + ::rtl::OUStringBuffer aPageStr; + aPageStr.appendAscii( RTL_CONSTASCII_STRINGPARAM( " [" ) ); + aPageStr.append(ResId::toString( IDEResId( RID_STR_PAGE ) )); + aPageStr.append(' '); + aPageStr.append( nCurPage ); + aPageStr.append(']'); + pPrinter->DrawText( aPos, aPageStr.makeStringAndClear() ); + } } - nY = TMARGPRN-nBorder; if( bOutput ) @@ -165,7 +168,6 @@ void lcl_ConvertTabsToSpaces( String& rLine ) } } - ModulWindow::ModulWindow( ModulWindowLayout* pParent, const ScriptDocument& rDocument, String aLibName, String aName, ::rtl::OUString& aModule ) :IDEBaseWindow( pParent, rDocument, aLibName, aName ) |