Kaydet (Commit) f0ae0d84 authored tarafından Caolán McNamara's avatar Caolán McNamara

UniString->rtl::OUString

üst 2b3ec82a
...@@ -217,26 +217,15 @@ void TextEngine::SetFont( const Font& rFont ) ...@@ -217,26 +217,15 @@ void TextEngine::SetFont( const Font& rFont )
maFont.SetAlign( ALIGN_TOP ); maFont.SetAlign( ALIGN_TOP );
mpRefDev->SetFont( maFont); mpRefDev->SetFont( maFont);
Size aTextSize; Size aTextSize;
aTextSize.Width() = mpRefDev->GetTextWidth( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( " " ) ) ); aTextSize.Width() = mpRefDev->GetTextWidth(rtl::OUString(" "));
aTextSize.Height() = mpRefDev->GetTextHeight(); aTextSize.Height() = mpRefDev->GetTextHeight();
if ( !aTextSize.Width() ) if ( !aTextSize.Width() )
aTextSize.Width() = mpRefDev->GetTextWidth( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "XXXX" ) ) ); aTextSize.Width() = mpRefDev->GetTextWidth(rtl::OUString("XXXX"));
mnDefTab = (sal_uInt16)aTextSize.Width(); mnDefTab = (sal_uInt16)aTextSize.Width();
if ( !mnDefTab ) if ( !mnDefTab )
mnDefTab = 1; mnDefTab = 1;
mnCharHeight = (sal_uInt16)aTextSize.Height(); mnCharHeight = (sal_uInt16)aTextSize.Height();
/*
// #93746# Doesn't work with CJK HalfWidth/FullWidth
FontMetric aRealFont( mpRefDev->GetFontMetric() );
if ( aRealFont.GetPitch() == PITCH_FIXED )
{
String aX100;
aX100.Fill( 100, 'X' );
mnFixCharWidth100 = (sal_uInt16)mpRefDev->GetTextWidth( aX100 );
}
else
*/
mnFixCharWidth100 = 0; mnFixCharWidth100 = 0;
FormatFullDoc(); FormatFullDoc();
......
...@@ -599,7 +599,7 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const Stri ...@@ -599,7 +599,7 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const Stri
{ {
MapMode aMM( MAP_APPFONT ); MapMode aMM( MAP_APPFONT );
Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, NULL ); Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, NULL );
Font aFnt( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "Helvetica" ) ), aAppFontSz ); Font aFnt( rtl::OUString("Helvetica"), aAppFontSz );
aFnt.SetTransparent( sal_True ); aFnt.SetTransparent( sal_True );
aFnt.SetColor( Color( COL_LIGHTRED ) ); aFnt.SetColor( Color( COL_LIGHTRED ) );
aFnt.SetWeight( WEIGHT_BOLD ); aFnt.SetWeight( WEIGHT_BOLD );
......
...@@ -480,7 +480,7 @@ namespace svt ...@@ -480,7 +480,7 @@ namespace svt
sal_Bool implReadFolder( const ::rtl::Reference< TemplateContent >& _rxRoot ); sal_Bool implReadFolder( const ::rtl::Reference< TemplateContent >& _rxRoot );
static String getCacheFileName(); static rtl::OUString getCacheFileName();
static sal_Int32 getMagicNumber(); static sal_Int32 getMagicNumber();
static void normalize( TemplateFolderContent& _rState ); static void normalize( TemplateFolderContent& _rState );
...@@ -523,9 +523,9 @@ namespace svt ...@@ -523,9 +523,9 @@ namespace svt
} }
//--------------------------------------------------------------------- //---------------------------------------------------------------------
String TemplateFolderCacheImpl::getCacheFileName() rtl::OUString TemplateFolderCacheImpl::getCacheFileName()
{ {
return String::CreateFromAscii( ".templdir.cache" ); return rtl::OUString(".templdir.cache");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment