xref: /trunk/main/udkapi/com/sun/star/beans/XHierarchicalPropertySet.idl (revision a5f4f399ee733c9ba42d31d70ac311c6a6ac5e06)
1408a4873SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4408a4873SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5408a4873SAndrew Rist * distributed with this work for additional information
6408a4873SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the
8408a4873SAndrew Rist * "License"); you may not use this file except in compliance
9408a4873SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11408a4873SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing,
14408a4873SAndrew Rist * software distributed under the License is distributed on an
15408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16408a4873SAndrew Rist * KIND, either express or implied.  See the License for the
17408a4873SAndrew Rist * specific language governing permissions and limitations
18408a4873SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20408a4873SAndrew Rist *************************************************************/
21408a4873SAndrew Rist
22408a4873SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_beans_XHierarchicalPropertySet_idl__
24cdf0e10cSrcweir#define __com_sun_star_beans_XHierarchicalPropertySet_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_beans_XHierarchicalPropertySetInfo_idl__
31cdf0e10cSrcweir#include <com/sun/star/beans/XHierarchicalPropertySetInfo.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_beans_UnknownPropertyException_idl__
35cdf0e10cSrcweir#include <com/sun/star/beans/UnknownPropertyException.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_beans_PropertyVetoException_idl__
39cdf0e10cSrcweir#include <com/sun/star/beans/PropertyVetoException.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
43cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_lang_WrappedTargetException_idl__
47cdf0e10cSrcweir#include <com/sun/star/lang/WrappedTargetException.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir
51cdf0e10cSrcweir//=============================================================================
52cdf0e10cSrcweir
53cdf0e10cSrcweirmodule com {  module sun {  module star {  module beans {
54cdf0e10cSrcweir
55cdf0e10cSrcweir//=============================================================================
56cdf0e10cSrcweir
57cdf0e10cSrcweir/** provides information about and access to the
58cdf0e10cSrcweir    a hierarchy of properties from an implementation.
59cdf0e10cSrcweir
60cdf0e10cSrcweir    <p> Usually an object that implements this interface
61cdf0e10cSrcweir        also implements <type>XPropertySet</type> and at
62cdf0e10cSrcweir        least some of the properties have subproperties.</p>
63cdf0e10cSrcweir
64cdf0e10cSrcweir    <p> This interface allows direct access to subsubproperties, ...
65cdf0e10cSrcweir        up to an arbitrary nesting depth. Often the intermediate
66cdf0e10cSrcweir        elements of the hierarchy implement <type>XProperty</type>.</p>
67cdf0e10cSrcweir
68cdf0e10cSrcweir    <p> Each implementation specifies how the
69cdf0e10cSrcweir        hierarchical property names, that are
70cdf0e10cSrcweir        used to access the elements of the hierarchy,
71cdf0e10cSrcweir        are formed.</p>
72cdf0e10cSrcweir
7386e1cf34SPedro Giffuni    <p> Commonly a notation similar to filesystem paths
74cdf0e10cSrcweir        (separated by '/' slashes) or nested module names
75cdf0e10cSrcweir        (separated by dots '.' or '::') is used.</p>
76cdf0e10cSrcweir
77cdf0e10cSrcweir */
78cdf0e10cSrcweirpublished interface XHierarchicalPropertySet: com::sun::star::uno::XInterface
79cdf0e10cSrcweir{
80cdf0e10cSrcweir    //-------------------------------------------------------------------------
81cdf0e10cSrcweir
82cdf0e10cSrcweir    /** retrieve information about the hierarchy of properties
83cdf0e10cSrcweir
84cdf0e10cSrcweir        @returns
85cdf0e10cSrcweir            the <type>XHierarchicalPropertySetInfo</type> interface,
86cdf0e10cSrcweir            which describes the property hierarchy of the object which
87cdf0e10cSrcweir            supplies this interface.
88cdf0e10cSrcweir
89cdf0e10cSrcweir        @returns
90cdf0e10cSrcweir            <NULL/> if the implementation cannot or will
91cdf0e10cSrcweir            not provide information about the properties; otherwise the
92cdf0e10cSrcweir            interface <type>XHierarchicalPropertySetInfo</type> is returned.
93cdf0e10cSrcweir     */
94cdf0e10cSrcweir    com::sun::star::beans::XHierarchicalPropertySetInfo
95cdf0e10cSrcweir                getHierarchicalPropertySetInfo();
96cdf0e10cSrcweir
97cdf0e10cSrcweir    //-------------------------------------------------------------------------
98cdf0e10cSrcweir
99cdf0e10cSrcweir    /** sets the value of the property with the specified nested name.
100cdf0e10cSrcweir
101cdf0e10cSrcweir        @param  aHierarchicalPropertyName
102cdf0e10cSrcweir                This parameter specifies the name of the property.
103cdf0e10cSrcweir
104cdf0e10cSrcweir        @param  aValue
105cdf0e10cSrcweir                This parameter specifies the new value for the property.
106cdf0e10cSrcweir
107cdf0e10cSrcweir        @throws UnknownPropertyException
108cdf0e10cSrcweir                if the property does not exist.
109cdf0e10cSrcweir
110cdf0e10cSrcweir        @throws PropertyVetoException
111cdf0e10cSrcweir                if the property is constrained and the change is vetoed by a
112cdf0e10cSrcweir                <type>XVetoableChangeListener</type>.
113cdf0e10cSrcweir
114cdf0e10cSrcweir        @throws com::sun::star::uno::lang::IllegalArgumentException
115cdf0e10cSrcweir                if <var>aValue</var> is not a legal value for this property or
116cdf0e10cSrcweir                if <var>aHierarchicalPropertyName</var> is not a well-formed
117cdf0e10cSrcweir                nested name for this hierarchy.
118cdf0e10cSrcweir                An implementation is not required to detect the latter condition.
119cdf0e10cSrcweir
120cdf0e10cSrcweir        @throws com::sun::star::lang::WrappedTargetException
121cdf0e10cSrcweir                if the implementation has an internal reason for the exception.
122cdf0e10cSrcweir                In this case the original exception is wrapped into that
123cdf0e10cSrcweir                <type scope="com::sun::star::lang">WrappedTargetException</type>.
124cdf0e10cSrcweir
125cdf0e10cSrcweir        @see XPropertySet::setPropertyValue
126cdf0e10cSrcweir     */
127cdf0e10cSrcweir    void setHierarchicalPropertyValue( [in] string aHierarchicalPropertyName,
128cdf0e10cSrcweir             [in] any aValue )
129cdf0e10cSrcweir            raises( com::sun::star::beans::UnknownPropertyException,
130cdf0e10cSrcweir                    com::sun::star::beans::PropertyVetoException,
131cdf0e10cSrcweir                    com::sun::star::lang::IllegalArgumentException,
132cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
133cdf0e10cSrcweir
134cdf0e10cSrcweir    //-------------------------------------------------------------------------
135cdf0e10cSrcweir
136*a5f4f399SMatthias Seidel    /** gets the value of the property with the specified nested name.
137*a5f4f399SMatthias Seidel
138*a5f4f399SMatthias Seidel        @returns
139cdf0e10cSrcweir                the value of the property with the specified nested name.
140cdf0e10cSrcweir
141cdf0e10cSrcweir        @param  aHierarchicalPropertyName
142cdf0e10cSrcweir                This parameter specifies the name of the property.
143cdf0e10cSrcweir
144cdf0e10cSrcweir        @throws UnknownPropertyException
145cdf0e10cSrcweir                if the property does not exist.
146cdf0e10cSrcweir
147cdf0e10cSrcweir        @throws com::sun::star::uno::lang::IllegalArgumentException
148cdf0e10cSrcweir                if <var>aHierarchicalPropertyName</var> is not a well-formed
149cdf0e10cSrcweir                nested name for this hierarchy.
150cdf0e10cSrcweir                An implementation is not required to detect this
151cdf0e10cSrcweir                condition.
152cdf0e10cSrcweir
153cdf0e10cSrcweir        @throws com::sun::star::lang::WrappedTargetException
154cdf0e10cSrcweir                if the implementation has an internal reason for the exception.
155cdf0e10cSrcweir                In this case the original exception is wrapped into that
156cdf0e10cSrcweir                <type scope="com::sun::star::lang">WrappedTargetException</type>.
157cdf0e10cSrcweir
158cdf0e10cSrcweir        @see XPropertySet::getPropertyValue
159cdf0e10cSrcweir     */
160cdf0e10cSrcweir    any getHierarchicalPropertyValue( [in] string aHierarchicalPropertyName )
161cdf0e10cSrcweir            raises( com::sun::star::beans::UnknownPropertyException,
162cdf0e10cSrcweir                    com::sun::star::lang::IllegalArgumentException,
163cdf0e10cSrcweir                    com::sun::star::lang::WrappedTargetException );
164cdf0e10cSrcweir
165cdf0e10cSrcweir    //-------------------------------------------------------------------------
166cdf0e10cSrcweir
167cdf0e10cSrcweir};
168cdf0e10cSrcweir
169cdf0e10cSrcweir//=============================================================================
170cdf0e10cSrcweir
171cdf0e10cSrcweir}; }; }; };
172cdf0e10cSrcweir
173cdf0e10cSrcweir#endif
174