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 _TOOLKIT_ROADMAPENTRY_HXX_
24 #define _TOOLKIT_ROADMAPENTRY_HXX_
25 
26 #include <cppuhelper/implbase1.hxx>
27 #include <comphelper/uno3.hxx>
28 #include <comphelper/broadcasthelper.hxx>
29 #include <comphelper/propertycontainer.hxx>
30 #include <comphelper/proparrhlp.hxx>
31 #include <comphelper/proparrhlp.hxx>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
33 
34 
35 #define RM_PROPERTY_ID_LABEL	    1
36 #define RM_PROPERTY_ID_ID	        2
37 #define RM_PROPERTY_ID_ENABLED	    4
38 #define RM_PROPERTY_ID_INTERACTIVE	5
39 
40 typedef ::cppu::WeakImplHelper1 <   ::com::sun::star::lang::XServiceInfo
41                                 >   ORoadmapEntry_Base;
42 
43 class ORoadmapEntry :public ORoadmapEntry_Base
44             ,public ::comphelper::OMutexAndBroadcastHelper
45             ,public ::comphelper::OPropertyContainer
46             ,public ::comphelper::OPropertyArrayUsageHelper< ORoadmapEntry >
47 {
48 
49 public:
50        ORoadmapEntry();
51 
52 protected:
53     DECLARE_XINTERFACE()        // merge XInterface implementations
54     DECLARE_XTYPEPROVIDER()     // merge XTypeProvider implementations
55 
56     /// @see ::com::sun::star::beans::XPropertySet
57     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
58         SAL_CALL getPropertySetInfo()
59         throw (::com::sun::star::uno::RuntimeException);
60 
61     // OPropertySetHelper
62     virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
63 
64     // OPropertyArrayUsageHelper
65     virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const;
66 
67     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
68     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
69     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
70 
71 
72     // other stuff
73     // ...
74     // (e.g. DECLARE_SERVICE_INFO();)
75 
76 protected:
77     // <properties>
78     ::rtl::OUString     m_sLabel;
79 	sal_Int32		    m_nID;
80 	sal_Bool		    m_bEnabled;
81 	sal_Bool		    m_bInteractive;
82 
83     // </properties>
84 };
85 
86 #endif
87 
88