diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-31 15:19:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-31 18:10:52 +0000 |
commit | 190196b98fc630d8aa3889e93797cb6268008447 (patch) | |
tree | 62a877d8d4e8ee1fa9065f77dcc8c23fbad7c2aa /tools | |
parent | 959bcd564bca2e33036e0947a293ef2009341cf7 (diff) |
Date/Time no longer loaded from rsc files
Change-Id: Ia9ed86b0d96cac76c2e1639065a4ac594c2966b1
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/rc/rc.cxx | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/tools/source/rc/rc.cxx b/tools/source/rc/rc.cxx index a4bd8f269e18..cefccad9dc40 100644 --- a/tools/source/rc/rc.cxx +++ b/tools/source/rc/rc.cxx @@ -39,50 +39,6 @@ void Resource::GetRes( const ResId& rResId ) IncrementRes( sizeof( RSHEADER_TYPE ) ); } -namespace tools { - -Time::Time( const ResId& rResId ) -{ - nTime = 0; - rResId.SetRT( RSC_TIME ); - ResMgr* pResMgr = NULL; - - ResMgr::GetResourceSkipHeader( rResId, &pResMgr ); - - sal_uIntPtr nObjMask = (sal_uInt16)pResMgr->ReadLong(); - - if ( 0x01 & nObjMask ) - SetHour( (sal_uInt16)pResMgr->ReadShort() ); - if ( 0x02 & nObjMask ) - SetMin( (sal_uInt16)pResMgr->ReadShort() ); - if ( 0x04 & nObjMask ) - SetSec( (sal_uInt16)pResMgr->ReadShort() ); - if ( 0x08 & nObjMask ) - // TODO: when we change the place that writes this binary resource format to match: - // SetNanoSec( pResMgr->ReadLong() ); - // In the meantime: - SetNanoSec( pResMgr->ReadShort() * ::tools::Time::nanoPerCenti ); -} - -} /* namespace tools */ - -Date::Date( const ResId& rResId ) : nDate(0) -{ - rResId.SetRT( RSC_DATE ); - ResMgr* pResMgr = NULL; - - ResMgr::GetResourceSkipHeader( rResId, &pResMgr ); - - sal_uIntPtr nObjMask = (sal_uInt16)pResMgr->ReadLong(); - - if ( 0x01 & nObjMask ) - SetYear( (sal_uInt16)pResMgr->ReadShort() ); - if ( 0x02 & nObjMask ) - SetMonth( (sal_uInt16)pResMgr->ReadShort() ); - if ( 0x04 & nObjMask ) - SetDay( (sal_uInt16)pResMgr->ReadShort() ); -} - OUString ResId::toString() const { SetRT( RSC_STRING ); |