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 #include "DrawViewShell.hxx" 32 #include <sfx2/templdlg.hxx> 33 34 #include <svx/fontwork.hxx> 35 #include <svx/bmpmask.hxx> 36 #include <svx/galbrws.hxx> 37 #include <svx/imapdlg.hxx> 38 #include <svx/colrctrl.hxx> 39 #include <sfx2/objface.hxx> 40 #include <svx/f3dchild.hxx> 41 #include <svx/tbxcustomshapes.hxx> 42 43 #include <svx/svxids.hrc> 44 #include <svx/hyprlink.hxx> 45 #include <svx/hyperdlg.hxx> 46 #include <avmedia/mediaplayer.hxx> 47 48 49 #include "app.hrc" 50 #include "strings.hrc" 51 #include "res_bmp.hrc" 52 #include "glob.hrc" 53 #include "SpellDialogChildWindow.hxx" 54 #include "sdresid.hxx" 55 #include "DrawDocShell.hxx" 56 #include "GraphicDocShell.hxx" 57 #include "GraphicViewShell.hxx" 58 #include "AnimationChildWindow.hxx" 59 #include "NavigatorChildWindow.hxx" 60 #include "LayerDialogChildWindow.hxx" 61 62 using namespace sd; 63 #define DrawViewShell 64 #include "sdslots.hxx" 65 #define GraphicViewShell 66 #include "sdgslots.hxx" 67 68 namespace sd { 69 70 //AF:unused #define TABCONTROL_INITIAL_SIZE 500 71 72 /************************************************************************* 73 |* 74 |* SFX-Slotmap und Standardinterface deklarieren 75 |* 76 \************************************************************************/ 77 78 79 SFX_IMPL_INTERFACE(DrawViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL)) 80 { 81 SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) ); 82 SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR ); 83 SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() ); 84 SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() ); 85 SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() ); 86 SFX_CHILDWINDOW_REGISTRATION( AnimationChildWindow::GetChildWindowId() ); 87 SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() ); 88 SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() ); 89 SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() ); 90 SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() ); 91 SFX_CHILDWINDOW_REGISTRATION( SvxHyperlinkDlgWrapper::GetChildWindowId() ); 92 SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() ); 93 SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() ); 94 SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG ); 95 SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() ); 96 } 97 98 99 TYPEINIT1( DrawViewShell, ViewShell ); 100 101 102 // SdGraphicViewShell 103 104 105 SFX_IMPL_INTERFACE(GraphicViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL)) //SOH... 106 { 107 SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) ); 108 SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR ); 109 SFX_CHILDWINDOW_REGISTRATION( SID_TASKPANE ); 110 SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() ); 111 SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() ); 112 SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() ); 113 SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() ); 114 SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() ); 115 SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() ); 116 SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() ); 117 SFX_CHILDWINDOW_REGISTRATION( SvxHyperlinkDlgWrapper::GetChildWindowId() ); 118 SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() ); 119 SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() ); 120 SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG ); 121 SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() ); 122 } 123 124 TYPEINIT1( GraphicViewShell, DrawViewShell ); 125 126 127 } // end of namespace sd 128