Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <editeng/editdata.hxx>
21 : #include "eetext.hxx"
22 : #include <svx/svxids.hrc>
23 : #include <editeng/eeitem.hxx>
24 :
25 : #include <editeng/flditem.hxx>
26 : #include <svx/imapdlg.hxx>
27 : #include <svx/bmpmask.hxx>
28 : #include <svx/galbrws.hxx>
29 : #include <svx/srchdlg.hxx>
30 : #include <svx/fontwork.hxx>
31 : #include <svx/colrctrl.hxx>
32 : #include <svx/verttexttbxctrl.hxx>
33 : #include <svx/hyperdlg.hxx>
34 : #include <svx/fillctrl.hxx>
35 : #include <svx/linectrl.hxx>
36 : #include <svx/tbcontrl.hxx>
37 : #include <svx/zoomctrl.hxx>
38 : #include <svx/zoomsliderctrl.hxx>
39 : #include <svx/pszctrl.hxx>
40 : #include <svx/modctrl.hxx>
41 : #include <svx/fntctl.hxx>
42 : #include <svx/fntszctl.hxx>
43 : #include <svx/f3dchild.hxx>
44 : #include <svx/grafctrl.hxx>
45 : #include <svx/tbxcustomshapes.hxx>
46 : #include <svx/lboxctrl.hxx>
47 : #include <svx/clipboardctl.hxx>
48 : #include <svx/extrusioncolorcontrol.hxx>
49 : #include <svx/fontworkgallery.hxx>
50 : #include <svx/tbxcolor.hxx>
51 : #include <avmedia/mediaplayer.hxx>
52 : #include <avmedia/mediatoolbox.hxx>
53 :
54 : #include <svx/layctrl.hxx>
55 : #include <svx/subtoolboxcontrol.hxx>
56 :
57 : #include "sddll.hxx"
58 : #include "sdmod.hxx"
59 : #define _SD_DIACTRL_CXX
60 : #include "diactrl.hxx"
61 : #include "gluectrl.hxx"
62 : #include "tbx_ww.hxx"
63 : #include "AnimationChildWindow.hxx"
64 : #include "animobjs.hxx"
65 : #include "NavigatorChildWindow.hxx"
66 : #include "LayerDialogChildWindow.hxx"
67 : #include "app.hrc"
68 : #include "SpellDialogChildWindow.hxx"
69 : #include "DrawViewShell.hxx"
70 : #include "GraphicViewShell.hxx"
71 : #include <svx/xmlsecctrl.hxx>
72 : #include <svx/formatpaintbrushctrl.hxx>
73 : #include "PaneChildWindows.hxx"
74 :
75 : #include "tmplctrl.hxx"
76 :
77 : /*************************************************************************
78 : |*
79 : |* Register all Controllers
80 : |*
81 : \************************************************************************/
82 :
83 :
84 6 : void SdDLL::RegisterControllers()
85 : {
86 6 : SfxModule* pMod = SD_MOD();
87 :
88 : // ToolBoxControls registrieren
89 6 : SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
90 6 : SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
91 6 : SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
92 6 : SdTbxControl::RegisterControl( SID_POSITION, pMod );
93 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
94 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
95 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
96 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
97 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
98 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
99 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
100 6 : SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
101 :
102 6 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
103 6 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
104 6 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
105 6 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
106 6 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
107 6 : SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
108 :
109 6 : SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
110 6 : SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
111 :
112 6 : ::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
113 6 : ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
114 6 : ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
115 6 : ::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
116 :
117 6 : Svx3DChildWindow::RegisterChildWindow(0, pMod);
118 6 : SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
119 6 : SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
120 6 : SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
121 6 : SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
122 6 : GalleryChildWindow::RegisterChildWindow(0, pMod);
123 6 : SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
124 6 : SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
125 6 : ::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
126 6 : ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
127 6 : ::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
128 6 : ::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
129 6 : ::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod);
130 :
131 6 : SvxFillToolBoxControl::RegisterControl(0, pMod);
132 6 : SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
133 6 : SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
134 6 : SvxLineColorToolBoxControl::RegisterControl(0, pMod);
135 :
136 6 : SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
137 :
138 6 : SvxStyleToolBoxControl::RegisterControl(0, pMod);
139 6 : SvxFontNameToolBoxControl::RegisterControl(0, pMod);
140 6 : SvxFontColorToolBoxControl::RegisterControl(0, pMod);
141 :
142 6 : SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
143 6 : SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
144 6 : SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
145 6 : SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
146 6 : SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
147 6 : SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
148 6 : SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
149 6 : SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
150 6 : SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
151 6 : SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
152 6 : SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
153 6 : SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
154 6 : SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
155 6 : SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
156 6 : SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
157 6 : SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
158 6 : SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
159 :
160 : // StatusBarControls registrieren
161 6 : SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
162 6 : SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
163 6 : SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
164 6 : SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
165 :
166 : // MenuControls fuer PopupMenu
167 6 : SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
168 6 : SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
169 :
170 6 : SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
171 6 : SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
172 6 : SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
173 :
174 : // #UndoRedo#
175 6 : SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
176 6 : SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
177 :
178 6 : svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
179 :
180 6 : SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
181 :
182 6 : svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
183 6 : svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
184 :
185 6 : ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
186 6 : XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
187 6 : SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
188 6 : SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
189 6 : SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
190 6 : SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
191 6 : SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
192 6 : SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
193 24 : }
194 :
195 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|