1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_sd.hxx" 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/hyprlink.hxx> 43 #include <svx/hyperdlg.hxx> 44 #include <svx/fillctrl.hxx> 45 #include <svx/linectrl.hxx> 46 #include <svx/tbcontrl.hxx> 47 #include <svx/zoomctrl.hxx> 48 #include <svx/zoomsliderctrl.hxx> 49 #include <svx/pszctrl.hxx> 50 #include <svx/modctrl.hxx> 51 #include <svx/fntctl.hxx> 52 #include <svx/fntszctl.hxx> 53 #include <svx/f3dchild.hxx> 54 #include <svx/grafctrl.hxx> 55 #include <svx/tbxcustomshapes.hxx> 56 #include <svx/lboxctrl.hxx> 57 #include <svx/clipboardctl.hxx> 58 #include <svx/extrusioncolorcontrol.hxx> 59 #include <svx/fontworkgallery.hxx> 60 #include <svx/tbxcolor.hxx> 61 #include <avmedia/mediaplayer.hxx> 62 #include <avmedia/mediatoolbox.hxx> 63 64 #include <svx/layctrl.hxx> 65 #include <svx/subtoolboxcontrol.hxx> 66 #include <sfx2/SidebarChildWindow.hxx> 67 68 #include "sddll.hxx" 69 #define _SD_DIACTRL_CXX 70 #include "diactrl.hxx" 71 #include "gluectrl.hxx" 72 #include "tbx_ww.hxx" 73 #include "AnimationChildWindow.hxx" 74 #include "animobjs.hxx" 75 #include "NavigatorChildWindow.hxx" 76 #include "LayerDialogChildWindow.hxx" 77 #include "app.hrc" 78 #include "SpellDialogChildWindow.hxx" 79 #include "DrawViewShell.hxx" 80 #include "GraphicViewShell.hxx" 81 #include <svx/xmlsecctrl.hxx> 82 #include <svx/formatpaintbrushctrl.hxx> 83 #include "PaneChildWindows.hxx" 84 85 #include "tmplctrl.hxx" 86 87 /************************************************************************* 88 |* 89 |* Register all Controllers 90 |* 91 \************************************************************************/ 92 93 94 void SdDLL::RegisterControllers() 95 { 96 SfxModule* pMod = SD_MOD(); 97 98 // ToolBoxControls registrieren 99 SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod ); 100 SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod ); 101 SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod ); 102 SdTbxControl::RegisterControl( SID_POSITION, pMod ); 103 SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod ); 104 SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod ); 105 SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod ); 106 SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod ); 107 SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod ); 108 SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod ); 109 SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod ); 110 SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod ); 111 112 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod ); 113 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod ); 114 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod ); 115 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod ); 116 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod ); 117 SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod ); 118 119 SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod ); 120 SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod ); 121 122 ::sd::AnimationChildWindow::RegisterChildWindow(0, pMod); 123 ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod ); 124 ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod ); 125 ::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod); 126 127 Svx3DChildWindow::RegisterChildWindow(0, pMod); 128 SvxFontWorkChildWindow::RegisterChildWindow(0, pMod); 129 SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK); 130 SvxSearchDialogWrapper::RegisterChildWindow(0, pMod); 131 SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod); 132 GalleryChildWindow::RegisterChildWindow(0, pMod); 133 SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod); 134 SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK); 135 SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod); 136 ::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod); 137 ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod); 138 ::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod); 139 ::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod); 140 ::sd::ToolPanelChildWindow::RegisterChildWindow(0, pMod); 141 ::sfx2::SidebarChildWindow::RegisterChildWindow(NULL, pMod); 142 143 SvxFillToolBoxControl::RegisterControl(0, pMod); 144 SvxLineStyleToolBoxControl::RegisterControl(0, pMod); 145 SvxLineWidthToolBoxControl::RegisterControl(0, pMod); 146 SvxLineColorToolBoxControl::RegisterControl(0, pMod); 147 148 SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod ); 149 150 SvxStyleToolBoxControl::RegisterControl(0, pMod); 151 SvxFontNameToolBoxControl::RegisterControl(0, pMod); 152 // SvxFontHeightToolBoxControl::RegisterControl(0, pMod); 153 SvxFontColorToolBoxControl::RegisterControl(0, pMod); 154 155 SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod ); 156 SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod ); 157 SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod ); 158 SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod ); 159 SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod ); 160 SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod ); 161 SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod ); 162 SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod ); 163 SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod ); 164 SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod); 165 SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod); 166 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod); 167 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod); 168 SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod); 169 SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod); 170 SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod); 171 SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod); 172 173 // StatusBarControls registrieren 174 SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod ); 175 SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod ); 176 SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod ); 177 //SvxInsertStatusBarControl::RegisterControl(0, pModd); 178 SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod ); 179 180 // MenuControls fuer PopupMenu 181 SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod ); 182 SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod ); 183 184 SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod ); 185 SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod ); 186 SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod ); 187 188 // #UndoRedo# 189 SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod ); 190 SvxUndoRedoControl::RegisterControl( SID_REDO , pMod ); 191 192 svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod ); 193 194 SvxClipBoardControl::RegisterControl( SID_PASTE, pMod ); 195 196 svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod ); 197 svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod ); 198 199 ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod ); 200 XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod ); 201 SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod ); 202 SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod ); 203 SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod ); 204 SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod ); 205 SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod ); 206 SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod); 207 208 // SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod ); 209 // SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod ); 210 } 211