office-gobmx/sd/source/ui/app/sddll1.cxx

135 lines
4.2 KiB
C++
Raw Normal View History

2000-09-18 11:07:07 -05:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 11:07:07 -05:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2000-09-18 11:07:07 -05:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 11:07:07 -05:00
*
* This file is part of OpenOffice.org.
2000-09-18 11:07:07 -05:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 11:07:07 -05:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 11:07:07 -05:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 11:07:07 -05:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sd.hxx"
2000-09-18 11:07:07 -05:00
#include <unotools/moduleoptions.hxx>
2000-09-18 11:07:07 -05:00
#include "sddll.hxx"
#include "diactrl.hxx"
#include "tbx_ww.hxx"
#include "TextObjectBar.hxx"
#include "BezierObjectBar.hxx"
#include "GraphicObjectBar.hxx"
#include "MediaObjectBar.hxx"
#include "ImpressViewShellBase.hxx"
#include "PresentationViewShellBase.hxx"
#include "OutlineViewShell.hxx"
#include "PresentationViewShell.hxx"
#include "OutlineViewShellBase.hxx"
#include "SlideSorterViewShellBase.hxx"
#include "DrawViewShell.hxx"
#include "GraphicViewShell.hxx"
#include "GraphicViewShellBase.hxx"
#include "DrawDocShell.hxx"
#include "GraphicDocShell.hxx"
#include "SlideSorterViewShell.hxx"
#include "taskpane/ToolPanelViewShell.hxx"
#include "FactoryIds.hxx"
#include "sdmod.hxx"
2000-09-18 11:07:07 -05:00
#include "app.hrc"
namespace sd { namespace ui { namespace table {
extern void RegisterInterfaces( SfxModule* pMod );
} } }
2000-09-18 11:07:07 -05:00
/*************************************************************************
|*
|* Register all Factorys
|*
\************************************************************************/
void SdDLL::RegisterFactorys()
{
if (SvtModuleOptions().IsImpress())
{
::sd::ImpressViewShellBase::RegisterFactory (
::sd::IMPRESS_FACTORY_ID);
::sd::SlideSorterViewShellBase::RegisterFactory (
::sd::SLIDE_SORTER_FACTORY_ID);
::sd::OutlineViewShellBase::RegisterFactory (
::sd::OUTLINE_FACTORY_ID);
::sd::PresentationViewShellBase::RegisterFactory (
::sd::PRESENTATION_FACTORY_ID);
}
if (SvtModuleOptions().IsDraw())
{
::sd::GraphicViewShellBase::RegisterFactory (::sd::DRAW_FACTORY_ID);
}
2000-09-18 11:07:07 -05:00
}
/*************************************************************************
|*
|* Register all Interfaces
|*
\************************************************************************/
void SdDLL::RegisterInterfaces()
{
// Modul
SfxModule* pMod = SD_MOD();
SdModule::RegisterInterface(pMod);
// View shell base.
::sd::ViewShellBase::RegisterInterface(pMod);
2000-09-18 11:07:07 -05:00
// DocShells
::sd::DrawDocShell::RegisterInterface(pMod);
::sd::GraphicDocShell::RegisterInterface(pMod);
2000-09-18 11:07:07 -05:00
// Impress ViewShells
::sd::DrawViewShell::RegisterInterface(pMod);
::sd::OutlineViewShell::RegisterInterface(pMod);
::sd::PresentationViewShell::RegisterInterface(pMod);
2000-09-18 11:07:07 -05:00
// Draw ViewShell
::sd::GraphicViewShell::RegisterInterface(pMod);
2000-09-18 11:07:07 -05:00
// Impress ObjectShells
::sd::BezierObjectBar::RegisterInterface(pMod);
::sd::TextObjectBar::RegisterInterface(pMod);
::sd::GraphicObjectBar::RegisterInterface(pMod);
2000-09-18 11:07:07 -05:00
// Media ObjectShell
::sd::MediaObjectBar::RegisterInterface(pMod);
// Table ObjectShell
::sd::ui::table::RegisterInterfaces(pMod);
// View shells for the side panes.
::sd::slidesorter::SlideSorterViewShell::RegisterInterface (pMod);
::sd::toolpanel::ToolPanelViewShell::RegisterInterface(pMod);
// Tell the tool panel view shell to register the interfaces of its
// controls.
::sd::toolpanel::ToolPanelViewShell::RegisterControls();
2000-09-18 11:07:07 -05:00
}