xref: /trunk/main/chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx (revision 91144cd0085a7583d2099b982122deb2184ab956)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef CHART_WALLFLOORWRAPPER_HXX
24 #define CHART_WALLFLOORWRAPPER_HXX
25 
26 #include "WrappedPropertySet.hxx"
27 #include "ServiceMacros.hxx"
28 #include <cppuhelper/implbase2.hxx>
29 #include <comphelper/uno3.hxx>
30 #include <cppuhelper/interfacecontainer.hxx>
31 #include <com/sun/star/lang/XComponent.hpp>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
33 #include <com/sun/star/uno/XComponentContext.hpp>
34 
35 #include <boost/shared_ptr.hpp>
36 
37 namespace chart
38 {
39 
40 namespace wrapper
41 {
42 
43 class Chart2ModelContact;
44 
45 class WallFloorWrapper : public ::cppu::ImplInheritanceHelper2<
46                       WrappedPropertySet
47                     , com::sun::star::lang::XComponent
48                     , com::sun::star::lang::XServiceInfo
49                     >
50 {
51 public:
52     WallFloorWrapper( bool bWall, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
53     virtual ~WallFloorWrapper();
54 
55     /// XServiceInfo declarations
56     APPHELPER_XSERVICEINFO_DECL()
57 
58     // ____ XComponent ____
59     virtual void SAL_CALL dispose();
60     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference<
61                                             ::com::sun::star::lang::XEventListener >& xListener );
62     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference<
63                                                ::com::sun::star::lang::XEventListener >& aListener );
64 
65 protected:
66     // ____ WrappedPropertySet ____
67     virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& getPropertySequence();
68     virtual const std::vector< WrappedProperty* > createWrappedProperties();
69     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getInnerPropertySet();
70 
71 private:
72     ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
73     ::cppu::OInterfaceContainerHelper           m_aEventListenerContainer;
74 
75     bool m_bWall;
76 };
77 
78 } //  namespace wrapper
79 } //  namespace chart
80 
81 // CHART_WALLFLOORWRAPPER_HXX
82 #endif
83