1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_starmath.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include <tools/globname.hxx> 33*cdf0e10cSrcweir #include <vcl/status.hxx> 34*cdf0e10cSrcweir #include <sfx2/msg.hxx> 35*cdf0e10cSrcweir #include <sfx2/app.hxx> 36*cdf0e10cSrcweir #include <sfx2/objface.hxx> 37*cdf0e10cSrcweir #include <svl/whiter.hxx> 38*cdf0e10cSrcweir #include <sfx2/request.hxx> 39*cdf0e10cSrcweir #include <sfx2/sfx.hrc> 40*cdf0e10cSrcweir #include <sfx2/viewsh.hxx> 41*cdf0e10cSrcweir #include <vcl/wrkwin.hxx> 42*cdf0e10cSrcweir #ifndef _SVX_SVXIDS_HRC //autogen 43*cdf0e10cSrcweir #include <svx/svxids.hrc> 44*cdf0e10cSrcweir #endif 45*cdf0e10cSrcweir #include <vcl/msgbox.hxx> 46*cdf0e10cSrcweir #include <vcl/virdev.hxx> 47*cdf0e10cSrcweir #include <unotools/syslocale.hxx> 48*cdf0e10cSrcweir #include <tools/rtti.hxx> 49*cdf0e10cSrcweir #include "smmod.hxx" 50*cdf0e10cSrcweir #include "symbol.hxx" 51*cdf0e10cSrcweir #include "config.hxx" 52*cdf0e10cSrcweir #ifndef _DIALOG_HXX 53*cdf0e10cSrcweir #include "dialog.hxx" 54*cdf0e10cSrcweir #endif 55*cdf0e10cSrcweir #include "edit.hxx" 56*cdf0e10cSrcweir #include "view.hxx" 57*cdf0e10cSrcweir #include "starmath.hrc" 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir TYPEINIT1( SmModule, SfxModule ); 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir #define SmModule 62*cdf0e10cSrcweir #include "smslots.hxx" 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx> 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir SmResId::SmResId( sal_uInt16 nId ) 69*cdf0e10cSrcweir : ResId(nId, *SM_MOD()->GetResMgr()) 70*cdf0e10cSrcweir { 71*cdf0e10cSrcweir } 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir ///////////////////////////////////////////////////////////////// 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir SmLocalizedSymbolData::SmLocalizedSymbolData() : 76*cdf0e10cSrcweir Resource( SmResId(RID_LOCALIZED_NAMES) ), 77*cdf0e10cSrcweir aUiSymbolNamesAry ( SmResId(RID_UI_SYMBOL_NAMES) ), 78*cdf0e10cSrcweir aExportSymbolNamesAry ( SmResId(RID_EXPORT_SYMBOL_NAMES) ), 79*cdf0e10cSrcweir aUiSymbolSetNamesAry ( SmResId(RID_UI_SYMBOLSET_NAMES) ), 80*cdf0e10cSrcweir aExportSymbolSetNamesAry( SmResId(RID_EXPORT_SYMBOLSET_NAMES) ), 81*cdf0e10cSrcweir p50NamesAry ( 0 ), 82*cdf0e10cSrcweir p60NamesAry ( 0 ), 83*cdf0e10cSrcweir n50NamesLang ( LANGUAGE_NONE ), 84*cdf0e10cSrcweir n60NamesLang ( LANGUAGE_NONE ) 85*cdf0e10cSrcweir { 86*cdf0e10cSrcweir FreeResource(); 87*cdf0e10cSrcweir } 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir SmLocalizedSymbolData::~SmLocalizedSymbolData() 91*cdf0e10cSrcweir { 92*cdf0e10cSrcweir delete p50NamesAry; 93*cdf0e10cSrcweir delete p60NamesAry; 94*cdf0e10cSrcweir } 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir const String SmLocalizedSymbolData::GetUiSymbolName( const String &rExportName ) const 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir String aRes; 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData(); 102*cdf0e10cSrcweir const ResStringArray &rUiNames = rData.GetUiSymbolNamesArray(); 103*cdf0e10cSrcweir const ResStringArray &rExportNames = rData.GetExportSymbolNamesArray(); 104*cdf0e10cSrcweir sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rExportNames.Count()); 105*cdf0e10cSrcweir for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) 106*cdf0e10cSrcweir { 107*cdf0e10cSrcweir if (rExportName == rExportNames.GetString(i)) 108*cdf0e10cSrcweir { 109*cdf0e10cSrcweir aRes = rUiNames.GetString(i); 110*cdf0e10cSrcweir break; 111*cdf0e10cSrcweir } 112*cdf0e10cSrcweir } 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir return aRes; 115*cdf0e10cSrcweir } 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir const String SmLocalizedSymbolData::GetExportSymbolName( const String &rUiName ) const 119*cdf0e10cSrcweir { 120*cdf0e10cSrcweir String aRes; 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData(); 123*cdf0e10cSrcweir const ResStringArray &rUiNames = rData.GetUiSymbolNamesArray(); 124*cdf0e10cSrcweir const ResStringArray &rExportNames = rData.GetExportSymbolNamesArray(); 125*cdf0e10cSrcweir sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rUiNames.Count()); 126*cdf0e10cSrcweir for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir if (rUiName == rUiNames.GetString(i)) 129*cdf0e10cSrcweir { 130*cdf0e10cSrcweir aRes = rExportNames.GetString(i); 131*cdf0e10cSrcweir break; 132*cdf0e10cSrcweir } 133*cdf0e10cSrcweir } 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir return aRes; 136*cdf0e10cSrcweir } 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir const String SmLocalizedSymbolData::GetUiSymbolSetName( const String &rExportName ) const 140*cdf0e10cSrcweir { 141*cdf0e10cSrcweir String aRes; 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData(); 144*cdf0e10cSrcweir const ResStringArray &rUiNames = rData.GetUiSymbolSetNamesArray(); 145*cdf0e10cSrcweir const ResStringArray &rExportNames = rData.GetExportSymbolSetNamesArray(); 146*cdf0e10cSrcweir sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rExportNames.Count()); 147*cdf0e10cSrcweir for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) 148*cdf0e10cSrcweir { 149*cdf0e10cSrcweir if (rExportName == rExportNames.GetString(i)) 150*cdf0e10cSrcweir { 151*cdf0e10cSrcweir aRes = rUiNames.GetString(i); 152*cdf0e10cSrcweir break; 153*cdf0e10cSrcweir } 154*cdf0e10cSrcweir } 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir return aRes; 157*cdf0e10cSrcweir } 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir const String SmLocalizedSymbolData::GetExportSymbolSetName( const String &rUiName ) const 161*cdf0e10cSrcweir { 162*cdf0e10cSrcweir String aRes; 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData(); 165*cdf0e10cSrcweir const ResStringArray &rUiNames = rData.GetUiSymbolSetNamesArray(); 166*cdf0e10cSrcweir const ResStringArray &rExportNames = rData.GetExportSymbolSetNamesArray(); 167*cdf0e10cSrcweir sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rUiNames.Count()); 168*cdf0e10cSrcweir for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) 169*cdf0e10cSrcweir { 170*cdf0e10cSrcweir if (rUiName == rUiNames.GetString(i)) 171*cdf0e10cSrcweir { 172*cdf0e10cSrcweir aRes = rExportNames.GetString(i); 173*cdf0e10cSrcweir break; 174*cdf0e10cSrcweir } 175*cdf0e10cSrcweir } 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir return aRes; 178*cdf0e10cSrcweir } 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir 181*cdf0e10cSrcweir const ResStringArray* SmLocalizedSymbolData::Get50NamesArray( LanguageType nLang ) 182*cdf0e10cSrcweir { 183*cdf0e10cSrcweir if (nLang != n50NamesLang) 184*cdf0e10cSrcweir { 185*cdf0e10cSrcweir int nRID; 186*cdf0e10cSrcweir switch (nLang) 187*cdf0e10cSrcweir { 188*cdf0e10cSrcweir case LANGUAGE_FRENCH : nRID = RID_FRENCH_50_NAMES; break; 189*cdf0e10cSrcweir case LANGUAGE_ITALIAN : nRID = RID_ITALIAN_50_NAMES; break; 190*cdf0e10cSrcweir case LANGUAGE_SWEDISH : nRID = RID_SWEDISH_50_NAMES; break; 191*cdf0e10cSrcweir case LANGUAGE_SPANISH : nRID = RID_SPANISH_50_NAMES; break; 192*cdf0e10cSrcweir default : nRID = -1; break; 193*cdf0e10cSrcweir } 194*cdf0e10cSrcweir delete p50NamesAry; 195*cdf0e10cSrcweir p50NamesAry = 0; 196*cdf0e10cSrcweir n50NamesLang = nLang; 197*cdf0e10cSrcweir if (-1 != nRID) 198*cdf0e10cSrcweir p50NamesAry = new SmNamesArray( n50NamesLang, nRID ); 199*cdf0e10cSrcweir } 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir return p50NamesAry ? &p50NamesAry->GetNamesArray() : 0; 202*cdf0e10cSrcweir } 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir const ResStringArray* SmLocalizedSymbolData::Get60NamesArray( LanguageType nLang ) 206*cdf0e10cSrcweir { 207*cdf0e10cSrcweir if (nLang != n60NamesLang) 208*cdf0e10cSrcweir { 209*cdf0e10cSrcweir int nRID; 210*cdf0e10cSrcweir switch (nLang) 211*cdf0e10cSrcweir { 212*cdf0e10cSrcweir case LANGUAGE_FRENCH : nRID = RID_FRENCH_60_NAMES; break; 213*cdf0e10cSrcweir case LANGUAGE_ITALIAN : nRID = RID_ITALIAN_60_NAMES; break; 214*cdf0e10cSrcweir case LANGUAGE_SWEDISH : nRID = RID_SWEDISH_60_NAMES; break; 215*cdf0e10cSrcweir case LANGUAGE_SPANISH : nRID = RID_SPANISH_60_NAMES; break; 216*cdf0e10cSrcweir default : nRID = -1; break; 217*cdf0e10cSrcweir } 218*cdf0e10cSrcweir delete p60NamesAry; 219*cdf0e10cSrcweir p60NamesAry = 0; 220*cdf0e10cSrcweir n60NamesLang = nLang; 221*cdf0e10cSrcweir if (-1 != nRID) 222*cdf0e10cSrcweir p60NamesAry = new SmNamesArray( n60NamesLang, nRID ); 223*cdf0e10cSrcweir } 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir return p60NamesAry ? &p60NamesAry->GetNamesArray() : 0; 226*cdf0e10cSrcweir } 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir ///////////////////////////////////////////////////////////////// 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir SFX_IMPL_INTERFACE(SmModule, SfxModule, SmResId(RID_APPLICATION)) 231*cdf0e10cSrcweir { 232*cdf0e10cSrcweir SFX_STATUSBAR_REGISTRATION(SmResId(RID_STATUSBAR)); 233*cdf0e10cSrcweir } 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir 236*cdf0e10cSrcweir SmModule::SmModule(SfxObjectFactory* pObjFact) : 237*cdf0e10cSrcweir SfxModule(SfxApplication::CreateResManager("sm"), sal_False, pObjFact, NULL), 238*cdf0e10cSrcweir pColorConfig( 0 ), 239*cdf0e10cSrcweir pConfig( 0 ), 240*cdf0e10cSrcweir pLocSymbolData( 0 ), 241*cdf0e10cSrcweir pSysLocale( 0 ), 242*cdf0e10cSrcweir pVirtualDev( 0 ) 243*cdf0e10cSrcweir { 244*cdf0e10cSrcweir SetName( C2S("StarMath" )); 245*cdf0e10cSrcweir } 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir 248*cdf0e10cSrcweir SmModule::~SmModule() 249*cdf0e10cSrcweir { 250*cdf0e10cSrcweir delete pConfig; 251*cdf0e10cSrcweir if (pColorConfig) 252*cdf0e10cSrcweir pColorConfig->RemoveListener(this); 253*cdf0e10cSrcweir delete pColorConfig; 254*cdf0e10cSrcweir delete pLocSymbolData; 255*cdf0e10cSrcweir delete pSysLocale; 256*cdf0e10cSrcweir delete pVirtualDev; 257*cdf0e10cSrcweir } 258*cdf0e10cSrcweir 259*cdf0e10cSrcweir void SmModule::_CreateSysLocale() const 260*cdf0e10cSrcweir { 261*cdf0e10cSrcweir SmModule* pThis = (SmModule*)this; 262*cdf0e10cSrcweir pThis->pSysLocale = new SvtSysLocale; 263*cdf0e10cSrcweir } 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir void SmModule::_CreateVirtualDev() const 266*cdf0e10cSrcweir { 267*cdf0e10cSrcweir SmModule* pThis = (SmModule*)this; 268*cdf0e10cSrcweir pThis->pVirtualDev = new VirtualDevice; 269*cdf0e10cSrcweir pThis->pVirtualDev->SetReferenceDevice( VirtualDevice::REFDEV_MODE_MSO1 ); 270*cdf0e10cSrcweir } 271*cdf0e10cSrcweir 272*cdf0e10cSrcweir void SmModule::ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg ) 273*cdf0e10cSrcweir { 274*cdf0e10cSrcweir //invalidate all graphic and edit windows 275*cdf0e10cSrcweir const TypeId aSmViewTypeId = TYPE(SmViewShell); 276*cdf0e10cSrcweir SfxViewShell* pViewShell = SfxViewShell::GetFirst(); 277*cdf0e10cSrcweir while (pViewShell) 278*cdf0e10cSrcweir { 279*cdf0e10cSrcweir if ((pViewShell->IsA(aSmViewTypeId))) 280*cdf0e10cSrcweir { 281*cdf0e10cSrcweir SmViewShell *pSmView = (SmViewShell *) pViewShell; 282*cdf0e10cSrcweir pSmView->GetGraphicWindow().ApplyColorConfigValues( rColorCfg ); 283*cdf0e10cSrcweir SmEditWindow *pEditWin = pSmView->GetEditWindow(); 284*cdf0e10cSrcweir if (pEditWin) 285*cdf0e10cSrcweir pEditWin->ApplyColorConfigValues( rColorCfg ); 286*cdf0e10cSrcweir } 287*cdf0e10cSrcweir pViewShell = SfxViewShell::GetNext( *pViewShell ); 288*cdf0e10cSrcweir } 289*cdf0e10cSrcweir } 290*cdf0e10cSrcweir 291*cdf0e10cSrcweir svtools::ColorConfig & SmModule::GetColorConfig() 292*cdf0e10cSrcweir { 293*cdf0e10cSrcweir if(!pColorConfig) 294*cdf0e10cSrcweir { 295*cdf0e10cSrcweir pColorConfig = new svtools::ColorConfig; 296*cdf0e10cSrcweir ApplyColorConfigValues( *pColorConfig ); 297*cdf0e10cSrcweir pColorConfig->AddListener(this); 298*cdf0e10cSrcweir } 299*cdf0e10cSrcweir return *pColorConfig; 300*cdf0e10cSrcweir } 301*cdf0e10cSrcweir 302*cdf0e10cSrcweir void SmModule::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ) 303*cdf0e10cSrcweir { 304*cdf0e10cSrcweir ApplyColorConfigValues(*pColorConfig); 305*cdf0e10cSrcweir } 306*cdf0e10cSrcweir 307*cdf0e10cSrcweir SmConfig * SmModule::GetConfig() 308*cdf0e10cSrcweir { 309*cdf0e10cSrcweir if(!pConfig) 310*cdf0e10cSrcweir pConfig = new SmConfig; 311*cdf0e10cSrcweir return pConfig; 312*cdf0e10cSrcweir } 313*cdf0e10cSrcweir 314*cdf0e10cSrcweir SmSymbolManager & SmModule::GetSymbolManager() 315*cdf0e10cSrcweir { 316*cdf0e10cSrcweir return GetConfig()->GetSymbolManager(); 317*cdf0e10cSrcweir } 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir SmLocalizedSymbolData & SmModule::GetLocSymbolData() const 320*cdf0e10cSrcweir { 321*cdf0e10cSrcweir if (!pLocSymbolData) 322*cdf0e10cSrcweir ((SmModule *) this)->pLocSymbolData = new SmLocalizedSymbolData; 323*cdf0e10cSrcweir return *pLocSymbolData; 324*cdf0e10cSrcweir } 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir void SmModule::GetState(SfxItemSet &rSet) 327*cdf0e10cSrcweir { 328*cdf0e10cSrcweir SfxWhichIter aIter(rSet); 329*cdf0e10cSrcweir 330*cdf0e10cSrcweir for (sal_uInt16 nWh = aIter.FirstWhich(); 0 != nWh; nWh = aIter.NextWhich()) 331*cdf0e10cSrcweir switch (nWh) 332*cdf0e10cSrcweir { 333*cdf0e10cSrcweir case SID_CONFIGEVENT : 334*cdf0e10cSrcweir rSet.DisableItem(SID_CONFIGEVENT); 335*cdf0e10cSrcweir break; 336*cdf0e10cSrcweir } 337*cdf0e10cSrcweir } 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir /* -----------------15.02.99 12:45------------------- 340*cdf0e10cSrcweir * 341*cdf0e10cSrcweir * --------------------------------------------------*/ 342*cdf0e10cSrcweir SfxItemSet* SmModule::CreateItemSet( sal_uInt16 nId ) 343*cdf0e10cSrcweir { 344*cdf0e10cSrcweir SfxItemSet* pRet = 0; 345*cdf0e10cSrcweir if(nId == SID_SM_EDITOPTIONS) 346*cdf0e10cSrcweir { 347*cdf0e10cSrcweir pRet = new SfxItemSet(GetPool(), 348*cdf0e10cSrcweir //TP_SMPRINT 349*cdf0e10cSrcweir SID_PRINTSIZE, SID_PRINTSIZE, 350*cdf0e10cSrcweir SID_PRINTZOOM, SID_PRINTZOOM, 351*cdf0e10cSrcweir SID_PRINTTITLE, SID_PRINTTITLE, 352*cdf0e10cSrcweir SID_PRINTTEXT, SID_PRINTTEXT, 353*cdf0e10cSrcweir SID_PRINTFRAME, SID_PRINTFRAME, 354*cdf0e10cSrcweir SID_NO_RIGHT_SPACES, SID_NO_RIGHT_SPACES, 355*cdf0e10cSrcweir SID_SAVE_ONLY_USED_SYMBOLS, SID_SAVE_ONLY_USED_SYMBOLS, 356*cdf0e10cSrcweir 0 ); 357*cdf0e10cSrcweir 358*cdf0e10cSrcweir GetConfig()->ConfigToItemSet(*pRet); 359*cdf0e10cSrcweir } 360*cdf0e10cSrcweir return pRet; 361*cdf0e10cSrcweir } 362*cdf0e10cSrcweir /* -----------------15.02.99 12:45------------------- 363*cdf0e10cSrcweir * 364*cdf0e10cSrcweir * --------------------------------------------------*/ 365*cdf0e10cSrcweir void SmModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet ) 366*cdf0e10cSrcweir { 367*cdf0e10cSrcweir if(nId == SID_SM_EDITOPTIONS) 368*cdf0e10cSrcweir { 369*cdf0e10cSrcweir GetConfig()->ItemSetToConfig(rSet); 370*cdf0e10cSrcweir } 371*cdf0e10cSrcweir } 372*cdf0e10cSrcweir /* -----------------15.02.99 12:45------------------- 373*cdf0e10cSrcweir * 374*cdf0e10cSrcweir * --------------------------------------------------*/ 375*cdf0e10cSrcweir SfxTabPage* SmModule::CreateTabPage( sal_uInt16 nId, Window* pParent, const SfxItemSet& rSet ) 376*cdf0e10cSrcweir { 377*cdf0e10cSrcweir SfxTabPage* pRet = 0; 378*cdf0e10cSrcweir if(nId == SID_SM_TP_PRINTOPTIONS) 379*cdf0e10cSrcweir pRet = SmPrintOptionsTabPage::Create( pParent, rSet ); 380*cdf0e10cSrcweir return pRet; 381*cdf0e10cSrcweir 382*cdf0e10cSrcweir } 383