Update ooo320-m1
[ooovba.git] / sd / source / ui / app / sddll1.cxx
blobbc8ff01e4baaba90d88120e1d4927d57a1d3b49c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sddll1.cxx,v $
10 * $Revision: 1.19 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sd.hxx"
35 #include <svtools/moduleoptions.hxx>
36 #include "sddll.hxx"
37 #include "diactrl.hxx"
38 #include "tbx_ww.hxx"
39 #include "TextObjectBar.hxx"
40 #include "BezierObjectBar.hxx"
41 #include "GraphicObjectBar.hxx"
42 #include "MediaObjectBar.hxx"
43 #include "ImpressViewShellBase.hxx"
44 #include "PresentationViewShellBase.hxx"
45 #include "OutlineViewShell.hxx"
46 #include "PresentationViewShell.hxx"
47 #include "OutlineViewShellBase.hxx"
48 #include "SlideSorterViewShellBase.hxx"
49 #include "DrawViewShell.hxx"
50 #include "GraphicViewShell.hxx"
51 #include "GraphicViewShellBase.hxx"
52 #include "DrawDocShell.hxx"
53 #include "GraphicDocShell.hxx"
54 #ifndef SD_SLIDEBROWSER_SLIDE_SORTER_VIEW_SHELL_HXX
55 #include "SlideSorterViewShell.hxx"
56 #endif
57 #ifndef SD_SLIDEBROWSER_TASK_PANE_VIEW_SHELL_HXX
58 #include "TaskPaneViewShell.hxx"
59 #endif
60 #include "FactoryIds.hxx"
61 #include "sdmod.hxx"
62 #include "app.hrc"
64 namespace sd { namespace ui { namespace table {
65 extern void RegisterInterfaces( SfxModule* pMod );
66 } } }
69 /*************************************************************************
71 |* Register all Factorys
73 \************************************************************************/
76 void SdDLL::RegisterFactorys()
78 if (SvtModuleOptions().IsImpress())
80 ::sd::ImpressViewShellBase::RegisterFactory (
81 ::sd::IMPRESS_FACTORY_ID);
82 ::sd::SlideSorterViewShellBase::RegisterFactory (
83 ::sd::SLIDE_SORTER_FACTORY_ID);
84 ::sd::OutlineViewShellBase::RegisterFactory (
85 ::sd::OUTLINE_FACTORY_ID);
86 ::sd::PresentationViewShellBase::RegisterFactory (
87 ::sd::PRESENTATION_FACTORY_ID);
89 if (SvtModuleOptions().IsDraw())
91 ::sd::GraphicViewShellBase::RegisterFactory (::sd::DRAW_FACTORY_ID);
97 /*************************************************************************
99 |* Register all Interfaces
101 \************************************************************************/
103 void SdDLL::RegisterInterfaces()
105 // Modul
106 SfxModule* pMod = SD_MOD();
107 SdModule::RegisterInterface(pMod);
109 // View shell base.
110 ::sd::ViewShellBase::RegisterInterface(pMod);
112 // DocShells
113 ::sd::DrawDocShell::RegisterInterface(pMod);
114 ::sd::GraphicDocShell::RegisterInterface(pMod);
116 // Impress ViewShells
117 ::sd::DrawViewShell::RegisterInterface(pMod);
118 ::sd::OutlineViewShell::RegisterInterface(pMod);
119 ::sd::PresentationViewShell::RegisterInterface(pMod);
121 // Draw ViewShell
122 ::sd::GraphicViewShell::RegisterInterface(pMod);
124 // Impress ObjectShells
125 ::sd::BezierObjectBar::RegisterInterface(pMod);
126 ::sd::TextObjectBar::RegisterInterface(pMod);
127 ::sd::GraphicObjectBar::RegisterInterface(pMod);
129 // Media ObjectShell
130 ::sd::MediaObjectBar::RegisterInterface(pMod);
132 // Table ObjectShell
133 ::sd::ui::table::RegisterInterfaces(pMod);
135 // View shells for the side panes.
136 ::sd::slidesorter::SlideSorterViewShell::RegisterInterface (pMod);
137 ::sd::toolpanel::TaskPaneViewShell::RegisterInterface(pMod);
138 // Tell the task pane view shell to register the interfaces of its
139 // controls.
140 ::sd::toolpanel::TaskPaneViewShell::RegisterControls();