merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / model / main / Wall.hxx
blob09c4a5969e082f9faa0e3dd532eec94bf3625463
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: Wall.hxx,v $
10 * $Revision: 1.5 $
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_WALL_HXX
31 #define CHART_WALL_HXX
33 #include <com/sun/star/util/XCloneable.hpp>
34 #include <com/sun/star/util/XModifyBroadcaster.hpp>
35 #include <com/sun/star/util/XModifyListener.hpp>
36 #include "MutexContainer.hxx"
37 #include "OPropertySet.hxx"
38 #include <cppuhelper/weak.hxx>
40 #include "ServiceMacros.hxx"
41 #include "ModifyListenerHelper.hxx"
42 #include <cppuhelper/implbase3.hxx>
43 #include <comphelper/uno3.hxx>
45 namespace chart
48 namespace impl
50 typedef ::cppu::WeakImplHelper3<
51 ::com::sun::star::util::XCloneable,
52 ::com::sun::star::util::XModifyBroadcaster,
53 ::com::sun::star::util::XModifyListener >
54 Wall_Base;
57 class Wall :
58 public MutexContainer,
59 public impl::Wall_Base,
60 public ::property::OPropertySet
62 public:
63 Wall();
64 virtual ~Wall();
66 /// XServiceInfo declarations
67 APPHELPER_XSERVICEINFO_DECL()
69 /// merge XInterface implementations
70 DECLARE_XINTERFACE()
72 protected:
73 explicit Wall( const Wall & rOther );
75 // ____ OPropertySet ____
76 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
77 throw(::com::sun::star::beans::UnknownPropertyException);
79 // ____ OPropertySet ____
80 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
82 // ____ XPropertySet ____
83 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
84 getPropertySetInfo()
85 throw (::com::sun::star::uno::RuntimeException);
87 // virtual sal_Bool SAL_CALL convertFastPropertyValue
88 // ( ::com::sun::star::uno::Any & rConvertedValue,
89 // ::com::sun::star::uno::Any & rOldValue,
90 // sal_Int32 nHandle,
91 // const ::com::sun::star::uno::Any& rValue )
92 // throw (::com::sun::star::lang::IllegalArgumentException);
94 // ____ XCloneable ____
95 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
96 throw (::com::sun::star::uno::RuntimeException);
98 // ____ XModifyBroadcaster ____
99 virtual void SAL_CALL addModifyListener(
100 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
101 throw (::com::sun::star::uno::RuntimeException);
102 virtual void SAL_CALL removeModifyListener(
103 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
104 throw (::com::sun::star::uno::RuntimeException);
106 // ____ XModifyListener ____
107 virtual void SAL_CALL modified(
108 const ::com::sun::star::lang::EventObject& aEvent )
109 throw (::com::sun::star::uno::RuntimeException);
111 // ____ XEventListener (base of XModifyListener) ____
112 virtual void SAL_CALL disposing(
113 const ::com::sun::star::lang::EventObject& Source )
114 throw (::com::sun::star::uno::RuntimeException);
116 // ____ OPropertySet ____
117 virtual void firePropertyChangeEvent();
118 using OPropertySet::disposing;
120 void fireModifyEvent();
122 private:
124 ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
127 } // namespace chart
129 // CHART_WALL_HXX
130 #endif