Let's not use a macro for this...

This commit is contained in:
Kohei Yoshida
2012-03-27 01:34:35 -04:00
parent 292d71f513
commit df827af160
2 changed files with 11 additions and 11 deletions

View File

@@ -948,14 +948,14 @@ SvClassManager& SvxFieldItem::GetClassManager()
if ( !pClassMgr )
{
pClassMgr = new SvClassManager;
pClassMgr->SV_CLASS_REGISTER( SvxFieldData );
pClassMgr->SV_CLASS_REGISTER( SvxURLField );
pClassMgr->SV_CLASS_REGISTER( SvxDateField );
pClassMgr->SV_CLASS_REGISTER( SvxPageField );
pClassMgr->SV_CLASS_REGISTER( SvxTimeField );
pClassMgr->SV_CLASS_REGISTER( SvxExtTimeField );
pClassMgr->SV_CLASS_REGISTER( SvxExtFileField );
pClassMgr->SV_CLASS_REGISTER( SvxAuthorField );
pClassMgr->Register(SvxFieldData::StaticClassId(), SvxFieldData::CreateInstance);
pClassMgr->Register(SvxURLField::StaticClassId(), SvxURLField::CreateInstance);
pClassMgr->Register(SvxDateField::StaticClassId(), SvxDateField::CreateInstance);
pClassMgr->Register(SvxPageField::StaticClassId(), SvxPageField::CreateInstance);
pClassMgr->Register(SvxTimeField::StaticClassId(), SvxTimeField::CreateInstance);
pClassMgr->Register(SvxExtTimeField::StaticClassId(), SvxExtTimeField::CreateInstance);
pClassMgr->Register(SvxExtFileField::StaticClassId(), SvxExtFileField::CreateInstance);
pClassMgr->Register(SvxAuthorField::StaticClassId(), SvxAuthorField::CreateInstance);
}
return *pClassMgr;

View File

@@ -295,9 +295,9 @@ void ScDLL::Init()
// Edit-Engine-Felder, soweit nicht schon in OfficeApplication::Init
SvClassManager& rClassManager = SvxFieldItem::GetClassManager();
rClassManager.SV_CLASS_REGISTER( SvxPagesField );
rClassManager.SV_CLASS_REGISTER( SvxFileField );
rClassManager.SV_CLASS_REGISTER( SvxTableField );
rClassManager.Register(SvxPagesField::StaticClassId(), SvxPagesField::CreateInstance);
rClassManager.Register(SvxFileField::StaticClassId(), SvxFileField::CreateInstance);
rClassManager.Register(SvxTableField::StaticClassId(), SvxTableField::CreateInstance);
SdrRegisterFieldClasses(); // SvDraw-Felder registrieren