Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <unotools/moduleoptions.hxx>
30 : : #include "sddll.hxx"
31 : : #include "diactrl.hxx"
32 : : #include "tbx_ww.hxx"
33 : : #include "TextObjectBar.hxx"
34 : : #include "BezierObjectBar.hxx"
35 : : #include "GraphicObjectBar.hxx"
36 : : #include "MediaObjectBar.hxx"
37 : : #include "ImpressViewShellBase.hxx"
38 : : #include "PresentationViewShellBase.hxx"
39 : : #include "OutlineViewShell.hxx"
40 : : #include "PresentationViewShell.hxx"
41 : : #include "OutlineViewShellBase.hxx"
42 : : #include "SlideSorterViewShellBase.hxx"
43 : : #include "DrawViewShell.hxx"
44 : : #include "GraphicViewShell.hxx"
45 : : #include "GraphicViewShellBase.hxx"
46 : : #include "DrawDocShell.hxx"
47 : : #include "GraphicDocShell.hxx"
48 : : #include "SlideSorterViewShell.hxx"
49 : : #include "taskpane/ToolPanelViewShell.hxx"
50 : : #include "FactoryIds.hxx"
51 : : #include "sdmod.hxx"
52 : : #include "app.hrc"
53 : :
54 : : namespace sd { namespace ui { namespace table {
55 : : extern void RegisterInterfaces( SfxModule* pMod );
56 : : } } }
57 : :
58 : :
59 : : /*************************************************************************
60 : : |*
61 : : |* Register all Factorys
62 : : |*
63 : : \************************************************************************/
64 : :
65 : :
66 : 25 : void SdDLL::RegisterFactorys()
67 : : {
68 [ + - ][ + + ]: 25 : if (SvtModuleOptions().IsImpress())
69 : : {
70 : : ::sd::ImpressViewShellBase::RegisterFactory (
71 : 22 : ::sd::IMPRESS_FACTORY_ID);
72 : : ::sd::SlideSorterViewShellBase::RegisterFactory (
73 : 22 : ::sd::SLIDE_SORTER_FACTORY_ID);
74 : : ::sd::OutlineViewShellBase::RegisterFactory (
75 : 22 : ::sd::OUTLINE_FACTORY_ID);
76 : : ::sd::PresentationViewShellBase::RegisterFactory (
77 : 22 : ::sd::PRESENTATION_FACTORY_ID);
78 : : }
79 [ + - ][ + + ]: 25 : if (SvtModuleOptions().IsDraw())
80 : : {
81 : 22 : ::sd::GraphicViewShellBase::RegisterFactory (::sd::DRAW_FACTORY_ID);
82 : : }
83 : 25 : }
84 : :
85 : :
86 : :
87 : : /*************************************************************************
88 : : |*
89 : : |* Register all Interfaces
90 : : |*
91 : : \************************************************************************/
92 : :
93 : 25 : void SdDLL::RegisterInterfaces()
94 : : {
95 : : // Module
96 : 25 : SfxModule* pMod = SD_MOD();
97 : 25 : SdModule::RegisterInterface(pMod);
98 : :
99 : : // View shell base.
100 : 25 : ::sd::ViewShellBase::RegisterInterface(pMod);
101 : :
102 : : // DocShells
103 : 25 : ::sd::DrawDocShell::RegisterInterface(pMod);
104 : 25 : ::sd::GraphicDocShell::RegisterInterface(pMod);
105 : :
106 : : // Impress ViewShells
107 : 25 : ::sd::DrawViewShell::RegisterInterface(pMod);
108 : 25 : ::sd::OutlineViewShell::RegisterInterface(pMod);
109 : 25 : ::sd::PresentationViewShell::RegisterInterface(pMod);
110 : :
111 : : // Draw ViewShell
112 : 25 : ::sd::GraphicViewShell::RegisterInterface(pMod);
113 : :
114 : : // Impress ObjectShells
115 : 25 : ::sd::BezierObjectBar::RegisterInterface(pMod);
116 : 25 : ::sd::TextObjectBar::RegisterInterface(pMod);
117 : 25 : ::sd::GraphicObjectBar::RegisterInterface(pMod);
118 : :
119 : : // Media ObjectShell
120 : 25 : ::sd::MediaObjectBar::RegisterInterface(pMod);
121 : :
122 : : // Table ObjectShell
123 : 25 : ::sd::ui::table::RegisterInterfaces(pMod);
124 : :
125 : : // View shells for the side panes.
126 : 25 : ::sd::slidesorter::SlideSorterViewShell::RegisterInterface (pMod);
127 : 25 : ::sd::toolpanel::ToolPanelViewShell::RegisterInterface(pMod);
128 : : // Tell the tool panel view shell to register the interfaces of its
129 : : // controls.
130 : 25 : ::sd::toolpanel::ToolPanelViewShell::RegisterControls();
131 : 25 : }
132 : :
133 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|