Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _TOOLKIT_ROADMAPENTRY_HXX_
20 : #define _TOOLKIT_ROADMAPENTRY_HXX_
21 :
22 : #include <cppuhelper/implbase1.hxx>
23 : #include <comphelper/uno3.hxx>
24 : #include <comphelper/broadcasthelper.hxx>
25 : #include <comphelper/propertycontainer.hxx>
26 : #include <comphelper/proparrhlp.hxx>
27 : #include <comphelper/proparrhlp.hxx>
28 : #include <com/sun/star/lang/XServiceInfo.hpp>
29 :
30 :
31 : #define RM_PROPERTY_ID_LABEL 1
32 : #define RM_PROPERTY_ID_ID 2
33 : #define RM_PROPERTY_ID_ENABLED 4
34 : #define RM_PROPERTY_ID_INTERACTIVE 5
35 :
36 : typedef ::cppu::WeakImplHelper1 < ::com::sun::star::lang::XServiceInfo
37 : > ORoadmapEntry_Base;
38 :
39 0 : class ORoadmapEntry :public ORoadmapEntry_Base
40 : ,public ::comphelper::OMutexAndBroadcastHelper
41 : ,public ::comphelper::OPropertyContainer
42 : ,public ::comphelper::OPropertyArrayUsageHelper< ORoadmapEntry >
43 : {
44 :
45 : public:
46 : ORoadmapEntry();
47 :
48 : protected:
49 : DECLARE_XINTERFACE() // merge XInterface implementations
50 : DECLARE_XTYPEPROVIDER() // merge XTypeProvider implementations
51 :
52 : /// @see ::com::sun::star::beans::XPropertySet
53 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
54 : SAL_CALL getPropertySetInfo()
55 : throw (::com::sun::star::uno::RuntimeException);
56 :
57 : // OPropertySetHelper
58 : virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
59 :
60 : // OPropertyArrayUsageHelper
61 : virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const;
62 :
63 : virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
64 : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
65 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
66 :
67 :
68 : // other stuff
69 : // ...
70 : // (e.g. DECLARE_SERVICE_INFO();)
71 :
72 : protected:
73 : // <properties>
74 : ::rtl::OUString m_sLabel;
75 : sal_Int32 m_nID;
76 : sal_Bool m_bEnabled;
77 : sal_Bool m_bInteractive;
78 :
79 : // </properties>
80 : };
81 :
82 : #endif
83 :
84 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|