LCOV - code coverage report
Current view: top level - sd/source/ui/view - drvwshrg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 34 34 100.0 %
Date: 2012-08-25 Functions: 14 18 77.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 18 28 64.3 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : 
      30                 :            : #include "DrawViewShell.hxx"
      31                 :            : #include <sfx2/templdlg.hxx>
      32                 :            : 
      33                 :            : #include <svx/fontwork.hxx>
      34                 :            : #include <svx/bmpmask.hxx>
      35                 :            : #include <svx/galbrws.hxx>
      36                 :            : #include <svx/imapdlg.hxx>
      37                 :            : #include <svx/colrctrl.hxx>
      38                 :            : #include <sfx2/objface.hxx>
      39                 :            : #include <svx/f3dchild.hxx>
      40                 :            : #include <svx/tbxcustomshapes.hxx>
      41                 :            : 
      42                 :            : #include <svx/svxids.hrc>
      43                 :            : #include <svx/hyperdlg.hxx>
      44                 :            : #include <avmedia/mediaplayer.hxx>
      45                 :            : 
      46                 :            : 
      47                 :            : #include "app.hrc"
      48                 :            : #include "strings.hrc"
      49                 :            : #include "res_bmp.hrc"
      50                 :            : #include "glob.hrc"
      51                 :            : #include "SpellDialogChildWindow.hxx"
      52                 :            : #include "sdresid.hxx"
      53                 :            : #include "DrawDocShell.hxx"
      54                 :            : #include "GraphicDocShell.hxx"
      55                 :            : #include "GraphicViewShell.hxx"
      56                 :            : #include "AnimationChildWindow.hxx"
      57                 :            : #include "NavigatorChildWindow.hxx"
      58                 :            : #include "LayerDialogChildWindow.hxx"
      59                 :            : 
      60                 :            : using namespace sd;
      61                 :            : #define DrawViewShell
      62                 :            : #include "sdslots.hxx"
      63                 :            : #define GraphicViewShell
      64                 :            : #include "sdgslots.hxx"
      65                 :            : 
      66                 :            : namespace sd {
      67                 :            : 
      68                 :            : /*************************************************************************
      69                 :            : |*
      70                 :            : |* SFX-Slotmap und Standardinterface deklarieren
      71                 :            : |*
      72                 :            : \************************************************************************/
      73                 :            : 
      74                 :            : 
      75 [ +  + ][ +  - ]:      17875 : SFX_IMPL_INTERFACE(DrawViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL))
                 [ +  - ]
      76                 :            : {
      77 [ +  - ][ +  - ]:         25 :     SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) );
      78                 :         25 :     SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR );
      79                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() );
      80                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() );
      81                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() );
      82                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( AnimationChildWindow::GetChildWindowId() );
      83                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() );
      84                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() );
      85                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() );
      86                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() );
      87                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() );
      88                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() );
      89                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG );
      90                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
      91                 :         25 : }
      92                 :            : 
      93                 :            : 
      94 [ +  + ][ -  + ]:      18390 : TYPEINIT1( DrawViewShell, ViewShell );
      95                 :            : 
      96                 :            : 
      97                 :            : // SdGraphicViewShell
      98                 :            : 
      99                 :            : 
     100 [ +  + ][ +  - ]:      68452 : SFX_IMPL_INTERFACE(GraphicViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL)) //SOH...
                 [ +  - ]
     101                 :            : {
     102 [ +  - ][ +  - ]:         25 :     SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) );
     103                 :         25 :     SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR );
     104                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SID_TASKPANE );
     105                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() );
     106                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() );
     107                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxColorChildWindow::GetChildWindowId() );
     108                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( Svx3DChildWindow::GetChildWindowId() );
     109                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxBmpMaskChildWindow::GetChildWindowId() );
     110                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( GalleryChildWindow::GetChildWindowId() );
     111                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxIMapDlgChildWindow::GetChildWindowId() );
     112                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SvxHlinkDlgWrapper::GetChildWindowId() );
     113                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( ::sd::SpellDialogChildWindow::GetChildWindowId() );
     114                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG );
     115                 :         25 :     SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
     116                 :         25 : }
     117                 :            : 
     118 [ -  + ][ +  + ]:      11205 : TYPEINIT1( GraphicViewShell, DrawViewShell );
     119                 :            : 
     120                 :            : 
     121                 :            : } // end of namespace sd
     122                 :            : 
     123                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10