1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include "DrawViewShell.hxx"
21 #include <sfx2/request.hxx>
22 #include <sfx2/templdlg.hxx>
23 #include <sfx2/infobar.hxx>
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>
34 #include <svx/svxids.hrc>
35 #include <svx/hyperdlg.hxx>
36 #include <avmedia/mediaplayer.hxx>
39 #include "strings.hrc"
40 #include "res_bmp.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"
52 #include "sdslots.hxx"
53 #define GraphicViewShell
54 #include "sdgslots.hxx"
59 * Declare SFX-Slotmap and Standardinterface
62 SFX_IMPL_INTERFACE(DrawViewShell
, SfxShell
)
64 void DrawViewShell::InitInterface_Impl()
66 GetStaticInterface()->RegisterPopupMenu(SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP
));
68 GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR
, true);
70 GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
71 GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
72 GetStaticInterface()->RegisterChildWindow(SvxColorChildWindow::GetChildWindowId());
73 GetStaticInterface()->RegisterChildWindow(AnimationChildWindow::GetChildWindowId());
74 GetStaticInterface()->RegisterChildWindow(Svx3DChildWindow::GetChildWindowId());
75 GetStaticInterface()->RegisterChildWindow(SvxBmpMaskChildWindow::GetChildWindowId());
76 GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
77 GetStaticInterface()->RegisterChildWindow(SvxHlinkDlgWrapper::GetChildWindowId());
78 GetStaticInterface()->RegisterChildWindow(::sd::SpellDialogChildWindow::GetChildWindowId());
79 GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG
);
80 GetStaticInterface()->RegisterChildWindow(::avmedia::MediaPlayer::GetChildWindowId());
81 GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
84 TYPEINIT1( DrawViewShell
, ViewShell
);
87 SFX_IMPL_INTERFACE(GraphicViewShell
, SfxShell
)
89 void GraphicViewShell::InitInterface_Impl()
91 GetStaticInterface()->RegisterPopupMenu(SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP
));
93 GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR
, true);
95 GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
96 GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
97 GetStaticInterface()->RegisterChildWindow(SvxColorChildWindow::GetChildWindowId());
98 GetStaticInterface()->RegisterChildWindow(Svx3DChildWindow::GetChildWindowId());
99 GetStaticInterface()->RegisterChildWindow(SvxBmpMaskChildWindow::GetChildWindowId());
100 GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
101 GetStaticInterface()->RegisterChildWindow(SvxHlinkDlgWrapper::GetChildWindowId());
102 GetStaticInterface()->RegisterChildWindow(::sd::SpellDialogChildWindow::GetChildWindowId());
103 GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG
);
104 GetStaticInterface()->RegisterChildWindow(::avmedia::MediaPlayer::GetChildWindowId());
105 GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
108 TYPEINIT1( GraphicViewShell
, DrawViewShell
);
110 } // end of namespace sd
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */