diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-15 11:25:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-15 17:02:59 +0100 |
commit | 748ed65ffba9d69ed333fd1347c30dd7a3a944b8 (patch) | |
tree | 7785130c92eda7425d6a843f7ada9b549c8ecee3 /vcl | |
parent | 1ea4f163c5a2f531dcfda7899b322636a735c618 (diff) |
drop TabControl resource loader
Change-Id: Idb909c205dfadaadeb8b98ce08fe2f4286cfce26
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index cb21606df3ee..09af36305d92 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -190,37 +190,6 @@ TabControl::TabControl( Window* pParent, WinBits nStyle ) : OSL_TRACE("*** TABCONTROL no notabs? %s", ( GetStyle() & WB_NOBORDER ) ? "true" : "false" ); } -TabControl::TabControl( Window* pParent, const ResId& rResId ) : - Control( WINDOW_TABCONTROL ) -{ - rResId.SetRT( RSC_TABCONTROL ); - WinBits nStyle = ImplInitRes( rResId ); - ImplInit( pParent, nStyle ); - ImplLoadRes( rResId ); - - if ( !(nStyle & WB_HIDE) ) - Show(); -} - -void TabControl::ImplLoadRes( const ResId& rResId ) -{ - Control::ImplLoadRes( rResId ); - - sal_uLong nObjMask = ReadLongRes(); - - if ( nObjMask & RSC_TABCONTROL_ITEMLIST ) - { - sal_uLong nEle = ReadLongRes(); - - // add item - for( sal_uLong i = 0; i < nEle; i++ ) - { - InsertPage( ResId( (RSHEADER_TYPE *)GetClassRes(), *rResId.GetResMgr() ) ); - IncrementRes( GetObjSizeRes( (RSHEADER_TYPE *)GetClassRes() ) ); - } - } -} - TabControl::~TabControl() { if ( GetParent()->IsDialog() ) |