1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_configuration_backend_XLayerHandler_idl__
28*cdf0e10cSrcweir#define __com_sun_star_configuration_backend_XLayerHandler_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
31*cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_configuration_backend_TemplateIdentifier_idl__
35*cdf0e10cSrcweir#include <com/sun/star/configuration/backend/TemplateIdentifier.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_configuration_backend_MalformedDataException_idl__
39*cdf0e10cSrcweir#include <com/sun/star/configuration/backend/MalformedDataException.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_lang_WrappedTargetException_idl__
43*cdf0e10cSrcweir#include <com/sun/star/lang/WrappedTargetException.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir//=============================================================================
47*cdf0e10cSrcweir
48*cdf0e10cSrcweirmodule com { module sun { module star { module configuration { module backend {
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir//=============================================================================
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir/** receives a description of a configuration layer
53*cdf0e10cSrcweir	as a sequence of events.
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir    @since OOo 1.1.2
56*cdf0e10cSrcweir */
57*cdf0e10cSrcweirpublished interface XLayerHandler: ::com::sun::star::uno::XInterface
58*cdf0e10cSrcweir{
59*cdf0e10cSrcweir	//-------------------------------------------------------------------------
60*cdf0e10cSrcweir
61*cdf0e10cSrcweir	/** receives notification that a layer description is started
62*cdf0e10cSrcweir		for a component.
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir		<p> Subsequent calls describe the contents of the layer
65*cdf0e10cSrcweir			until a matching call to <member>XLayerHandler::endLayer()</member>
66*cdf0e10cSrcweir			is encountered.
67*cdf0e10cSrcweir		</p>
68*cdf0e10cSrcweir
69*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
70*cdf0e10cSrcweir			if there is an unfinished layer in progress
71*cdf0e10cSrcweir
72*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
73*cdf0e10cSrcweir			if an error occurs processing the event.
74*cdf0e10cSrcweir	 */
75*cdf0e10cSrcweir	void startLayer(  )
76*cdf0e10cSrcweir			raises( MalformedDataException,
77*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
78*cdf0e10cSrcweir	//-------------------------------------------------------------------------
79*cdf0e10cSrcweir
80*cdf0e10cSrcweir	/** receives notification that a layer description is complete.
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir		<p> Must match a previous call to <member>XLayerHandler::startLayer()</member>.
83*cdf0e10cSrcweir		</p>
84*cdf0e10cSrcweir
85*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
86*cdf0e10cSrcweir            <ul>
87*cdf0e10cSrcweir			<li>if invalid data is detected in the layer</li>
88*cdf0e10cSrcweir			<li>if there is a unfinished subnode in progress</li>
89*cdf0e10cSrcweir			<li>if no layer is started at all</li>
90*cdf0e10cSrcweir			<li>if the layer tries to override read-only or final data</li>
91*cdf0e10cSrcweir            </ul>
92*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
95*cdf0e10cSrcweir			if an error occurs processing the event.
96*cdf0e10cSrcweir	 */
97*cdf0e10cSrcweir	void endLayer(  )
98*cdf0e10cSrcweir			raises( MalformedDataException,
99*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
100*cdf0e10cSrcweir	//-------------------------------------------------------------------------
101*cdf0e10cSrcweir
102*cdf0e10cSrcweir	/** receives notification that a description of a node override is started.
103*cdf0e10cSrcweir
104*cdf0e10cSrcweir		<p> Subsequent calls describe overrides to properties and members
105*cdf0e10cSrcweir			or items of the node until a matching call to
106*cdf0e10cSrcweir			<member>XLayerHandler::endNode()</member>is encountered.
107*cdf0e10cSrcweir		</p>
108*cdf0e10cSrcweir
109*cdf0e10cSrcweir		@param aName
110*cdf0e10cSrcweir			specifies the name of the node.
111*cdf0e10cSrcweir
112*cdf0e10cSrcweir		@param aAttributes
113*cdf0e10cSrcweir			specifies attribute values to be applied to the node.
114*cdf0e10cSrcweir
115*cdf0e10cSrcweir			<p> The value is a combination of
116*cdf0e10cSrcweir				<type>NodeAttribute</type> flags.
117*cdf0e10cSrcweir			</p>
118*cdf0e10cSrcweir			<p>	The attributes are combined cumulatively with those
119*cdf0e10cSrcweir                set on lower layers.
120*cdf0e10cSrcweir			</p>
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir		@param bClear
123*cdf0e10cSrcweir			if <TRUE/>, specifies that the node should be cleared to an empty
124*cdf0e10cSrcweir            state by removing all non-mandatory children from lower layers prior
125*cdf0e10cSrcweir            to applying the overrides.
126*cdf0e10cSrcweir
127*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
128*cdf0e10cSrcweir            <ul>
129*cdf0e10cSrcweir			<li>if there isn't a layer in progress</li>
130*cdf0e10cSrcweir			<li>if there already was a change to that node</li>
131*cdf0e10cSrcweir			<li>if there is no node with that name</li>
132*cdf0e10cSrcweir			<li>if the node is marked read-only in a lower layer</li>
133*cdf0e10cSrcweir			<li>if the name is not a valid node name</li>
134*cdf0e10cSrcweir			<li>if the attributes are not valid for the node</li>
135*cdf0e10cSrcweir            </ul>
136*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
137*cdf0e10cSrcweir
138*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
139*cdf0e10cSrcweir			if an error occurs processing the event.
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::NodeAttribute
142*cdf0e10cSrcweir	 */
143*cdf0e10cSrcweir	void overrideNode( [in] string aName,
144*cdf0e10cSrcweir					   [in] short  aAttributes,
145*cdf0e10cSrcweir                       [in] boolean bClear )
146*cdf0e10cSrcweir			raises( MalformedDataException,
147*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
148*cdf0e10cSrcweir	//-------------------------------------------------------------------------
149*cdf0e10cSrcweir
150*cdf0e10cSrcweir	/** receives notification that a new item is started.
151*cdf0e10cSrcweir
152*cdf0e10cSrcweir		<p> The current node must be a set and
153*cdf0e10cSrcweir			a preexisting item (if any) must be removeable.
154*cdf0e10cSrcweir		</p>
155*cdf0e10cSrcweir		<p> The new item will be created from the default template
156*cdf0e10cSrcweir			of the set.
157*cdf0e10cSrcweir		</p>
158*cdf0e10cSrcweir		<p> Subsequent calls describe the difference from the template
159*cdf0e10cSrcweir			of properties and members or items of the node until
160*cdf0e10cSrcweir			a matching call to <member>XLayerHandler::endNode()</member>
161*cdf0e10cSrcweir            is encountered.
162*cdf0e10cSrcweir		</p>
163*cdf0e10cSrcweir
164*cdf0e10cSrcweir		@param aName
165*cdf0e10cSrcweir			specifies the name of the item.
166*cdf0e10cSrcweir
167*cdf0e10cSrcweir		@param aAttributes
168*cdf0e10cSrcweir			specifies attribute values to be applied to the new node.
169*cdf0e10cSrcweir
170*cdf0e10cSrcweir			<p> The value is a combination of
171*cdf0e10cSrcweir				<type>NodeAttribute</type> flags.  Note that
172*cdf0e10cSrcweir                <member>NodeAttribute::FUSE</member> has an impact on the
173*cdf0e10cSrcweir                semantics of this method.
174*cdf0e10cSrcweir			</p>
175*cdf0e10cSrcweir
176*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
177*cdf0e10cSrcweir            <ul>
178*cdf0e10cSrcweir			<li>if there isn't a set node in progress currently</li>
179*cdf0e10cSrcweir			<li>if there already was a change to a node of that name</li>
180*cdf0e10cSrcweir			<li>if the template for the new node is not found</li>
181*cdf0e10cSrcweir			<li>if an item of that name on a lower layer is not removeable</li>
182*cdf0e10cSrcweir			<li>if the name is not a valid item name</li>
183*cdf0e10cSrcweir			<li>if the attributes are not valid for the node</li>
184*cdf0e10cSrcweir            </ul>
185*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
186*cdf0e10cSrcweir
187*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
188*cdf0e10cSrcweir			if an error occurs processing the event.
189*cdf0e10cSrcweir
190*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::NodeAttribute
191*cdf0e10cSrcweir	 */
192*cdf0e10cSrcweir	void addOrReplaceNode(	[in] string aName,
193*cdf0e10cSrcweir							[in] short  aAttributes )
194*cdf0e10cSrcweir			raises( MalformedDataException,
195*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
196*cdf0e10cSrcweir	//-------------------------------------------------------------------------
197*cdf0e10cSrcweir
198*cdf0e10cSrcweir	/** receives notification that a new item based on a particular template
199*cdf0e10cSrcweir		is started.
200*cdf0e10cSrcweir
201*cdf0e10cSrcweir		<p> The current node must be a set and
202*cdf0e10cSrcweir			a preexisting item (if any) must be removeable.
203*cdf0e10cSrcweir		</p>
204*cdf0e10cSrcweir		<p> Subsequent calls describe the difference from the template
205*cdf0e10cSrcweir			of properties and members or items of the node until
206*cdf0e10cSrcweir			a matching call to <member>XLayerHandler::endNode()</member>
207*cdf0e10cSrcweir            is encountered.
208*cdf0e10cSrcweir		</p>
209*cdf0e10cSrcweir
210*cdf0e10cSrcweir		@param aName
211*cdf0e10cSrcweir			specifies the name of the item.
212*cdf0e10cSrcweir
213*cdf0e10cSrcweir		@param aTemplate
214*cdf0e10cSrcweir			specifies the template to use for the new node
215*cdf0e10cSrcweir
216*cdf0e10cSrcweir		@param aAttributes
217*cdf0e10cSrcweir			specifies attribute values to be applied to the new node.
218*cdf0e10cSrcweir
219*cdf0e10cSrcweir			<p> The value is a combination of
220*cdf0e10cSrcweir				<type>NodeAttribute</type> flags.  Note that
221*cdf0e10cSrcweir                <member>NodeAttribute::FUSE</member> has an impact on the
222*cdf0e10cSrcweir                semantics of this method.
223*cdf0e10cSrcweir			</p>
224*cdf0e10cSrcweir
225*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
226*cdf0e10cSrcweir            <ul>
227*cdf0e10cSrcweir			<li>if there isn't a set node in progress currently</li>
228*cdf0e10cSrcweir			<li>if there already was a change to a node of that name</li>
229*cdf0e10cSrcweir			<li>if the template for the new node is not found</li>
230*cdf0e10cSrcweir			<li>if the template is not a valid item type for the containing set</li>
231*cdf0e10cSrcweir			<li>if an item of that name on a lower layer is not removeable</li>
232*cdf0e10cSrcweir			<li>if the name is not a valid item name</li>
233*cdf0e10cSrcweir			<li>if the attributes are not valid for the node</li>
234*cdf0e10cSrcweir            </ul>
235*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
236*cdf0e10cSrcweir
237*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
238*cdf0e10cSrcweir			if an error occurs processing the event.
239*cdf0e10cSrcweir
240*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::NodeAttribute
241*cdf0e10cSrcweir	 */
242*cdf0e10cSrcweir	void addOrReplaceNodeFromTemplate(	[in] string aName,
243*cdf0e10cSrcweir										[in] TemplateIdentifier aTemplate,
244*cdf0e10cSrcweir										[in] short  aAttributes )
245*cdf0e10cSrcweir			raises( MalformedDataException,
246*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
247*cdf0e10cSrcweir	//-------------------------------------------------------------------------
248*cdf0e10cSrcweir
249*cdf0e10cSrcweir	/** receives notification that a node description is complete.
250*cdf0e10cSrcweir
251*cdf0e10cSrcweir		<p> Must match the last open call to
252*cdf0e10cSrcweir			<member>XLayerHandler::overrideNode()</member>,
253*cdf0e10cSrcweir			<member>XLayerHandler::addOrReplaceNode()</member> or
254*cdf0e10cSrcweir			<member>XLayerHandler::addOrReplaceNodeFromTemplate()</member>.
255*cdf0e10cSrcweir		</p>
256*cdf0e10cSrcweir
257*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
258*cdf0e10cSrcweir            <ul>
259*cdf0e10cSrcweir			<li>if invalid data is detected in the node</li>
260*cdf0e10cSrcweir			<li>if no node is started at all</li>
261*cdf0e10cSrcweir            </ul>
262*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
263*cdf0e10cSrcweir
264*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
265*cdf0e10cSrcweir			if an error occurs processing the event.
266*cdf0e10cSrcweir	 */
267*cdf0e10cSrcweir	void endNode(  )
268*cdf0e10cSrcweir			raises( MalformedDataException,
269*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
270*cdf0e10cSrcweir	//-------------------------------------------------------------------------
271*cdf0e10cSrcweir
272*cdf0e10cSrcweir	/** receives notification that a node is dropped from a set.
273*cdf0e10cSrcweir
274*cdf0e10cSrcweir		<p> The current node must be a set and
275*cdf0e10cSrcweir			the item must be removeable.
276*cdf0e10cSrcweir		</p>
277*cdf0e10cSrcweir
278*cdf0e10cSrcweir		@param aName
279*cdf0e10cSrcweir			specifies the name of the node.
280*cdf0e10cSrcweir
281*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
282*cdf0e10cSrcweir            <ul>
283*cdf0e10cSrcweir			<li>if there isn't a set node in progress currently</li>
284*cdf0e10cSrcweir			<li>if there already was a change to a node of that name</li>
285*cdf0e10cSrcweir			<li>if there is no item with that name</li>
286*cdf0e10cSrcweir			<li>if the item is not removeable</li>
287*cdf0e10cSrcweir			<li>if the name is not a valid node name</li>
288*cdf0e10cSrcweir            </ul>
289*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
290*cdf0e10cSrcweir
291*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
292*cdf0e10cSrcweir			if an error occurs processing the event.
293*cdf0e10cSrcweir	 */
294*cdf0e10cSrcweir	void dropNode( [in] string aName )
295*cdf0e10cSrcweir			raises( MalformedDataException,
296*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
297*cdf0e10cSrcweir	//-------------------------------------------------------------------------
298*cdf0e10cSrcweir
299*cdf0e10cSrcweir	/** receives notification that an existing property is modified.
300*cdf0e10cSrcweir
301*cdf0e10cSrcweir		<p> Subsequent calls describe new value(s) for the property until a
302*cdf0e10cSrcweir            matching call to <member>XLayerHandler::endProperty()</member>
303*cdf0e10cSrcweir            is encountered.
304*cdf0e10cSrcweir		</p>
305*cdf0e10cSrcweir
306*cdf0e10cSrcweir		@param aName
307*cdf0e10cSrcweir			specifies the name of the property.
308*cdf0e10cSrcweir
309*cdf0e10cSrcweir		@param aAttributes
310*cdf0e10cSrcweir			specifies the new attributes of the property.
311*cdf0e10cSrcweir
312*cdf0e10cSrcweir			<p> The value is a combination of
313*cdf0e10cSrcweir				<type>NodeAttribute</type> flags.
314*cdf0e10cSrcweir			</p>
315*cdf0e10cSrcweir			<p>	The attributes are combined cumulatively with those
316*cdf0e10cSrcweir                set on lower layers.
317*cdf0e10cSrcweir			</p>
318*cdf0e10cSrcweir
319*cdf0e10cSrcweir		@param aType
320*cdf0e10cSrcweir			specifies the type of the property.
321*cdf0e10cSrcweir
322*cdf0e10cSrcweir			<p> This must be the same type as is already defined in the schema
323*cdf0e10cSrcweir                or lower layers, unless the previous type was unspecified
324*cdf0e10cSrcweir                (as indicated by
325*cdf0e10cSrcweir                <const scope="com::sun::star::uno">TypeClass::ANY</const>.)
326*cdf0e10cSrcweir			</p>
327*cdf0e10cSrcweir			<p> A <void/> type indicates that the type is unspecified
328*cdf0e10cSrcweir                in this layer.
329*cdf0e10cSrcweir                In this case any subsequent value may be of a generic type
330*cdf0e10cSrcweir                (e.g. <atom>string</atom> or - for list values -
331*cdf0e10cSrcweir                <atom dim="[]">string</atom>.) Such values may be
332*cdf0e10cSrcweir                converted to the type defined in the schema by
333*cdf0e10cSrcweir                the implementation.
334*cdf0e10cSrcweir			</p>
335*cdf0e10cSrcweir
336*cdf0e10cSrcweir		@param bClear
337*cdf0e10cSrcweir			if <TRUE/>, specifies that the property should be cleared to an empty
338*cdf0e10cSrcweir            state by discarding all values from lower layers prior
339*cdf0e10cSrcweir            to applying the overrides.
340*cdf0e10cSrcweir
341*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
342*cdf0e10cSrcweir            <ul>
343*cdf0e10cSrcweir			<li>if there isn't a group or extensible node in progress currently</li>
344*cdf0e10cSrcweir			<li>if there already was a change to a property of that name</li>
345*cdf0e10cSrcweir			<li>if there is no property with that name</li>
346*cdf0e10cSrcweir			<li>if the property is read-only</li>
347*cdf0e10cSrcweir			<li>if the type does not match the type of the property</li>
348*cdf0e10cSrcweir            <li>if a type is missing and cannot be determined otherwise</li>
349*cdf0e10cSrcweir			<li>if the name is not a valid property name</li>
350*cdf0e10cSrcweir			<li>if the attributes are not valid for the property</li>
351*cdf0e10cSrcweir            </ul>
352*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
353*cdf0e10cSrcweir
354*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
355*cdf0e10cSrcweir			if an error occurs processing the event.
356*cdf0e10cSrcweir
357*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::NodeAttribute
358*cdf0e10cSrcweir	 */
359*cdf0e10cSrcweir	void overrideProperty(  [in] string aName,
360*cdf0e10cSrcweir			 			    [in] short aAttributes,
361*cdf0e10cSrcweir					        [in] type aType,
362*cdf0e10cSrcweir                            [in] boolean bClear )
363*cdf0e10cSrcweir			raises( MalformedDataException,
364*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
365*cdf0e10cSrcweir
366*cdf0e10cSrcweir	//-------------------------------------------------------------------------
367*cdf0e10cSrcweir
368*cdf0e10cSrcweir	/** receives notification that the value of the current property
369*cdf0e10cSrcweir        is overridden. .
370*cdf0e10cSrcweir
371*cdf0e10cSrcweir		@param aValue
372*cdf0e10cSrcweir			specifies the new value of the property.
373*cdf0e10cSrcweir
374*cdf0e10cSrcweir			<p> The value must match the type of the current property.
375*cdf0e10cSrcweir				If the property does not have the
376*cdf0e10cSrcweir				<const>SchemaAttribute::REQUIRED</const> flag set,
377*cdf0e10cSrcweir				the value can be <void/>.
378*cdf0e10cSrcweir			</p>
379*cdf0e10cSrcweir			<p> If the current property is localized, this value applies
380*cdf0e10cSrcweir                to the default locale.
381*cdf0e10cSrcweir			</p>
382*cdf0e10cSrcweir
383*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
384*cdf0e10cSrcweir            <ul>
385*cdf0e10cSrcweir			<li>if there isn't a property in progress currently</li>
386*cdf0e10cSrcweir			<li>if there already was a change to the value of that property</li>
387*cdf0e10cSrcweir			<li>if the value does not have the proper type</li>
388*cdf0e10cSrcweir			<li>if the value is not valid for the property</li>
389*cdf0e10cSrcweir            </ul>
390*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
391*cdf0e10cSrcweir
392*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
393*cdf0e10cSrcweir			if an error occurs processing the event.
394*cdf0e10cSrcweir
395*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::NodeAttribute
396*cdf0e10cSrcweir	 */
397*cdf0e10cSrcweir	void setPropertyValue(	[in] any aValue )
398*cdf0e10cSrcweir			raises( MalformedDataException,
399*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
400*cdf0e10cSrcweir
401*cdf0e10cSrcweir	//-------------------------------------------------------------------------
402*cdf0e10cSrcweir
403*cdf0e10cSrcweir	/** receives notification that the value of the current localized property
404*cdf0e10cSrcweir        is overridden for a specific locale .
405*cdf0e10cSrcweir
406*cdf0e10cSrcweir		@param aValue
407*cdf0e10cSrcweir			specifies the new value of the property.
408*cdf0e10cSrcweir
409*cdf0e10cSrcweir			<p> The value must match the type of the current property.
410*cdf0e10cSrcweir				If the property does not have the
411*cdf0e10cSrcweir				<const>SchemaAttribute::REQUIRED</const> flag set,
412*cdf0e10cSrcweir				the value can be <void/>.
413*cdf0e10cSrcweir			</p>
414*cdf0e10cSrcweir
415*cdf0e10cSrcweir		@param aLocale
416*cdf0e10cSrcweir			specifies the locale this value should apply to.
417*cdf0e10cSrcweir
418*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
419*cdf0e10cSrcweir            <ul>
420*cdf0e10cSrcweir			<li>if there isn't a property in progress currently</li>
421*cdf0e10cSrcweir			<li>if the current property isn't localized</li>
422*cdf0e10cSrcweir			<li>if there already was a change to the property for that locale</li>
423*cdf0e10cSrcweir			<li>if the value does not have the proper type</li>
424*cdf0e10cSrcweir			<li>if the value is not valid for the property</li>
425*cdf0e10cSrcweir			<li>if the locale is not a valid locale</li>
426*cdf0e10cSrcweir            </ul>
427*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
428*cdf0e10cSrcweir
429*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
430*cdf0e10cSrcweir			if an error occurs processing the event.
431*cdf0e10cSrcweir
432*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::NodeAttribute
433*cdf0e10cSrcweir	 */
434*cdf0e10cSrcweir	void setPropertyValueForLocale([in] any aValue,
435*cdf0e10cSrcweir			 					        [in] string aLocale )
436*cdf0e10cSrcweir			raises( MalformedDataException,
437*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
438*cdf0e10cSrcweir
439*cdf0e10cSrcweir	//-------------------------------------------------------------------------
440*cdf0e10cSrcweir
441*cdf0e10cSrcweir	/** receives notification that a property description is complete.
442*cdf0e10cSrcweir
443*cdf0e10cSrcweir		<p> Must match an open call to
444*cdf0e10cSrcweir			<member>XLayerHandler::overrideProperty()</member>,
445*cdf0e10cSrcweir		</p>
446*cdf0e10cSrcweir
447*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
448*cdf0e10cSrcweir            <ul>
449*cdf0e10cSrcweir			<li>if invalid data is detected in the property</li>
450*cdf0e10cSrcweir			<li>if no property is started at all</li>
451*cdf0e10cSrcweir            </ul>
452*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
453*cdf0e10cSrcweir
454*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
455*cdf0e10cSrcweir			if an error occurs processing the event.
456*cdf0e10cSrcweir	 */
457*cdf0e10cSrcweir	void endProperty(  )
458*cdf0e10cSrcweir			raises( MalformedDataException,
459*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
460*cdf0e10cSrcweir	//-------------------------------------------------------------------------
461*cdf0e10cSrcweir
462*cdf0e10cSrcweir	/** receives notification that a property having a <void/> value is added
463*cdf0e10cSrcweir        to the current node.
464*cdf0e10cSrcweir
465*cdf0e10cSrcweir		<p> The current node must be extensible.
466*cdf0e10cSrcweir		</p>
467*cdf0e10cSrcweir
468*cdf0e10cSrcweir		@param aName
469*cdf0e10cSrcweir			specifies the name of the new property.
470*cdf0e10cSrcweir
471*cdf0e10cSrcweir		@param aAttributes
472*cdf0e10cSrcweir			specifies the attributes of the new property.
473*cdf0e10cSrcweir
474*cdf0e10cSrcweir			<p> The value is a combination of
475*cdf0e10cSrcweir				<type>NodeAttribute</type> flags and may also contain the
476*cdf0e10cSrcweir				<const>SchemaAttribute::REQUIRED</const> flag.
477*cdf0e10cSrcweir			</p>
478*cdf0e10cSrcweir			<p>	<const>NodeAttribute::MANDATORY</const> need not be set,
479*cdf0e10cSrcweir				as dynamically added properties always are mandatory
480*cdf0e10cSrcweir				in subsequent layers.
481*cdf0e10cSrcweir			</p>
482*cdf0e10cSrcweir
483*cdf0e10cSrcweir		@param aType
484*cdf0e10cSrcweir			specifies the type of the new property.
485*cdf0e10cSrcweir
486*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
487*cdf0e10cSrcweir            <ul>
488*cdf0e10cSrcweir			<li>if there isn't an extensible node in progress currently</li>
489*cdf0e10cSrcweir			<li>if a property with that name already exists</li>
490*cdf0e10cSrcweir			<li>if the specified type is not allowed for a property</li>
491*cdf0e10cSrcweir			<li>if the name is not a valid property name</li>
492*cdf0e10cSrcweir			<li><li>if the attributes are not valid for the property</li>
493*cdf0e10cSrcweir            </ul>
494*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
495*cdf0e10cSrcweir
496*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
497*cdf0e10cSrcweir			if an error occurs processing the event.
498*cdf0e10cSrcweir
499*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::SchemaAttribute
500*cdf0e10cSrcweir	 */
501*cdf0e10cSrcweir	void addProperty(   [in] string aName,
502*cdf0e10cSrcweir			 		    [in] short aAttributes,
503*cdf0e10cSrcweir					    [in] type aType )
504*cdf0e10cSrcweir			raises( MalformedDataException,
505*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
506*cdf0e10cSrcweir
507*cdf0e10cSrcweir	//-------------------------------------------------------------------------
508*cdf0e10cSrcweir
509*cdf0e10cSrcweir	/** receives notification that a property having a non-<void/> value
510*cdf0e10cSrcweir		is added to the current node.
511*cdf0e10cSrcweir
512*cdf0e10cSrcweir		<p> The current node must be extensible.
513*cdf0e10cSrcweir		</p>
514*cdf0e10cSrcweir
515*cdf0e10cSrcweir		@param aName
516*cdf0e10cSrcweir			specifies the name of the new property.
517*cdf0e10cSrcweir
518*cdf0e10cSrcweir		@param aAttributes
519*cdf0e10cSrcweir			specifies the attributes of the new property.
520*cdf0e10cSrcweir
521*cdf0e10cSrcweir			<p> The value is a combination of
522*cdf0e10cSrcweir				<type>NodeAttribute</type> flags and may also contain the
523*cdf0e10cSrcweir				<const>SchemaAttribute::REQUIRED</const> flag.
524*cdf0e10cSrcweir			</p>
525*cdf0e10cSrcweir			</p>
526*cdf0e10cSrcweir			<p>	<const>NodeAttribute::MANDATORY</const> need not be set,
527*cdf0e10cSrcweir				as dynamic properties always are mandatory
528*cdf0e10cSrcweir				in subsequent layers.
529*cdf0e10cSrcweir			</p>
530*cdf0e10cSrcweir
531*cdf0e10cSrcweir		@param aValue
532*cdf0e10cSrcweir			specifies the value of the new property.
533*cdf0e10cSrcweir
534*cdf0e10cSrcweir			<p> The value also determines the type.
535*cdf0e10cSrcweir				Therefore the value must not be <void/>.
536*cdf0e10cSrcweir			</p>
537*cdf0e10cSrcweir
538*cdf0e10cSrcweir		@throws com::sun::star::configuration::backend::MalformedDataException
539*cdf0e10cSrcweir            <ul>
540*cdf0e10cSrcweir			<li>if there isn't an extensible node in progress currently</li>
541*cdf0e10cSrcweir			<li>if a property with that name already exists</li>
542*cdf0e10cSrcweir			<li>if the type of the value is not an allowed type
543*cdf0e10cSrcweir			    or if the value is <void/></li>
544*cdf0e10cSrcweir			<li>if the name is not a valid property name</li>
545*cdf0e10cSrcweir			<li>if the value is not valid for the property</li>
546*cdf0e10cSrcweir			<li>if the attributes are not valid for the property</li>
547*cdf0e10cSrcweir            </ul>
548*cdf0e10cSrcweir            <p><em>Not every implementation can detect each condition</em></p>
549*cdf0e10cSrcweir
550*cdf0e10cSrcweir		@throws com::sun::star::lang::WrappedTargetException
551*cdf0e10cSrcweir			if an error occurs processing the event.
552*cdf0e10cSrcweir
553*cdf0e10cSrcweir		@see com::sun::star::configuration::backend::SchemaAttribute
554*cdf0e10cSrcweir	 */
555*cdf0e10cSrcweir	void addPropertyWithValue(  [in] string aName,
556*cdf0e10cSrcweir			 					[in] short aAttributes,
557*cdf0e10cSrcweir								[in] any aValue )
558*cdf0e10cSrcweir			raises( MalformedDataException,
559*cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
560*cdf0e10cSrcweir
561*cdf0e10cSrcweir	//-------------------------------------------------------------------------
562*cdf0e10cSrcweir};
563*cdf0e10cSrcweir
564*cdf0e10cSrcweir//=============================================================================
565*cdf0e10cSrcweir
566*cdf0e10cSrcweir}; }; }; }; };
567*cdf0e10cSrcweir
568*cdf0e10cSrcweir//=============================================================================
569*cdf0e10cSrcweir
570*cdf0e10cSrcweir#endif
571