update credits
[LibreOffice.git] / include / comphelper / SettingsHelper.hxx
blob571fea104e50692747de5425cee6a19edcb84c74
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
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>
29 namespace comphelper
31 typedef cppu::WeakImplHelper3
33 ::com::sun::star::beans::XPropertySet,
34 ::com::sun::star::beans::XMultiPropertySet,
35 ::com::sun::star::lang::XServiceInfo
37 HelperBaseNoState;
38 class ChainableHelperNoState :
39 public HelperBaseNoState,
40 public ChainablePropertySet
42 public:
43 ChainableHelperNoState ( ChainablePropertySetInfo *pInfo, SolarMutex* pMutex = NULL)
44 : ChainablePropertySet ( pInfo, pMutex )
46 virtual ~ChainableHelperNoState () throw( ) {}
47 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 { return HelperBaseNoState::queryInterface( aType ); }
49 void SAL_CALL acquire( ) throw () SAL_OVERRIDE
50 { HelperBaseNoState::acquire( ); }
51 void SAL_CALL release( ) throw () SAL_OVERRIDE
52 { HelperBaseNoState::release( ); }
54 // XPropertySet
55 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 { return ChainablePropertySet::getPropertySetInfo(); }
58 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 { ChainablePropertySet::setPropertyValue ( aPropertyName, aValue ); }
61 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 { return ChainablePropertySet::getPropertyValue ( PropertyName ); }
64 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 { ChainablePropertySet::addPropertyChangeListener ( aPropertyName, xListener ); }
67 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 { ChainablePropertySet::removePropertyChangeListener ( aPropertyName, aListener ); }
70 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 { ChainablePropertySet::addVetoableChangeListener ( PropertyName, aListener ); }
73 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 { ChainablePropertySet::removeVetoableChangeListener ( PropertyName, aListener ); }
77 // XMultiPropertySet
78 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 { ChainablePropertySet::setPropertyValues ( aPropertyNames, aValues ); }
81 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 { return ChainablePropertySet::getPropertyValues ( aPropertyNames ); }
84 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 { ChainablePropertySet::addPropertiesChangeListener ( aPropertyNames, xListener ); }
87 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 { ChainablePropertySet::removePropertiesChangeListener ( xListener ); }
90 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 { ChainablePropertySet::firePropertiesChangeEvent ( aPropertyNames, xListener ); }
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */