summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2002-11-11 07:17:56 +0000
committerKai Sommerfeld <kso@openoffice.org>2002-11-11 07:17:56 +0000
commit5b4825eb55aee045e43f2e73f532f89e288d18e8 (patch)
treed29eef4b1cdd44132d2cabfb9c46592a2e38ffcc
parent07f99f4002ac0471ec5dff11e18b592ad5321adc (diff)
#104677# - Added attribute OPTIONAL.
-rw-r--r--udkapi/com/sun/star/beans/PropertyAttribute.idl137
1 files changed, 74 insertions, 63 deletions
diff --git a/udkapi/com/sun/star/beans/PropertyAttribute.idl b/udkapi/com/sun/star/beans/PropertyAttribute.idl
index e0f496771..3ff579279 100644
--- a/udkapi/com/sun/star/beans/PropertyAttribute.idl
+++ b/udkapi/com/sun/star/beans/PropertyAttribute.idl
@@ -2,9 +2,9 @@
*
* $RCSfile: PropertyAttribute.idl,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: mi $ $Date: 2002-10-03 12:43:38 $
+ * last change: $Author: kso $ $Date: 2002-11-11 08:17:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -58,85 +58,96 @@
*
*
************************************************************************/
-#ifndef __com_sun_star_beans_PropertyAttribute_idl__
-#define __com_sun_star_beans_PropertyAttribute_idl__
-
-
-//=============================================================================
-
- module com { module sun { module star { module beans {
-
-//=============================================================================
-
+#ifndef __com_sun_star_beans_PropertyAttribute_idl__
+#define __com_sun_star_beans_PropertyAttribute_idl__
+
+
+//=============================================================================
+
+ module com { module sun { module star { module beans {
+
+//=============================================================================
+
/** These values are used to specify the behavior of a <type>Property</type>.
*/
constants PropertyAttribute
-{
- //-------------------------------------------------------------------------
-
- /** indicates that a property value can be void.
-
+{
+ //-------------------------------------------------------------------------
+
+ /** indicates that a property value can be void.
+
<p>It does not mean that the type of the property is void!
*/
- const short MAYBEVOID = 1;
-
- //-------------------------------------------------------------------------
-
- /** indicates that a <type>PropertyChangeEvent</type> will be fired
- to all registered <type>XPropertyChangeListener</type>s whenever the
+ const short MAYBEVOID = 1;
+
+ //-------------------------------------------------------------------------
+
+ /** indicates that a <type>PropertyChangeEvent</type> will be fired
+ to all registered <type>XPropertyChangeListener</type>s whenever the
value of this property changes.
*/
- const short BOUND = 2;
-
- //-------------------------------------------------------------------------
-
- /** indicates that a <type>PropertyChangeEvent</type> will be fired
- to all registered <type>XVetoableChangeListener</type>s whenever the
- value of this property changes.
-
+ const short BOUND = 2;
+
+ //-------------------------------------------------------------------------
+
+ /** indicates that a <type>PropertyChangeEvent</type> will be fired
+ to all registered <type>XVetoableChangeListener</type>s whenever the
+ value of this property changes.
+
<p>This always implies that the property is <em>bound</em>, too. </p>
*/
- const short CONSTRAINED = 4;
-
- //-------------------------------------------------------------------------
-
+ const short CONSTRAINED = 4;
+
+ //-------------------------------------------------------------------------
+
/** indicates that the value of the property is not persistent.
*/
- const short TRANSIENT = 8;
-
- //-------------------------------------------------------------------------
-
+ const short TRANSIENT = 8;
+
+ //-------------------------------------------------------------------------
+
/** indicates that the value of the property is read-only.
*/
- const short READONLY = 16;
-
- //-------------------------------------------------------------------------
-
+ const short READONLY = 16;
+
+ //-------------------------------------------------------------------------
+
/** indicates that the value of the property can be ambiguous.
*/
- const short MAYBEAMBIGUOUS = 32;
-
- //-------------------------------------------------------------------------
-
+ const short MAYBEAMBIGUOUS = 32;
+
+ //-------------------------------------------------------------------------
+
/** indicates that the property can be set to default.
*/
- const short MAYBEDEFAULT = 64;
-
- //-------------------------------------------------------------------------
-
- /** indicates that the property can be removed
+ const short MAYBEDEFAULT = 64;
+
+ //-------------------------------------------------------------------------
+
+ /** indicates that the property can be removed
(i.e., by calling <member>XPropertyContainer::removeProperty</member>).
*/
- const short REMOVEABLE = 128;
-
- //-------------------------------------------------------------------------
+ const short REMOVEABLE = 128;
+
+ //-------------------------------------------------------------------------
/** same as <const>PropertyAttribute::REMOVEABLE</const>.
*/
- const short REMOVABLE = 128;
-};
-
-//=============================================================================
-
-}; }; }; };
-
-#endif
+ const short REMOVABLE = 128;
+
+ /** indicates that a property is optional.
+
+ <p>This attribute is not of interest for concrete property
+ implementations. It's needed for property specifications inside
+ service specifications in UNOIDL.
+
+ @see com::sun::star::reflection::PropertyDescription
+ @see com::sun::star::reflection::XServiceTypeDescription
+ */
+ const short OPTIONAL = 256;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif