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