1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_configuration_SimpleSetAccess_idl__ 24cdf0e10cSrcweir#define __com_sun_star_configuration_SimpleSetAccess_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameAccess_idl__ 27cdf0e10cSrcweir#include <com/sun/star/container/XNameAccess.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_configuration_XTemplateContainer_idl__ 31cdf0e10cSrcweir#include <com/sun/star/configuration/XTemplateContainer.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef __com_sun_star_util_XStringEscape_idl__ 35cdf0e10cSrcweir#include <com/sun/star/util/XStringEscape.idl> 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir#ifndef __com_sun_star_container_XContainer_idl__ 39cdf0e10cSrcweir#include <com/sun/star/container/XContainer.idl> 40cdf0e10cSrcweir#endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir//============================================================================= 43cdf0e10cSrcweir 44cdf0e10cSrcweirmodule com { module sun { module star { module configuration { 45cdf0e10cSrcweir 46cdf0e10cSrcweir//============================================================================= 47cdf0e10cSrcweir/** provides access to a dynamic, homogeneous, nonhierarchical set of values 48cdf0e10cSrcweir or objects. 49cdf0e10cSrcweir 50cdf0e10cSrcweir <p>Also provides information about the template for elements. 51cdf0e10cSrcweir Allows normalizing externally generated names. 52cdf0e10cSrcweir </p> 53cdf0e10cSrcweir 54cdf0e10cSrcweir <p><em>Sets</em> are dynamic containers.</p> 55cdf0e10cSrcweir 56cdf0e10cSrcweir <p>The number and names of contained elements is not fixed in advance, 57cdf0e10cSrcweir but all elements have to be of one predetermined type. 58cdf0e10cSrcweir </p> 59cdf0e10cSrcweir*/ 60cdf0e10cSrcweirpublished service SimpleSetAccess 61cdf0e10cSrcweir{ 62cdf0e10cSrcweir/** is the basic service for accessing child and descendent nodes. 63cdf0e10cSrcweir 64cdf0e10cSrcweir <p>External names from foreign namespaces should be normalized using 65cdf0e10cSrcweir <member scope="com::sun::star::util">XStringEscape::escapeString()</member>, 66cdf0e10cSrcweir if available, before using them as element names. 67cdf0e10cSrcweir </p> 68cdf0e10cSrcweir*/ 69cdf0e10cSrcweir interface com::sun::star::container::XNameAccess; 70cdf0e10cSrcweir 71cdf0e10cSrcweir/** provides additional information about the element type. [optional] 72cdf0e10cSrcweir 73cdf0e10cSrcweir <p>All set elements, if they are not just simple values, but whole trees, 74cdf0e10cSrcweir must have a predetermined structure (their <em>type</em>) 75cdf0e10cSrcweir that is described by and can be generated from a <em>template</em>. 76cdf0e10cSrcweir The semantics of the information provided about the template depends on the 77cdf0e10cSrcweir implementation. 78cdf0e10cSrcweir </p> 79cdf0e10cSrcweir 80cdf0e10cSrcweir <p>This interface may be missing, if the implementation can support only 81cdf0e10cSrcweir one predefined type or if the elements are of a simple type and 82cdf0e10cSrcweir no further information is available. In the latter case, 83cdf0e10cSrcweir <member scope="com::sun::star::container">XElementAccess::getElementType()</member> 84cdf0e10cSrcweir provides all the information there is about the element's type. 85cdf0e10cSrcweir </p> 86cdf0e10cSrcweir*/ 87cdf0e10cSrcweir [optional] interface com::sun::star::configuration::XTemplateContainer; 88cdf0e10cSrcweir 89cdf0e10cSrcweir/** allows normalizing and denormalizing external names. [optional] 90cdf0e10cSrcweir 91cdf0e10cSrcweir <p>Elements of a <em>set</em> often correspond to external entities, 92cdf0e10cSrcweir for example, files, web pages, and people whose names obey different rules and 93cdf0e10cSrcweir restrictions than names that are valid in the hierarchical naming scheme. 94cdf0e10cSrcweir </p> 95cdf0e10cSrcweir 96cdf0e10cSrcweir <p>This interface may be missing if there are no naming restrictions, 97cdf0e10cSrcweir if the implementation handles any such conversions internally, 98cdf0e10cSrcweir or if clients must enforce such restrictions themselves. In the last case, 99cdf0e10cSrcweir the naming scheme documentation must fully document any restrictions. 100cdf0e10cSrcweir </p> 101cdf0e10cSrcweir*/ 102cdf0e10cSrcweir [optional] interface com::sun::star::util::XStringEscape; 103cdf0e10cSrcweir 104cdf0e10cSrcweir/** allows attaching listeners to this node to monitor changes to the set. [optional] 105cdf0e10cSrcweir 106cdf0e10cSrcweir <p>This interface may be missing if the implementation does not support 107cdf0e10cSrcweir notifications. 108cdf0e10cSrcweir </p> 109cdf0e10cSrcweir*/ 110cdf0e10cSrcweir [optional] interface com::sun::star::container::XContainer; 111cdf0e10cSrcweir 112cdf0e10cSrcweir}; 113cdf0e10cSrcweir 114cdf0e10cSrcweir//============================================================================= 115cdf0e10cSrcweir 116cdf0e10cSrcweir}; }; }; }; 117cdf0e10cSrcweir 118cdf0e10cSrcweir#endif 119