1efeef26fSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3efeef26fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4efeef26fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5efeef26fSAndrew Rist * distributed with this work for additional information 6efeef26fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7efeef26fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8efeef26fSAndrew Rist * "License"); you may not use this file except in compliance 9efeef26fSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11efeef26fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13efeef26fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14efeef26fSAndrew Rist * software distributed under the License is distributed on an 15efeef26fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16efeef26fSAndrew Rist * KIND, either express or implied. See the License for the 17efeef26fSAndrew Rist * specific language governing permissions and limitations 18efeef26fSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20efeef26fSAndrew Rist *************************************************************/ 21efeef26fSAndrew Rist 22efeef26fSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_sw.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <hintids.hxx> 29cdf0e10cSrcweir #ifndef _SWERROR_H 30cdf0e10cSrcweir #include <swerror.h> 31cdf0e10cSrcweir #endif 32cdf0e10cSrcweir #include <vcl/wrkwin.hxx> 33cdf0e10cSrcweir #include <vcl/graph.hxx> 34cdf0e10cSrcweir #include <svx/galbrws.hxx> 35cdf0e10cSrcweir #include <svx/svdobj.hxx> 36cdf0e10cSrcweir #include <svtools/ehdl.hxx> 37cdf0e10cSrcweir #include <svx/fntszctl.hxx> 38cdf0e10cSrcweir #include <svx/fntctl.hxx> 39cdf0e10cSrcweir #include <svx/SmartTagCtl.hxx> 40cdf0e10cSrcweir #include <svx/pszctrl.hxx> 41cdf0e10cSrcweir #include <svx/insctrl.hxx> 42cdf0e10cSrcweir #include <svx/selctrl.hxx> 43cdf0e10cSrcweir #include <svx/linectrl.hxx> 44cdf0e10cSrcweir #include <svx/tbxctl.hxx> //z-Zt falscher includeschutz! 45cdf0e10cSrcweir #include <svx/fillctrl.hxx> 46cdf0e10cSrcweir #include <svx/tbcontrl.hxx> 47cdf0e10cSrcweir #include <svx/verttexttbxctrl.hxx> 48cdf0e10cSrcweir #include <svx/formatpaintbrushctrl.hxx> 49cdf0e10cSrcweir #include <svx/contdlg.hxx> 50cdf0e10cSrcweir #include <svx/layctrl.hxx> 51cdf0e10cSrcweir #include <svx/fontwork.hxx> 52cdf0e10cSrcweir #include <SwSpellDialogChildWindow.hxx> 53cdf0e10cSrcweir #include <svx/tbxalign.hxx> 54cdf0e10cSrcweir #include <svx/grafctrl.hxx> 55cdf0e10cSrcweir #include <svx/tbxcolor.hxx> 56cdf0e10cSrcweir #include <svx/clipboardctl.hxx> 57cdf0e10cSrcweir #include <svx/lboxctrl.hxx> 58cdf0e10cSrcweir #include <svx/hyprlink.hxx> 59cdf0e10cSrcweir #include <svx/tbxcustomshapes.hxx> 60cdf0e10cSrcweir #include <svx/imapdlg.hxx> 61cdf0e10cSrcweir #include <svx/srchdlg.hxx> 62cdf0e10cSrcweir #include <svx/hyperdlg.hxx> 63cdf0e10cSrcweir #include <svx/extrusioncolorcontrol.hxx> 64cdf0e10cSrcweir #include <svx/fontworkgallery.hxx> 65cdf0e10cSrcweir #include <com/sun/star/scanner/XScannerManager.hpp> 66cdf0e10cSrcweir #include <com/sun/star/container/XSet.hpp> 67cdf0e10cSrcweir #include <comphelper/processfactory.hxx> 68cdf0e10cSrcweir #ifndef _DOCSH_HXX 69cdf0e10cSrcweir #include <docsh.hxx> 70cdf0e10cSrcweir #endif 71cdf0e10cSrcweir #include <swmodule.hxx> 72cdf0e10cSrcweir #include <swevent.hxx> 73cdf0e10cSrcweir #include <swacorr.hxx> 74cdf0e10cSrcweir #ifndef _CMDID_H 75cdf0e10cSrcweir #include <cmdid.h> 76cdf0e10cSrcweir #endif 77cdf0e10cSrcweir #include <dobjfac.hxx> 78cdf0e10cSrcweir #include <init.hxx> 79cdf0e10cSrcweir #include <pview.hxx> 80cdf0e10cSrcweir #include <wview.hxx> 81cdf0e10cSrcweir #include <wdocsh.hxx> 82cdf0e10cSrcweir #include <globdoc.hxx> 83cdf0e10cSrcweir #ifndef _SRCVIEW_HXX //autogen 84cdf0e10cSrcweir #include <srcview.hxx> 85cdf0e10cSrcweir #endif 86cdf0e10cSrcweir #include <glshell.hxx> 87cdf0e10cSrcweir #include <tabsh.hxx> 88cdf0e10cSrcweir #include <listsh.hxx> 89cdf0e10cSrcweir #include <grfsh.hxx> 90cdf0e10cSrcweir #include <mediash.hxx> 91cdf0e10cSrcweir #include <olesh.hxx> 92cdf0e10cSrcweir #include <drawsh.hxx> 93cdf0e10cSrcweir #include <wformsh.hxx> 94cdf0e10cSrcweir #include <drwtxtsh.hxx> 95cdf0e10cSrcweir #include <beziersh.hxx> 96cdf0e10cSrcweir #include <wtextsh.hxx> 97cdf0e10cSrcweir #include <wfrmsh.hxx> 98cdf0e10cSrcweir #ifndef _DRFORMSH_HXX 99cdf0e10cSrcweir #include <drformsh.hxx> 100cdf0e10cSrcweir #endif 101cdf0e10cSrcweir #ifndef _WGRFSH_HXX 102cdf0e10cSrcweir #include <wgrfsh.hxx> 103cdf0e10cSrcweir #endif 104cdf0e10cSrcweir #ifndef _WOLESH_HXX 105cdf0e10cSrcweir #include <wolesh.hxx> 106cdf0e10cSrcweir #endif 107cdf0e10cSrcweir #ifndef _WLISTSH_HXX 108cdf0e10cSrcweir #include <wlistsh.hxx> 109cdf0e10cSrcweir #endif 110cdf0e10cSrcweir #ifndef _WTABSH_HXX 111cdf0e10cSrcweir #include <wtabsh.hxx> 112cdf0e10cSrcweir #endif 113cdf0e10cSrcweir #include <navipi.hxx> 114cdf0e10cSrcweir #include <chartins.hxx> 115cdf0e10cSrcweir #include <inputwin.hxx> 116cdf0e10cSrcweir #include <usrpref.hxx> 117cdf0e10cSrcweir #include <uinums.hxx> 118cdf0e10cSrcweir #include <prtopt.hxx> 119cdf0e10cSrcweir #include <bookctrl.hxx> 120cdf0e10cSrcweir #include <tmplctrl.hxx> 121cdf0e10cSrcweir #include <viewlayoutctrl.hxx> 122cdf0e10cSrcweir #include <svx/zoomsliderctrl.hxx> 123cdf0e10cSrcweir #include <tblctrl.hxx> 124cdf0e10cSrcweir #include <zoomctrl.hxx> 125cdf0e10cSrcweir #include <workctrl.hxx> 126cdf0e10cSrcweir #include <tbxanchr.hxx> 127cdf0e10cSrcweir #include <fldwrap.hxx> 128cdf0e10cSrcweir #ifndef _REDLNDLG_HXX 129cdf0e10cSrcweir #include <redlndlg.hxx> 130cdf0e10cSrcweir #endif 131cdf0e10cSrcweir #ifndef _SYNCBTN_HXX 132cdf0e10cSrcweir #include <syncbtn.hxx> 133cdf0e10cSrcweir #endif 134cdf0e10cSrcweir #include <mailmergechildwindow.hxx> 135cdf0e10cSrcweir #include <modcfg.hxx> 136cdf0e10cSrcweir #include <fontcfg.hxx> 137*7a32b0c8SAndre Fischer #include <sfx2/sidebar/SidebarChildWindow.hxx> 138cdf0e10cSrcweir #include <sfx2/taskpane.hxx> 139cdf0e10cSrcweir #include <sfx2/evntconf.hxx> 140cdf0e10cSrcweir #include <sfx2/appuno.hxx> 141cdf0e10cSrcweir #include <swatrset.hxx> 142cdf0e10cSrcweir #include <idxmrk.hxx> 143cdf0e10cSrcweir #include <dlelstnr.hxx> 144cdf0e10cSrcweir #ifndef _BARCFG_HXX 145cdf0e10cSrcweir #include <barcfg.hxx> 146cdf0e10cSrcweir #endif 147cdf0e10cSrcweir #include <svx/rubydialog.hxx> 148cdf0e10cSrcweir // OD 14.02.2003 #107424# 149cdf0e10cSrcweir #include <svtools/colorcfg.hxx> 150cdf0e10cSrcweir 151cdf0e10cSrcweir #include <editeng/acorrcfg.hxx> 152cdf0e10cSrcweir #include <unotools/moduleoptions.hxx> 153cdf0e10cSrcweir 154cdf0e10cSrcweir #ifndef _AVMEDIA_MEDIAPPLAYER_HXX 155cdf0e10cSrcweir #include <avmedia/mediaplayer.hxx> 156cdf0e10cSrcweir #endif 157cdf0e10cSrcweir #include <avmedia/mediatoolbox.hxx> 158cdf0e10cSrcweir 159cdf0e10cSrcweir #include <annotsh.hxx> 160cdf0e10cSrcweir 161cdf0e10cSrcweir #include <app.hrc> 162cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx> 163cdf0e10cSrcweir ResMgr *pSwResMgr = 0; 164cdf0e10cSrcweir sal_Bool bNoInterrupt = sal_False; 165cdf0e10cSrcweir 166cdf0e10cSrcweir #include <sfx2/app.hxx> 167cdf0e10cSrcweir 168cdf0e10cSrcweir #include <svx/svxerr.hxx> 169cdf0e10cSrcweir 170cdf0e10cSrcweir #include <unomid.h> 171cdf0e10cSrcweir 172cdf0e10cSrcweir using namespace com::sun::star; 173cdf0e10cSrcweir 174cdf0e10cSrcweir 175cdf0e10cSrcweir TYPEINIT1( SwModule, SfxModule ); 176cdf0e10cSrcweir 177cdf0e10cSrcweir using namespace ::com::sun::star; 178cdf0e10cSrcweir using namespace ::com::sun::star::uno; 179cdf0e10cSrcweir 180cdf0e10cSrcweir //************************************************************************ 181cdf0e10cSrcweir 182cdf0e10cSrcweir SwModule::SwModule( SfxObjectFactory* pWebFact, 183cdf0e10cSrcweir SfxObjectFactory* pFact, 184cdf0e10cSrcweir SfxObjectFactory* pGlobalFact ) 185cdf0e10cSrcweir : SfxModule( SfxApplication::CreateResManager( "sw" ), sal_False, pWebFact, 186cdf0e10cSrcweir pFact, pGlobalFact, NULL ), 187cdf0e10cSrcweir pModuleConfig(0), 188cdf0e10cSrcweir pUsrPref(0), 189cdf0e10cSrcweir pWebUsrPref(0), 190cdf0e10cSrcweir pPrtOpt(0), 191cdf0e10cSrcweir pWebPrtOpt(0), 192cdf0e10cSrcweir pChapterNumRules(0), 193cdf0e10cSrcweir pStdFontConfig(0), 194cdf0e10cSrcweir pNavigationConfig(0), 195cdf0e10cSrcweir pToolbarConfig(0), 196cdf0e10cSrcweir pWebToolbarConfig(0), 197cdf0e10cSrcweir pDBConfig(0), 198cdf0e10cSrcweir pColorConfig(0), 199cdf0e10cSrcweir pAccessibilityOptions(0), 200cdf0e10cSrcweir pCTLOptions(0), 201cdf0e10cSrcweir pUserOptions(0), 202cdf0e10cSrcweir pUndoOptions(0), 203cdf0e10cSrcweir pAttrPool(0), 204cdf0e10cSrcweir pView(0), 205cdf0e10cSrcweir bAuthorInitialised(sal_False), 206cdf0e10cSrcweir bEmbeddedLoadSave( sal_False ), 207cdf0e10cSrcweir pDragDrop( 0 ), 208cdf0e10cSrcweir pXSelection( 0 ) 209cdf0e10cSrcweir { 210cdf0e10cSrcweir SetName( String::CreateFromAscii("StarWriter") ); 211cdf0e10cSrcweir pSwResMgr = GetResMgr(); 212cdf0e10cSrcweir SvxErrorHandler::Get(); 213cdf0e10cSrcweir pErrorHdl = new SfxErrorHandler( RID_SW_ERRHDL, 214cdf0e10cSrcweir ERRCODE_AREA_SW, 215cdf0e10cSrcweir ERRCODE_AREA_SW_END, 216cdf0e10cSrcweir pSwResMgr ); 217cdf0e10cSrcweir 218cdf0e10cSrcweir pModuleConfig = new SwModuleOptions; 219cdf0e10cSrcweir 220cdf0e10cSrcweir //Die brauchen wie sowieso 221cdf0e10cSrcweir pToolbarConfig = new SwToolbarConfigItem( sal_False ); 222cdf0e10cSrcweir pWebToolbarConfig = new SwToolbarConfigItem( sal_True ); 223cdf0e10cSrcweir 224cdf0e10cSrcweir pStdFontConfig = new SwStdFontConfig; 225cdf0e10cSrcweir 226cdf0e10cSrcweir pAuthorNames = new SvStringsDtor(5, 1); // Alle Redlining-Autoren 227cdf0e10cSrcweir 228cdf0e10cSrcweir //JP 18.10.96: SvxAutocorrect gegen die SwAutocorrect austauschen 229cdf0e10cSrcweir SvxAutoCorrCfg* pACfg = SvxAutoCorrCfg::Get(); 230cdf0e10cSrcweir if( pACfg ) 231cdf0e10cSrcweir { 232cdf0e10cSrcweir const SvxAutoCorrect* pOld = pACfg->GetAutoCorrect(); 233cdf0e10cSrcweir pACfg->SetAutoCorrect(new SwAutoCorrect( *pOld )); 234cdf0e10cSrcweir } 235cdf0e10cSrcweir 236cdf0e10cSrcweir StartListening( *SFX_APP() ); 237cdf0e10cSrcweir 238cdf0e10cSrcweir // OD 14.02.2003 #107424# - init color configuration 239cdf0e10cSrcweir // member <pColorConfig> is created and the color configuration is applied 240cdf0e10cSrcweir // at the view options. 241cdf0e10cSrcweir GetColorConfig(); 242cdf0e10cSrcweir } 243cdf0e10cSrcweir 244cdf0e10cSrcweir //************************************************************************ 245cdf0e10cSrcweir 246cdf0e10cSrcweir uno::Reference< scanner::XScannerManager > 247cdf0e10cSrcweir SwModule::GetScannerManager() 248cdf0e10cSrcweir { 249cdf0e10cSrcweir if (!m_xScannerManager.is()) 250cdf0e10cSrcweir { 251cdf0e10cSrcweir uno::Reference< lang::XMultiServiceFactory > xMgr ( 252cdf0e10cSrcweir comphelper::getProcessServiceFactory() ); 253cdf0e10cSrcweir if( xMgr.is() ) 254cdf0e10cSrcweir { 255cdf0e10cSrcweir m_xScannerManager = 256cdf0e10cSrcweir uno::Reference< scanner::XScannerManager >( 257cdf0e10cSrcweir xMgr->createInstance( 258cdf0e10cSrcweir rtl::OUString::createFromAscii( 259cdf0e10cSrcweir "com.sun.star.scanner.ScannerManager" ) ), 260cdf0e10cSrcweir uno::UNO_QUERY ); 261cdf0e10cSrcweir } 262cdf0e10cSrcweir } 263cdf0e10cSrcweir return m_xScannerManager; 264cdf0e10cSrcweir } 265cdf0e10cSrcweir 266cdf0e10cSrcweir uno::Reference< linguistic2::XLanguageGuessing > SwModule::GetLanguageGuesser() 267cdf0e10cSrcweir { 268cdf0e10cSrcweir if (!m_xLanguageGuesser.is()) 269cdf0e10cSrcweir { 270cdf0e10cSrcweir uno::Reference< lang::XMultiServiceFactory > xMgr ( comphelper::getProcessServiceFactory() ); 271cdf0e10cSrcweir if (xMgr.is()) 272cdf0e10cSrcweir { 273cdf0e10cSrcweir m_xLanguageGuesser = uno::Reference< linguistic2::XLanguageGuessing >( 274cdf0e10cSrcweir xMgr->createInstance( 275cdf0e10cSrcweir rtl::OUString::createFromAscii( "com.sun.star.linguistic2.LanguageGuessing" ) ), 276cdf0e10cSrcweir uno::UNO_QUERY ); 277cdf0e10cSrcweir } 278cdf0e10cSrcweir } 279cdf0e10cSrcweir return m_xLanguageGuesser; 280cdf0e10cSrcweir } 281cdf0e10cSrcweir 282cdf0e10cSrcweir //************************************************************************ 283cdf0e10cSrcweir 284cdf0e10cSrcweir SwModule::~SwModule() 285cdf0e10cSrcweir { 286cdf0e10cSrcweir SetPool(0); 287cdf0e10cSrcweir SfxItemPool::Free(pAttrPool); 288cdf0e10cSrcweir delete pErrorHdl; 289cdf0e10cSrcweir EndListening( *SFX_APP() ); 290cdf0e10cSrcweir } 291cdf0e10cSrcweir 292cdf0e10cSrcweir //************************************************************************ 293cdf0e10cSrcweir 294cdf0e10cSrcweir void SwModule::CreateLngSvcEvtListener() 295cdf0e10cSrcweir { 296cdf0e10cSrcweir if (!xLngSvcEvtListener.is()) 297cdf0e10cSrcweir xLngSvcEvtListener = new SwLinguServiceEventListener; 298cdf0e10cSrcweir } 299cdf0e10cSrcweir 300cdf0e10cSrcweir //************************************************************************ 301cdf0e10cSrcweir 302cdf0e10cSrcweir void SwDLL::RegisterFactories() 303cdf0e10cSrcweir { 304cdf0e10cSrcweir //Diese Id's duerfen nicht geaendert werden. Mittels der Id's wird vom 305cdf0e10cSrcweir //Sfx die View (Dokumentansicht wiederherstellen) erzeugt. 306cdf0e10cSrcweir if ( SvtModuleOptions().IsWriter() ) 307cdf0e10cSrcweir SwView::RegisterFactory ( 2 ); 308cdf0e10cSrcweir 309cdf0e10cSrcweir SwWebView::RegisterFactory ( 5 ); 310cdf0e10cSrcweir 311cdf0e10cSrcweir if ( SvtModuleOptions().IsWriter() ) 312cdf0e10cSrcweir { 313cdf0e10cSrcweir SwSrcView::RegisterFactory ( 6 ); 314cdf0e10cSrcweir SwPagePreView::RegisterFactory ( 7 ); 315cdf0e10cSrcweir } 316cdf0e10cSrcweir } 317cdf0e10cSrcweir 318cdf0e10cSrcweir //************************************************************************ 319cdf0e10cSrcweir 320cdf0e10cSrcweir 321cdf0e10cSrcweir void SwDLL::RegisterInterfaces() 322cdf0e10cSrcweir { 323cdf0e10cSrcweir SwModule* pMod = SW_MOD(); 324cdf0e10cSrcweir SwModule::RegisterInterface( pMod ); 325cdf0e10cSrcweir SwDocShell::RegisterInterface( pMod ); 326cdf0e10cSrcweir SwWebDocShell::RegisterInterface( pMod ); 327cdf0e10cSrcweir SwGlosDocShell::RegisterInterface( pMod ); 328cdf0e10cSrcweir SwWebGlosDocShell::RegisterInterface( pMod ); 329cdf0e10cSrcweir SwView::RegisterInterface( pMod ); 330cdf0e10cSrcweir SwWebView::RegisterInterface( pMod ); 331cdf0e10cSrcweir SwPagePreView::RegisterInterface( pMod ); 332cdf0e10cSrcweir SwSrcView::RegisterInterface( pMod ); 333cdf0e10cSrcweir 334cdf0e10cSrcweir 335cdf0e10cSrcweir SwBaseShell::RegisterInterface(pMod); 336cdf0e10cSrcweir SwTextShell::RegisterInterface(pMod); 337cdf0e10cSrcweir SwTableShell::RegisterInterface(pMod); 338cdf0e10cSrcweir SwListShell::RegisterInterface(pMod); 339cdf0e10cSrcweir SwFrameShell::RegisterInterface(pMod); 340cdf0e10cSrcweir SwDrawBaseShell::RegisterInterface(pMod); 341cdf0e10cSrcweir SwDrawShell::RegisterInterface(pMod); 342cdf0e10cSrcweir SwDrawFormShell::RegisterInterface(pMod); 343cdf0e10cSrcweir SwDrawTextShell::RegisterInterface(pMod); 344cdf0e10cSrcweir SwBezierShell::RegisterInterface(pMod); 345cdf0e10cSrcweir SwGrfShell::RegisterInterface(pMod); 346cdf0e10cSrcweir SwOleShell::RegisterInterface(pMod); 347cdf0e10cSrcweir SwWebTextShell::RegisterInterface(pMod); 348cdf0e10cSrcweir SwWebFrameShell::RegisterInterface(pMod); 349cdf0e10cSrcweir SwWebGrfShell::RegisterInterface(pMod); 350cdf0e10cSrcweir SwWebListShell::RegisterInterface(pMod); 351cdf0e10cSrcweir SwWebTableShell::RegisterInterface(pMod); 352cdf0e10cSrcweir SwWebDrawFormShell::RegisterInterface(pMod); 353cdf0e10cSrcweir SwWebOleShell::RegisterInterface(pMod); 354cdf0e10cSrcweir SwMediaShell::RegisterInterface(pMod); 355cdf0e10cSrcweir SwAnnotationShell::RegisterInterface(pMod); 356cdf0e10cSrcweir } 357cdf0e10cSrcweir 358cdf0e10cSrcweir //************************************************************************ 359cdf0e10cSrcweir 360cdf0e10cSrcweir void SwDLL::RegisterControls() 361cdf0e10cSrcweir { 362cdf0e10cSrcweir SwModule* pMod = SW_MOD(); 363cdf0e10cSrcweir SvxTbxCtlDraw::RegisterControl(SID_INSERT_DRAW, pMod ); 364cdf0e10cSrcweir SvxTbxCtlAlign::RegisterControl(SID_OBJECT_ALIGN, pMod ); 365cdf0e10cSrcweir SwTbxAnchor::RegisterControl(FN_TOOL_ANKER, pMod ); 366cdf0e10cSrcweir SwTbxInsertCtrl::RegisterControl(FN_INSERT_CTRL, pMod ); 367cdf0e10cSrcweir SwTbxInsertCtrl::RegisterControl(FN_INSERT_OBJ_CTRL, pMod ); 368cdf0e10cSrcweir SwTbxAutoTextCtrl::RegisterControl(FN_INSERT_FIELD_CTRL, pMod ); 369cdf0e10cSrcweir SwTbxAutoTextCtrl::RegisterControl(FN_GLOSSARY_DLG, pMod ); 370cdf0e10cSrcweir 371cdf0e10cSrcweir SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod ); 372cdf0e10cSrcweir SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod ); 373cdf0e10cSrcweir SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod ); 374cdf0e10cSrcweir SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod ); 375cdf0e10cSrcweir SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod ); 376cdf0e10cSrcweir SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod ); 377cdf0e10cSrcweir 378cdf0e10cSrcweir svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod ); 379cdf0e10cSrcweir svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod ); 380cdf0e10cSrcweir 381cdf0e10cSrcweir SvxClipBoardControl::RegisterControl(SID_PASTE, pMod ); 382cdf0e10cSrcweir SvxUndoRedoControl::RegisterControl(SID_UNDO, pMod ); 383cdf0e10cSrcweir SvxUndoRedoControl::RegisterControl(SID_REDO, pMod ); 384cdf0e10cSrcweir svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod ); 385cdf0e10cSrcweir 386cdf0e10cSrcweir SvxFillToolBoxControl::RegisterControl(SID_ATTR_FILL_STYLE, pMod ); 387cdf0e10cSrcweir SvxLineStyleToolBoxControl::RegisterControl(SID_ATTR_LINE_STYLE, pMod ); 388cdf0e10cSrcweir SvxLineWidthToolBoxControl::RegisterControl(SID_ATTR_LINE_WIDTH, pMod ); 389cdf0e10cSrcweir SvxLineColorToolBoxControl::RegisterControl(SID_ATTR_LINE_COLOR, pMod ); 390cdf0e10cSrcweir SvxLineEndToolBoxControl::RegisterControl(SID_ATTR_LINEEND_STYLE, pMod ); 391cdf0e10cSrcweir 392cdf0e10cSrcweir SvxFontNameToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod ); 393cdf0e10cSrcweir // SvxFontHeightToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod ); 394cdf0e10cSrcweir SvxFontColorToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR, pMod ); 395cdf0e10cSrcweir SvxFontColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR2, pMod ); 396cdf0e10cSrcweir SvxFontColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR_BACKGROUND, pMod ); 397cdf0e10cSrcweir SvxStyleToolBoxControl::RegisterControl(SID_STYLE_APPLY, pMod ); 398cdf0e10cSrcweir SvxColorToolBoxControl::RegisterControl(SID_BACKGROUND_COLOR, pMod ); 399cdf0e10cSrcweir SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod ); 400cdf0e10cSrcweir SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod ); 401cdf0e10cSrcweir SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod ); 402cdf0e10cSrcweir 403cdf0e10cSrcweir SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME_INTERACT, pMod ); 404cdf0e10cSrcweir SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME, pMod ); 405cdf0e10cSrcweir SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_REGION, pMod ); 406cdf0e10cSrcweir SvxTableToolBoxControl::RegisterControl(FN_INSERT_TABLE, pMod ); 407cdf0e10cSrcweir SvxTableToolBoxControl::RegisterControl(FN_SHOW_MULTIPLE_PAGES, pMod ); 408cdf0e10cSrcweir 409cdf0e10cSrcweir SvxFontMenuControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod ); 410cdf0e10cSrcweir SvxFontSizeMenuControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod ); 411cdf0e10cSrcweir 412cdf0e10cSrcweir SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod ); 413cdf0e10cSrcweir SwPreviewZoomControl::RegisterControl(FN_PREVIEW_ZOOM, pMod); 414cdf0e10cSrcweir SvxPosSizeStatusBarControl::RegisterControl(0, pMod ); 415cdf0e10cSrcweir SvxInsertStatusBarControl::RegisterControl(SID_ATTR_INSERT, pMod ); 416cdf0e10cSrcweir SvxSelectionModeControl::RegisterControl(FN_STAT_SELMODE, pMod ); 417cdf0e10cSrcweir XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod ); 418cdf0e10cSrcweir 419cdf0e10cSrcweir SwBookmarkControl::RegisterControl(FN_STAT_PAGE, pMod ); 420cdf0e10cSrcweir SwTemplateControl::RegisterControl(FN_STAT_TEMPLATE, pMod ); 421cdf0e10cSrcweir SwViewLayoutControl::RegisterControl( SID_ATTR_VIEWLAYOUT, pMod ); 422cdf0e10cSrcweir SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod ); 423cdf0e10cSrcweir 424cdf0e10cSrcweir SwTableOptimizeCtrl::RegisterControl(FN_OPTIMIZE_TABLE, pMod); 425cdf0e10cSrcweir 426cdf0e10cSrcweir SvxIMapDlgChildWindow::RegisterChildWindow( sal_False, pMod ); 427cdf0e10cSrcweir SvxSearchDialogWrapper::RegisterChildWindow( sal_False, pMod ); 428cdf0e10cSrcweir SvxHlinkDlgWrapper::RegisterChildWindow( sal_False, pMod ); 429cdf0e10cSrcweir SvxHyperlinkDlgWrapper::RegisterChildWindow( sal_False, pMod, SFX_CHILDWIN_FORCEDOCK ); 430cdf0e10cSrcweir SvxFontWorkChildWindow::RegisterChildWindow( sal_False, pMod ); 431cdf0e10cSrcweir SwFldDlgWrapper::RegisterChildWindow( sal_False, pMod ); 432cdf0e10cSrcweir SwFldDataOnlyDlgWrapper::RegisterChildWindow( sal_False, pMod ); 433cdf0e10cSrcweir SvxContourDlgChildWindow::RegisterChildWindow( sal_False, pMod ); 434cdf0e10cSrcweir SwNavigationChild::RegisterChildWindowContext( pMod ); 435cdf0e10cSrcweir SwInputChild::RegisterChildWindow( sal_False, pMod, SFX_CHILDWIN_FORCEDOCK ); 436cdf0e10cSrcweir SwRedlineAcceptChild::RegisterChildWindow( sal_False, pMod ); 437cdf0e10cSrcweir SwSyncChildWin::RegisterChildWindow( sal_True, pMod ); 438cdf0e10cSrcweir SwMailMergeChildWindow::RegisterChildWindow( sal_False, pMod ); 439cdf0e10cSrcweir // SwSendMailChildWindow::RegisterChildWindow( sal_False, pMod ); 440cdf0e10cSrcweir SwInsertIdxMarkWrapper::RegisterChildWindow( sal_False, pMod ); 441cdf0e10cSrcweir SwInsertAuthMarkWrapper::RegisterChildWindow( sal_False, pMod ); 442cdf0e10cSrcweir SvxRubyChildWindow::RegisterChildWindow( sal_False, pMod); 443cdf0e10cSrcweir SwSpellDialogChildWindow::RegisterChildWindow(sal_False, pMod); 444cdf0e10cSrcweir 445cdf0e10cSrcweir SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod ); 446cdf0e10cSrcweir SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod ); 447cdf0e10cSrcweir SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod ); 448cdf0e10cSrcweir SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod ); 449cdf0e10cSrcweir SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod ); 450cdf0e10cSrcweir SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod ); 451cdf0e10cSrcweir SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod ); 452cdf0e10cSrcweir SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod ); 453cdf0e10cSrcweir SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod ); 454cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod); 455cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod); 456cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod); 457cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod); 458cdf0e10cSrcweir 459cdf0e10cSrcweir SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod); 460cdf0e10cSrcweir SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod); 461cdf0e10cSrcweir 462cdf0e10cSrcweir GalleryChildWindow::RegisterChildWindow(0, pMod); 463cdf0e10cSrcweir 464cdf0e10cSrcweir ::avmedia::MediaToolBoxControl::RegisterControl(SID_AVMEDIA_TOOLBOX, pMod); 465cdf0e10cSrcweir ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod); 466cdf0e10cSrcweir 467cdf0e10cSrcweir SvxSmartTagsControl::RegisterControl(SID_OPEN_SMARTTAGMENU, pMod); 468*7a32b0c8SAndre Fischer ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(NULL, pMod); 46922de8995SAndre Fischer ::sfx2::TaskPaneWrapper::RegisterChildWindow(NULL, pMod); 470cdf0e10cSrcweir } 471cdf0e10cSrcweir 472cdf0e10cSrcweir 473cdf0e10cSrcweir 474cdf0e10cSrcweir /************************************************************************* 475cdf0e10cSrcweir |* 476cdf0e10cSrcweir |* Modul laden (nur Attrappe fuer das Linken der DLL) 477cdf0e10cSrcweir |* 478cdf0e10cSrcweir \************************************************************************/ 479cdf0e10cSrcweir 480cdf0e10cSrcweir /* -----------------20.04.99 10:46------------------- 481cdf0e10cSrcweir * 482cdf0e10cSrcweir * --------------------------------------------------*/ 483cdf0e10cSrcweir void SwModule::InitAttrPool() 484cdf0e10cSrcweir { 485cdf0e10cSrcweir DBG_ASSERT(!pAttrPool, "Pool ist schon da!"); 486cdf0e10cSrcweir pAttrPool = new SwAttrPool(0); 487cdf0e10cSrcweir SetPool(pAttrPool); 488cdf0e10cSrcweir } 489cdf0e10cSrcweir /* -----------------20.04.99 10:46------------------- 490cdf0e10cSrcweir * 491cdf0e10cSrcweir * --------------------------------------------------*/ 492cdf0e10cSrcweir void SwModule::RemoveAttrPool() 493cdf0e10cSrcweir { 494cdf0e10cSrcweir SetPool(0); 495cdf0e10cSrcweir SfxItemPool::Free(pAttrPool); 496cdf0e10cSrcweir } 497cdf0e10cSrcweir 498cdf0e10cSrcweir 499