merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / chartapiwrapper / MinMaxLineWrapper.hxx
blob4d9a0a29e0e36f2de6a1221a4f5e1673baf26b62
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MinMaxLineWrapper.hxx,v $
10 * $Revision: 1.3.44.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART_MINMAXLINEWRAPPER_HXX
31 #define CHART_MINMAXLINEWRAPPER_HXX
33 #include "ServiceMacros.hxx"
34 #include "MutexContainer.hxx"
35 #include "WrappedIgnoreProperty.hxx"
36 #include <cppuhelper/interfacecontainer.hxx>
39 #include <com/sun/star/chart2/XDiagram.hpp>
41 // header for class OPropertyArrayHelper
42 #include <cppuhelper/propshlp.hxx>
43 #include <cppuhelper/implbase6.hxx>
44 #include <com/sun/star/beans/XMultiPropertySet.hpp>
45 #include <com/sun/star/beans/XMultiPropertyStates.hpp>
46 #include <com/sun/star/beans/XPropertyState.hpp>
47 #include <com/sun/star/lang/XComponent.hpp>
48 #include <com/sun/star/lang/XServiceInfo.hpp>
49 #include <com/sun/star/uno/XComponentContext.hpp>
51 #include <boost/shared_ptr.hpp>
53 namespace chart
56 namespace wrapper
59 class Chart2ModelContact;
61 class MinMaxLineWrapper : public MutexContainer
62 , public ::cppu::WeakImplHelper6
63 < ::com::sun::star::lang::XComponent
64 , ::com::sun::star::lang::XServiceInfo
65 , ::com::sun::star::beans::XPropertySet
66 , ::com::sun::star::beans::XMultiPropertySet
67 , ::com::sun::star::beans::XPropertyState
68 , ::com::sun::star::beans::XMultiPropertyStates
69 // , ::com::sun::star::uno::XWeak // implemented by WeakImplHelper(optional interface)
70 // , ::com::sun::star::uno::XInterface // implemented by WeakImplHelper
71 // , ::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper
74 public:
75 MinMaxLineWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
76 virtual ~MinMaxLineWrapper();
78 /// XServiceInfo declarations
79 APPHELPER_XSERVICEINFO_DECL()
81 // ____ XComponent ____
82 virtual void SAL_CALL dispose()
83 throw (::com::sun::star::uno::RuntimeException);
84 virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference<
85 ::com::sun::star::lang::XEventListener >& xListener )
86 throw (::com::sun::star::uno::RuntimeException);
87 virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference<
88 ::com::sun::star::lang::XEventListener >& aListener )
89 throw (::com::sun::star::uno::RuntimeException);
91 //XPropertySet
92 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException);
94 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);
95 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);
97 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);
98 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);
99 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);
100 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);
102 //XMultiPropertySet
103 //getPropertySetInfo() already declared in XPropertySet
104 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);
105 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);
106 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);
107 virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
108 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);
110 //XPropertyState
111 virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
112 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);
113 virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
114 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);
116 //XMultiPropertyStates
117 //getPropertyStates() already declared in XPropertyState
118 virtual void SAL_CALL setAllPropertiesToDefault( ) throw (::com::sun::star::uno::RuntimeException);
119 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);
120 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);
122 private: //methods
123 ::cppu::IPropertyArrayHelper& getInfoHelper();
125 private: //member
126 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
127 ::cppu::OInterfaceContainerHelper m_aEventListenerContainer;
129 ::com::sun::star::uno::Reference<
130 ::com::sun::star::beans::XPropertySetInfo >
131 m_xInfo;//outer PropertySetInfo
133 ::boost::shared_ptr< ::cppu::OPropertyArrayHelper > m_pPropertyArrayHelper;
135 WrappedIgnoreProperty m_aWrappedLineJointProperty;
138 } // namespace wrapper
139 } // namespace chart
141 // CHART_MINMAXLINEWRAPPER_HXX
142 #endif