1*de7b3f82SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*de7b3f82SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*de7b3f82SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*de7b3f82SAndrew Rist * distributed with this work for additional information 6*de7b3f82SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*de7b3f82SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*de7b3f82SAndrew Rist * "License"); you may not use this file except in compliance 9*de7b3f82SAndrew Rist * with the License. You may obtain a copy of the License at 10*de7b3f82SAndrew Rist * 11*de7b3f82SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*de7b3f82SAndrew Rist * 13*de7b3f82SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*de7b3f82SAndrew Rist * software distributed under the License is distributed on an 15*de7b3f82SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*de7b3f82SAndrew Rist * KIND, either express or implied. See the License for the 17*de7b3f82SAndrew Rist * specific language governing permissions and limitations 18*de7b3f82SAndrew Rist * under the License. 19*de7b3f82SAndrew Rist * 20*de7b3f82SAndrew Rist *************************************************************/ 21*de7b3f82SAndrew Rist 22*de7b3f82SAndrew Rist 23cdf0e10cSrcweir #ifndef CHART_MINMAXLINEWRAPPER_HXX 24cdf0e10cSrcweir #define CHART_MINMAXLINEWRAPPER_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "ServiceMacros.hxx" 27cdf0e10cSrcweir #include "MutexContainer.hxx" 28cdf0e10cSrcweir #include "WrappedIgnoreProperty.hxx" 29cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include <com/sun/star/chart2/XDiagram.hpp> 33cdf0e10cSrcweir 34cdf0e10cSrcweir // header for class OPropertyArrayHelper 35cdf0e10cSrcweir #include <cppuhelper/propshlp.hxx> 36cdf0e10cSrcweir #include <cppuhelper/implbase6.hxx> 37cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertySet.hpp> 38cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertyStates.hpp> 39cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp> 40cdf0e10cSrcweir #include <com/sun/star/lang/XComponent.hpp> 41cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 42cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp> 43cdf0e10cSrcweir 44cdf0e10cSrcweir #include <boost/shared_ptr.hpp> 45cdf0e10cSrcweir 46cdf0e10cSrcweir namespace chart 47cdf0e10cSrcweir { 48cdf0e10cSrcweir 49cdf0e10cSrcweir namespace wrapper 50cdf0e10cSrcweir { 51cdf0e10cSrcweir 52cdf0e10cSrcweir class Chart2ModelContact; 53cdf0e10cSrcweir 54cdf0e10cSrcweir class MinMaxLineWrapper : public MutexContainer 55cdf0e10cSrcweir , public ::cppu::WeakImplHelper6 56cdf0e10cSrcweir < ::com::sun::star::lang::XComponent 57cdf0e10cSrcweir , ::com::sun::star::lang::XServiceInfo 58cdf0e10cSrcweir , ::com::sun::star::beans::XPropertySet 59cdf0e10cSrcweir , ::com::sun::star::beans::XMultiPropertySet 60cdf0e10cSrcweir , ::com::sun::star::beans::XPropertyState 61cdf0e10cSrcweir , ::com::sun::star::beans::XMultiPropertyStates 62cdf0e10cSrcweir // , ::com::sun::star::uno::XWeak // implemented by WeakImplHelper(optional interface) 63cdf0e10cSrcweir // , ::com::sun::star::uno::XInterface // implemented by WeakImplHelper 64cdf0e10cSrcweir // , ::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper 65cdf0e10cSrcweir > 66cdf0e10cSrcweir { 67cdf0e10cSrcweir public: 68cdf0e10cSrcweir MinMaxLineWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); 69cdf0e10cSrcweir virtual ~MinMaxLineWrapper(); 70cdf0e10cSrcweir 71cdf0e10cSrcweir /// XServiceInfo declarations 72cdf0e10cSrcweir APPHELPER_XSERVICEINFO_DECL() 73cdf0e10cSrcweir 74cdf0e10cSrcweir // ____ XComponent ____ 75cdf0e10cSrcweir virtual void SAL_CALL dispose() 76cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 77cdf0e10cSrcweir virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< 78cdf0e10cSrcweir ::com::sun::star::lang::XEventListener >& xListener ) 79cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 80cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< 81cdf0e10cSrcweir ::com::sun::star::lang::XEventListener >& aListener ) 82cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 83cdf0e10cSrcweir 84cdf0e10cSrcweir //XPropertySet 85cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException); 86cdf0e10cSrcweir 87cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) 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); 88cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 89cdf0e10cSrcweir 90cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 91cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 92cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 93cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 94cdf0e10cSrcweir 95cdf0e10cSrcweir //XMultiPropertySet 96cdf0e10cSrcweir //getPropertySetInfo() already declared in XPropertySet 97cdf0e10cSrcweir virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 98cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException); 99cdf0e10cSrcweir virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 100cdf0e10cSrcweir virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 101cdf0e10cSrcweir virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 102cdf0e10cSrcweir 103cdf0e10cSrcweir //XPropertyState 104cdf0e10cSrcweir virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 105cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 106cdf0e10cSrcweir virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 107cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 108cdf0e10cSrcweir 109cdf0e10cSrcweir //XMultiPropertyStates 110cdf0e10cSrcweir //getPropertyStates() already declared in XPropertyState 111cdf0e10cSrcweir virtual void SAL_CALL setAllPropertiesToDefault( ) throw (::com::sun::star::uno::RuntimeException); 112cdf0e10cSrcweir virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 113cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 114cdf0e10cSrcweir 115cdf0e10cSrcweir private: //methods 116cdf0e10cSrcweir ::cppu::IPropertyArrayHelper& getInfoHelper(); 117cdf0e10cSrcweir 118cdf0e10cSrcweir private: //member 119cdf0e10cSrcweir ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact; 120cdf0e10cSrcweir ::cppu::OInterfaceContainerHelper m_aEventListenerContainer; 121cdf0e10cSrcweir 122cdf0e10cSrcweir WrappedIgnoreProperty m_aWrappedLineJointProperty; 123cdf0e10cSrcweir }; 124cdf0e10cSrcweir 125cdf0e10cSrcweir } // namespace wrapper 126cdf0e10cSrcweir } // namespace chart 127cdf0e10cSrcweir 128cdf0e10cSrcweir // CHART_MINMAXLINEWRAPPER_HXX 129cdf0e10cSrcweir #endif 130