diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-31 13:15:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-31 18:10:51 +0000 |
commit | d21d606236d7d9d93cfba0a16c3d9ec4473ef8f0 (patch) | |
tree | a8831239f96c1fea71f4a1dc421a65ff500a07a5 /vcl | |
parent | caa92788885c6bfca326b11237e17cd981da1b7f (diff) |
drop timeformatter resource loading
Change-Id: I11de468ab65aa4dec761fbcc1e9416528c332dd5
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field2.cxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 89b6884a4b45..7192b22faa63 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -2412,48 +2412,6 @@ TimeFormatter::TimeFormatter() : ImplInit(); } -void TimeFormatter::ImplLoadRes( const ResId& rResId ) -{ - ResMgr* pMgr = rResId.GetResMgr(); - if( pMgr ) - { - sal_uLong nMask = pMgr->ReadLong(); - - if ( TIMEFORMATTER_MIN & nMask ) - { - SetMin( tools::Time( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) ) ); - pMgr->Increment( ResMgr::GetObjSize( (RSHEADER_TYPE *)pMgr->GetClass() ) ); - } - - if ( TIMEFORMATTER_MAX & nMask ) - { - SetMax( tools::Time( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) ) ); - pMgr->Increment( ResMgr::GetObjSize( (RSHEADER_TYPE *)pMgr->GetClass() ) ); - } - - if ( TIMEFORMATTER_TIMEFIELDFORMAT & nMask ) - meFormat = (TimeFieldFormat)pMgr->ReadLong(); - - if ( TIMEFORMATTER_DURATION & nMask ) - mbDuration = pMgr->ReadShort() != 0; - - if ( TIMEFORMATTER_STRICTFORMAT & nMask ) - SetStrictFormat( pMgr->ReadShort() != 0 ); - - if ( TIMEFORMATTER_VALUE & nMask ) - { - maFieldTime = tools::Time( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) ); - if ( maFieldTime > GetMax() ) - maFieldTime = GetMax(); - if ( maFieldTime < GetMin() ) - maFieldTime = GetMin(); - maLastTime = maFieldTime; - - pMgr->Increment( ResMgr::GetObjSize( (RSHEADER_TYPE *)pMgr->GetClass() ) ); - } - } -} - TimeFormatter::~TimeFormatter() { } |