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