Update git submodules
[LibreOffice.git] / udkapi / com / sun / star / beans / XMultiPropertyStates.idl
blobc1ba6c30ff5872e8e4ec3c3674ca87c42452fc27
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com { module sun { module star { module beans {
24 /** makes it possible to query information about the state of
25 one or more properties.
27 <p>The state of a property contains information about the source of
28 the value, e.g. the object itself, a default or a stylesheet.
29 For more information see PropertyState.
31 published interface XMultiPropertyStates: com::sun::star::uno::XInterface
33 /** @returns
34 a sequence of the states of the properties which are specified
35 by their names.
37 <p>The order of the states is correlating to the order of the
38 given property names.
40 @param aPropertyName
41 specifies the names of the properties. All names must be unique.
42 This sequence must be alphabetically sorted.
44 sequence<com::sun::star::beans::PropertyState> getPropertyStates(
45 [in] sequence<string> aPropertyName )
46 raises( com::sun::star::beans::UnknownPropertyException );
48 /** sets all properties to their default values.
50 <p>Each value depends on the implementation of this interface.
51 If it is a bound property, you must change the value before
52 the change events are fired. If it is a constrained property, you
53 must fire the vetoable event before you change the property value.
54 </p>
56 void setAllPropertiesToDefault();
58 /** sets the specified properties to their default values.
60 <p>Each value depends on the implementation of this interface.
61 If it is a bound property, you must change the value before
62 the change events are fired. If it is a constrained property, you
63 must fire the vetoable event before you change the property value. </p>
65 @param aPropertyNames
66 specifies the names of the properties. All names must be unique.
67 This sequence must be alphabetically sorted.
69 @throws UnknownPropertyException
70 if one of the properties does not exist.
72 void setPropertiesToDefault( [in] sequence<string> aPropertyNames )
73 raises( com::sun::star::beans::UnknownPropertyException );
75 /** @returns
76 the default values of the properties with the specified names.
78 <p>If no default exists, is not known, or is void,
79 then the return type at the corresponding position in the
80 sequence returned is `void`. </p>
82 @param aPropertyNames
83 specifies the names of the properties. All names must be unique.
84 This sequence must be alphabetically sorted.
86 @throws UnknownPropertyException
87 if one of the properties does not exist.
89 @throws com::sun::star::lang::WrappedTargetException
90 if the implementation has an internal reason for the exception.
91 In this case the original exception is wrapped into that
92 com::sun::star::lang::WrappedTargetException.
94 sequence<any> getPropertyDefaults(
95 [in] sequence<string> aPropertyNames )
96 raises( com::sun::star::beans::UnknownPropertyException,
97 com::sun::star::lang::WrappedTargetException );
101 }; }; }; };
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */