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