diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-10 16:59:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:44 +0100 |
commit | 87b5cdd5ed13f5d05fe90b11b01e3832e5725b72 (patch) | |
tree | 3ce67b9dd7f1c9378a09b0d55bafb8d416f7d894 /vcl/source/control | |
parent | 644cb58ac6ea53abab37c61e49d047eab0a1735c (diff) |
convert writer, draw, impress, calc and starmath printer dialogs
to new-style widget layout mostly described in .ui format
Change-Id: I8ead53a246a8ac3e2d446d158f06d7e2e436ce60
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 2f21d3fe2dcb..fef793d10699 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -1078,7 +1078,7 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout ) // in this case we're only interested in the top border of the tabpage because the tabitems are used // standalone (eg impress) sal_Bool bNoTabPage = sal_False; - TabPage* pCurPage = (pCurItem) ? pCurItem->mpTabPage : NULL; + TabPage* pCurPage = pCurItem ? pCurItem->mpTabPage : NULL; if( !pCurPage || !pCurPage->IsVisible() ) { bNoTabPage = sal_True; @@ -1855,6 +1855,18 @@ sal_uInt16 TabControl::GetPageId( const Point& rPos ) const return 0; } +sal_uInt16 TabControl::GetPageId( const TabPage& rPage ) const +{ + for( std::vector< ImplTabItem >::const_iterator it = mpTabCtrlData->maItemList.begin(); + it != mpTabCtrlData->maItemList.end(); ++it ) + { + if ( it->mpTabPage == &rPage ) + return it->mnId; + } + + return 0; +} + // ----------------------------------------------------------------------- void TabControl::SetCurPageId( sal_uInt16 nPageId ) @@ -2035,6 +2047,14 @@ const XubString& TabControl::GetHelpText( sal_uInt16 nPageId ) const // ----------------------------------------------------------------------- +void TabControl::SetHelpId( sal_uInt16 nPageId, const rtl::OString& rId ) const +{ + ImplTabItem* pItem = ImplGetItem( nPageId ); + + if ( pItem ) + pItem->maHelpId = rId; +} + rtl::OString TabControl::GetHelpId( sal_uInt16 nPageId ) const { rtl::OString aRet; |