3ddb33b445
2008/04/01 12:38:37 thb 1.17.14.2: #i85898# Stripping all external header guards 2008/03/31 13:57:15 rt 1.17.14.1: #i87441# Change license header to LPGL v3.
141 lines
4.4 KiB
C++
141 lines
4.4 KiB
C++
/*************************************************************************
|
|
*
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: sddll1.cxx,v $
|
|
* $Revision: 1.19 $
|
|
*
|
|
* This file is part of OpenOffice.org.
|
|
*
|
|
* 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.
|
|
*
|
|
* 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).
|
|
*
|
|
* 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.
|
|
*
|
|
************************************************************************/
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
#include "precompiled_sd.hxx"
|
|
|
|
|
|
#include <svtools/moduleoptions.hxx>
|
|
#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"
|
|
#ifndef SD_SLIDEBROWSER_SLIDE_SORTER_VIEW_SHELL_HXX
|
|
#include "SlideSorterViewShell.hxx"
|
|
#endif
|
|
#ifndef SD_SLIDEBROWSER_TASK_PANE_VIEW_SHELL_HXX
|
|
#include "TaskPaneViewShell.hxx"
|
|
#endif
|
|
#include "FactoryIds.hxx"
|
|
#include "sdmod.hxx"
|
|
#include "app.hrc"
|
|
|
|
namespace sd { namespace ui { namespace table {
|
|
extern void RegisterInterfaces( SfxModule* pMod );
|
|
} } }
|
|
|
|
|
|
/*************************************************************************
|
|
|*
|
|
|* 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);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
|*
|
|
|* Register all Interfaces
|
|
|*
|
|
\************************************************************************/
|
|
|
|
void SdDLL::RegisterInterfaces()
|
|
{
|
|
// Modul
|
|
SfxModule* pMod = SD_MOD();
|
|
SdModule::RegisterInterface(pMod);
|
|
|
|
// View shell base.
|
|
::sd::ViewShellBase::RegisterInterface(pMod);
|
|
|
|
// DocShells
|
|
::sd::DrawDocShell::RegisterInterface(pMod);
|
|
::sd::GraphicDocShell::RegisterInterface(pMod);
|
|
|
|
// Impress ViewShells
|
|
::sd::DrawViewShell::RegisterInterface(pMod);
|
|
::sd::OutlineViewShell::RegisterInterface(pMod);
|
|
::sd::PresentationViewShell::RegisterInterface(pMod);
|
|
|
|
// Draw ViewShell
|
|
::sd::GraphicViewShell::RegisterInterface(pMod);
|
|
|
|
// Impress ObjectShells
|
|
::sd::BezierObjectBar::RegisterInterface(pMod);
|
|
::sd::TextObjectBar::RegisterInterface(pMod);
|
|
::sd::GraphicObjectBar::RegisterInterface(pMod);
|
|
|
|
// 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::TaskPaneViewShell::RegisterInterface(pMod);
|
|
// Tell the task pane view shell to register the interfaces of its
|
|
// controls.
|
|
::sd::toolpanel::TaskPaneViewShell::RegisterControls();
|
|
}
|