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