diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-28 20:29:21 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-28 20:29:21 +1000 |
commit | 94d0eb659ed1310f3d2647c83db8e54184c55e23 (patch) | |
tree | a20011323cd76a0e2486801c68165c33028281f4 /vcl | |
parent | 690b655f06af5717ecb79f0cb804342a78a6ba43 (diff) |
VCL move SetLayoutMode & SetDigitLanguage from font.cxx to outdevstate.cxx
Change-Id: Iaf48a39fa1d4d7b88143022e517f2c4e119e94d5
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/outdevstate.cxx | 22 | ||||
-rw-r--r-- | vcl/source/outdev/text.cxx | 22 |
2 files changed, 22 insertions, 22 deletions
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 ) { |