LCOV - code coverage report
Current view: top level - sd/source/ui/view - drvwshrg.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 36 36 100.0 %
Date: 2015-06-13 12:38:46 Functions: 16 20 80.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 "DrawViewShell.hxx"
      21             : #include <sfx2/request.hxx>
      22             : #include <sfx2/templdlg.hxx>
      23             : #include <sfx2/infobar.hxx>
      24             : 
      25             : #include <svx/fontwork.hxx>
      26             : #include <svx/bmpmask.hxx>
      27             : #include <svx/imapdlg.hxx>
      28             : #include <svx/SvxColorChildWindow.hxx>
      29             : #include <sfx2/objface.hxx>
      30             : #include <sfx2/sidebar/SidebarChildWindow.hxx>
      31             : #include <svx/f3dchild.hxx>
      32             : #include <svx/tbxcustomshapes.hxx>
      33             : 
      34             : #include <svx/svxids.hrc>
      35             : #include <svx/hyperdlg.hxx>
      36             : #include <avmedia/mediaplayer.hxx>
      37             : 
      38             : #include "app.hrc"
      39             : #include "strings.hrc"
      40             : #include "res_bmp.hrc"
      41             : #include "glob.hrc"
      42             : #include "SpellDialogChildWindow.hxx"
      43             : #include "sdresid.hxx"
      44             : #include "DrawDocShell.hxx"
      45             : #include "GraphicDocShell.hxx"
      46             : #include "GraphicViewShell.hxx"
      47             : #include "AnimationChildWindow.hxx"
      48             : #include "NavigatorChildWindow.hxx"
      49             : 
      50             : using namespace sd;
      51             : #define DrawViewShell
      52             : #include "sdslots.hxx"
      53             : #define GraphicViewShell
      54             : #include "sdgslots.hxx"
      55             : 
      56             : namespace sd {
      57             : 
      58             : /**
      59             :  * Declare SFX-Slotmap and Standardinterface
      60             :  */
      61             : 
      62       12035 : SFX_IMPL_INTERFACE(DrawViewShell, SfxShell)
      63             : 
      64          21 : void DrawViewShell::InitInterface_Impl()
      65             : {
      66          21 :     GetStaticInterface()->RegisterPopupMenu(SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP));
      67             : 
      68          21 :     GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
      69             : 
      70          21 :     GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
      71          21 :     GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
      72          21 :     GetStaticInterface()->RegisterChildWindow(SvxColorChildWindow::GetChildWindowId());
      73          21 :     GetStaticInterface()->RegisterChildWindow(AnimationChildWindow::GetChildWindowId());
      74          21 :     GetStaticInterface()->RegisterChildWindow(Svx3DChildWindow::GetChildWindowId());
      75          21 :     GetStaticInterface()->RegisterChildWindow(SvxBmpMaskChildWindow::GetChildWindowId());
      76          21 :     GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
      77          21 :     GetStaticInterface()->RegisterChildWindow(SvxHlinkDlgWrapper::GetChildWindowId());
      78          21 :     GetStaticInterface()->RegisterChildWindow(::sd::SpellDialogChildWindow::GetChildWindowId());
      79          21 :     GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
      80          21 :     GetStaticInterface()->RegisterChildWindow(::avmedia::MediaPlayer::GetChildWindowId());
      81          21 :     GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
      82          21 : }
      83             : 
      84       17733 : TYPEINIT1( DrawViewShell, ViewShell );
      85             : 
      86             : // SdGraphicViewShell
      87       46979 : SFX_IMPL_INTERFACE(GraphicViewShell, SfxShell)
      88             : 
      89          21 : void GraphicViewShell::InitInterface_Impl()
      90             : {
      91          21 :     GetStaticInterface()->RegisterPopupMenu(SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP));
      92             : 
      93          21 :     GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
      94             : 
      95          21 :     GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
      96          21 :     GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
      97          21 :     GetStaticInterface()->RegisterChildWindow(SvxColorChildWindow::GetChildWindowId());
      98          21 :     GetStaticInterface()->RegisterChildWindow(Svx3DChildWindow::GetChildWindowId());
      99          21 :     GetStaticInterface()->RegisterChildWindow(SvxBmpMaskChildWindow::GetChildWindowId());
     100          21 :     GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
     101          21 :     GetStaticInterface()->RegisterChildWindow(SvxHlinkDlgWrapper::GetChildWindowId());
     102          21 :     GetStaticInterface()->RegisterChildWindow(::sd::SpellDialogChildWindow::GetChildWindowId());
     103          21 :     GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
     104          21 :     GetStaticInterface()->RegisterChildWindow(::avmedia::MediaPlayer::GetChildWindowId());
     105          21 :     GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
     106          21 : }
     107             : 
     108        8499 : TYPEINIT1( GraphicViewShell, DrawViewShell );
     109             : 
     110          66 : } // end of namespace sd
     111             : 
     112             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11