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 <unotools/moduleoptions.hxx>
22 #include "diactrl.hxx"
24 #include "TextObjectBar.hxx"
25 #include "BezierObjectBar.hxx"
26 #include "GraphicObjectBar.hxx"
27 #include "MediaObjectBar.hxx"
28 #include "ImpressViewShellBase.hxx"
29 #include "PresentationViewShellBase.hxx"
30 #include "OutlineViewShell.hxx"
31 #include "PresentationViewShell.hxx"
32 #include "OutlineViewShellBase.hxx"
33 #include "SlideSorterViewShellBase.hxx"
34 #include "DrawViewShell.hxx"
35 #include "GraphicViewShell.hxx"
36 #include "GraphicViewShellBase.hxx"
37 #include "DrawDocShell.hxx"
38 #include "GraphicDocShell.hxx"
39 #include "SlideSorterViewShell.hxx"
40 #include "taskpane/ToolPanelViewShell.hxx"
41 #include "FactoryIds.hxx"
45 namespace sd
{ namespace ui
{ namespace table
{
46 extern void RegisterInterfaces( SfxModule
* pMod
);
50 /*************************************************************************
52 |* Register all Factorys
54 \************************************************************************/
57 void SdDLL::RegisterFactorys()
59 if (SvtModuleOptions().IsImpress())
61 ::sd::ImpressViewShellBase::RegisterFactory (
62 ::sd::IMPRESS_FACTORY_ID
);
63 ::sd::SlideSorterViewShellBase::RegisterFactory (
64 ::sd::SLIDE_SORTER_FACTORY_ID
);
65 ::sd::OutlineViewShellBase::RegisterFactory (
66 ::sd::OUTLINE_FACTORY_ID
);
67 ::sd::PresentationViewShellBase::RegisterFactory (
68 ::sd::PRESENTATION_FACTORY_ID
);
70 if (SvtModuleOptions().IsDraw())
72 ::sd::GraphicViewShellBase::RegisterFactory (::sd::DRAW_FACTORY_ID
);
78 /*************************************************************************
80 |* Register all Interfaces
82 \************************************************************************/
84 void SdDLL::RegisterInterfaces()
87 SfxModule
* pMod
= SD_MOD();
88 SdModule::RegisterInterface(pMod
);
91 ::sd::ViewShellBase::RegisterInterface(pMod
);
94 ::sd::DrawDocShell::RegisterInterface(pMod
);
95 ::sd::GraphicDocShell::RegisterInterface(pMod
);
98 ::sd::DrawViewShell::RegisterInterface(pMod
);
99 ::sd::OutlineViewShell::RegisterInterface(pMod
);
100 ::sd::PresentationViewShell::RegisterInterface(pMod
);
103 ::sd::GraphicViewShell::RegisterInterface(pMod
);
105 // Impress ObjectShells
106 ::sd::BezierObjectBar::RegisterInterface(pMod
);
107 ::sd::TextObjectBar::RegisterInterface(pMod
);
108 ::sd::GraphicObjectBar::RegisterInterface(pMod
);
111 ::sd::MediaObjectBar::RegisterInterface(pMod
);
114 ::sd::ui::table::RegisterInterfaces(pMod
);
116 // View shells for the side panes.
117 ::sd::slidesorter::SlideSorterViewShell::RegisterInterface (pMod
);
119 ::sd::toolpanel::ToolPanelViewShell::RegisterInterface(pMod
);
120 // Tell the tool panel view shell to register the interfaces of its
122 ::sd::toolpanel::ToolPanelViewShell::RegisterControls();
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */