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