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