1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_registry_types_h
21 #define INCLUDED_registry_types_h
23 #include "sal/types.h"
29 /** specifies the typeclass of a binary type blob.
31 The general structure of a binary type blob is always the same. It depends
32 on the typeclass which parts of the blob are filled with data or not.
35 /** specifies that the structure of the given blob is unknown and can't be
40 /** specifies that the blob represents an interface type. An interface blob
41 can contain a base interface, attributes and methods.
45 /** specifies that the blob represents a module type. A module blob can
46 contain a base module and constant members (fields).
50 /** specifies that the blob represents a struct type. A struct blob can
51 contain a base struct and members (fields).
55 /** specifies that the blob represents an enum type. An enum blob can
56 contain enum values which are accessible as fields.
60 /** specifies that the blob represents an exception type. An exception blob
61 can contain a base exception and members (fields).
65 /** specifies that the blob represents a typedef type. A typedef blob can
70 /** specifies that the blob represents a service type. A service blob can
71 contain a base service, properties (fields), references to services or
76 /** specifies that the blob represents a singleton type (a named object)
77 which refers exactly one existing service.
81 /// deprecated, not used.
84 /** specifies that the blob represents a constants type. A constants blob
85 can contain constant types as fields.
90 a union type was evaluated but currently not supported.
96 Flag for published entities.
98 Used in combination with RT_TYPE_INTERFACE, RT_TYPE_STRUCT, RT_TYPE_ENUM,
99 RT_TYPE_EXCEPTION, RT_TYPE_TYPEDEF, RT_TYPE_SERVICE, RT_TYPE_SINGLETON,
100 or RT_TYPE_CONSTANTS to mark an entity as published.
102 (The value of this enumerator is chosen so that it is unlikely that its
103 addition changes the underlying type of this enumeration for any C/C++
108 RT_TYPE_PUBLISHED
= 0x4000
112 /** specifies the type for the field access.
114 Fields in a type blob are used for different types. Among others they were
115 used for properties of services and these poperties can have several flags.
117 @see RT_ACCESS_INVALID
118 @see RT_ACCESS_READONLY
119 @see RT_ACCESS_OPTIONAL
120 @see RT_ACCESS_MAYBEVOID
122 @see RT_ACCESS_CONSTRAINED
123 @see RT_ACCESS_TRANSIENT
124 @see RT_ACCESS_MAYBEAMBIGUOUS
125 @see RT_ACCESS_MAYBEDEFAULT
126 @see RT_ACCESS_REMOVEABLE
127 @see RT_ACCESS_ATTRIBUTE
128 @see RT_ACCESS_PROPERTY
130 @see RT_ACCESS_READWRITE
131 @see RT_ACCESS_DEFAULT
132 @see RT_ACCESS_PARAMETERIZED_TYPE
133 @see RT_ACCESS_PUBLISHED
135 typedef sal_uInt16 RTFieldAccess
;
137 /// specifies a unknown flag
138 #define RT_ACCESS_INVALID 0x0000
139 /// specifies a readonly property/attribute
140 #define RT_ACCESS_READONLY 0x0001
141 /// specifies a property as optional that means that it must not be implemented.
142 #define RT_ACCESS_OPTIONAL 0x0002
143 /// @see com::sun::star::beans::PropertyAttribute
144 #define RT_ACCESS_MAYBEVOID 0x0004
145 /// @see com::sun::star::beans::PropertyAttribute
146 #define RT_ACCESS_BOUND 0x0008
147 /// @see com::sun::star::beans::PropertyAttribute
148 #define RT_ACCESS_CONSTRAINED 0x0010
149 /// @see com::sun::star::beans::PropertyAttribute
150 #define RT_ACCESS_TRANSIENT 0x0020
151 /// @see com::sun::star::beans::PropertyAttribute
152 #define RT_ACCESS_MAYBEAMBIGUOUS 0x0040
153 /// @see com::sun::star::beans::PropertyAttribute
154 #define RT_ACCESS_MAYBEDEFAULT 0x0080
155 /// @see com::sun::star::beans::PropertyAttribute
156 #define RT_ACCESS_REMOVEABLE 0x0100
157 /// @see com::sun::star::beans::PropertyAttribute
158 #define RT_ACCESS_ATTRIBUTE 0x0200
159 /// specifies that the field is a property
160 #define RT_ACCESS_PROPERTY 0x0400
161 /// specifies that the field is a constant or enum value
162 #define RT_ACCESS_CONST 0x0800
163 /// specifies that the property/attribute has read/write access
164 #define RT_ACCESS_READWRITE 0x1000
165 /// only to describe a union default label
166 #define RT_ACCESS_DEFAULT 0x2000
169 Indicates that a member of a polymorphic struct type template is of a
172 Only valid for fields that represent members of polymorphic struct type
177 #define RT_ACCESS_PARAMETERIZED_TYPE 0x4000
180 Flag for published individual constants.
182 Used in combination with RT_ACCESS_CONST for individual constants (which are
183 not members of constant groups).
187 #define RT_ACCESS_PUBLISHED 0x8000
189 /** specifies the type of a field value.
191 A field can have a value if it repsresents a constant or an enum value.
208 /** specifies a variable container for field values.
210 union RTConstValueUnion
{
221 sal_Unicode
const * aString
;
224 /** specifies the mode of a method.
226 A method can be synchron or asynchron (oneway). The const attribute for
227 methods was removed so that the const values are deprecated.
230 /// indicates an invalid mode
233 /// indicates the asynchronous mode of a method
237 RT_MODE_ONEWAY_CONST
,
239 /// indicated the synchronous mode of a method
243 RT_MODE_TWOWAY_CONST
,
246 Indicates an extended attribute getter (that has a 'raises' clause) of an
251 RT_MODE_ATTRIBUTE_GET
,
254 Indicates an extended attribute setter (that has a 'raises' clause) of an
259 RT_MODE_ATTRIBUTE_SET
262 /** specifies the mode of a parameter.
264 There are three paramter modes which have impact of the handling of the
265 paramter in the UNO bridges and the UNO code generation.
268 /// indicates an invalid parameter mode
269 RT_PARAM_INVALID
= 0,
271 /// indicates a pure in parameter which is used by value
274 /// indicates a pure out parameter which is used by reference
277 /// indicates a in and out parameter which is used also by reference
281 Indicates a rest parameter (currently only valid for service
284 This value can be combined with any of RT_PARAM_IN, RT_PARAM_OUT, and
285 RT_PARAM_INOUT (however, service constructors currently only allow
286 RT_PARAM_IN, anyway).
293 /** specifies the type of a reference used in a service description.
295 enum RTReferenceType
{
296 /// the reference type is unknown
299 /** the service support the interface that means a implementation of this
300 service must implement this interface.
305 the service observes the interface.
309 /** the service exports the specified service that means this service
310 provides also the specified service.
315 the service needs the specified service that means in the context of
316 this service the specified service will be used or must be available.
321 Indicates a type parameter of a polymorphic struct type template.
325 RT_REF_TYPE_PARAMETER
334 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */