fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / udkapi / com / sun / star / script / XInvocation.idl
blob7545fdb415d6432afff96c76f1e36ccf78ddf513
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 .
19 #ifndef __com_sun_star_script_XInvocation_idl__
20 #define __com_sun_star_script_XInvocation_idl__
22 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/beans/XIntrospectionAccess.idl>
26 #include <com/sun/star/lang/IllegalArgumentException.idl>
28 #include <com/sun/star/script/CannotConvertException.idl>
30 #include <com/sun/star/reflection/InvocationTargetException.idl>
32 #include <com/sun/star/beans/UnknownPropertyException.idl>
36 module com { module sun { module star { module script {
38 /** gives access to an object's methods and properties.
39 Container access is available through
40 com::sun::star::container::XIndexContainer,
41 com::sun::star::container::XNameContainer and
42 com::sun::star::container::XEnumerationAccess.
43 </p>
45 published interface XInvocation: com::sun::star::uno::XInterface
47 /** returns the introspection from this object or `NULL`
48 if the object does not provide this information.
50 com::sun::star::beans::XIntrospectionAccess getIntrospection();
52 /** provides access to methods exposed by an object.
54 @param aParams all parameters; pure out params are undefined in sequence,
55 the value has to be ignored by the callee
56 @param aOutParamIndex This sequence contains the indices of all parameters
57 that are specified as out or inout.
58 @param aOutParam This sequence contains the values of all parameters that
59 are specified as out or inout and corresponds with the
60 indices provided by the aOutParamIndex sequence.
62 Example: aOutParamIndex == { 1, 4 } means that
63 aOutParam[0] contains the out value of the aParams[1]
64 parameter and aOutParam[1] contains the out value of
65 the aParams[4] parameter.
67 any invoke( [in] string aFunctionName,
68 [in] sequence<any> aParams,
69 [out] sequence<short> aOutParamIndex,
70 [out] sequence<any> aOutParam )
71 raises( com::sun::star::lang::IllegalArgumentException,
72 com::sun::star::script::CannotConvertException,
73 com::sun::star::reflection::InvocationTargetException );
75 /** sets a value to the property with the specified name.
77 <p> If the underlying object implements an
78 com::sun::star::container::XNameContainer,
79 then this method will insert the value if there is no such
80 <var>aPropertyName</var>.
82 </p>
84 void setValue( [in] string aPropertyName,
85 [in] any aValue )
86 raises( com::sun::star::beans::UnknownPropertyException,
87 com::sun::star::script::CannotConvertException,
88 com::sun::star::reflection::InvocationTargetException );
90 /** returns the value of the property with the specified name.
92 @param aPropertyName
93 specifies the name of the property.
95 any getValue( [in] string aPropertyName )
96 raises( com::sun::star::beans::UnknownPropertyException );
98 /** returns `TRUE` if the method with the specified name exists, else `FALSE`.
100 <p>This optimizes the calling sequence
101 ( XInvocation::hasMethod(),
102 XInvocation::invoke() )!</p>
104 @param aName
105 specifies the name of the method.
107 boolean hasMethod( [in] string aName );
109 /** returns `TRUE` if the property with the specified name exists, else `FALSE`.
111 <p>This optimizes the calling sequence
112 ( XInvocation::hasProperty(),
113 XInvocation::getValue() ) or
115 ( XInvocation::hasProperty(),
116 XInvocation::setValue() )!
118 @param aName
119 specifies the name of the property.
121 boolean hasProperty( [in] string aName );
126 }; }; }; };
128 #endif
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */