LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/app - sddll1.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 28 28 100.0 %
Date: 2012-12-27 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #include <unotools/moduleoptions.hxx>
      21             : #include "sddll.hxx"
      22             : #include "diactrl.hxx"
      23             : #include "tbx_ww.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"
      42             : #include "sdmod.hxx"
      43             : #include "app.hrc"
      44             : 
      45             : namespace sd { namespace ui { namespace table {
      46             :     extern void RegisterInterfaces( SfxModule* pMod );
      47             : } } }
      48             : 
      49             : 
      50             : /*************************************************************************
      51             : |*
      52             : |* Register all Factorys
      53             : |*
      54             : \************************************************************************/
      55             : 
      56             : 
      57           3 : void SdDLL::RegisterFactorys()
      58             : {
      59           3 :     if (SvtModuleOptions().IsImpress())
      60             :     {
      61             :         ::sd::ImpressViewShellBase::RegisterFactory (
      62           2 :             ::sd::IMPRESS_FACTORY_ID);
      63             :         ::sd::SlideSorterViewShellBase::RegisterFactory (
      64           2 :             ::sd::SLIDE_SORTER_FACTORY_ID);
      65             :         ::sd::OutlineViewShellBase::RegisterFactory (
      66           2 :             ::sd::OUTLINE_FACTORY_ID);
      67             :         ::sd::PresentationViewShellBase::RegisterFactory (
      68           2 :             ::sd::PRESENTATION_FACTORY_ID);
      69             :     }
      70           3 :     if (SvtModuleOptions().IsDraw())
      71             :     {
      72           2 :         ::sd::GraphicViewShellBase::RegisterFactory (::sd::DRAW_FACTORY_ID);
      73             :     }
      74           3 : }
      75             : 
      76             : 
      77             : 
      78             : /*************************************************************************
      79             : |*
      80             : |* Register all Interfaces
      81             : |*
      82             : \************************************************************************/
      83             : 
      84           3 : void SdDLL::RegisterInterfaces()
      85             : {
      86             :     // Module
      87           3 :     SfxModule* pMod = SD_MOD();
      88           3 :     SdModule::RegisterInterface(pMod);
      89             : 
      90             :     // View shell base.
      91           3 :     ::sd::ViewShellBase::RegisterInterface(pMod);
      92             : 
      93             :     // DocShells
      94           3 :     ::sd::DrawDocShell::RegisterInterface(pMod);
      95           3 :     ::sd::GraphicDocShell::RegisterInterface(pMod);
      96             : 
      97             :     // Impress ViewShells
      98           3 :     ::sd::DrawViewShell::RegisterInterface(pMod);
      99           3 :     ::sd::OutlineViewShell::RegisterInterface(pMod);
     100           3 :     ::sd::PresentationViewShell::RegisterInterface(pMod);
     101             : 
     102             :     // Draw ViewShell
     103           3 :     ::sd::GraphicViewShell::RegisterInterface(pMod);
     104             : 
     105             :     // Impress ObjectShells
     106           3 :     ::sd::BezierObjectBar::RegisterInterface(pMod);
     107           3 :     ::sd::TextObjectBar::RegisterInterface(pMod);
     108           3 :     ::sd::GraphicObjectBar::RegisterInterface(pMod);
     109             : 
     110             :     // Media ObjectShell
     111           3 :     ::sd::MediaObjectBar::RegisterInterface(pMod);
     112             : 
     113             :     // Table ObjectShell
     114           3 :     ::sd::ui::table::RegisterInterfaces(pMod);
     115             : 
     116             :     // View shells for the side panes.
     117           3 :     ::sd::slidesorter::SlideSorterViewShell::RegisterInterface (pMod);
     118           3 :     ::sd::toolpanel::ToolPanelViewShell::RegisterInterface(pMod);
     119             :     // Tell the tool panel view shell to register the interfaces of its
     120             :     // controls.
     121           3 :     ::sd::toolpanel::ToolPanelViewShell::RegisterControls();
     122          12 : }
     123             : 
     124             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10