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 .
22 module com
{ module sun
{ module star
{ module script
{
24 /** provides access to additional scripting code.
26 <p>This code is organized in modules and these modules contain
27 the functions. It is possible to get just the code from a function,
28 but you can also get the whole code of a module with all functions in it.</p>
31 published
interface XLibraryAccess
: com
::sun
::star
::uno
::XInterface
33 /** returns `TRUE`, if the function is accessible through this library;
34 otherwise it returns `FALSE`.
37 the fully qualified name of a function.
38 (e.g., "UtilLibrary.ModuleDate.FunctionCurrentDate")
40 boolean isFunction
( [in] string aFunctionName
);
42 /** returns `TRUE` if a fully qualified function name begins with this name.
45 a part of a function name (e.g., "UtilLibrary").
47 boolean isValidPath
( [in] string aPathName
);
49 /** Return all module names which contain code.
50 e.g., { "UtilLibrary.ModuleDate", "UtilLibrary.Output", ... }
52 sequence
<string> getModuleNames
();
54 /** get the source code of a module.
56 string getModuleSource
( [in] string aModulName
);
58 /** Get the whole compiled code of a module.
60 @param aModuleName the full qualified name of a module.
61 (e.g., "UtilLibrary.ModuleDate")
62 @return an empty sequence, if this module is not found or the
65 sequence
<byte> getModuleCode
( [in] string aModuleName
);
67 /** get the source code of a function.
69 string getFunctionSource
( [in] string aFunctionName
);
71 /** Get the compiled code of a function.
73 @param FunctionName the full qualified name of a function.
74 (e.g., "UtilLibrary.ModuleDate.Function.CurrentDate")
75 @return an empty sequence, if this function is not found.
77 sequence
<byte> getFunctionCode
( [in] string FunctionName
);
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */