1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PropertyAttribute.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_beans_PropertyAttribute_idl__
31 #define __com_sun_star_beans_PropertyAttribute_idl__
33 //=============================================================================
35 module com
{ module sun
{ module star
{ module beans
{
37 //=============================================================================
39 /** These values are used to specify the behavior of a <type>Property</type>.
41 published constants PropertyAttribute
43 //-------------------------------------------------------------------------
45 /** indicates that a property value can be void.
47 <p>It does not mean that the type of the property is void!
49 const short MAYBEVOID
= 1;
51 //-------------------------------------------------------------------------
53 /** indicates that a <type>PropertyChangeEvent</type> will be fired
54 to all registered <type>XPropertyChangeListener</type>s whenever the
55 value of this property changes.
57 const short BOUND
= 2;
59 //-------------------------------------------------------------------------
61 /** indicates that a <type>PropertyChangeEvent</type> will be fired
62 to all registered <type>XVetoableChangeListener</type>s whenever the
63 value of this property changes.
65 <p>This always implies that the property is <em>bound</em>, too. </p>
67 const short CONSTRAINED
= 4;
69 //-------------------------------------------------------------------------
71 /** indicates that the value of the property is not persistent.
73 const short TRANSIENT
= 8;
75 //-------------------------------------------------------------------------
77 /** indicates that the value of the property is read-only.
79 const short READONLY = 16;
81 //-------------------------------------------------------------------------
83 /** indicates that the value of the property can be ambiguous.
85 const short MAYBEAMBIGUOUS
= 32;
87 //-------------------------------------------------------------------------
89 /** indicates that the property can be set to default.
91 const short MAYBEDEFAULT
= 64;
93 //-------------------------------------------------------------------------
95 /** indicates that the property can be removed
96 (i.e., by calling <member>XPropertyContainer::removeProperty</member>).
98 const short REMOVEABLE
= 128;
100 //-------------------------------------------------------------------------
102 same as <const>PropertyAttribute::REMOVEABLE</const>.
104 const short REMOVABLE
= 128;
106 //-------------------------------------------------------------------------
107 /** indicates that a property is optional.
109 <p>This attribute is not of interest for concrete property
110 implementations. It's needed for property specifications inside
111 service specifications in UNOIDL.
113 @see com::sun::star::reflection::XPropertyTypeDescription
114 @see com::sun::star::reflection::XServiceTypeDescription
117 const short OPTIONAL = 256;
120 //=============================================================================