office-gobmx/sd/source/ui/app/sddll1.cxx
Frank Schoenheit [fs] f391eb8768 slidecopy: initial version of a "Tool Panel"
At the moment, this implementation is parallel to the existing TaskPane implementation, but on the medium term, it is
intended to replace it. No change in functionality is planned for the moment, just the panel selection is done via
a tab bar, instead of the the "jumping drawers".
Pending tasks (as known so far):
- Accessibility. No implementation at all, yet.
- showing/hiding tool panels from the "View" drop down menu
- connection to the resource framework. At the moment, de/activating panels completely bypasses the resource
  framework.
- alternative implementation of the PanelDeckLayouter which mimics the old design. To be activated by default, for
  the moment.
- removal of the (old, by then) TaskPane implementation. Care needs to be taken that the framework API stays
  unchanged, i.e., the current ToolPanel resource must be renamed back to RightPane when RightPane is not
  occupied anymore by the old implementation. Same for other resource names.
2010-03-15 13:53:19 +01:00

139 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 <unotools/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"
#include "SlideSorterViewShell.hxx"
#include "taskpane/ToolPanelViewShell.hxx"
#include "TaskPaneViewShell.hxx"
#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);
::sd::toolpanel::ToolPanelViewShell::RegisterInterface(pMod);
// Tell the tool panel view shell to register the interfaces of its
// controls.
::sd::toolpanel::ToolPanelViewShell::RegisterControls();
}