xref: /AOO41X/main/sd/source/ui/app/sddll2.cxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_sd.hxx"
30 
31 
32 
33 #include <editeng/editdata.hxx>
34 #include "eetext.hxx"
35 #include <svx/svxids.hrc>
36 #include <editeng/eeitem.hxx>
37 
38 #include <editeng/flditem.hxx>
39 #include <svx/imapdlg.hxx>
40 #include <svx/bmpmask.hxx>
41 #include <svx/galbrws.hxx>
42 #include <svx/srchdlg.hxx>
43 #include <svx/fontwork.hxx>
44 #include <svx/colrctrl.hxx>
45 #include <svx/verttexttbxctrl.hxx>
46 #include <svx/hyprlink.hxx>
47 #include <svx/hyperdlg.hxx>
48 #include <svx/fillctrl.hxx>
49 #include <svx/linectrl.hxx>
50 #include <svx/tbcontrl.hxx>
51 #include <svx/zoomctrl.hxx>
52 #include <svx/zoomsliderctrl.hxx>
53 #include <svx/pszctrl.hxx>
54 #include <svx/modctrl.hxx>
55 #include <svx/fntctl.hxx>
56 #include <svx/fntszctl.hxx>
57 #include <svx/f3dchild.hxx>
58 #include <svx/grafctrl.hxx>
59 #include <svx/tbxcustomshapes.hxx>
60 #include <svx/lboxctrl.hxx>
61 #include <svx/clipboardctl.hxx>
62 #include <svx/extrusioncolorcontrol.hxx>
63 #include <svx/fontworkgallery.hxx>
64 #include <svx/tbxcolor.hxx>
65 #include <avmedia/mediaplayer.hxx>
66 #include <avmedia/mediatoolbox.hxx>
67 
68 #include <svx/layctrl.hxx>
69 #include <svx/subtoolboxcontrol.hxx>
70 
71 #include "sddll.hxx"
72 #define _SD_DIACTRL_CXX
73 #include "diactrl.hxx"
74 #include "gluectrl.hxx"
75 #include "tbx_ww.hxx"
76 #include "AnimationChildWindow.hxx"
77 #include "animobjs.hxx"
78 #include "NavigatorChildWindow.hxx"
79 #include "LayerDialogChildWindow.hxx"
80 #include "app.hrc"
81 #include "SpellDialogChildWindow.hxx"
82 #include "DrawViewShell.hxx"
83 #include "GraphicViewShell.hxx"
84 #include <svx/xmlsecctrl.hxx>
85 #include <svx/formatpaintbrushctrl.hxx>
86 #include "PaneChildWindows.hxx"
87 
88 #include "tmplctrl.hxx"
89 
90 /*************************************************************************
91 |*
92 |* Register all Controllers
93 |*
94 \************************************************************************/
95 
96 
97 void SdDLL::RegisterControllers()
98 {
99 	SfxModule* pMod = SD_MOD();
100 
101 	// ToolBoxControls registrieren
102 	SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
103 	SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
104 	SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
105 	SdTbxControl::RegisterControl( SID_POSITION, pMod );
106 	SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
107 	SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
108 	SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
109 	SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
110 	SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
111 	SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
112 	SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
113 	SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
114 
115 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
116 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
117 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
118 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
119 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
120 	SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
121 
122 	SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
123 	SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
124 
125 	::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
126     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
127     ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
128 	::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
129 
130 	Svx3DChildWindow::RegisterChildWindow(0, pMod);
131 	SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
132 	SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
133 	SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
134 	SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
135 	GalleryChildWindow::RegisterChildWindow(0, pMod);
136 	SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
137 	SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK);
138 	SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
139 	::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
140 	::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
141 	::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
142 	::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
143 	::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod);
144 
145 	SvxFillToolBoxControl::RegisterControl(0, pMod);
146 	SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
147 	SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
148 	SvxLineColorToolBoxControl::RegisterControl(0, pMod);
149 
150 	SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
151 
152 	SvxStyleToolBoxControl::RegisterControl(0, pMod);
153 	SvxFontNameToolBoxControl::RegisterControl(0, pMod);
154 //	SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
155 	SvxFontColorToolBoxControl::RegisterControl(0, pMod);
156 
157 	SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
158 	SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
159 	SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
160 	SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
161 	SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
162 	SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
163 	SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
164 	SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
165 	SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
166     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
167     SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
168     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
169     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
170     SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
171     SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
172     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
173     SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
174 
175 	// StatusBarControls registrieren
176 	SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
177 	SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
178 	SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
179 	//SvxInsertStatusBarControl::RegisterControl(0, pModd);
180     SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
181 
182 	// MenuControls fuer PopupMenu
183 	SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
184 	SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
185 
186 	SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
187 	SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
188 	SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
189 
190 	// #UndoRedo#
191 	SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
192 	SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
193 
194     svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
195 
196 	SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
197 
198 	svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
199 	svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
200 
201 	::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
202 	XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
203 	SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
204 	SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
205 	SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
206 	SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
207 	SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
208 	SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
209 
210 //	SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod );
211 //	SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod );
212 }
213