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