xref: /aoo41x/main/sd/source/ui/app/sddll2.cxx (revision 7a32b0c8)
15b190011SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
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
105b190011SAndrew Rist  *
115b190011SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
125b190011SAndrew Rist  *
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.
195b190011SAndrew Rist  *
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>
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>
66*7a32b0c8SAndre 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 |*
89cdf0e10cSrcweir |* Register all Controllers
90cdf0e10cSrcweir |*
91cdf0e10cSrcweir \************************************************************************/
92cdf0e10cSrcweir 
93cdf0e10cSrcweir 
94cdf0e10cSrcweir void SdDLL::RegisterControllers()
95cdf0e10cSrcweir {
96cdf0e10cSrcweir 	SfxModule* pMod = SD_MOD();
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 	// ToolBoxControls registrieren
99cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
100cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
101cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
102cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_POSITION, pMod );
103cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
104cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
105cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
106cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
107cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
108cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
109cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
110cdf0e10cSrcweir 	SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
113cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
114cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
115cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
116cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
117cdf0e10cSrcweir 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
120cdf0e10cSrcweir 	SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
121cdf0e10cSrcweir 
122cdf0e10cSrcweir 	::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
123cdf0e10cSrcweir     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
124cdf0e10cSrcweir     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
125cdf0e10cSrcweir 	::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
126cdf0e10cSrcweir 
127cdf0e10cSrcweir 	Svx3DChildWindow::RegisterChildWindow(0, pMod);
128cdf0e10cSrcweir 	SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
129cdf0e10cSrcweir 	SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
130cdf0e10cSrcweir 	SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
131cdf0e10cSrcweir 	SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
132cdf0e10cSrcweir 	GalleryChildWindow::RegisterChildWindow(0, pMod);
133cdf0e10cSrcweir 	SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
134cdf0e10cSrcweir 	SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK);
135cdf0e10cSrcweir 	SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
136cdf0e10cSrcweir 	::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
137cdf0e10cSrcweir 	::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
138cdf0e10cSrcweir 	::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
139cdf0e10cSrcweir 	::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
140*7a32b0c8SAndre Fischer     ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(NULL, pMod);
141cdf0e10cSrcweir 
142cdf0e10cSrcweir 	SvxFillToolBoxControl::RegisterControl(0, pMod);
143cdf0e10cSrcweir 	SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
144cdf0e10cSrcweir 	SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
145cdf0e10cSrcweir 	SvxLineColorToolBoxControl::RegisterControl(0, pMod);
146cdf0e10cSrcweir 
147cdf0e10cSrcweir 	SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
148cdf0e10cSrcweir 
149cdf0e10cSrcweir 	SvxStyleToolBoxControl::RegisterControl(0, pMod);
150cdf0e10cSrcweir 	SvxFontNameToolBoxControl::RegisterControl(0, pMod);
151cdf0e10cSrcweir //	SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
152cdf0e10cSrcweir 	SvxFontColorToolBoxControl::RegisterControl(0, pMod);
153cdf0e10cSrcweir 
154cdf0e10cSrcweir 	SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
155cdf0e10cSrcweir 	SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
156cdf0e10cSrcweir 	SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
157cdf0e10cSrcweir 	SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
158cdf0e10cSrcweir 	SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
159cdf0e10cSrcweir 	SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
160cdf0e10cSrcweir 	SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
161cdf0e10cSrcweir 	SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
162cdf0e10cSrcweir 	SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
163cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
164cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
165cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
166cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
167cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
168cdf0e10cSrcweir     SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
169cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
170cdf0e10cSrcweir     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
171cdf0e10cSrcweir 
172cdf0e10cSrcweir 	// StatusBarControls registrieren
173cdf0e10cSrcweir 	SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
174cdf0e10cSrcweir 	SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
175cdf0e10cSrcweir 	SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
176cdf0e10cSrcweir 	//SvxInsertStatusBarControl::RegisterControl(0, pModd);
177cdf0e10cSrcweir     SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
178cdf0e10cSrcweir 
179cdf0e10cSrcweir 	// MenuControls fuer PopupMenu
180cdf0e10cSrcweir 	SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
181cdf0e10cSrcweir 	SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
182cdf0e10cSrcweir 
183cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
184cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
185cdf0e10cSrcweir 	SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
186cdf0e10cSrcweir 
187cdf0e10cSrcweir 	// #UndoRedo#
188cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
189cdf0e10cSrcweir 	SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
190cdf0e10cSrcweir 
191cdf0e10cSrcweir     svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
192cdf0e10cSrcweir 
193cdf0e10cSrcweir 	SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
194cdf0e10cSrcweir 
195cdf0e10cSrcweir 	svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
196cdf0e10cSrcweir 	svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
197cdf0e10cSrcweir 
198cdf0e10cSrcweir 	::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
199cdf0e10cSrcweir 	XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
200cdf0e10cSrcweir 	SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
201cdf0e10cSrcweir 	SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
202cdf0e10cSrcweir 	SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
203cdf0e10cSrcweir 	SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
204cdf0e10cSrcweir 	SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
205cdf0e10cSrcweir 	SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
206cdf0e10cSrcweir 
207cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod );
208cdf0e10cSrcweir //	SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod );
209cdf0e10cSrcweir }
210