diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-21 23:45:01 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-22 00:52:31 +0100 |
commit | 178ce4295ba864b4dd5082eff7e3444d5cead6ca (patch) | |
tree | 2f7ef1dbab04198bdb5daadd6c254a0180edd174 /vcl/source/gdi/salgdilayout.cxx | |
parent | 936ebcfa4b44a90bdc8789ce7556f1ba3599375c (diff) |
unusedcode.easy: vcl: remove DrawNativeControlText()
Diffstat (limited to 'vcl/source/gdi/salgdilayout.cxx')
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index e38838087fea..21979056211d 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -744,23 +744,6 @@ sal_Bool SalGraphics::DrawNativeControl( ControlType nType, ControlPart nPart, c return drawNativeControl( nType, nPart, rControlRegion, nState, aValue, aCaption ); } -sal_Bool SalGraphics::DrawNativeControlText( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, - ControlState nState, const ImplControlValue& aValue, - const OUString& aCaption, const OutputDevice *pOutDev ) -{ - if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) ) - { - Rectangle rgn( rControlRegion ); - mirror( rgn, pOutDev ); - boost::scoped_ptr< ImplControlValue > mirrorValue( aValue.clone()); - mirror( *mirrorValue, pOutDev ); - sal_Bool bRet = drawNativeControlText( nType, nPart, rgn, nState, *mirrorValue, aCaption ); - return bRet; - } - else - return drawNativeControlText( nType, nPart, rControlRegion, nState, aValue, aCaption ); -} - sal_Bool SalGraphics::GetNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState nState, const ImplControlValue& aValue, const OUString& aCaption, Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion, const OutputDevice *pOutDev ) |