LCOV - code coverage report
Current view: top level - sfx2/source/appl - appreg.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 31 0.0 %
Date: 2014-04-14 Functions: 0 4 0.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             : 
      21             : #include <vcl/toolbox.hxx>
      22             : 
      23             : #include <sfx2/app.hxx>
      24             : #include "appdata.hxx"
      25             : #include "arrdecl.hxx"
      26             : #include <sfx2/sfxhelp.hxx>
      27             : #include <sfx2/templdlg.hxx>
      28             : #include "inettbc.hxx"
      29             : #include <sfx2/stbitem.hxx>
      30             : #include <sfx2/infobar.hxx>
      31             : #include <sfx2/navigat.hxx>
      32             : #include <sfx2/taskpane.hxx>
      33             : #include <sfx2/module.hxx>
      34             : #include <sfx2/viewfrm.hxx>
      35             : #include "partwnd.hxx"
      36             : #include <sfx2/sfxsids.hrc>
      37             : #include "recfloat.hxx"
      38             : #include <sfx2/objsh.hxx>
      39             : #include <sfx2/viewsh.hxx>
      40             : #include <sfx2/objface.hxx>
      41             : #include <sfx2/mnuitem.hxx>
      42             : 
      43             : 
      44             : 
      45           0 : void SfxApplication::Registrations_Impl()
      46             : {
      47             :     // Interfaces
      48           0 :     SfxApplication::RegisterInterface();
      49           0 :     SfxModule::RegisterInterface();
      50           0 :     SfxViewFrame::RegisterInterface();
      51           0 :     SfxObjectShell::RegisterInterface();
      52           0 :     SfxViewShell::RegisterInterface();
      53             : 
      54             :     // ChildWindows
      55           0 :     SfxRecordingFloatWrapper_Impl::RegisterChildWindow();
      56           0 :     SfxNavigatorWrapper::RegisterChildWindow( false, NULL, SFX_CHILDWIN_NEVERHIDE );
      57           0 :     SfxPartChildWnd_Impl::RegisterChildWindow();
      58           0 :     SfxTemplateDialogWrapper::RegisterChildWindow(true);
      59           0 :     SfxDockingWrapper::RegisterChildWindow();
      60           0 :     SfxInfoBarContainerChild::RegisterChildWindow( true, NULL, SFX_CHILDWIN_NEVERHIDE );
      61             : 
      62             :     // Controller
      63           0 :     SfxToolBoxControl::RegisterControl(SID_REPEAT);
      64           0 :     SfxURLToolBoxControl_Impl::RegisterControl(SID_OPENURL);
      65           0 :     SfxRecentFilesToolBoxControl::RegisterControl( SID_OPENDOC );
      66           0 : };
      67             : 
      68             : 
      69             : 
      70           0 : void SfxApplication::RegisterToolBoxControl_Impl( SfxModule *pMod, SfxTbxCtrlFactory *pFact )
      71             : {
      72           0 :     if ( pMod )
      73             :     {
      74           0 :         pMod->RegisterToolBoxControl( pFact );
      75           0 :         return;
      76             :     }
      77             : 
      78             : #ifdef DBG_UTIL
      79             :     for ( sal_uInt16 n=0; n<pAppData_Impl->pTbxCtrlFac->size(); n++ )
      80             :     {
      81             :         SfxTbxCtrlFactory *pF = (*pAppData_Impl->pTbxCtrlFac)[n];
      82             :         if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId &&
      83             :             (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
      84             :         {
      85             :             DBG_WARNING("TbxController registration is not clearly defined!");
      86             :         }
      87             :     }
      88             : #endif
      89             : 
      90           0 :     pAppData_Impl->pTbxCtrlFac->push_back( pFact );
      91             : }
      92             : 
      93             : 
      94             : 
      95           0 : void SfxApplication::RegisterStatusBarControl_Impl( SfxModule *pMod, SfxStbCtrlFactory *pFact )
      96             : {
      97           0 :     if ( pMod )
      98             :     {
      99           0 :         pMod->RegisterStatusBarControl( pFact );
     100           0 :         return;
     101             :     }
     102             : 
     103             : #ifdef DBG_UTIL
     104             :     for ( sal_uInt16 n=0; n<pAppData_Impl->pStbCtrlFac->size(); n++ )
     105             :     {
     106             :         SfxStbCtrlFactory *pF = (*pAppData_Impl->pStbCtrlFac)[n];
     107             :         if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId &&
     108             :             (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
     109             :         {
     110             :             DBG_WARNING("StbController registration is not clearly defined!");
     111             :         }
     112             :     }
     113             : #endif
     114             : 
     115           0 :     pAppData_Impl->pStbCtrlFac->push_back( pFact );
     116             : }
     117             : 
     118             : 
     119             : 
     120           0 : void SfxApplication::RegisterMenuControl_Impl( SfxModule *pMod, SfxMenuCtrlFactory *pFact )
     121             : {
     122           0 :     if ( pMod )
     123             :     {
     124           0 :         pMod->RegisterMenuControl( pFact );
     125           0 :         return;
     126             :     }
     127             : 
     128             : #ifdef DBG_UTIL
     129             :     for ( sal_uInt16 n=0; n<pAppData_Impl->pMenuCtrlFac->size(); n++ )
     130             :     {
     131             :         SfxMenuCtrlFactory *pF = (*pAppData_Impl->pMenuCtrlFac)[n];
     132             :         if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId &&
     133             :             (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
     134             :         {
     135             :             DBG_WARNING("MenuController register is not clearly defined!");
     136             :         }
     137             :     }
     138             : #endif
     139             : 
     140           0 :     pAppData_Impl->pMenuCtrlFac->push_back( pFact );
     141             : }
     142             : 
     143             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10