Update ooo320-m1
[ooovba.git] / chart2 / source / controller / chartapiwrapper / WallFloorWrapper.hxx
bloba8160ec79f6e54a48960b058f562eb4bd0221c47
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: WallFloorWrapper.hxx,v $
10 * $Revision: 1.3 $
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_WALLFLOORWRAPPER_HXX
31 #define CHART_WALLFLOORWRAPPER_HXX
33 #include "WrappedPropertySet.hxx"
34 #include "ServiceMacros.hxx"
35 #include <cppuhelper/implbase2.hxx>
36 #include <comphelper/uno3.hxx>
37 #include <cppuhelper/interfacecontainer.hxx>
38 #include <com/sun/star/lang/XComponent.hpp>
39 #include <com/sun/star/lang/XServiceInfo.hpp>
40 #include <com/sun/star/uno/XComponentContext.hpp>
42 #include <boost/shared_ptr.hpp>
44 namespace chart
47 namespace wrapper
50 class Chart2ModelContact;
52 class WallFloorWrapper : public ::cppu::ImplInheritanceHelper2<
53 WrappedPropertySet
54 , com::sun::star::lang::XComponent
55 , com::sun::star::lang::XServiceInfo
58 public:
59 WallFloorWrapper( bool bWall, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
60 virtual ~WallFloorWrapper();
62 /// XServiceInfo declarations
63 APPHELPER_XSERVICEINFO_DECL()
65 // ____ XComponent ____
66 virtual void SAL_CALL dispose()
67 throw (::com::sun::star::uno::RuntimeException);
68 virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference<
69 ::com::sun::star::lang::XEventListener >& xListener )
70 throw (::com::sun::star::uno::RuntimeException);
71 virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference<
72 ::com::sun::star::lang::XEventListener >& aListener )
73 throw (::com::sun::star::uno::RuntimeException);
75 protected:
76 // ____ WrappedPropertySet ____
77 virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& getPropertySequence();
78 virtual const std::vector< WrappedProperty* > createWrappedProperties();
79 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getInnerPropertySet();
81 private:
82 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
83 ::cppu::OInterfaceContainerHelper m_aEventListenerContainer;
85 bool m_bWall;
88 } // namespace wrapper
89 } // namespace chart
91 // CHART_WALLFLOORWRAPPER_HXX
92 #endif