fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / udkapi / com / sun / star / beans / XPropertySet.idl
blobbcf97fa6edd995aac370c9fdc800ad7dab8e1dc6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #ifndef __com_sun_star_beans_XPropertySet_idl__
20 #define __com_sun_star_beans_XPropertySet_idl__
22 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/beans/XPropertySetInfo.idl>
26 #include <com/sun/star/beans/UnknownPropertyException.idl>
28 #include <com/sun/star/beans/PropertyVetoException.idl>
30 #include <com/sun/star/lang/IllegalArgumentException.idl>
32 #include <com/sun/star/lang/WrappedTargetException.idl>
34 #include <com/sun/star/beans/XPropertyChangeListener.idl>
36 #include <com/sun/star/beans/XVetoableChangeListener.idl>
40 module com { module sun { module star { module beans {
43 /** provides information about and access to the
44 properties from an implementation.
46 <p>There are three types of properties: </p>
48 <ul>
49 <li>bound properties </li>
50 <li>constrained properties </li>
51 <li>free properties </li>
52 </ul>
54 <p>You can listen to changes of bound properties with the
55 XPropertyChangeListener and you can veto changes
56 of constrained properties with the XVetoableChangeListener. </p>
58 <p>To implement inaccurate name access, you must support the
59 interface XExactName. </p>
61 @see com::sun::star::beans::XExactName
63 published interface XPropertySet: com::sun::star::uno::XInterface
66 /** @returns
67 the XPropertySetInfo interface, which
68 describes all properties of the object which supplies this
69 interface.
71 @returns
72 NULL if the implementation cannot or will
73 not provide information about the properties; otherwise the
74 interface XPropertySetInfo is returned.
76 com::sun::star::beans::XPropertySetInfo getPropertySetInfo();
79 /** sets the value of the property with the specified name.
81 <p>If it is a bound property the value will be changed before
82 the change event is fired. If it is a constrained property
83 a vetoable event is fired before the property value can be
84 changed. </p>
86 @throws com::sun::star::beans::PropertyVetoException
87 if the property is read-only or vetoable
88 and one of the listeners throws this exception
89 because of an unaccepted new value.
91 void setPropertyValue( [in] string aPropertyName,
92 [in] any aValue )
93 raises( com::sun::star::beans::UnknownPropertyException,
94 com::sun::star::beans::PropertyVetoException,
95 com::sun::star::lang::IllegalArgumentException,
96 com::sun::star::lang::WrappedTargetException );
99 /** @returns
100 the value of the property with the specified name.
102 @param PropertyName
103 This parameter specifies the name of the property.
105 @throws UnknownPropertyException
106 if the property does not exist.
108 @throws com::sun::star::lang::WrappedTargetException
109 if the implementation has an internal reason for the exception.
110 In this case the original exception is wrapped into that
111 com::sun::star::lang::WrappedTargetException.
113 any getPropertyValue( [in] string PropertyName )
114 raises( com::sun::star::beans::UnknownPropertyException,
115 com::sun::star::lang::WrappedTargetException );
118 /** adds an XPropertyChangeListener to the specified property.
120 <p>An empty name ("") registers the listener to all bound
121 properties. If the property is not bound, the behavior is
122 not specified. </p>
124 <p>It is suggested to allow multiple registration of the same listener,
125 thus for each time a listener is added, it has to be removed.
127 @see removePropertyChangeListener
129 void addPropertyChangeListener( [in] string aPropertyName,
130 [in] com::sun::star::beans::XPropertyChangeListener xListener )
131 raises( com::sun::star::beans::UnknownPropertyException,
132 com::sun::star::lang::WrappedTargetException );
135 /** removes an XPropertyChangeListener from
136 the listener list.
138 <p>It is a "noop" if the listener is not registered. </p>
140 <p>It is suggested to allow multiple registration of the same listener,
141 thus for each time a listener is added, it has to be removed.
143 @see addPropertyChangeListener
145 void removePropertyChangeListener( [in] string aPropertyName,
146 [in] com::sun::star::beans::XPropertyChangeListener aListener )
147 raises( com::sun::star::beans::UnknownPropertyException,
148 com::sun::star::lang::WrappedTargetException );
151 /** adds an XVetoableChangeListener to the specified
152 property with the name PropertyName.
154 <p>An empty name ("") registers the listener to all
155 constrained properties. If the property is not constrained,
156 the behavior is not specified. </p>
158 @see removeVetoableChangeListener
160 void addVetoableChangeListener( [in] string PropertyName,
161 [in] com::sun::star::beans::XVetoableChangeListener aListener )
162 raises( com::sun::star::beans::UnknownPropertyException,
163 com::sun::star::lang::WrappedTargetException );
166 /** removes an XVetoableChangeListener from the
167 listener list.
169 <p>It is a "noop" if the listener is not registered. </p>
171 @see addVetoableChangeListener
173 void removeVetoableChangeListener( [in] string PropertyName,
174 [in] com::sun::star::beans::XVetoableChangeListener aListener )
175 raises( com::sun::star::beans::UnknownPropertyException,
176 com::sun::star::lang::WrappedTargetException );
181 }; }; }; };
183 #endif
185 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */