/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __com_sun_star_configuration_ConfigurationProvider_idl__
#define __com_sun_star_configuration_ConfigurationProvider_idl__
#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
#include An implementation is usually obtained from a
Some arguments for
The parameter aServiceSpecifier passed to
Using the first of these service specifiers requests a read-only view of
the configuration.
The object that is created implements service Using the second form requests an updatable view of the configuration.
The object that is created should implement service
The arguments passed to
What combinations of arguments are supported depends on the service name.
With both of the standard service-specifiers above, an implementation must
accept a single argument named Other arguments can be used to control the behavior of the view. These
are different for different implementations. Whether and how they are used
may also depend on the configuration store and configuration that were
selected when the provider was created.
An implementation must ignore unknown arguments. Some parameters that are commonly supported are: Example: In the hierarchy
"Locale"
and "EnableAsync"
.
"com.sun.star.configuration.ConfigurationAccess"
and
"com.sun.star.configuration.ConfigurationUpdateAccess"
.
If the root element of the view is marked read-only (as indicated
by nodepath
of type
"nodepath"
: "depth"
: "locale"
:
A - B1 - C1
|
- B2 - C2 (localized: de, en, fr, ..)
| |
| - C3 - D1
| | |
| | - D2 - E1
| |
| - C4 - D3 - E2 - F1
| | |
| | - F2
| |
| - C5
|
- B3
|
- B4 - C6 - D4 - E3
selecting a view with nodepath = "/A/B2"
,
depth = 2
and locale = <Locale for en_US>
would result in the tree fragment
(A-) B2 - C2 (en)
|
- C3 - D1
| |
| - D2 (..)
|
- C4 - D3 (..)
|
- C5
"enableasync"
: This parameter was formerly called "lazywrite"
.
The old name should still be supported for compatibility.
"nocache"
: This parameter is not supported by all implementations and may be silently ignored !
The owner of the provider may dispose of this object
using
Views created by the provider generally refer to data that is managed by the provider. Therefore, disposing of the provider will cause all objects belonging to these views to be disposed of as well. This does not apply to snapshot views that have their own copy of the data, if available.
*/ interface com::sun::star::lang::XComponent; }; //============================================================================= }; }; }; }; #endif