cid#1607171 Data race condition
[LibreOffice.git] / sd / source / ui / view / drvwshrg.cxx
blob9e28be77c467e84af70d6c888aacc1e7ad3a1f97
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 <config_features.h>
22 #include <DrawViewShell.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 <sfx2/devtools/DevelopmentToolChildWindow.hxx>
32 #include <svx/f3dchild.hxx>
34 #include <svx/svxids.hrc>
35 #include <svx/hyperdlg.hxx>
36 #include <avmedia/mediaplayer.hxx>
38 #include <app.hrc>
40 #include <SpellDialogChildWindow.hxx>
41 #include <GraphicViewShell.hxx>
42 #include <AnimationChildWindow.hxx>
43 #include <PaneChildWindows.hxx>
45 using namespace sd;
46 #define ShellClass_DrawViewShell
47 #include <sdslots.hxx>
48 #define ShellClass_GraphicViewShell
49 #include <sdgslots.hxx>
51 namespace sd
53 /**
54 * Declare SFX-Slotmap and Standardinterface
57 SFX_IMPL_INTERFACE(DrawViewShell, SfxShell)
59 void DrawViewShell::InitInterface_Impl()
61 GetStaticInterface()->RegisterPopupMenu(u"drawtext"_ustr);
63 GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
65 GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
66 GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
67 GetStaticInterface()->RegisterChildWindow(SvxColorChildWindow::GetChildWindowId());
68 GetStaticInterface()->RegisterChildWindow(AnimationChildWindow::GetChildWindowId());
69 GetStaticInterface()->RegisterChildWindow(Svx3DChildWindow::GetChildWindowId());
70 GetStaticInterface()->RegisterChildWindow(SvxBmpMaskChildWindow::GetChildWindowId());
71 GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
72 GetStaticInterface()->RegisterChildWindow(SvxHlinkDlgWrapper::GetChildWindowId());
73 GetStaticInterface()->RegisterChildWindow(::sd::SpellDialogChildWindow::GetChildWindowId());
74 GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
75 #if HAVE_FEATURE_AVMEDIA
76 GetStaticInterface()->RegisterChildWindow(::avmedia::MediaPlayer::GetChildWindowId());
77 #endif
78 GetStaticInterface()->RegisterChildWindow(
79 sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
80 GetStaticInterface()->RegisterChildWindow(DevelopmentToolChildWindow::GetChildWindowId());
81 GetStaticInterface()->RegisterChildWindow(BottomPaneImpressChildWindow::GetChildWindowId());
84 // SdGraphicViewShell
85 SFX_IMPL_INTERFACE(GraphicViewShell, SfxShell)
87 void GraphicViewShell::InitInterface_Impl()
89 GetStaticInterface()->RegisterPopupMenu(u"drawtext"_ustr);
91 GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
93 GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
94 GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
95 GetStaticInterface()->RegisterChildWindow(SvxColorChildWindow::GetChildWindowId());
96 GetStaticInterface()->RegisterChildWindow(Svx3DChildWindow::GetChildWindowId());
97 GetStaticInterface()->RegisterChildWindow(SvxBmpMaskChildWindow::GetChildWindowId());
98 GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
99 GetStaticInterface()->RegisterChildWindow(SvxHlinkDlgWrapper::GetChildWindowId());
100 GetStaticInterface()->RegisterChildWindow(::sd::SpellDialogChildWindow::GetChildWindowId());
101 GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
102 #if HAVE_FEATURE_AVMEDIA
103 GetStaticInterface()->RegisterChildWindow(::avmedia::MediaPlayer::GetChildWindowId());
104 #endif
105 GetStaticInterface()->RegisterChildWindow(
106 sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
107 GetStaticInterface()->RegisterChildWindow(DevelopmentToolChildWindow::GetChildWindowId());
110 } // end of namespace sd
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */