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 | |
parent | EasyHack fdo#46258 Removal of VCL testtool support (-enableautomation option) (diff) | |
download | core-178ce4295ba864b4dd5082eff7e3444d5cead6ca.tar.gz core-178ce4295ba864b4dd5082eff7e3444d5cead6ca.zip |
unusedcode.easy: vcl: remove DrawNativeControlText()
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 17 | ||||
-rw-r--r-- | vcl/source/gdi/salnativewidgets-none.cxx | 22 |
2 files changed, 0 insertions, 39 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 ) diff --git a/vcl/source/gdi/salnativewidgets-none.cxx b/vcl/source/gdi/salnativewidgets-none.cxx index 7f32fdff01c3..c6d110142447 100644 --- a/vcl/source/gdi/salnativewidgets-none.cxx +++ b/vcl/source/gdi/salnativewidgets-none.cxx @@ -84,28 +84,6 @@ sal_Bool SalGraphics::drawNativeControl( ControlType, return( sal_False ); } - -/* - * DrawNativeControlText() - * - * OPTIONAL. Draws the requested text for the control described by nPart/nState. - * Used if text not drawn by DrawNativeControl(). - * - * rControlRegion: The bounding region of the complete control in VCL frame coordinates. - * aValue: An optional value (tristate/numerical/string) - * aCaption: A caption or title string (like button text etc) - */ -sal_Bool SalGraphics::drawNativeControlText( ControlType, - ControlPart, - const Rectangle&, - ControlState, - const ImplControlValue&, - const OUString& ) -{ - return( sal_False ); -} - - /* * GetNativeControlRegion() * |