From 94d0eb659ed1310f3d2647c83db8e54184c55e23 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Mon, 28 Apr 2014 20:29:21 +1000 Subject: VCL move SetLayoutMode & SetDigitLanguage from font.cxx to outdevstate.cxx Change-Id: Iaf48a39fa1d4d7b88143022e517f2c4e119e94d5 --- vcl/source/outdev/outdevstate.cxx | 22 ++++++++++++++++++++++ vcl/source/outdev/text.cxx | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'vcl') diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx index 7ce35cf10b6f..228620a48ad9 100644 --- a/vcl/source/outdev/outdevstate.cxx +++ b/vcl/source/outdev/outdevstate.cxx @@ -288,6 +288,28 @@ void OutputDevice::SetDrawMode( sal_uLong nDrawMode ) mpAlphaVDev->SetDrawMode( nDrawMode ); } +void OutputDevice::SetLayoutMode( sal_uLong nTextLayoutMode ) +{ + if( mpMetaFile ) + mpMetaFile->AddAction( new MetaLayoutModeAction( nTextLayoutMode ) ); + + mnTextLayoutMode = nTextLayoutMode; + + if( mpAlphaVDev ) + mpAlphaVDev->SetLayoutMode( nTextLayoutMode ); +} + +void OutputDevice::SetDigitLanguage( LanguageType eTextLanguage ) +{ + if( mpMetaFile ) + mpMetaFile->AddAction( new MetaTextLanguageAction( eTextLanguage ) ); + + meTextLanguage = eTextLanguage; + + if( mpAlphaVDev ) + mpAlphaVDev->SetDigitLanguage( eTextLanguage ); +} + void OutputDevice::SetRasterOp( RasterOp eRasterOp ) { diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index dd03ac44a427..4383e5e92f38 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -681,28 +681,6 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo, return nMaxLineWidth; } -void OutputDevice::SetLayoutMode( sal_uLong nTextLayoutMode ) -{ - if( mpMetaFile ) - mpMetaFile->AddAction( new MetaLayoutModeAction( nTextLayoutMode ) ); - - mnTextLayoutMode = nTextLayoutMode; - - if( mpAlphaVDev ) - mpAlphaVDev->SetLayoutMode( nTextLayoutMode ); -} - -void OutputDevice::SetDigitLanguage( LanguageType eTextLanguage ) -{ - if( mpMetaFile ) - mpMetaFile->AddAction( new MetaTextLanguageAction( eTextLanguage ) ); - - meTextLanguage = eTextLanguage; - - if( mpAlphaVDev ) - mpAlphaVDev->SetDigitLanguage( eTextLanguage ); -} - void OutputDevice::SetTextColor( const Color& rColor ) { -- cgit