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