xref: /aoo42x/main/sd/source/ui/app/sddll2.cxx (revision 5b190011)
1*5b190011SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*5b190011SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*5b190011SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*5b190011SAndrew Rist  * distributed with this work for additional information
6*5b190011SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*5b190011SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*5b190011SAndrew Rist  * "License"); you may not use this file except in compliance
9*5b190011SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*5b190011SAndrew Rist  *
11*5b190011SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*5b190011SAndrew Rist  *
13*5b190011SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*5b190011SAndrew Rist  * software distributed under the License is distributed on an
15*5b190011SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*5b190011SAndrew Rist  * KIND, either express or implied.  See the License for the
17*5b190011SAndrew Rist  * specific language governing permissions and limitations
18*5b190011SAndrew Rist  * under the License.
19*5b190011SAndrew Rist  *
20*5b190011SAndrew Rist  *************************************************************/
21*5b190011SAndrew Rist 
22*5b190011SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sd.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <editeng/editdata.hxx>
30cdf0e10cSrcweir #include "eetext.hxx"
31cdf0e10cSrcweir #include <svx/svxids.hrc>
32cdf0e10cSrcweir #include <editeng/eeitem.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir #include <editeng/flditem.hxx>
35cdf0e10cSrcweir #include <svx/imapdlg.hxx>
36cdf0e10cSrcweir #include <svx/bmpmask.hxx>
37cdf0e10cSrcweir #include <svx/galbrws.hxx>
38cdf0e10cSrcweir #include <svx/srchdlg.hxx>
39cdf0e10cSrcweir #include <svx/fontwork.hxx>
40cdf0e10cSrcweir #include <svx/colrctrl.hxx>
41cdf0e10cSrcweir #include <svx/verttexttbxctrl.hxx>
42cdf0e10cSrcweir #include <svx/hyprlink.hxx>
43cdf0e10cSrcweir #include <svx/hyperdlg.hxx>
44cdf0e10cSrcweir #include <svx/fillctrl.hxx>
45cdf0e10cSrcweir #include <svx/linectrl.hxx>
46cdf0e10cSrcweir #include <svx/tbcontrl.hxx>
47cdf0e10cSrcweir #include <svx/zoomctrl.hxx>
48cdf0e10cSrcweir #include <svx/zoomsliderctrl.hxx>
49cdf0e10cSrcweir #include <svx/pszctrl.hxx>
50cdf0e10cSrcweir #include <svx/modctrl.hxx>
51cdf0e10cSrcweir #include <svx/fntctl.hxx>
52cdf0e10cSrcweir #include <svx/fntszctl.hxx>
53cdf0e10cSrcweir #include <svx/f3dchild.hxx>
54cdf0e10cSrcweir #include <svx/grafctrl.hxx>
55cdf0e10cSrcweir #include <svx/tbxcustomshapes.hxx>
56cdf0e10cSrcweir #include <svx/lboxctrl.hxx>
57cdf0e10cSrcweir #include <svx/clipboardctl.hxx>
58cdf0e10cSrcweir #include <svx/extrusioncolorcontrol.hxx>
59cdf0e10cSrcweir #include <svx/fontworkgallery.hxx>
60cdf0e10cSrcweir #include <svx/tbxcolor.hxx>
61cdf0e10cSrcweir #include <avmedia/mediaplayer.hxx>
62cdf0e10cSrcweir #include <avmedia/mediatoolbox.hxx>
63cdf0e10cSrcweir 
64cdf0e10cSrcweir #include <svx/layctrl.hxx>
65cdf0e10cSrcweir #include <svx/subtoolboxcontrol.hxx>
66cdf0e10cSrcweir 
67cdf0e10cSrcweir #include "sddll.hxx"
68cdf0e10cSrcweir #define _SD_DIACTRL_CXX
69cdf0e10cSrcweir #include "diactrl.hxx"
70cdf0e10cSrcweir #include "gluectrl.hxx"
71cdf0e10cSrcweir #include "tbx_ww.hxx"
72cdf0e10cSrcweir #include "AnimationChildWindow.hxx"
73cdf0e10cSrcweir #include "animobjs.hxx"
74cdf0e10cSrcweir #include "NavigatorChildWindow.hxx"
75cdf0e10cSrcweir #include "LayerDialogChildWindow.hxx"
76cdf0e10cSrcweir #include "app.hrc"
77cdf0e10cSrcweir #include "SpellDialogChildWindow.hxx"
78cdf0e10cSrcweir #include "DrawViewShell.hxx"
79cdf0e10cSrcweir #include "GraphicViewShell.hxx"
80cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx>
81cdf0e10cSrcweir #include <svx/formatpaintbrushctrl.hxx>
82cdf0e10cSrcweir #include "PaneChildWindows.hxx"
83cdf0e10cSrcweir 
84cdf0e10cSrcweir #include "tmplctrl.hxx"
85cdf0e10cSrcweir 
86cdf0e10cSrcweir /*************************************************************************
87cdf0e10cSrcweir |*
88cdf0e10cSrcweir |* Register all Controllers
89cdf0e10cSrcweir |*
90cdf0e10cSrcweir \************************************************************************/
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 
93cdf0e10cSrcweir void SdDLL::RegisterControllers()
94cdf0e10cSrcweir {
95cdf0e10cSrcweir 	SfxModule* pMod = SD_MOD();
96cdf0e10cSrcweir 
97cdf0e10cSrcweir 	// ToolBoxControls registrieren
98cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
99cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
100cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
101cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_POSITION, pMod );
102cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
103cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
104cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
105cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
106cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
107cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
108cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
109cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
110cdf0e10cSrcweir 
111cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
112cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
113cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
114cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
115cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
116cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 	SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
119cdf0e10cSrcweir 	SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
120cdf0e10cSrcweir 
121cdf0e10cSrcweir 	::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
122cdf0e10cSrcweir     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
123cdf0e10cSrcweir     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
124cdf0e10cSrcweir 	::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
125cdf0e10cSrcweir 
126cdf0e10cSrcweir 	Svx3DChildWindow::RegisterChildWindow(0, pMod);
127cdf0e10cSrcweir 	SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
128cdf0e10cSrcweir 	SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
129cdf0e10cSrcweir 	SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
130cdf0e10cSrcweir 	SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
131cdf0e10cSrcweir 	GalleryChildWindow::RegisterChildWindow(0, pMod);
132cdf0e10cSrcweir 	SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
133cdf0e10cSrcweir 	SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK);
134cdf0e10cSrcweir 	SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
135cdf0e10cSrcweir 	::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
136cdf0e10cSrcweir 	::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
137cdf0e10cSrcweir 	::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
138cdf0e10cSrcweir 	::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
139cdf0e10cSrcweir 	::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod);
140cdf0e10cSrcweir 
141cdf0e10cSrcweir 	SvxFillToolBoxControl::RegisterControl(0, pMod);
142cdf0e10cSrcweir 	SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
143cdf0e10cSrcweir 	SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
144cdf0e10cSrcweir 	SvxLineColorToolBoxControl::RegisterControl(0, pMod);
145cdf0e10cSrcweir 
146cdf0e10cSrcweir 	SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
147cdf0e10cSrcweir 
148cdf0e10cSrcweir 	SvxStyleToolBoxControl::RegisterControl(0, pMod);
149cdf0e10cSrcweir 	SvxFontNameToolBoxControl::RegisterControl(0, pMod);
150cdf0e10cSrcweir //	SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
151cdf0e10cSrcweir 	SvxFontColorToolBoxControl::RegisterControl(0, pMod);
152cdf0e10cSrcweir 
153cdf0e10cSrcweir 	SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
154cdf0e10cSrcweir 	SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
155cdf0e10cSrcweir 	SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
156cdf0e10cSrcweir 	SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
157cdf0e10cSrcweir 	SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
158cdf0e10cSrcweir 	SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
159cdf0e10cSrcweir 	SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
160cdf0e10cSrcweir 	SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
161cdf0e10cSrcweir 	SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
162cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
163cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
164cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
165cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
166cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
167cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
168cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
169cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
170cdf0e10cSrcweir 
171cdf0e10cSrcweir 	// StatusBarControls registrieren
172cdf0e10cSrcweir 	SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
173cdf0e10cSrcweir 	SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
174cdf0e10cSrcweir 	SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
175cdf0e10cSrcweir 	//SvxInsertStatusBarControl::RegisterControl(0, pModd);
176cdf0e10cSrcweir     SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
177cdf0e10cSrcweir 
178cdf0e10cSrcweir 	// MenuControls fuer PopupMenu
179cdf0e10cSrcweir 	SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
180cdf0e10cSrcweir 	SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
181cdf0e10cSrcweir 
182cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
183cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
184cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
185cdf0e10cSrcweir 
186cdf0e10cSrcweir 	// #UndoRedo#
187cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
188cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
189cdf0e10cSrcweir 
190cdf0e10cSrcweir     svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
191cdf0e10cSrcweir 
192cdf0e10cSrcweir 	SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
193cdf0e10cSrcweir 
194cdf0e10cSrcweir 	svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
195cdf0e10cSrcweir 	svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
196cdf0e10cSrcweir 
197cdf0e10cSrcweir 	::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
198cdf0e10cSrcweir 	XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
199cdf0e10cSrcweir 	SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
200cdf0e10cSrcweir 	SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
201cdf0e10cSrcweir 	SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
202cdf0e10cSrcweir 	SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
203cdf0e10cSrcweir 	SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
204cdf0e10cSrcweir 	SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
205cdf0e10cSrcweir 
206cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod );
207cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod );
208cdf0e10cSrcweir }
209