1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <editeng/editdata.hxx>
21 #include <editeng/outliner.hxx>
22 #include <svx/svxids.hrc>
23 #include <editeng/eeitem.hxx>
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/SvxColorChildWindow.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>
54 #include <svx/layctrl.hxx>
55 #include <svx/subtoolboxcontrol.hxx>
56 #include <sfx2/sidebar/SidebarChildWindow.hxx>
60 #include "diactrl.hxx"
61 #include "gluectrl.hxx"
63 #include "AnimationChildWindow.hxx"
64 #include "animobjs.hxx"
65 #include "NavigatorChildWindow.hxx"
66 #include "LayerDialogChildWindow.hxx"
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"
75 #include "tmplctrl.hxx"
77 /*************************************************************************
79 |* Register all Controllers
81 \************************************************************************/
84 void SdDLL::RegisterControllers()
86 SfxModule
* pMod
= SD_MOD();
88 // ToolBoxControls registrieren
89 SdTbxControl::RegisterControl( SID_OBJECT_ALIGN
, pMod
);
90 SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX
, pMod
);
91 SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE
, pMod
);
92 SdTbxControl::RegisterControl( SID_POSITION
, pMod
);
93 SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT
, pMod
);
94 SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES
, pMod
);
95 SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES
, pMod
);
96 SdTbxControl::RegisterControl( SID_DRAWTBX_LINES
, pMod
);
97 SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS
, pMod
);
98 SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS
, pMod
);
99 SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS
, pMod
);
100 SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT
, pMod
);
102 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC
, pMod
);
103 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL
, pMod
);
104 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW
, pMod
);
105 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART
, pMod
);
106 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT
, pMod
);
107 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR
, pMod
);
109 SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW
, pMod
);
110 SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR
, pMod
);
112 ::sd::AnimationChildWindow::RegisterChildWindow(0, pMod
);
113 ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16
) ::sd::DrawViewShell::GetInterfaceId(), pMod
);
114 ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16
) ::sd::GraphicViewShell::GetInterfaceId(), pMod
);
115 ::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod
);
117 Svx3DChildWindow::RegisterChildWindow(0, pMod
);
118 SvxFontWorkChildWindow::RegisterChildWindow(0, pMod
);
119 SvxColorChildWindow::RegisterChildWindow(0, pMod
, SFX_CHILDWIN_TASK
);
120 SvxSearchDialogWrapper::RegisterChildWindow(0, pMod
);
121 SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod
);
122 GalleryChildWindow::RegisterChildWindow(0, pMod
);
123 SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod
);
124 SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod
);
125 ::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod
);
126 ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod
);
127 ::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod
);
128 ::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod
);
129 ::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod
);
130 ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindowIfEnabled(0, pMod
);
132 SvxFillToolBoxControl::RegisterControl(0, pMod
);
133 SvxLineStyleToolBoxControl::RegisterControl(0, pMod
);
134 SvxLineWidthToolBoxControl::RegisterControl(0, pMod
);
135 SvxLineColorToolBoxControl::RegisterControl(0, pMod
);
137 SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE
, pMod
);
139 SvxStyleToolBoxControl::RegisterControl(0, pMod
);
140 SvxFontNameToolBoxControl::RegisterControl(0, pMod
);
141 SvxFontColorToolBoxControl::RegisterControl(0, pMod
);
143 SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER
, pMod
);
144 SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE
, pMod
);
145 SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED
, pMod
);
146 SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN
, pMod
);
147 SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE
, pMod
);
148 SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE
, pMod
);
149 SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST
, pMod
);
150 SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA
, pMod
);
151 SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE
, pMod
);
152 SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM
, pMod
);
153 SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT
, pMod
);
154 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL
, pMod
);
155 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL
, pMod
);
156 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL
, pMod
);
157 SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL
, pMod
);
158 SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT
, pMod
);
159 SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT
, pMod
);
161 // register StatusBarControls
162 SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM
, pMod
);
163 SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE
, pMod
);
164 SvxModifyControl::RegisterControl( SID_DOC_MODIFIED
, pMod
);
165 SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER
, pMod
);
167 // MenuControls for PopupMenu
168 SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT
, pMod
);
169 SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT
, pMod
);
171 SfxMenuControl::RegisterControl( SID_SET_SNAPITEM
, pMod
);
172 SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM
, pMod
);
173 SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE
, pMod
);
176 SvxUndoRedoControl::RegisterControl( SID_UNDO
, pMod
);
177 SvxUndoRedoControl::RegisterControl( SID_REDO
, pMod
);
179 svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH
, pMod
);
181 SvxClipBoardControl::RegisterControl( SID_PASTE
, pMod
);
183 svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR
, pMod
);
184 svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE
, pMod
);
186 ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX
, pMod
);
187 XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE
, pMod
);
188 SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT
, pMod
);
189 SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE
, pMod
);
190 SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE
, pMod
);
191 SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR
, pMod
);
192 SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER
, pMod
);
193 SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE
, pMod
);
196 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */