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_HierarchyElement_idl__
28*cdf0e10cSrcweir#define __com_sun_star_configuration_HierarchyElement_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__
31*cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_container_XHierarchicalName_idl__
35*cdf0e10cSrcweir#include <com/sun/star/container/XHierarchicalName.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XProperty_idl__
39*cdf0e10cSrcweir#include <com/sun/star/beans/XProperty.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertyWithState_idl__
43*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertyWithState.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir#ifndef __com_sun_star_container_XChild_idl__
47*cdf0e10cSrcweir#include <com/sun/star/container/XChild.idl>
48*cdf0e10cSrcweir#endif
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir//=============================================================================
51*cdf0e10cSrcweir
52*cdf0e10cSrcweirmodule com { module sun { module star { module configuration {
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir//=============================================================================
55*cdf0e10cSrcweir/** provides information about an element within a hierarchy.
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir <p>The local name and the full hierarchical name can be retrieved.
58*cdf0e10cSrcweir Attributes detailing the role of the element can be queried.
59*cdf0e10cSrcweir The state of the element (regarding defaults) can be accessed.
60*cdf0e10cSrcweir </p>
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir <p>Implementations of this service usually also implement
63*cdf0e10cSrcweir service <type>HierarchyAccess</type>, which concerns the complementary role
64*cdf0e10cSrcweir of providing access to subelements of the hierarchy.
65*cdf0e10cSrcweir </p>
66*cdf0e10cSrcweir*/
67*cdf0e10cSrcweirpublished service HierarchyElement
68*cdf0e10cSrcweir{
69*cdf0e10cSrcweir/** provides the complete hierarchical name of this element
70*cdf0e10cSrcweir within the hierarchy tree.
71*cdf0e10cSrcweir*/
72*cdf0e10cSrcweir	interface com::sun::star::container::XHierarchicalName;
73*cdf0e10cSrcweir
74*cdf0e10cSrcweir/** provides the local name of this element within its parent.
75*cdf0e10cSrcweir
76*cdf0e10cSrcweir <p><em>Renaming an element is generally not supported.</em></p>
77*cdf0e10cSrcweir*/
78*cdf0e10cSrcweir	interface com::sun::star::container::XNamed;
79*cdf0e10cSrcweir
80*cdf0e10cSrcweir/** provides a property descriptor for this element.[optional]
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir <p>This interface may be missing, if the hierarchy supports no traits that are
83*cdf0e10cSrcweir described by <type scope="com::sun::star::beans">PropertyAttribute</type>
84*cdf0e10cSrcweir values.
85*cdf0e10cSrcweir </p>
86*cdf0e10cSrcweir
87*cdf0e10cSrcweir <p>If the parent of this object implements
88*cdf0e10cSrcweir <type scope="com::sun::star::beans">XPropertySetInfo</type>, then this returns
89*cdf0e10cSrcweir the same <type scope="com::sun::star::beans">Property</type> as the
90*cdf0e10cSrcweir <type scope="com::sun::star::beans">XPropertySetInfo</type> of the parent.
91*cdf0e10cSrcweir </p>
92*cdf0e10cSrcweir*/
93*cdf0e10cSrcweir	[optional] interface com::sun::star::beans::XProperty;
94*cdf0e10cSrcweir
95*cdf0e10cSrcweir/** provides access to the default state of this element. [optional]
96*cdf0e10cSrcweir
97*cdf0e10cSrcweir <p>This interface may be missing, if the hierarchy supports access to
98*cdf0e10cSrcweir a default state and values only for simple values or not at all.
99*cdf0e10cSrcweir </p>
100*cdf0e10cSrcweir
101*cdf0e10cSrcweir <p>If the parent of this object implements
102*cdf0e10cSrcweir <type scope="com::sun::star::beans">XPropertyState</type>, then members
103*cdf0e10cSrcweir of this interface have the same effect as corresponding members of the parent.
104*cdf0e10cSrcweir </p>
105*cdf0e10cSrcweir
106*cdf0e10cSrcweir <p>If an implementation is part of a <em>read-only</em> view of the hierarchy,
107*cdf0e10cSrcweir attempts to change property states will fail.
108*cdf0e10cSrcweir </p>
109*cdf0e10cSrcweir*/
110*cdf0e10cSrcweir	[optional] interface com::sun::star::beans::XPropertyWithState;
111*cdf0e10cSrcweir
112*cdf0e10cSrcweir/** provides access to the parent of this element [optional].
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir <p>This interface may be missing if this object is not obtained
115*cdf0e10cSrcweir as a child or descendant of another tree node, for example, directly from a factory or provider.
116*cdf0e10cSrcweir </p>
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir <p><member scope="com::sun::star::container">XChild::getParent()</member>
119*cdf0e10cSrcweir returns NULL, if this object is currently not contained in another node.
120*cdf0e10cSrcweir </p>
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir <p><em>Setting a different parent is, generally, not supported.</em></p>
123*cdf0e10cSrcweir*/
124*cdf0e10cSrcweir	[optional] interface com::sun::star::container::XChild;
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir};
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir//=============================================================================
129*cdf0e10cSrcweir
130*cdf0e10cSrcweir}; }; }; };
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir#endif
133