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 .
21 module com
{ module sun
{ module star
{ module beans
{
24 /** These values are used to specify the behavior of a Property.
26 published constants PropertyAttribute
29 /** indicates that a property value can be void.
31 <p>It does not mean that the type of the property is void!</p>
33 const short MAYBEVOID
= 1;
36 /** indicates that a PropertyChangeEvent will be fired
37 to all registered XPropertyChangeListeners whenever the
38 value of this property changes.
40 const short BOUND
= 2;
43 /** indicates that a PropertyChangeEvent will be fired
44 to all registered XVetoableChangeListeners whenever the
45 value of this property is about to change.
47 <p>This always implies that the property is <em>bound</em>, too. </p>
49 const short CONSTRAINED
= 4;
52 /** indicates that the value of the property is not persistent.
54 const short TRANSIENT
= 8;
57 /** indicates that the value of the property is read-only.
59 const short READONLY = 16;
62 /** indicates that the value of the property can be ambiguous.
64 const short MAYBEAMBIGUOUS
= 32;
67 /** indicates that the property can be set to default.
69 const short MAYBEDEFAULT
= 64;
72 /** indicates that the property can be removed
73 (i.e., by calling XPropertyContainer::removeProperty()).
75 const short REMOVABLE
= 128;
78 same as PropertyAttribute::REMOVABLE.
80 const short REMOVEABLE
= 128;
82 /** indicates that a property is optional.
84 <p>This attribute is not of interest for concrete property
85 implementations. It's needed for property specifications inside
86 service specifications in UNOIDL.</p>
88 @see com::sun::star::reflection::XPropertyTypeDescription
89 @see com::sun::star::reflection::XServiceTypeDescription
92 const short OPTIONAL = 256;
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */