1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: drvwshrg.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sd.hxx"
34 #include "DrawViewShell.hxx"
35 #include <sfx2/templdlg.hxx>
37 #include <svx/fontwork.hxx>
38 #include <svx/bmpmask.hxx>
39 #include <svx/galbrws.hxx>
40 #include <svx/imapdlg.hxx>
41 #include <svx/colrctrl.hxx>
42 #include <sfx2/objface.hxx>
43 #include <svx/f3dchild.hxx>
44 #include <svx/tbxcustomshapes.hxx>
46 #include <svx/svxids.hrc>
47 #include <svx/hyprlink.hxx>
48 #include <svx/hyperdlg.hxx>
49 #include <avmedia/mediaplayer.hxx>
53 #include "strings.hrc"
54 #include "res_bmp.hrc"
56 #include "SpellDialogChildWindow.hxx"
57 #include "sdresid.hxx"
58 #include "DrawDocShell.hxx"
59 #include "GraphicDocShell.hxx"
60 #include "GraphicViewShell.hxx"
61 #include "AnimationChildWindow.hxx"
62 #include "NavigatorChildWindow.hxx"
63 #include "LayerDialogChildWindow.hxx"
67 #include "sdslots.hxx"
68 #define GraphicViewShell
69 #include "sdgslots.hxx"
73 //AF:unused #define TABCONTROL_INITIAL_SIZE 500
75 /*************************************************************************
77 |* SFX-Slotmap und Standardinterface deklarieren
79 \************************************************************************/
82 SFX_IMPL_INTERFACE(DrawViewShell
, SfxShell
, SdResId(STR_DRAWVIEWSHELL
))
84 SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP
) );
85 SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR
);
86 SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() );
87 SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() );
88 SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() );
89 SFX_CHILDWINDOW_REGISTRATION( AnimationChildWindow::GetChildWindowId() );
90 SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() );
91 SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() );
92 SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() );
93 SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() );
94 SFX_CHILDWINDOW_REGISTRATION( SvxHyperlinkDlgWrapper::GetChildWindowId() );
95 SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() );
96 SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() );
97 SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG
);
98 SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
102 TYPEINIT1( DrawViewShell
, ViewShell
);
105 // SdGraphicViewShell
108 SFX_IMPL_INTERFACE(GraphicViewShell
, SfxShell
, SdResId(STR_DRAWVIEWSHELL
)) //SOH...
110 SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP
) );
111 SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR
);
112 SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() );
113 SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() );
114 SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() );
115 SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() );
116 SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() );
117 SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() );
118 SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() );
119 SFX_CHILDWINDOW_REGISTRATION( SvxHyperlinkDlgWrapper::GetChildWindowId() );
120 SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() );
121 SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() );
122 SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG
);
123 SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
126 TYPEINIT1( GraphicViewShell
, DrawViewShell
);
129 } // end of namespace sd