LCOV - code coverage report
Current view: top level - include/comphelper - SettingsHelper.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 16 34 47.1 %
Date: 2015-06-13 12:38:46 Functions: 8 18 44.4 %
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             : #ifndef INCLUDED_COMPHELPER_SETTINGSHELPER_HXX
      21             : #define INCLUDED_COMPHELPER_SETTINGSHELPER_HXX
      22             : #include <com/sun/star/beans/XPropertySet.hpp>
      23             : #include <com/sun/star/beans/XMultiPropertySet.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <comphelper/ChainablePropertySet.hxx>
      26             : #include <comphelper/solarmutex.hxx>
      27             : #include <cppuhelper/implbase3.hxx>
      28             : 
      29             : namespace comphelper
      30             : {
      31             :     typedef  cppu::WeakImplHelper3
      32             :     <
      33             :         ::com::sun::star::beans::XPropertySet,
      34             :         ::com::sun::star::beans::XMultiPropertySet,
      35             :         ::com::sun::star::lang::XServiceInfo
      36             :     >
      37             :     HelperBaseNoState;
      38             :     class ChainableHelperNoState :
      39             :         public HelperBaseNoState,
      40             :         public ChainablePropertySet
      41             :     {
      42             :     public:
      43        5856 :         ChainableHelperNoState ( ChainablePropertySetInfo *pInfo, SolarMutex* pMutex = NULL)
      44        5856 :         : ChainablePropertySet ( pInfo, pMutex )
      45        5856 :         {}
      46        5856 :         virtual ~ChainableHelperNoState () throw( ) {}
      47          14 :         com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& aType ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      48          14 :         { return HelperBaseNoState::queryInterface( aType ); }
      49        5913 :         void SAL_CALL acquire(  ) throw () SAL_OVERRIDE
      50        5913 :         { HelperBaseNoState::acquire( ); }
      51        5913 :         void SAL_CALL release(  ) throw () SAL_OVERRIDE
      52        5913 :         { HelperBaseNoState::release( ); }
      53             : 
      54             :         // XPropertySet
      55          84 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  )
      56             :             throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      57          84 :         { return ChainablePropertySet::getPropertySetInfo(); }
      58         127 :         virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
      59             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      60         127 :         { ChainablePropertySet::setPropertyValue ( aPropertyName, aValue ); }
      61         275 :         virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
      62             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      63         275 :         { return ChainablePropertySet::getPropertyValue ( PropertyName ); }
      64           0 :         virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
      65             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      66           0 :         { ChainablePropertySet::addPropertyChangeListener ( aPropertyName, xListener ); }
      67           0 :         virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
      68             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      69           0 :         { ChainablePropertySet::removePropertyChangeListener ( aPropertyName, aListener ); }
      70           0 :         virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
      71             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      72           0 :         { ChainablePropertySet::addVetoableChangeListener ( PropertyName, aListener ); }
      73           0 :         virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
      74             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      75           0 :         { ChainablePropertySet::removeVetoableChangeListener ( PropertyName, aListener ); }
      76             : 
      77             :         // XMultiPropertySet
      78           0 :         virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
      79             :             throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      80           0 :         { ChainablePropertySet::setPropertyValues ( aPropertyNames, aValues ); }
      81           0 :         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames )
      82             :             throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      83           0 :         { return ChainablePropertySet::getPropertyValues ( aPropertyNames ); }
      84           0 :         virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
      85             :             throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      86           0 :         { ChainablePropertySet::addPropertiesChangeListener ( aPropertyNames, xListener ); }
      87           0 :         virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
      88             :             throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      89           0 :         { ChainablePropertySet::removePropertiesChangeListener ( xListener ); }
      90           0 :         virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
      91             :             throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      92           0 :         { ChainablePropertySet::firePropertiesChangeEvent ( aPropertyNames, xListener ); }
      93             :     };
      94             : }
      95             : 
      96             : #endif
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11