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

Generated by: LCOV version 1.10