1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XLibraryAccess.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_script_XLibraryAccess_idl__
31 #define __com_sun_star_script_XLibraryAccess_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
38 //=============================================================================
40 module com
{ module sun
{ module star
{ module script
{
42 //=============================================================================
43 /** provides access to additional scripting code.
45 <p>This code is organized in modules and these modules contain
46 the functions. It is possible to get just the code from a function,
47 but you can also get the whole code of a module with all functions in it.</p>
50 published
interface XLibraryAccess
: com
::sun
::star
::uno
::XInterface
52 //-------------------------------------------------------------------------
53 /** returns <TRUE/>, if the function is accessible through this library;
54 otherwise it returns <FALSE/>.
57 the fully qualified name of a funtion.
58 (e.g., "UtilLibrary.ModuleDate.FunctionCurrentDate")
60 boolean isFunction
( [in] string aFunctionName
);
62 //-------------------------------------------------------------------------
63 /** returns <TRUE/> if a fully qualified function name begins with this name.
66 a part of a function name (e.g., "UtilLibrary").
68 boolean isValidPath
( [in] string aPathName
);
70 //-------------------------------------------------------------------------
71 /** Return all module names which contain code.
72 e.g., { "UtilLibrary.ModuleDate", "UtilLibrary.Output", ... }
74 sequence
<string> getModuleNames
();
76 //-------------------------------------------------------------------------
77 /** get the source code of a module.
79 string getModuleSource
( [in] string aModulName
);
81 //-------------------------------------------------------------------------
82 /** Get the hole compiled code of a module.
84 @param ModuleName the full qualified name of a module.
85 (e.g., "UtilLibrary.ModuleDate")
86 @return an empty sequence, if this module is not found or the
89 sequence
<byte> getModuleCode
( [in] string aModuleName
);
91 //-------------------------------------------------------------------------
92 /** get the source code of a function.
94 string getFunctionSource
( [in] string aFunctionName
);
96 //-------------------------------------------------------------------------
97 /** Get the compiled code of a function.
99 @param FunctionName the full qualified name of a function.
100 (e.g., "UtilLibrary.ModuleDate.Function.CurrentDate")
101 @return an empty sequence, if this function is not found.
103 sequence
<byte> getFunctionCode
( [in] string FunctionName
);
107 //=============================================================================