Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
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/hyperdlg.hxx>
43 : : #include <svx/fillctrl.hxx>
44 : : #include <svx/linectrl.hxx>
45 : : #include <svx/tbcontrl.hxx>
46 : : #include <svx/zoomctrl.hxx>
47 : : #include <svx/zoomsliderctrl.hxx>
48 : : #include <svx/pszctrl.hxx>
49 : : #include <svx/modctrl.hxx>
50 : : #include <svx/fntctl.hxx>
51 : : #include <svx/fntszctl.hxx>
52 : : #include <svx/f3dchild.hxx>
53 : : #include <svx/grafctrl.hxx>
54 : : #include <svx/tbxcustomshapes.hxx>
55 : : #include <svx/lboxctrl.hxx>
56 : : #include <svx/clipboardctl.hxx>
57 : : #include <svx/extrusioncolorcontrol.hxx>
58 : : #include <svx/fontworkgallery.hxx>
59 : : #include <svx/tbxcolor.hxx>
60 : : #include <avmedia/mediaplayer.hxx>
61 : : #include <avmedia/mediatoolbox.hxx>
62 : :
63 : : #include <svx/layctrl.hxx>
64 : : #include <svx/subtoolboxcontrol.hxx>
65 : :
66 : : #include "sddll.hxx"
67 : : #include "sdmod.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 : 25 : void SdDLL::RegisterControllers()
94 : : {
95 : 25 : SfxModule* pMod = SD_MOD();
96 : :
97 : : // ToolBoxControls registrieren
98 : 25 : SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
99 : 25 : SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
100 : 25 : SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
101 : 25 : SdTbxControl::RegisterControl( SID_POSITION, pMod );
102 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
103 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
104 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
105 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
106 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
107 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
108 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
109 : 25 : SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
110 : :
111 : 25 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
112 : 25 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
113 : 25 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
114 : 25 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
115 : 25 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
116 : 25 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
117 : :
118 : 25 : SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
119 : 25 : SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
120 : :
121 : 25 : ::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
122 : 25 : ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
123 : 25 : ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
124 : 25 : ::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
125 : :
126 : 25 : Svx3DChildWindow::RegisterChildWindow(0, pMod);
127 : 25 : SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
128 : 25 : SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
129 : 25 : SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
130 : 25 : SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
131 : 25 : GalleryChildWindow::RegisterChildWindow(0, pMod);
132 : 25 : SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
133 : 25 : SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
134 : 25 : ::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
135 : 25 : ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
136 : 25 : ::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
137 : 25 : ::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
138 : 25 : ::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod);
139 : :
140 : 25 : SvxFillToolBoxControl::RegisterControl(0, pMod);
141 : 25 : SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
142 : 25 : SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
143 : 25 : SvxLineColorToolBoxControl::RegisterControl(0, pMod);
144 : :
145 : 25 : SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
146 : :
147 : 25 : SvxStyleToolBoxControl::RegisterControl(0, pMod);
148 : 25 : SvxFontNameToolBoxControl::RegisterControl(0, pMod);
149 : 25 : SvxFontColorToolBoxControl::RegisterControl(0, pMod);
150 : :
151 : 25 : SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
152 : 25 : SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
153 : 25 : SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
154 : 25 : SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
155 : 25 : SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
156 : 25 : SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
157 : 25 : SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
158 : 25 : SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
159 : 25 : SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
160 : 25 : SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
161 : 25 : SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
162 : 25 : SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
163 : 25 : SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
164 : 25 : SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
165 : 25 : SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
166 : 25 : SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
167 : 25 : SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
168 : :
169 : : // StatusBarControls registrieren
170 : 25 : SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
171 : 25 : SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
172 : 25 : SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
173 : 25 : SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
174 : :
175 : : // MenuControls fuer PopupMenu
176 : 25 : SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
177 : 25 : SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
178 : :
179 : 25 : SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
180 : 25 : SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
181 : 25 : SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
182 : :
183 : : // #UndoRedo#
184 : 25 : SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
185 : 25 : SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
186 : :
187 : 25 : svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
188 : :
189 : 25 : SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
190 : :
191 : 25 : svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
192 : 25 : svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
193 : :
194 : 25 : ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
195 : 25 : XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
196 : 25 : SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
197 : 25 : SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
198 : 25 : SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
199 : 25 : SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
200 : 25 : SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
201 : 25 : SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
202 : 25 : }
203 : :
204 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|