Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 :
21 : #include "DrawViewShell.hxx"
22 : #include <sfx2/templdlg.hxx>
23 : #include <sfx2/infobar.hxx>
24 :
25 : #include <svx/fontwork.hxx>
26 : #include <svx/bmpmask.hxx>
27 : #include <svx/galbrws.hxx>
28 : #include <svx/imapdlg.hxx>
29 : #include <svx/colrctrl.hxx>
30 : #include <sfx2/objface.hxx>
31 : #include <svx/f3dchild.hxx>
32 : #include <svx/tbxcustomshapes.hxx>
33 :
34 : #include <svx/svxids.hrc>
35 : #include <svx/hyperdlg.hxx>
36 : #include <avmedia/mediaplayer.hxx>
37 :
38 :
39 : #include "app.hrc"
40 : #include "strings.hrc"
41 : #include "res_bmp.hrc"
42 : #include "glob.hrc"
43 : #include "SpellDialogChildWindow.hxx"
44 : #include "sdresid.hxx"
45 : #include "DrawDocShell.hxx"
46 : #include "GraphicDocShell.hxx"
47 : #include "GraphicViewShell.hxx"
48 : #include "AnimationChildWindow.hxx"
49 : #include "NavigatorChildWindow.hxx"
50 : #include "LayerDialogChildWindow.hxx"
51 :
52 : using namespace sd;
53 : #define DrawViewShell
54 : #include "sdslots.hxx"
55 : #define GraphicViewShell
56 : #include "sdgslots.hxx"
57 :
58 : namespace sd {
59 :
60 : /*************************************************************************
61 : |*
62 : |* SFX-Slotmap und Standardinterface deklarieren
63 : |*
64 : \************************************************************************/
65 :
66 :
67 57 : SFX_IMPL_INTERFACE(DrawViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL))
68 : {
69 3 : SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) );
70 3 : SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR );
71 3 : SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() );
72 3 : SFX_CHILDWINDOW_REGISTRATION( SfxInfoBarContainerChild::GetChildWindowId() );
73 3 : SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() );
74 3 : SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() );
75 3 : SFX_CHILDWINDOW_REGISTRATION( AnimationChildWindow::GetChildWindowId() );
76 3 : SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() );
77 3 : SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() );
78 3 : SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() );
79 3 : SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() );
80 3 : SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() );
81 3 : SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() );
82 3 : SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG );
83 3 : SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
84 3 : }
85 :
86 :
87 0 : TYPEINIT1( DrawViewShell, ViewShell );
88 :
89 :
90 : // SdGraphicViewShell
91 :
92 :
93 51 : SFX_IMPL_INTERFACE(GraphicViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL)) //SOH...
94 : {
95 3 : SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) );
96 3 : SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR );
97 3 : SFX_CHILDWINDOW_REGISTRATION( SID_TASKPANE );
98 3 : SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() );
99 3 : SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() );
100 3 : SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() );
101 3 : SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() );
102 3 : SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() );
103 3 : SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() );
104 3 : SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() );
105 3 : SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() );
106 3 : SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() );
107 3 : SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG );
108 3 : SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
109 3 : }
110 :
111 0 : TYPEINIT1( GraphicViewShell, DrawViewShell );
112 :
113 :
114 9 : } // end of namespace sd
115 :
116 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|