diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/sallayout.hxx | 1 | ||||
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 26 |
2 files changed, 0 insertions, 27 deletions
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx index c430097f2581..e86ecdbe1ca4 100644 --- a/vcl/inc/sallayout.hxx +++ b/vcl/inc/sallayout.hxx @@ -250,7 +250,6 @@ public: virtual int GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIdxAry, Point& rPos, int&, sal_Int32* pGlyphAdvAry, int* pCharPosAry ) const; virtual bool GetOutline( SalGraphics&, ::basegfx::B2DPolyPolygonVector& ) const; - virtual bool GetBoundRect( SalGraphics&, Rectangle& ) const; // used only by OutputDevice::ImplLayout, TODO: make friend explicit MultiSalLayout( SalLayout& rBaseLayout, diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index d9c921d47cfc..7171f59a795b 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -2080,30 +2080,4 @@ bool MultiSalLayout::GetOutline( SalGraphics& rGraphics, return bRet; } -// ----------------------------------------------------------------------- - -bool MultiSalLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rRect ) const -{ - bool bRet = false; - - Rectangle aRectangle; - for( int i = mnLevel; --i >= 0; ) - { - SalLayout& rLayout = *mpLayouts[ i ]; - rLayout.DrawBase() = maDrawBase; - rLayout.DrawOffset() += maDrawOffset; - rLayout.InitFont(); - if( rLayout.GetBoundRect( rGraphics, aRectangle ) ) - { - rRect.Union( aRectangle ); - bRet = true; - } - rLayout.DrawOffset() -= maDrawOffset; - } - - return bRet; -} - -// ======================================================================= - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |