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