1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef CHART_WALLFLOORWRAPPER_HXX
28 #define CHART_WALLFLOORWRAPPER_HXX
29 
30 #include "WrappedPropertySet.hxx"
31 #include "ServiceMacros.hxx"
32 #include <cppuhelper/implbase2.hxx>
33 #include <comphelper/uno3.hxx>
34 #include <cppuhelper/interfacecontainer.hxx>
35 #include <com/sun/star/lang/XComponent.hpp>
36 #include <com/sun/star/lang/XServiceInfo.hpp>
37 #include <com/sun/star/uno/XComponentContext.hpp>
38 
39 #include <boost/shared_ptr.hpp>
40 
41 namespace chart
42 {
43 
44 namespace wrapper
45 {
46 
47 class Chart2ModelContact;
48 
49 class WallFloorWrapper : public ::cppu::ImplInheritanceHelper2<
50                       WrappedPropertySet
51                     , com::sun::star::lang::XComponent
52                     , com::sun::star::lang::XServiceInfo
53                     >
54 {
55 public:
56     WallFloorWrapper( bool bWall, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
57 	virtual ~WallFloorWrapper();
58 
59     /// XServiceInfo declarations
60     APPHELPER_XSERVICEINFO_DECL()
61 
62     // ____ XComponent ____
63     virtual void SAL_CALL dispose()
64         throw (::com::sun::star::uno::RuntimeException);
65     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference<
66                                             ::com::sun::star::lang::XEventListener >& xListener )
67         throw (::com::sun::star::uno::RuntimeException);
68     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference<
69                                                ::com::sun::star::lang::XEventListener >& aListener )
70         throw (::com::sun::star::uno::RuntimeException);
71 
72 protected:
73     // ____ WrappedPropertySet ____
74     virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& getPropertySequence();
75     virtual const std::vector< WrappedProperty* > createWrappedProperties();
76     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getInnerPropertySet();
77 
78 private:
79     ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
80 	::cppu::OInterfaceContainerHelper           m_aEventListenerContainer;
81 
82     bool m_bWall;
83 };
84 
85 } //  namespace wrapper
86 } //  namespace chart
87 
88 // CHART_WALLFLOORWRAPPER_HXX
89 #endif
90