From d21d606236d7d9d93cfba0a16c3d9ec4473ef8f0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 31 Dec 2014 13:15:10 +0000 Subject: drop timeformatter resource loading Change-Id: I11de468ab65aa4dec761fbcc1e9416528c332dd5 --- rsc/inc/rscdb.hxx | 3 --- rsc/source/parser/rscicpx.cxx | 63 ------------------------------------------- rsc/source/parser/rscinit.cxx | 12 --------- 3 files changed, 78 deletions(-) (limited to 'rsc') diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx index 5834ead61eed..e53c902475c8 100644 --- a/rsc/inc/rscdb.hxx +++ b/rsc/inc/rscdb.hxx @@ -205,15 +205,12 @@ class RscTypCont RscTop * pClassKeyCode ); RscTop * InitClassMenu( RscTop * pSuper, RscTop * pMenuItem ); RscTop * InitClassSplitWindow( RscTop * pSuper ); - RscTop * InitClassTime( RscTop * pSuper ); RscTop * InitClassDate( RscTop * pSuper ); RscTop * InitClassNumericFormatter( RscTop * pSuper ); RscTop * InitClassMetricFormatter( RscTop * pSuper, RscEnum * pFieldUnits ); RscTop * InitClassDateFormatter( RscTop * pSuper, RscTop * pClassDate ); - RscTop * InitClassTimeFormatter( RscTop * pSuper, RscTop * pClassTime, - RscEnum * pTimeFieldFormat ); RscTop * InitClassSpinField( RscTop * pSuper ); RscTop * InitClassNumericField( RscTop * pSuper ); diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx index 13c9e59b286a..19c61647cea0 100644 --- a/rsc/source/parser/rscicpx.cxx +++ b/rsc/source/parser/rscicpx.cxx @@ -929,34 +929,6 @@ RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper ) return pClassSplitWindow; } -RscTop * RscTypCont::InitClassTime( RscTop * pSuper ) -{ - Atom nId; - RscTop * pClassTime; - - // Klasse anlegen - nId = pHS->getID( "Time" ); - pClassTime = new RscClass( nId, RSC_TIME, pSuper ); - pClassTime->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType ); - - aNmTb.Put( nId, CLASSNAME, pClassTime ); - - // Variablen anlegen - nId = aNmTb.Put( "Hour", VARNAME ); - pClassTime->SetVariable( nId, &a0to23Short, NULL, 0, TIME_HOUR ); - - nId = aNmTb.Put( "Minute", VARNAME ); - pClassTime->SetVariable( nId, &a0to59Short, NULL, 0, TIME_MINUTE ); - - nId = aNmTb.Put( "Second", VARNAME ); - pClassTime->SetVariable( nId, &a0to59Short, NULL, 0, TIME_SECOND ); - - nId = aNmTb.Put( "Sec100", VARNAME ); // weiss noch nich - pClassTime->SetVariable( nId, &a0to99Short, NULL, 0, TIME_SEC100 ); - - return pClassTime; -} - RscTop * RscTypCont::InitClassDate( RscTop * pSuper ) { Atom nId; @@ -1068,41 +1040,6 @@ RscTop * RscTypCont::InitClassDateFormatter( RscTop * pSuper, return pClassDateF; } -RscTop * RscTypCont::InitClassTimeFormatter( RscTop * pSuper, - RscTop * pClassTime, - RscEnum * pTimeFieldFormat ) -{ - Atom nId; - RscTop * pClassTimeF; - - // Klasse anlegen - nId = pHS->getID( "TimeFormatter" ); - pClassTimeF = new RscClass( nId, RSC_NOTYPE, pSuper ); - pClassTimeF->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType ); - - // Variablen anlegen - nId = aNmTb.Put( "Minimum", VARNAME ); - pClassTimeF->SetVariable( nId, pClassTime, NULL, - 0, TIMEFORMATTER_MIN ); - nId = aNmTb.Put( "Maximum", VARNAME ); - pClassTimeF->SetVariable( nId, pClassTime, NULL, - 0, TIMEFORMATTER_MAX ); - nId = aNmTb.Put( "Format", VARNAME ); - pClassTimeF->SetVariable( nId, pTimeFieldFormat, NULL, - 0, TIMEFORMATTER_TIMEFIELDFORMAT ); - nId = aNmTb.Put( "Duration", VARNAME ); - pClassTimeF->SetVariable( nId, &aBool, NULL, - 0, TIMEFORMATTER_DURATION ); - nId = aNmTb.Put( "StrictFormat", VARNAME ); - pClassTimeF->SetVariable( nId, &aBool, NULL, - 0, TIMEFORMATTER_STRICTFORMAT ); - nId = aNmTb.Put( "Value", VARNAME ); - pClassTimeF->SetVariable( nId, pClassTime, NULL, - 0, TIMEFORMATTER_VALUE ); - - return pClassTimeF; -} - RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper ) { Atom nId; diff --git a/rsc/source/parser/rscinit.cxx b/rsc/source/parser/rscinit.cxx index 2a6801c7be9a..1ffc64f83fa5 100644 --- a/rsc/source/parser/rscinit.cxx +++ b/rsc/source/parser/rscinit.cxx @@ -44,7 +44,6 @@ void RscTypCont::Init() { RscEnum * pFieldUnits; - RscEnum * pTimeFieldFormat; RscEnum * pColor; RscEnum * pMapUnit; RscEnum * pKey; @@ -88,7 +87,6 @@ void RscTypCont::Init() RscTop * pClassMenu; RscTop * pClassSplitWindow; RscTop * pClassSpinButton; - RscTop * pClassTime; RscTop * pClassDate; RscTop * pClassSpinField; RscTop * pClassNumericField; @@ -273,7 +271,6 @@ void RscTypCont::Init() { InitLangType(); aBaseLst.push_back( pFieldUnits = InitFieldUnitsType() ); - aBaseLst.push_back( pTimeFieldFormat = InitTimeFieldFormat() ); aBaseLst.push_back( pColor = InitColor() ); aBaseLst.push_back( pMapUnit = InitMapUnit() ); aBaseLst.push_back( pKey = InitKey() ); @@ -441,9 +438,6 @@ void RscTypCont::Init() pRoot->Insert( pClassSpinButton ); } { - pClassTime = InitClassTime( pClassMgr ); - pRoot->Insert( pClassTime ); - pClassDate = InitClassDate( pClassMgr ); pRoot->Insert( pClassDate ); } @@ -475,12 +469,6 @@ void RscTypCont::Init() pClassDateField = InitClassDateField( pClassTmp, pClassDate ); pRoot->Insert( pClassDateField ); } - { // Mehrfachvererbung von Hand - RscTop * pClassTmp = InitClassTimeFormatter( pClassSpinField, pClassTime, - pTimeFieldFormat ); - aBaseLst.push_back( pClassTmp ); - - } } { pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit ); -- cgit v1.2.3