xref: /AOO41X/main/sw/source/ui/app/swmodule.cxx (revision ffb6c864b85bd0b97dee75a8ee80cfa70b5094d2)
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/evntconf.hxx>
139cdf0e10cSrcweir #include <sfx2/appuno.hxx>
140cdf0e10cSrcweir #include <swatrset.hxx>
141cdf0e10cSrcweir #include <idxmrk.hxx>
142cdf0e10cSrcweir #include <dlelstnr.hxx>
143cdf0e10cSrcweir #ifndef _BARCFG_HXX
144cdf0e10cSrcweir #include <barcfg.hxx>
145cdf0e10cSrcweir #endif
146cdf0e10cSrcweir #include <svx/rubydialog.hxx>
147cdf0e10cSrcweir // OD 14.02.2003 #107424#
148cdf0e10cSrcweir #include <svtools/colorcfg.hxx>
149cdf0e10cSrcweir 
150cdf0e10cSrcweir #include <editeng/acorrcfg.hxx>
151cdf0e10cSrcweir #include <unotools/moduleoptions.hxx>
152cdf0e10cSrcweir 
153cdf0e10cSrcweir #ifndef _AVMEDIA_MEDIAPPLAYER_HXX
154cdf0e10cSrcweir #include <avmedia/mediaplayer.hxx>
155cdf0e10cSrcweir #endif
156cdf0e10cSrcweir #include <avmedia/mediatoolbox.hxx>
157cdf0e10cSrcweir 
158cdf0e10cSrcweir #include <annotsh.hxx>
159cdf0e10cSrcweir 
160cdf0e10cSrcweir #include <app.hrc>
161cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx>
162cdf0e10cSrcweir ResMgr *pSwResMgr = 0;
163cdf0e10cSrcweir sal_Bool 	bNoInterrupt 	= sal_False;
164cdf0e10cSrcweir 
165cdf0e10cSrcweir #include <sfx2/app.hxx>
166cdf0e10cSrcweir 
167cdf0e10cSrcweir #include <svx/svxerr.hxx>
168cdf0e10cSrcweir 
169cdf0e10cSrcweir #include <unomid.h>
170cdf0e10cSrcweir 
171cdf0e10cSrcweir using namespace com::sun::star;
172cdf0e10cSrcweir 
173cdf0e10cSrcweir 
174cdf0e10cSrcweir TYPEINIT1( SwModule, SfxModule );
175cdf0e10cSrcweir 
176cdf0e10cSrcweir using namespace ::com::sun::star;
177cdf0e10cSrcweir using namespace ::com::sun::star::uno;
178cdf0e10cSrcweir 
179cdf0e10cSrcweir //************************************************************************
180cdf0e10cSrcweir 
SwModule(SfxObjectFactory * pWebFact,SfxObjectFactory * pFact,SfxObjectFactory * pGlobalFact)181cdf0e10cSrcweir SwModule::SwModule( SfxObjectFactory* pWebFact,
182cdf0e10cSrcweir 					SfxObjectFactory* pFact,
183cdf0e10cSrcweir 					SfxObjectFactory* pGlobalFact )
184cdf0e10cSrcweir 	: SfxModule( SfxApplication::CreateResManager( "sw" ), sal_False, pWebFact,
185cdf0e10cSrcweir 					 pFact, pGlobalFact, NULL ),
186cdf0e10cSrcweir 	pModuleConfig(0),
187cdf0e10cSrcweir     pUsrPref(0),
188cdf0e10cSrcweir     pWebUsrPref(0),
189cdf0e10cSrcweir     pPrtOpt(0),
190cdf0e10cSrcweir     pWebPrtOpt(0),
191cdf0e10cSrcweir     pChapterNumRules(0),
192cdf0e10cSrcweir     pStdFontConfig(0),
193cdf0e10cSrcweir     pNavigationConfig(0),
194cdf0e10cSrcweir     pToolbarConfig(0),
195cdf0e10cSrcweir     pWebToolbarConfig(0),
196cdf0e10cSrcweir     pDBConfig(0),
197cdf0e10cSrcweir     pColorConfig(0),
198cdf0e10cSrcweir     pAccessibilityOptions(0),
199cdf0e10cSrcweir     pCTLOptions(0),
200cdf0e10cSrcweir     pUserOptions(0),
201cdf0e10cSrcweir     pUndoOptions(0),
202cdf0e10cSrcweir     pAttrPool(0),
203cdf0e10cSrcweir     pView(0),
204cdf0e10cSrcweir 	bAuthorInitialised(sal_False),
205cdf0e10cSrcweir     bEmbeddedLoadSave( sal_False ),
206cdf0e10cSrcweir     pDragDrop( 0 ),
207cdf0e10cSrcweir     pXSelection( 0 )
208cdf0e10cSrcweir {
209cdf0e10cSrcweir 	SetName( String::CreateFromAscii("StarWriter") );
210cdf0e10cSrcweir 	pSwResMgr = GetResMgr();
211cdf0e10cSrcweir 	SvxErrorHandler::Get();
212cdf0e10cSrcweir 	pErrorHdl = new SfxErrorHandler( RID_SW_ERRHDL,
213cdf0e10cSrcweir 									 ERRCODE_AREA_SW,
214cdf0e10cSrcweir 									 ERRCODE_AREA_SW_END,
215cdf0e10cSrcweir 									 pSwResMgr );
216cdf0e10cSrcweir 
217cdf0e10cSrcweir 	pModuleConfig = new SwModuleOptions;
218cdf0e10cSrcweir 
219cdf0e10cSrcweir 	//Die brauchen wie sowieso
220cdf0e10cSrcweir 	pToolbarConfig = new SwToolbarConfigItem( sal_False );
221cdf0e10cSrcweir 	pWebToolbarConfig = new SwToolbarConfigItem( sal_True );
222cdf0e10cSrcweir 
223cdf0e10cSrcweir 	pStdFontConfig = new SwStdFontConfig;
224cdf0e10cSrcweir 
225cdf0e10cSrcweir 	pAuthorNames = new SvStringsDtor(5, 1);	// Alle Redlining-Autoren
226cdf0e10cSrcweir 
227cdf0e10cSrcweir 	//JP 18.10.96: SvxAutocorrect gegen die SwAutocorrect austauschen
228cdf0e10cSrcweir 	SvxAutoCorrCfg*	pACfg = SvxAutoCorrCfg::Get();
229cdf0e10cSrcweir 	if( pACfg )
230cdf0e10cSrcweir 	{
231cdf0e10cSrcweir 		const SvxAutoCorrect* pOld = pACfg->GetAutoCorrect();
232cdf0e10cSrcweir 		pACfg->SetAutoCorrect(new SwAutoCorrect( *pOld ));
233cdf0e10cSrcweir 	}
234cdf0e10cSrcweir 
235cdf0e10cSrcweir 	StartListening( *SFX_APP() );
236cdf0e10cSrcweir 
237cdf0e10cSrcweir     // OD 14.02.2003 #107424# - init color configuration
238cdf0e10cSrcweir     // member <pColorConfig> is created and the color configuration is applied
239cdf0e10cSrcweir     // at the view options.
240cdf0e10cSrcweir     GetColorConfig();
241cdf0e10cSrcweir }
242cdf0e10cSrcweir 
243cdf0e10cSrcweir //************************************************************************
244cdf0e10cSrcweir 
245cdf0e10cSrcweir uno::Reference< scanner::XScannerManager >
GetScannerManager()246cdf0e10cSrcweir SwModule::GetScannerManager()
247cdf0e10cSrcweir {
248cdf0e10cSrcweir 	if (!m_xScannerManager.is())
249cdf0e10cSrcweir 	{
250cdf0e10cSrcweir         uno::Reference< lang::XMultiServiceFactory > xMgr (
251cdf0e10cSrcweir 			comphelper::getProcessServiceFactory() );
252cdf0e10cSrcweir 		if( xMgr.is() )
253cdf0e10cSrcweir 		{
254cdf0e10cSrcweir 			m_xScannerManager =
255cdf0e10cSrcweir                 uno::Reference< scanner::XScannerManager >(
256cdf0e10cSrcweir 					xMgr->createInstance(
257cdf0e10cSrcweir 						rtl::OUString::createFromAscii(
258cdf0e10cSrcweir 							"com.sun.star.scanner.ScannerManager" ) ),
259cdf0e10cSrcweir                     uno::UNO_QUERY );
260cdf0e10cSrcweir 		}
261cdf0e10cSrcweir 	}
262cdf0e10cSrcweir 	return m_xScannerManager;
263cdf0e10cSrcweir }
264cdf0e10cSrcweir 
GetLanguageGuesser()265cdf0e10cSrcweir uno::Reference< linguistic2::XLanguageGuessing > SwModule::GetLanguageGuesser()
266cdf0e10cSrcweir {
267cdf0e10cSrcweir     if (!m_xLanguageGuesser.is())
268cdf0e10cSrcweir     {
269cdf0e10cSrcweir         uno::Reference< lang::XMultiServiceFactory > xMgr ( comphelper::getProcessServiceFactory() );
270cdf0e10cSrcweir         if (xMgr.is())
271cdf0e10cSrcweir         {
272cdf0e10cSrcweir             m_xLanguageGuesser = uno::Reference< linguistic2::XLanguageGuessing >(
273cdf0e10cSrcweir                     xMgr->createInstance(
274cdf0e10cSrcweir                         rtl::OUString::createFromAscii( "com.sun.star.linguistic2.LanguageGuessing" ) ),
275cdf0e10cSrcweir                         uno::UNO_QUERY );
276cdf0e10cSrcweir         }
277cdf0e10cSrcweir     }
278cdf0e10cSrcweir     return m_xLanguageGuesser;
279cdf0e10cSrcweir }
280cdf0e10cSrcweir 
281cdf0e10cSrcweir //************************************************************************
282cdf0e10cSrcweir 
~SwModule()283cdf0e10cSrcweir SwModule::~SwModule()
284cdf0e10cSrcweir {
285cdf0e10cSrcweir 	SetPool(0);
286cdf0e10cSrcweir 	SfxItemPool::Free(pAttrPool);
287cdf0e10cSrcweir 	delete pErrorHdl;
288cdf0e10cSrcweir     EndListening( *SFX_APP() );
289cdf0e10cSrcweir }
290cdf0e10cSrcweir 
291cdf0e10cSrcweir //************************************************************************
292cdf0e10cSrcweir 
CreateLngSvcEvtListener()293cdf0e10cSrcweir void SwModule::CreateLngSvcEvtListener()
294cdf0e10cSrcweir {
295cdf0e10cSrcweir     if (!xLngSvcEvtListener.is())
296cdf0e10cSrcweir         xLngSvcEvtListener = new SwLinguServiceEventListener;
297cdf0e10cSrcweir }
298cdf0e10cSrcweir 
299cdf0e10cSrcweir //************************************************************************
300cdf0e10cSrcweir 
RegisterFactories()301cdf0e10cSrcweir void SwDLL::RegisterFactories()
302cdf0e10cSrcweir {
303cdf0e10cSrcweir 	//Diese Id's duerfen nicht geaendert werden. Mittels der Id's wird vom
304cdf0e10cSrcweir 	//Sfx die View (Dokumentansicht wiederherstellen) erzeugt.
305cdf0e10cSrcweir     if ( SvtModuleOptions().IsWriter() )
306cdf0e10cSrcweir         SwView::RegisterFactory         ( 2 );
307cdf0e10cSrcweir 
308cdf0e10cSrcweir 	SwWebView::RegisterFactory		( 5 );
309cdf0e10cSrcweir 
310cdf0e10cSrcweir     if ( SvtModuleOptions().IsWriter() )
311cdf0e10cSrcweir     {
312cdf0e10cSrcweir         SwSrcView::RegisterFactory      ( 6 );
313cdf0e10cSrcweir         SwPagePreView::RegisterFactory  ( 7 );
314cdf0e10cSrcweir     }
315cdf0e10cSrcweir }
316cdf0e10cSrcweir 
317cdf0e10cSrcweir //************************************************************************
318cdf0e10cSrcweir 
319cdf0e10cSrcweir 
RegisterInterfaces()320cdf0e10cSrcweir void SwDLL::RegisterInterfaces()
321cdf0e10cSrcweir {
322cdf0e10cSrcweir 	SwModule* pMod = SW_MOD();
323cdf0e10cSrcweir 	SwModule::RegisterInterface( pMod );
324cdf0e10cSrcweir 	SwDocShell::RegisterInterface( pMod );
325cdf0e10cSrcweir 	SwWebDocShell::RegisterInterface( pMod );
326cdf0e10cSrcweir 	SwGlosDocShell::RegisterInterface( pMod );
327cdf0e10cSrcweir 	SwWebGlosDocShell::RegisterInterface( pMod );
328cdf0e10cSrcweir 	SwView::RegisterInterface( pMod );
329cdf0e10cSrcweir 	SwWebView::RegisterInterface( pMod );
330cdf0e10cSrcweir 	SwPagePreView::RegisterInterface( pMod );
331cdf0e10cSrcweir 	SwSrcView::RegisterInterface( pMod );
332cdf0e10cSrcweir 
333cdf0e10cSrcweir 
334cdf0e10cSrcweir 	SwBaseShell::RegisterInterface(pMod);
335cdf0e10cSrcweir 	SwTextShell::RegisterInterface(pMod);
336cdf0e10cSrcweir 	SwTableShell::RegisterInterface(pMod);
337cdf0e10cSrcweir 	SwListShell::RegisterInterface(pMod);
338cdf0e10cSrcweir 	SwFrameShell::RegisterInterface(pMod);
339cdf0e10cSrcweir 	SwDrawBaseShell::RegisterInterface(pMod);
340cdf0e10cSrcweir 	SwDrawShell::RegisterInterface(pMod);
341cdf0e10cSrcweir 	SwDrawFormShell::RegisterInterface(pMod);
342cdf0e10cSrcweir 	SwDrawTextShell::RegisterInterface(pMod);
343cdf0e10cSrcweir 	SwBezierShell::RegisterInterface(pMod);
344cdf0e10cSrcweir 	SwGrfShell::RegisterInterface(pMod);
345cdf0e10cSrcweir 	SwOleShell::RegisterInterface(pMod);
346cdf0e10cSrcweir 	SwWebTextShell::RegisterInterface(pMod);
347cdf0e10cSrcweir 	SwWebFrameShell::RegisterInterface(pMod);
348cdf0e10cSrcweir 	SwWebGrfShell::RegisterInterface(pMod);
349cdf0e10cSrcweir 	SwWebListShell::RegisterInterface(pMod);
350cdf0e10cSrcweir 	SwWebTableShell::RegisterInterface(pMod);
351cdf0e10cSrcweir 	SwWebDrawFormShell::RegisterInterface(pMod);
352cdf0e10cSrcweir 	SwWebOleShell::RegisterInterface(pMod);
353cdf0e10cSrcweir 	SwMediaShell::RegisterInterface(pMod);
354cdf0e10cSrcweir     SwAnnotationShell::RegisterInterface(pMod);
355cdf0e10cSrcweir }
356cdf0e10cSrcweir 
357cdf0e10cSrcweir //************************************************************************
358cdf0e10cSrcweir 
RegisterControls()359cdf0e10cSrcweir void SwDLL::RegisterControls()
360cdf0e10cSrcweir {
361cdf0e10cSrcweir 	SwModule* pMod = SW_MOD();
362cdf0e10cSrcweir     SvxTbxCtlDraw::RegisterControl(SID_INSERT_DRAW, pMod );
363cdf0e10cSrcweir     SvxTbxCtlAlign::RegisterControl(SID_OBJECT_ALIGN, pMod );
364cdf0e10cSrcweir 	SwTbxAnchor::RegisterControl(FN_TOOL_ANKER, pMod );
365cdf0e10cSrcweir 	SwTbxInsertCtrl::RegisterControl(FN_INSERT_CTRL, pMod );
366cdf0e10cSrcweir 	SwTbxInsertCtrl::RegisterControl(FN_INSERT_OBJ_CTRL, pMod );
367cdf0e10cSrcweir 	SwTbxAutoTextCtrl::RegisterControl(FN_INSERT_FIELD_CTRL, pMod );
368cdf0e10cSrcweir 	SwTbxAutoTextCtrl::RegisterControl(FN_GLOSSARY_DLG, pMod );
369cdf0e10cSrcweir 
370cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
371cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
372cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
373cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
374cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
375cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
376cdf0e10cSrcweir 
377cdf0e10cSrcweir 	svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
378cdf0e10cSrcweir 	svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
379cdf0e10cSrcweir 
380cdf0e10cSrcweir 	SvxClipBoardControl::RegisterControl(SID_PASTE, pMod );
381cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl(SID_UNDO, pMod );
382cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl(SID_REDO, pMod );
383cdf0e10cSrcweir     svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
384cdf0e10cSrcweir 
385cdf0e10cSrcweir 	SvxFillToolBoxControl::RegisterControl(SID_ATTR_FILL_STYLE, pMod );
386cdf0e10cSrcweir 	SvxLineStyleToolBoxControl::RegisterControl(SID_ATTR_LINE_STYLE, pMod );
387cdf0e10cSrcweir 	SvxLineWidthToolBoxControl::RegisterControl(SID_ATTR_LINE_WIDTH, pMod );
388cdf0e10cSrcweir 	SvxLineColorToolBoxControl::RegisterControl(SID_ATTR_LINE_COLOR, pMod );
389cdf0e10cSrcweir 	SvxLineEndToolBoxControl::RegisterControl(SID_ATTR_LINEEND_STYLE, pMod );
390cdf0e10cSrcweir 
391cdf0e10cSrcweir 	SvxFontNameToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
392cdf0e10cSrcweir //	SvxFontHeightToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod );
393cdf0e10cSrcweir 	SvxFontColorToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR, pMod );
394cdf0e10cSrcweir 	SvxFontColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR2, pMod );
395cdf0e10cSrcweir 	SvxFontColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR_BACKGROUND, pMod );
396cdf0e10cSrcweir 	SvxStyleToolBoxControl::RegisterControl(SID_STYLE_APPLY, pMod );
397cdf0e10cSrcweir 	SvxColorToolBoxControl::RegisterControl(SID_BACKGROUND_COLOR, pMod );
398cdf0e10cSrcweir 	SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
399cdf0e10cSrcweir 	SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
400cdf0e10cSrcweir 	SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
401cdf0e10cSrcweir 
402cdf0e10cSrcweir 	SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME_INTERACT, pMod );
403cdf0e10cSrcweir 	SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME, pMod );
404cdf0e10cSrcweir     SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_REGION, pMod );
405cdf0e10cSrcweir 	SvxTableToolBoxControl::RegisterControl(FN_INSERT_TABLE, pMod );
406cdf0e10cSrcweir     SvxTableToolBoxControl::RegisterControl(FN_SHOW_MULTIPLE_PAGES, pMod );
407cdf0e10cSrcweir 
408cdf0e10cSrcweir 	SvxFontMenuControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
409cdf0e10cSrcweir 	SvxFontSizeMenuControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod );
410cdf0e10cSrcweir 
411cdf0e10cSrcweir 	SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod );
412cdf0e10cSrcweir     SwPreviewZoomControl::RegisterControl(FN_PREVIEW_ZOOM, pMod);
413cdf0e10cSrcweir 	SvxPosSizeStatusBarControl::RegisterControl(0, pMod );
414cdf0e10cSrcweir 	SvxInsertStatusBarControl::RegisterControl(SID_ATTR_INSERT, pMod );
415cdf0e10cSrcweir 	SvxSelectionModeControl::RegisterControl(FN_STAT_SELMODE, pMod );
416cdf0e10cSrcweir 	XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
417cdf0e10cSrcweir 
418cdf0e10cSrcweir 	SwBookmarkControl::RegisterControl(FN_STAT_PAGE, pMod );
419cdf0e10cSrcweir 	SwTemplateControl::RegisterControl(FN_STAT_TEMPLATE, pMod );
420cdf0e10cSrcweir     SwViewLayoutControl::RegisterControl( SID_ATTR_VIEWLAYOUT, pMod );
421cdf0e10cSrcweir     SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
422cdf0e10cSrcweir 
423cdf0e10cSrcweir 	SwTableOptimizeCtrl::RegisterControl(FN_OPTIMIZE_TABLE, pMod);
424cdf0e10cSrcweir 
425cdf0e10cSrcweir 	SvxIMapDlgChildWindow::RegisterChildWindow( sal_False, pMod );
426cdf0e10cSrcweir 	SvxSearchDialogWrapper::RegisterChildWindow( sal_False, pMod );
427cdf0e10cSrcweir 	SvxHlinkDlgWrapper::RegisterChildWindow( sal_False, pMod );
428cdf0e10cSrcweir 	SvxHyperlinkDlgWrapper::RegisterChildWindow( sal_False, pMod, SFX_CHILDWIN_FORCEDOCK );
429cdf0e10cSrcweir 	SvxFontWorkChildWindow::RegisterChildWindow( sal_False, pMod );
430cdf0e10cSrcweir 	SwFldDlgWrapper::RegisterChildWindow( sal_False, pMod );
431cdf0e10cSrcweir     SwFldDataOnlyDlgWrapper::RegisterChildWindow( sal_False, pMod );
432cdf0e10cSrcweir 	SvxContourDlgChildWindow::RegisterChildWindow( sal_False, pMod );
433cdf0e10cSrcweir 	SwNavigationChild::RegisterChildWindowContext( pMod );
434cdf0e10cSrcweir 	SwInputChild::RegisterChildWindow( sal_False, pMod, SFX_CHILDWIN_FORCEDOCK );
435cdf0e10cSrcweir 	SwRedlineAcceptChild::RegisterChildWindow( sal_False, pMod );
436cdf0e10cSrcweir 	SwSyncChildWin::RegisterChildWindow( sal_True, pMod );
437cdf0e10cSrcweir     SwMailMergeChildWindow::RegisterChildWindow( sal_False, pMod );
438cdf0e10cSrcweir //    SwSendMailChildWindow::RegisterChildWindow( sal_False, pMod );
439cdf0e10cSrcweir 	SwInsertIdxMarkWrapper::RegisterChildWindow( sal_False, pMod );
440cdf0e10cSrcweir 	SwInsertAuthMarkWrapper::RegisterChildWindow( sal_False, pMod );
441cdf0e10cSrcweir 	SvxRubyChildWindow::RegisterChildWindow( sal_False, pMod);
442cdf0e10cSrcweir     SwSpellDialogChildWindow::RegisterChildWindow(sal_False, pMod);
443cdf0e10cSrcweir 
444cdf0e10cSrcweir 	SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
445cdf0e10cSrcweir 	SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
446cdf0e10cSrcweir 	SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
447cdf0e10cSrcweir 	SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
448cdf0e10cSrcweir 	SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
449cdf0e10cSrcweir 	SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
450cdf0e10cSrcweir 	SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
451cdf0e10cSrcweir 	SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
452cdf0e10cSrcweir     SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
453cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
454cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
455cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
456cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
457cdf0e10cSrcweir 
458cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
459cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
460cdf0e10cSrcweir 
461cdf0e10cSrcweir 	GalleryChildWindow::RegisterChildWindow(0, pMod);
462cdf0e10cSrcweir 
463cdf0e10cSrcweir 	::avmedia::MediaToolBoxControl::RegisterControl(SID_AVMEDIA_TOOLBOX, pMod);
464cdf0e10cSrcweir 	::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
465cdf0e10cSrcweir 
466cdf0e10cSrcweir     SvxSmartTagsControl::RegisterControl(SID_OPEN_SMARTTAGMENU, pMod);
467*7a32b0c8SAndre Fischer     ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(NULL, pMod);
468cdf0e10cSrcweir }
469cdf0e10cSrcweir 
470cdf0e10cSrcweir 
471cdf0e10cSrcweir 
472cdf0e10cSrcweir /*************************************************************************
473cdf0e10cSrcweir |*
474cdf0e10cSrcweir |* Modul laden (nur Attrappe fuer das Linken der DLL)
475cdf0e10cSrcweir |*
476cdf0e10cSrcweir \************************************************************************/
477cdf0e10cSrcweir 
478cdf0e10cSrcweir /* -----------------20.04.99 10:46-------------------
479cdf0e10cSrcweir  *
480cdf0e10cSrcweir  * --------------------------------------------------*/
InitAttrPool()481cdf0e10cSrcweir void	SwModule::InitAttrPool()
482cdf0e10cSrcweir {
483cdf0e10cSrcweir 	DBG_ASSERT(!pAttrPool, "Pool ist schon da!");
484cdf0e10cSrcweir 	pAttrPool = new SwAttrPool(0);
485cdf0e10cSrcweir 	SetPool(pAttrPool);
486cdf0e10cSrcweir }
487cdf0e10cSrcweir /* -----------------20.04.99 10:46-------------------
488cdf0e10cSrcweir  *
489cdf0e10cSrcweir  * --------------------------------------------------*/
RemoveAttrPool()490cdf0e10cSrcweir void	SwModule::RemoveAttrPool()
491cdf0e10cSrcweir {
492cdf0e10cSrcweir 	SetPool(0);
493cdf0e10cSrcweir 	SfxItemPool::Free(pAttrPool);
494cdf0e10cSrcweir }
495cdf0e10cSrcweir 
496cdf0e10cSrcweir 
497