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