LCOV - code coverage report
Current view: top level - basctl/source/basicide - basidectrlr.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 34 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 13 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             : #include "basidectrlr.hxx"
      21             : 
      22             : #include "basidesh.hxx"
      23             : 
      24             : #include <com/sun/star/beans/PropertyAttribute.hpp>
      25             : 
      26             : #include <vcl/syswin.hxx>
      27             : 
      28             : namespace basctl
      29             : {
      30             : 
      31             : using namespace com::sun::star;
      32             : using namespace com::sun::star::uno;
      33             : using namespace com::sun::star::beans;
      34             : 
      35             : namespace
      36             : {
      37             : 
      38             : int const nPropertyIconId = 1;
      39           0 : OUString const sPropertyIconId("IconId");
      40             : 
      41             : }
      42             : 
      43           0 : Controller::Controller (Shell* pViewShell)
      44             :     :OPropertyContainer( m_aBHelper )
      45             :     ,SfxBaseController( pViewShell )
      46           0 :     ,m_nIconId( ICON_MACROLIBRARY )
      47             : {
      48             :     registerProperty(
      49             :         sPropertyIconId, nPropertyIconId,
      50             :         PropertyAttribute::READONLY,
      51           0 :         &m_nIconId, cppu::UnoType<decltype(m_nIconId)>::get()
      52           0 :     );
      53           0 : }
      54             : 
      55           0 : Controller::~Controller()
      56           0 : { }
      57             : 
      58             : // XInterface
      59           0 : Any SAL_CALL Controller::queryInterface( const Type & rType ) throw(RuntimeException, std::exception)
      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           0 : void SAL_CALL Controller::acquire() throw()
      69             : {
      70           0 :     SfxBaseController::acquire();
      71           0 : }
      72             : 
      73           0 : void SAL_CALL Controller::release() throw()
      74             : {
      75           0 :     SfxBaseController::release();
      76           0 : }
      77             : 
      78             : // XTypeProvider ( ::SfxBaseController )
      79           0 : Sequence< Type > SAL_CALL Controller::getTypes() throw(RuntimeException, std::exception)
      80             : {
      81             :     Sequence< Type > aTypes = ::comphelper::concatSequences(
      82             :         SfxBaseController::getTypes(),
      83             :         getBaseTypes()
      84           0 :     );
      85             : 
      86           0 :     return aTypes;
      87             : }
      88             : 
      89           0 : Sequence< sal_Int8 > SAL_CALL Controller::getImplementationId() throw(RuntimeException, std::exception)
      90             : {
      91           0 :     return css::uno::Sequence<sal_Int8>();
      92             : }
      93             : 
      94             : // XPropertySet
      95           0 : Reference< beans::XPropertySetInfo > SAL_CALL Controller::getPropertySetInfo() throw(RuntimeException, std::exception)
      96             : {
      97           0 :     Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
      98           0 :     return xInfo;
      99             : }
     100             : 
     101             : // OPropertySetHelper
     102           0 : ::cppu::IPropertyArrayHelper& Controller::getInfoHelper()
     103             : {
     104           0 :     return *getArrayHelper();
     105             : }
     106             : 
     107             : // OPropertyArrayUsageHelper
     108           0 : ::cppu::IPropertyArrayHelper* Controller::createArrayHelper( ) const
     109             : {
     110           0 :     Sequence< Property > aProps;
     111           0 :     describeProperties( aProps );
     112           0 :     return new ::cppu::OPropertyArrayHelper( aProps );
     113             : }
     114             : 
     115           0 : } // namespace basctl
     116             : 
     117             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11