LCOV - code coverage report
Current view: top level - basctl/source/basicide - basidectrlr.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 37 0.0 %
Date: 2012-08-25 Functions: 0 11 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           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                 :            : #include <basidectrlr.hxx>
      22                 :            : #include <cppuhelper/queryinterface.hxx>
      23                 :            : #include <comphelper/sequence.hxx>
      24                 :            : #include <com/sun/star/beans/PropertyAttribute.hpp>
      25                 :            : 
      26                 :            : #include <vcl/syswin.hxx>
      27                 :            : 
      28                 :            : #include <basidesh.hxx>
      29                 :            : 
      30                 :            : 
      31                 :            : using namespace com::sun::star;
      32                 :            : using namespace com::sun::star::uno;
      33                 :            : using namespace com::sun::star::beans;
      34                 :            : 
      35                 :            : 
      36                 :            : #define PROPERTY_ID_ICONID      1
      37                 :            : #define PROPERTY_ICONID         ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IconId" ) )
      38                 :            : 
      39                 :            : 
      40                 :            : //----------------------------------------------------------------------------
      41                 :            : 
      42                 :          0 : BasicIDEController::BasicIDEController( BasicIDEShell* pViewShell )
      43                 :            :     :OPropertyContainer( m_aBHelper )
      44                 :            :     ,SfxBaseController( pViewShell )
      45                 :          0 :     ,m_nIconId( ICON_MACROLIBRARY )
      46                 :            : {
      47                 :          0 :     registerProperty( PROPERTY_ICONID, PROPERTY_ID_ICONID, PropertyAttribute::READONLY, &m_nIconId, ::getCppuType( &m_nIconId ) );
      48                 :          0 : }
      49                 :            : 
      50                 :            : //----------------------------------------------------------------------------
      51                 :            : 
      52                 :          0 : BasicIDEController::~BasicIDEController()
      53                 :            : {
      54                 :          0 : }
      55                 :            : 
      56                 :            : // XInterface
      57                 :            : //----------------------------------------------------------------------------
      58                 :            : 
      59                 :          0 : Any SAL_CALL BasicIDEController::queryInterface( const Type & rType ) throw(RuntimeException)
      60                 :            : {
      61                 :          0 :     Any aReturn = SfxBaseController::queryInterface( rType );
      62                 :          0 :     if ( !aReturn.hasValue() )
      63                 :          0 :         aReturn = OPropertyContainer::queryInterface( rType );
      64                 :            : 
      65                 :          0 :     return aReturn;
      66                 :            : }
      67                 :            : 
      68                 :            : //----------------------------------------------------------------------------
      69                 :            : 
      70                 :          0 : void SAL_CALL BasicIDEController::acquire() throw()
      71                 :            : {
      72                 :          0 :     SfxBaseController::acquire();
      73                 :          0 : }
      74                 :            : 
      75                 :            : //----------------------------------------------------------------------------
      76                 :            : 
      77                 :          0 : void SAL_CALL BasicIDEController::release() throw()
      78                 :            : {
      79                 :          0 :     SfxBaseController::release();
      80                 :          0 : }
      81                 :            : 
      82                 :            : 
      83                 :            : // XTypeProvider ( ::SfxBaseController )
      84                 :            : //----------------------------------------------------------------------------
      85                 :            : 
      86                 :          0 : Sequence< Type > SAL_CALL BasicIDEController::getTypes() throw(RuntimeException)
      87                 :            : {
      88                 :            :     Sequence< Type > aTypes = ::comphelper::concatSequences(
      89                 :            :         SfxBaseController::getTypes(),
      90                 :            :         OPropertyContainer::getTypes()
      91                 :          0 :         );
      92                 :            : 
      93                 :          0 :     return aTypes;
      94                 :            : }
      95                 :            : 
      96                 :            : //----------------------------------------------------------------------------
      97                 :            : 
      98                 :          0 : Sequence< sal_Int8 > SAL_CALL BasicIDEController::getImplementationId() throw(RuntimeException)
      99                 :            : {
     100                 :            :     static ::cppu::OImplementationId * pId = 0;
     101                 :          0 :     if ( !pId )
     102                 :            :     {
     103                 :          0 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
     104                 :          0 :         if ( !pId )
     105                 :            :         {
     106                 :          0 :             static ::cppu::OImplementationId aId;
     107                 :          0 :             pId = &aId;
     108                 :          0 :         }
     109                 :            :     }
     110                 :          0 :     return pId->getImplementationId();
     111                 :            : }
     112                 :            : 
     113                 :            : // XPropertySet
     114                 :            : //----------------------------------------------------------------------------
     115                 :            : 
     116                 :          0 : Reference< beans::XPropertySetInfo > SAL_CALL BasicIDEController::getPropertySetInfo() throw(RuntimeException)
     117                 :            : {
     118                 :          0 :     Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
     119                 :          0 :     return xInfo;
     120                 :            : }
     121                 :            : 
     122                 :            : // OPropertySetHelper
     123                 :            : //----------------------------------------------------------------------------
     124                 :            : 
     125                 :          0 : ::cppu::IPropertyArrayHelper& BasicIDEController::getInfoHelper()
     126                 :            : {
     127                 :          0 :     return *getArrayHelper();
     128                 :            : }
     129                 :            : 
     130                 :            : // OPropertyArrayUsageHelper
     131                 :            : //----------------------------------------------------------------------------
     132                 :            : 
     133                 :          0 : ::cppu::IPropertyArrayHelper* BasicIDEController::createArrayHelper( ) const
     134                 :            : {
     135                 :          0 :     Sequence< Property > aProps;
     136                 :          0 :     describeProperties( aProps );
     137                 :          0 :     return new ::cppu::OPropertyArrayHelper( aProps );
     138                 :            : }
     139                 :            : 
     140                 :            : //----------------------------------------------------------------------------
     141                 :            : 
     142                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10