diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/tabctrl.hxx | 4 | ||||
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 25 |
2 files changed, 0 insertions, 29 deletions
diff --git a/vcl/inc/vcl/tabctrl.hxx b/vcl/inc/vcl/tabctrl.hxx index 380fb2e70883..970044a377f8 100644 --- a/vcl/inc/vcl/tabctrl.hxx +++ b/vcl/inc/vcl/tabctrl.hxx @@ -194,10 +194,6 @@ public: using Control::GetIndexForPoint; long GetIndexForPoint( const Point& rPoint, sal_uInt16& rPageId ) const; - // returns the bounding rectangle of the union of tab page area and the - // corresponding tab - Rectangle GetTabPageBounds( sal_uInt16 nPageId ) const; - // returns the rectangle of the tab for page nPageId Rectangle GetTabBounds( sal_uInt16 nPageId ) const; }; diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 7bdd0d3af0bf..799c96bbd1a8 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2140,31 +2140,6 @@ void TabControl::FillLayoutData() const // ----------------------------------------------------------------------- -Rectangle TabControl::GetTabPageBounds( sal_uInt16 nPage ) const -{ - Rectangle aRet; - - if( !HasLayoutData() || ! mpTabCtrlData->maLayoutPageIdToLine.size() ) - FillLayoutData(); - - if( HasLayoutData() ) - { - boost::unordered_map< int, int >::const_iterator it = mpTabCtrlData->maLayoutPageIdToLine.find( (int)nPage ); - if( it != mpTabCtrlData->maLayoutPageIdToLine.end() ) - { - if( it->second >= 0 && it->second < static_cast<int>(mpTabCtrlData->maTabRectangles.size()) ) - { - aRet = mpTabCtrlData->maTabRectangles[ it->second ]; - aRet.Union( const_cast<TabControl*>(this)->ImplGetTabRect( TAB_PAGERECT ) ); - } - } - } - - return aRet; -} - -// ----------------------------------------------------------------------- - Rectangle TabControl::GetTabBounds( sal_uInt16 nPageId ) const { Rectangle aRet; |