xref: /aoo42x/main/sd/source/ui/app/sddll2.cxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_sd.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir #include <editeng/editdata.hxx>
34*cdf0e10cSrcweir #include "eetext.hxx"
35*cdf0e10cSrcweir #include <svx/svxids.hrc>
36*cdf0e10cSrcweir #include <editeng/eeitem.hxx>
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir #include <editeng/flditem.hxx>
39*cdf0e10cSrcweir #include <svx/imapdlg.hxx>
40*cdf0e10cSrcweir #include <svx/bmpmask.hxx>
41*cdf0e10cSrcweir #include <svx/galbrws.hxx>
42*cdf0e10cSrcweir #include <svx/srchdlg.hxx>
43*cdf0e10cSrcweir #include <svx/fontwork.hxx>
44*cdf0e10cSrcweir #include <svx/colrctrl.hxx>
45*cdf0e10cSrcweir #include <svx/verttexttbxctrl.hxx>
46*cdf0e10cSrcweir #include <svx/hyprlink.hxx>
47*cdf0e10cSrcweir #include <svx/hyperdlg.hxx>
48*cdf0e10cSrcweir #include <svx/fillctrl.hxx>
49*cdf0e10cSrcweir #include <svx/linectrl.hxx>
50*cdf0e10cSrcweir #include <svx/tbcontrl.hxx>
51*cdf0e10cSrcweir #include <svx/zoomctrl.hxx>
52*cdf0e10cSrcweir #include <svx/zoomsliderctrl.hxx>
53*cdf0e10cSrcweir #include <svx/pszctrl.hxx>
54*cdf0e10cSrcweir #include <svx/modctrl.hxx>
55*cdf0e10cSrcweir #include <svx/fntctl.hxx>
56*cdf0e10cSrcweir #include <svx/fntszctl.hxx>
57*cdf0e10cSrcweir #include <svx/f3dchild.hxx>
58*cdf0e10cSrcweir #include <svx/grafctrl.hxx>
59*cdf0e10cSrcweir #include <svx/tbxcustomshapes.hxx>
60*cdf0e10cSrcweir #include <svx/lboxctrl.hxx>
61*cdf0e10cSrcweir #include <svx/clipboardctl.hxx>
62*cdf0e10cSrcweir #include <svx/extrusioncolorcontrol.hxx>
63*cdf0e10cSrcweir #include <svx/fontworkgallery.hxx>
64*cdf0e10cSrcweir #include <svx/tbxcolor.hxx>
65*cdf0e10cSrcweir #include <avmedia/mediaplayer.hxx>
66*cdf0e10cSrcweir #include <avmedia/mediatoolbox.hxx>
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir #include <svx/layctrl.hxx>
69*cdf0e10cSrcweir #include <svx/subtoolboxcontrol.hxx>
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir #include "sddll.hxx"
72*cdf0e10cSrcweir #define _SD_DIACTRL_CXX
73*cdf0e10cSrcweir #include "diactrl.hxx"
74*cdf0e10cSrcweir #include "gluectrl.hxx"
75*cdf0e10cSrcweir #include "tbx_ww.hxx"
76*cdf0e10cSrcweir #include "AnimationChildWindow.hxx"
77*cdf0e10cSrcweir #include "animobjs.hxx"
78*cdf0e10cSrcweir #include "NavigatorChildWindow.hxx"
79*cdf0e10cSrcweir #include "LayerDialogChildWindow.hxx"
80*cdf0e10cSrcweir #include "app.hrc"
81*cdf0e10cSrcweir #include "SpellDialogChildWindow.hxx"
82*cdf0e10cSrcweir #include "DrawViewShell.hxx"
83*cdf0e10cSrcweir #include "GraphicViewShell.hxx"
84*cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx>
85*cdf0e10cSrcweir #include <svx/formatpaintbrushctrl.hxx>
86*cdf0e10cSrcweir #include "PaneChildWindows.hxx"
87*cdf0e10cSrcweir 
88*cdf0e10cSrcweir #include "tmplctrl.hxx"
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir /*************************************************************************
91*cdf0e10cSrcweir |*
92*cdf0e10cSrcweir |* Register all Controllers
93*cdf0e10cSrcweir |*
94*cdf0e10cSrcweir \************************************************************************/
95*cdf0e10cSrcweir 
96*cdf0e10cSrcweir 
97*cdf0e10cSrcweir void SdDLL::RegisterControllers()
98*cdf0e10cSrcweir {
99*cdf0e10cSrcweir 	SfxModule* pMod = SD_MOD();
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir 	// ToolBoxControls registrieren
102*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
103*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
104*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
105*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_POSITION, pMod );
106*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
107*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
108*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
109*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
110*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
111*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
112*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
113*cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
116*cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
117*cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
118*cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
119*cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
120*cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir 	SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
123*cdf0e10cSrcweir 	SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir 	::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
126*cdf0e10cSrcweir     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
127*cdf0e10cSrcweir     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
128*cdf0e10cSrcweir 	::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir 	Svx3DChildWindow::RegisterChildWindow(0, pMod);
131*cdf0e10cSrcweir 	SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
132*cdf0e10cSrcweir 	SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
133*cdf0e10cSrcweir 	SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
134*cdf0e10cSrcweir 	SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
135*cdf0e10cSrcweir 	GalleryChildWindow::RegisterChildWindow(0, pMod);
136*cdf0e10cSrcweir 	SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
137*cdf0e10cSrcweir 	SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK);
138*cdf0e10cSrcweir 	SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
139*cdf0e10cSrcweir 	::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
140*cdf0e10cSrcweir 	::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
141*cdf0e10cSrcweir 	::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
142*cdf0e10cSrcweir 	::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
143*cdf0e10cSrcweir 	::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod);
144*cdf0e10cSrcweir 
145*cdf0e10cSrcweir 	SvxFillToolBoxControl::RegisterControl(0, pMod);
146*cdf0e10cSrcweir 	SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
147*cdf0e10cSrcweir 	SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
148*cdf0e10cSrcweir 	SvxLineColorToolBoxControl::RegisterControl(0, pMod);
149*cdf0e10cSrcweir 
150*cdf0e10cSrcweir 	SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
151*cdf0e10cSrcweir 
152*cdf0e10cSrcweir 	SvxStyleToolBoxControl::RegisterControl(0, pMod);
153*cdf0e10cSrcweir 	SvxFontNameToolBoxControl::RegisterControl(0, pMod);
154*cdf0e10cSrcweir //	SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
155*cdf0e10cSrcweir 	SvxFontColorToolBoxControl::RegisterControl(0, pMod);
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir 	SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
158*cdf0e10cSrcweir 	SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
159*cdf0e10cSrcweir 	SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
160*cdf0e10cSrcweir 	SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
161*cdf0e10cSrcweir 	SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
162*cdf0e10cSrcweir 	SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
163*cdf0e10cSrcweir 	SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
164*cdf0e10cSrcweir 	SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
165*cdf0e10cSrcweir 	SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
166*cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
167*cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
168*cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
169*cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
170*cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
171*cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
172*cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
173*cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
174*cdf0e10cSrcweir 
175*cdf0e10cSrcweir 	// StatusBarControls registrieren
176*cdf0e10cSrcweir 	SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
177*cdf0e10cSrcweir 	SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
178*cdf0e10cSrcweir 	SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
179*cdf0e10cSrcweir 	//SvxInsertStatusBarControl::RegisterControl(0, pModd);
180*cdf0e10cSrcweir     SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
181*cdf0e10cSrcweir 
182*cdf0e10cSrcweir 	// MenuControls fuer PopupMenu
183*cdf0e10cSrcweir 	SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
184*cdf0e10cSrcweir 	SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
185*cdf0e10cSrcweir 
186*cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
187*cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
188*cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
189*cdf0e10cSrcweir 
190*cdf0e10cSrcweir 	// #UndoRedo#
191*cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
192*cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir     svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
195*cdf0e10cSrcweir 
196*cdf0e10cSrcweir 	SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 	svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
199*cdf0e10cSrcweir 	svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
200*cdf0e10cSrcweir 
201*cdf0e10cSrcweir 	::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
202*cdf0e10cSrcweir 	XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
203*cdf0e10cSrcweir 	SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
204*cdf0e10cSrcweir 	SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
205*cdf0e10cSrcweir 	SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
206*cdf0e10cSrcweir 	SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
207*cdf0e10cSrcweir 	SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
208*cdf0e10cSrcweir 	SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod );
211*cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod );
212*cdf0e10cSrcweir }
213