xref: /aoo42x/main/sd/source/ui/app/sddll2.cxx (revision 579128bd)
15b190011SAndrew Rist /**************************************************************
2*579128bdSmseidel  *
35b190011SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
45b190011SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
55b190011SAndrew Rist  * distributed with this work for additional information
65b190011SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
75b190011SAndrew Rist  * to you under the Apache License, Version 2.0 (the
85b190011SAndrew Rist  * "License"); you may not use this file except in compliance
95b190011SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*579128bdSmseidel  *
115b190011SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*579128bdSmseidel  *
135b190011SAndrew Rist  * Unless required by applicable law or agreed to in writing,
145b190011SAndrew Rist  * software distributed under the License is distributed on an
155b190011SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
165b190011SAndrew Rist  * KIND, either express or implied.  See the License for the
175b190011SAndrew Rist  * specific language governing permissions and limitations
185b190011SAndrew Rist  * under the License.
19*579128bdSmseidel  *
205b190011SAndrew Rist  *************************************************************/
215b190011SAndrew Rist 
225b190011SAndrew 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>
4028bcfa49SArmin Le Grand #include <svx/SvxColorChildWindow.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>
667a32b0c8SAndre Fischer #include <sfx2/sidebar/SidebarChildWindow.hxx>
67cdf0e10cSrcweir 
68cdf0e10cSrcweir #include "sddll.hxx"
69cdf0e10cSrcweir #define _SD_DIACTRL_CXX
70cdf0e10cSrcweir #include "diactrl.hxx"
71cdf0e10cSrcweir #include "gluectrl.hxx"
72cdf0e10cSrcweir #include "tbx_ww.hxx"
73cdf0e10cSrcweir #include "AnimationChildWindow.hxx"
74cdf0e10cSrcweir #include "animobjs.hxx"
75cdf0e10cSrcweir #include "NavigatorChildWindow.hxx"
76cdf0e10cSrcweir #include "LayerDialogChildWindow.hxx"
77cdf0e10cSrcweir #include "app.hrc"
78cdf0e10cSrcweir #include "SpellDialogChildWindow.hxx"
79cdf0e10cSrcweir #include "DrawViewShell.hxx"
80cdf0e10cSrcweir #include "GraphicViewShell.hxx"
81cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx>
82cdf0e10cSrcweir #include <svx/formatpaintbrushctrl.hxx>
83cdf0e10cSrcweir #include "PaneChildWindows.hxx"
84cdf0e10cSrcweir 
85cdf0e10cSrcweir #include "tmplctrl.hxx"
86cdf0e10cSrcweir 
87cdf0e10cSrcweir /*************************************************************************
88cdf0e10cSrcweir |* Register all Controllers
89cdf0e10cSrcweir \************************************************************************/
90cdf0e10cSrcweir 
91cdf0e10cSrcweir 
RegisterControllers()92cdf0e10cSrcweir void SdDLL::RegisterControllers()
93cdf0e10cSrcweir {
94cdf0e10cSrcweir 	SfxModule* pMod = SD_MOD();
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 	// ToolBoxControls registrieren
97cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
98cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
99cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
100cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_POSITION, pMod );
101cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
102cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
103cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
104cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
105cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
106cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
107cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
108cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
109cdf0e10cSrcweir 
110cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
111cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
112cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
113cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
114cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
115cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
116cdf0e10cSrcweir 
117cdf0e10cSrcweir 	SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
118cdf0e10cSrcweir 	SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
119cdf0e10cSrcweir 
120cdf0e10cSrcweir 	::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
121*579128bdSmseidel 	::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
122*579128bdSmseidel 	::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
123cdf0e10cSrcweir 	::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
124cdf0e10cSrcweir 
125cdf0e10cSrcweir 	Svx3DChildWindow::RegisterChildWindow(0, pMod);
126cdf0e10cSrcweir 	SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
127cdf0e10cSrcweir 	SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
128cdf0e10cSrcweir 	SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
129cdf0e10cSrcweir 	SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
130cdf0e10cSrcweir 	GalleryChildWindow::RegisterChildWindow(0, pMod);
131cdf0e10cSrcweir 	SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
132cdf0e10cSrcweir 	SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK);
133cdf0e10cSrcweir 	SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
134cdf0e10cSrcweir 	::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
135cdf0e10cSrcweir 	::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
136cdf0e10cSrcweir 	::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
137cdf0e10cSrcweir 	::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
138*579128bdSmseidel 	::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(NULL, pMod);
139cdf0e10cSrcweir 
140cdf0e10cSrcweir 	SvxFillToolBoxControl::RegisterControl(0, pMod);
141cdf0e10cSrcweir 	SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
142cdf0e10cSrcweir 	SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
143cdf0e10cSrcweir 	SvxLineColorToolBoxControl::RegisterControl(0, pMod);
144cdf0e10cSrcweir 
145cdf0e10cSrcweir 	SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
146cdf0e10cSrcweir 
147cdf0e10cSrcweir 	SvxStyleToolBoxControl::RegisterControl(0, pMod);
148cdf0e10cSrcweir 	SvxFontNameToolBoxControl::RegisterControl(0, pMod);
149cdf0e10cSrcweir //	SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
150cdf0e10cSrcweir 	SvxFontColorToolBoxControl::RegisterControl(0, pMod);
151cdf0e10cSrcweir 
152cdf0e10cSrcweir 	SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
153cdf0e10cSrcweir 	SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
154cdf0e10cSrcweir 	SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
155cdf0e10cSrcweir 	SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
156cdf0e10cSrcweir 	SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
157cdf0e10cSrcweir 	SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
158cdf0e10cSrcweir 	SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
159cdf0e10cSrcweir 	SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
160cdf0e10cSrcweir 	SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
161*579128bdSmseidel 	SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
162*579128bdSmseidel 	SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
163*579128bdSmseidel 	SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
164*579128bdSmseidel 	SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
165*579128bdSmseidel 	SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
166*579128bdSmseidel 	SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
167*579128bdSmseidel 	SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
168*579128bdSmseidel 	SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
169cdf0e10cSrcweir 
170cdf0e10cSrcweir 	// StatusBarControls registrieren
171cdf0e10cSrcweir 	SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
172cdf0e10cSrcweir 	SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
173cdf0e10cSrcweir 	SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
174cdf0e10cSrcweir 	//SvxInsertStatusBarControl::RegisterControl(0, pModd);
175*579128bdSmseidel 	SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
176cdf0e10cSrcweir 
177cdf0e10cSrcweir 	// MenuControls fuer PopupMenu
178cdf0e10cSrcweir 	SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
179cdf0e10cSrcweir 	SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
180cdf0e10cSrcweir 
181cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
182cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
183cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
184cdf0e10cSrcweir 
185cdf0e10cSrcweir 	// #UndoRedo#
186cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
187cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
188cdf0e10cSrcweir 
189*579128bdSmseidel 	svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
190cdf0e10cSrcweir 
191cdf0e10cSrcweir 	SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
192cdf0e10cSrcweir 
193cdf0e10cSrcweir 	svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
194cdf0e10cSrcweir 	svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
195cdf0e10cSrcweir 
196cdf0e10cSrcweir 	::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
197cdf0e10cSrcweir 	XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
198cdf0e10cSrcweir 	SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
199cdf0e10cSrcweir 	SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
200cdf0e10cSrcweir 	SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
201cdf0e10cSrcweir 	SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
202cdf0e10cSrcweir 	SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
203cdf0e10cSrcweir 	SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
204cdf0e10cSrcweir 
205cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod );
206cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod );
207cdf0e10cSrcweir }
208