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