merged tag ooo/OOO330_m14
[LibreOffice.git] / udkapi / com / sun / star / beans / PropertyState.idl
blobcebca6913b4edc35a154e2bc747a51e4c7095447
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_beans_PropertyState_idl__
28 #define __com_sun_star_beans_PropertyState_idl__
31 //=============================================================================
33 module com { module sun { module star { module beans {
35 //=============================================================================
37 /** This enumeration lists the states that a property value can have.
39 <p>The state consists of two aspects: </p>
40 <ol>
41 <li>whether a value is available or void, </li>
42 <li>whether the value is stored in the property set itself or is a
43 default, or ambiguous. </li>
44 </ol>
46 @see XPropertyState
47 @see Property
49 published enum PropertyState
51 //-------------------------------------------------------------------------
53 /** The value of the property is stored in the PropertySet itself.
55 <p>The property value must be available and of the specified type.
56 If the <member>PropertyAttribute</member> field in the struct
57 <type>Property</type> contains <const>PropertyAttribute::MAYBEVOID</const>,
58 then the value may be void. </p>
60 DIRECT_VALUE,
62 //-------------------------------------------------------------------------
64 /** The value of the property is available from a master (e.g., template).
66 <p>The <member>PropertyAttribute</member> field in the struct
67 <type>Property</type> must contain the
68 <const>PropertyAttribute::MAYBEDEFAULT</const> flag. The property
69 value must be available and of the specified type. If the
70 <member>PropertyAttribute</member> field in the struct <type>Property</type>
71 contains <const>PropertyAttribute::MAYBEVOID</const>, then the
72 value may be void. </p>
74 DEFAULT_VALUE,
76 //-------------------------------------------------------------------------
78 /** The value of the property is only a recommendation because there
79 are multiple values for this property (e.g., from a multi selection).
81 <p>The <member>PropertyAttribute</member> field in the struct
82 <type>Property</type> must contain the
83 <const>PropertyAttribute::MAYBEAMBIGUOUS</const> flag. The
84 property value must be available and of the specified type.
85 If the Attribute field in the struct Property contains
86 <const>PropertyAttribute::MAYBEVOID</const>, then the value
87 may be void. </p>
89 AMBIGUOUS_VALUE
93 //=============================================================================
95 }; }; }; };
97 #endif