1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 module com
{ module sun
{ module star
{ module sheet
{
24 /** allows generic access to all spreadsheet functions.
26 @see com::sun::star::sheet::FunctionAccess
28 published
interface XFunctionAccess
: com
::sun
::star
::uno
::XInterface
31 /** calls a function and returns the result of the call.
34 the (programmatic) name of the function.
37 the arguments for the function call.
38 <p>Each element must be of one of the following types:</p>
41 <dt>`long` or `double`</dt>
42 <dd>for a numeric value.</dd>
45 <dd>for a textual value.</dd>
47 <dt>`long[][]` or `double[][]`</dt>
48 <dd>for an array of numeric values.</dd>
51 <dd>for an array of textual values.</dd>
54 <dd>for a mixed array, where each element must be of `VOID`,
55 `long`, `double` or `string`
58 <dt>com::sun::star::table::XCellRange</dt>
59 <dd>for a SheetCellRange object that contains the
64 the result of the function call.
66 <p>Possible types for the result are:</p>
70 <dd>if no result is available.</dd>
73 <dd>for a numeric result.</dd>
76 <dd>for a textual result.</dd>
79 <dd>for an array result, containing `double` and
83 @throws com::sun::star::container::NoSuchElementException
84 if the named function does not exist.
86 @throws com::sun::star::lang::IllegalArgumentException
87 if the function can not be called with these arguments.
89 any callFunction
( [in] string aName
, [in] sequence
< any
> aArguments
)
90 raises
( com
::sun
::star
::container
::NoSuchElementException
,
91 com
::sun
::star
::lang
::IllegalArgumentException
);
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */