LCOV - code coverage report
Current view: top level - sfx2/source/appl - appmain.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 10 100.0 %
Date: 2012-08-25 Functions: 6 8 75.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 8 12 66.7 %

           Branch data     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                 :            : 
      21                 :            : #define _SDINTERN_HXX
      22                 :            : 
      23                 :            : #include <stdio.h>
      24                 :            : #include <svtools/ehdl.hxx>
      25                 :            : #include <unotools/startoptions.hxx>
      26                 :            : #include <svl/itempool.hxx>
      27                 :            : #include <svl/urihelper.hxx>
      28                 :            : #include <svtools/helpopt.hxx>
      29                 :            : #include <framework/sfxhelperfunctions.hxx>
      30                 :            : #include <rtl/ustring.hxx>
      31                 :            : #include <com/sun/star/uno/Exception.hpp>
      32                 :            : #include <com/sun/star/uno/RuntimeException.hpp>
      33                 :            : #include <com/sun/star/uno/Reference.hxx>
      34                 :            : 
      35                 :            : #include "sfxtypes.hxx"
      36                 :            : #include "appdata.hxx"
      37                 :            : #include <sfx2/docfac.hxx>
      38                 :            : #include <sfx2/app.hxx>
      39                 :            : #include "arrdecl.hxx"
      40                 :            : #include <sfx2/dispatch.hxx>
      41                 :            : #include "sfx2/sfxresid.hxx"
      42                 :            : #include <sfx2/fcontnr.hxx>
      43                 :            : #include <sfx2/viewsh.hxx>
      44                 :            : #include <sfx2/msgpool.hxx>
      45                 :            : #include <sfx2/mnumgr.hxx>
      46                 :            : #include <sfx2/appuno.hxx>
      47                 :            : #include "app.hrc"
      48                 :            : #include <sfx2/docfile.hxx>
      49                 :            : #include "workwin.hxx"
      50                 :            : 
      51                 :            : DBG_NAME(SfxAppMainNewMenu)
      52                 :            : DBG_NAME(SfxAppMainBmkMenu)
      53                 :            : DBG_NAME(SfxAppMainWizMenu)
      54                 :            : DBG_NAME(SfxAppMainOLEReg)
      55                 :            : DBG_NAME(SfxAppMainCHAOSReg)
      56                 :            : 
      57                 :            : //===================================================================
      58                 :            : 
      59 [ +  + ][ -  + ]:      56036 : TYPEINIT2(SfxApplication,SfxShell,SfxBroadcaster);
                 [ -  + ]
      60                 :            : 
      61                 :            : //--------------------------------------------------------------------
      62                 :        233 : void SfxApplication::Init
      63                 :            : (
      64                 :            : )
      65                 :            : 
      66                 :            : /*  [Description]
      67                 :            : 
      68                 :            :     This virtual method is called from SFx through Application::Main(),
      69                 :            :     before Execute() is called and:
      70                 :            :     - the Intro is already displayed,
      71                 :            :     - the Applications window exists, but it is still hidden,
      72                 :            :     - the Bindings already exist (Controller can be registered),
      73                 :            :     - the Init and Config-Manager already exists,
      74                 :            :     - the Standard-Controller already exists,
      75                 :            :     - the SFx-Shells have alredy registered their Interfaces.
      76                 :            : 
      77                 :            :     [Cross-reference]
      78                 :            : 
      79                 :            :     <SfxApplication::Exit()>
      80                 :            :     <SfxApplication::OpenClients()>
      81                 :            : */
      82                 :            : {
      83                 :        233 : }
      84                 :            : 
      85                 :            : //--------------------------------------------------------------------
      86                 :            : 
      87                 :        158 : void SfxApplication::Exit()
      88                 :            : 
      89                 :            : /*  [Description]
      90                 :            : 
      91                 :            :     This virtual method is called from SFx through Application::Main(),
      92                 :            :     after Execute() has finished and
      93                 :            :     - the configuration (SfxConfigManager) was already saved,
      94                 :            :     - the window postions etc. in the SfxIniManager were written,
      95                 :            :     - the Application widow still exists, but is hidden
      96                 :            :     - all Documents and their Views already are closed.
      97                 :            :     - Dispatcher, Bindings etc. already destroyed.
      98                 :            : 
      99                 :            :     [Cross-reference]
     100                 :            :     <SfxApplication::Init(int,char*[])>
     101                 :            : */
     102                 :            : 
     103                 :            : {
     104                 :        158 : }
     105                 :            : 
     106                 :            : //-------------------------------------------------------------------------
     107                 :            : 
     108                 :       3823 : SfxFilterMatcher& SfxApplication::GetFilterMatcher()
     109                 :            : {
     110         [ +  + ]:       3823 :     if( !pAppData_Impl->pMatcher )
     111                 :            :     {
     112         [ +  - ]:         66 :         pAppData_Impl->pMatcher = new SfxFilterMatcher();
     113                 :            :         URIHelper::SetMaybeFileHdl( STATIC_LINK(
     114         [ +  - ]:         66 :             pAppData_Impl->pMatcher, SfxFilterMatcher, MaybeFileHdl_Impl ) );
     115                 :            :     }
     116                 :       3823 :     return *pAppData_Impl->pMatcher;
     117                 :            : }
     118                 :            : 
     119                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10