1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sddll2.cxx,v $
10 * $Revision: 1.36.70.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sd.hxx"
36 #include <svx/editdata.hxx>
38 #include <svx/svxids.hrc>
39 #include <svx/eeitem.hxx>
41 #include <svx/flditem.hxx>
42 #include <svx/imapdlg.hxx>
43 #include <svx/bmpmask.hxx>
44 #include <svx/galbrws.hxx>
45 #include <svx/srchdlg.hxx>
46 #include <svx/fontwork.hxx>
47 #include <svx/colrctrl.hxx>
48 #include <svx/verttexttbxctrl.hxx>
49 #include <svx/hyprlink.hxx>
50 #include <svx/hyperdlg.hxx>
51 #include <svx/fillctrl.hxx>
52 #include <svx/linectrl.hxx>
53 #include <svx/tbcontrl.hxx>
54 #include <svx/zoomctrl.hxx>
55 #include <svx/zoomsliderctrl.hxx>
56 #include <svx/pszctrl.hxx>
57 #include <svx/modctrl.hxx>
58 #include <svx/fntctl.hxx>
59 #include <svx/fntszctl.hxx>
60 #include <svx/f3dchild.hxx>
61 #include <svx/grafctrl.hxx>
62 #include <svx/tbxcustomshapes.hxx>
63 #include <svx/fontworkgallery.hxx>
64 #include <svx/lboxctrl.hxx>
65 #include <svx/clipboardctl.hxx>
66 #include <svx/extrusioncontrols.hxx>
67 #include <svx/tbxcolor.hxx>
68 #include <avmedia/mediaplayer.hxx>
69 #include <avmedia/mediatoolbox.hxx>
71 #include <svx/layctrl.hxx>
72 #include <svx/subtoolboxcontrol.hxx>
75 #define _SD_DIACTRL_CXX
76 #include "diactrl.hxx"
77 #include "gluectrl.hxx"
79 #include "AnimationChildWindow.hxx"
80 #include "animobjs.hxx"
81 #include "NavigatorChildWindow.hxx"
82 #ifndef SD_LAZER_DIALOG_CHILD_WINDOW_HXX
83 #include "LayerDialogChildWindow.hxx"
85 //#include "3dchld.hxx"
87 #include "SpellDialogChildWindow.hxx"
88 #include "DrawViewShell.hxx"
89 #include "GraphicViewShell.hxx"
90 #include <svx/xmlsecctrl.hxx>
91 #include <svx/formatpaintbrushctrl.hxx>
92 #include "PaneChildWindows.hxx"
94 #include "tmplctrl.hxx"
96 /*************************************************************************
98 |* Register all Controllers
100 \************************************************************************/
103 void SdDLL::RegisterControllers()
105 SfxModule
* pMod
= SD_MOD();
107 // ToolBoxControls registrieren
108 SdTbxControl::RegisterControl( SID_OBJECT_ALIGN
, pMod
);
109 SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX
, pMod
);
110 SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE
, pMod
);
111 SdTbxControl::RegisterControl( SID_POSITION
, pMod
);
112 SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT
, pMod
);
113 SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES
, pMod
);
114 SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES
, pMod
);
115 SdTbxControl::RegisterControl( SID_DRAWTBX_LINES
, pMod
);
116 SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS
, pMod
);
117 SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS
, pMod
);
118 SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS
, pMod
);
119 SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT
, pMod
);
121 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC
, pMod
);
122 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL
, pMod
);
123 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW
, pMod
);
124 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART
, pMod
);
125 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT
, pMod
);
126 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR
, pMod
);
127 // SdTbxCtlDiaEffect::RegisterControl(0, pMod);
128 // SdTbxCtlDiaSpeed::RegisterControl(0, pMod);
129 // SdTbxCtlDiaAuto::RegisterControl(0, pMod);
130 // SdTbxCtlDiaTime::RegisterControl(0, pMod);
132 SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW
, pMod
);
133 SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR
, pMod
);
135 ::sd::AnimationChildWindow::RegisterChildWindow(0, pMod
);
136 ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16
) ::sd::DrawViewShell::GetInterfaceId(), pMod
);
137 ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16
) ::sd::GraphicViewShell::GetInterfaceId(), pMod
);
138 ::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod
);
139 //Sd3DChildWindow::RegisterChildWindow(0, pMod);
141 SvxChildWinCustomShapesBasic::RegisterChildWindow( 0, pMod );
142 SvxChildWinCustomShapesSymbol::RegisterChildWindow( 0, pMod );
143 SvxChildWinCustomShapesArrow::RegisterChildWindow( 0, pMod );
144 SvxChildWinCustomShapesFlowChart::RegisterChildWindow( 0, pMod );
145 SvxChildWinCustomShapesCallout::RegisterChildWindow( 0, pMod );
146 SvxChildWinCustomShapesStar::RegisterChildWindow( 0, pMod );
148 Svx3DChildWindow::RegisterChildWindow(0, pMod
);
149 SvxFontWorkChildWindow::RegisterChildWindow(0, pMod
);
150 SvxColorChildWindow::RegisterChildWindow(0, pMod
, SFX_CHILDWIN_TASK
);
151 SvxSearchDialogWrapper::RegisterChildWindow(0, pMod
);
152 SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod
);
153 GalleryChildWindow::RegisterChildWindow(0, pMod
);
154 SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod
);
155 SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod
, SFX_CHILDWIN_FORCEDOCK
);
156 SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod
);
157 ::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod
);
158 ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod
);
159 ::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod
);
160 ::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod
);
161 ::sd::RightPaneChildWindow::RegisterChildWindow(0, pMod
);
163 SvxFillToolBoxControl::RegisterControl(0, pMod
);
164 SvxLineStyleToolBoxControl::RegisterControl(0, pMod
);
165 SvxLineWidthToolBoxControl::RegisterControl(0, pMod
);
166 SvxLineColorToolBoxControl::RegisterControl(0, pMod
);
168 SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE
, pMod
);
170 SvxStyleToolBoxControl::RegisterControl(0, pMod
);
171 SvxFontNameToolBoxControl::RegisterControl(0, pMod
);
172 // SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
173 SvxFontColorToolBoxControl::RegisterControl(0, pMod
);
175 SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER
, pMod
);
176 SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE
, pMod
);
177 SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED
, pMod
);
178 SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN
, pMod
);
179 SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE
, pMod
);
180 SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE
, pMod
);
181 SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST
, pMod
);
182 SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA
, pMod
);
183 SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE
, pMod
);
184 SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM
, pMod
);
185 SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT
, pMod
);
186 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL
, pMod
);
187 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL
, pMod
);
188 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL
, pMod
);
189 SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL
, pMod
);
190 SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT
, pMod
);
191 SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT
, pMod
);
193 // StatusBarControls registrieren
194 SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM
, pMod
);
195 SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE
, pMod
);
196 SvxModifyControl::RegisterControl( SID_DOC_MODIFIED
, pMod
);
197 //SvxInsertStatusBarControl::RegisterControl(0, pModd);
198 SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER
, pMod
);
200 // MenuControls fuer PopupMenu
201 SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT
, pMod
);
202 SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT
, pMod
);
204 SfxMenuControl::RegisterControl( SID_SET_SNAPITEM
, pMod
);
205 SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM
, pMod
);
206 SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE
, pMod
);
209 SvxUndoRedoControl::RegisterControl( SID_UNDO
, pMod
);
210 SvxUndoRedoControl::RegisterControl( SID_REDO
, pMod
);
212 svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH
, pMod
);
214 SvxClipBoardControl::RegisterControl( SID_PASTE
, pMod
);
216 svx::ExtrusionDepthControl::RegisterControl( SID_EXTRUSION_DEPTH_FLOATER
, pMod
);
217 svx::ExtrusionDirectionControl::RegisterControl( SID_EXTRUSION_DIRECTION_FLOATER
, pMod
);
218 svx::ExtrusionLightingControl::RegisterControl( SID_EXTRUSION_LIGHTING_FLOATER
, pMod
);
219 svx::ExtrusionSurfaceControl::RegisterControl( SID_EXTRUSION_SURFACE_FLOATER
, pMod
);
220 svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR
, pMod
);
222 svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE
, pMod
);
223 svx::FontWorkAlignmentControl::RegisterControl( SID_FONTWORK_ALIGNMENT_FLOATER
, pMod
);
224 svx::FontWorkCharacterSpacingControl::RegisterControl( SID_FONTWORK_CHARACTER_SPACING_FLOATER
, pMod
);
225 ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX
, pMod
);
226 XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE
, pMod
);
227 SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT
, pMod
);
228 SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE
, pMod
);
229 SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE
, pMod
);
230 SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR
, pMod
);
231 SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER
, pMod
);
232 SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE
, pMod
);