LibreOffice Module scripting (master) 1
|
Classes | |
class | CommandEnvironment |
class | DirBrowseNode |
class | DummyInteractionHandler |
class | DummyProgressHandler |
class | FileBrowseNode |
class | Logger |
class | LogLevel |
class | ManifestHandler |
class | ModuleEntry |
class | MyUriHelper |
class | Package |
class | PackageBrowseNode |
class | ProviderContext |
class | PythonScript |
class | PythonScriptProvider |
class | ScriptBrowseNode |
class | ScriptContext |
Functions | |
def | encfile (uni) |
def | lastException2String () |
def | logLevel2String (level) |
def | getLogTarget () |
def | readTextFromStream (inputStream) |
def | toIniName (str) |
def | hasChanged (oldDate, newDate) |
def | ensureSourceState (code) |
def | checkForPythonPathBesideScript (url) |
def | isScript (candidate) |
def | isPyFileInPath (sfa, path) |
def | getPathsFromPackage (rootUrl, sfa) |
def | getModelFromDocUrl (ctx, url) |
def | mapStorageType2PackageContext (storageType) |
def | getPackageName2PathMap (sfa, storageType) |
def | penultimateElement (aStr) |
def | lastElement (aStr) |
def | expandUri (uri) |
Variables | |
string | PYSCRIPT_LOG_ENV = "PYSCRIPT_LOG_LEVEL" |
string | PYSCRIPT_LOG_STDOUT_ENV = "PYSCRIPT_LOG_STDOUT" |
use | |
string | LOG_STDOUT = "0" |
bool | ENABLE_EDIT_DIALOG = False |
log = Logger( getLogTarget() ) | |
string | LANGUAGENAME = "Python" |
string | GLOBAL_SCRIPTCONTEXT_NAME = "XSCRIPTCONTEXT" |
string | CALLABLE_CONTAINER_NAME = "g_exportedScripts" |
g_ImplementationHelper = unohelper.ImplementationHelper() | |
string | g_implName = "org.libreoffice.pyuno.LanguageScriptProviderFor"+LANGUAGENAME |
int | BLOCK_SIZE = 65536 |
def pythonscript.checkForPythonPathBesideScript | ( | url | ) |
Definition at line 285 of file pythonscript.py.
References encfile(), and unohelper.fileUrlToSystemPath().
Referenced by pythonscript.ProviderContext.getFuncsByUrl(), and pythonscript.ProviderContext.getModuleByUrl().
def pythonscript.encfile | ( | uni | ) |
Definition at line 53 of file pythonscript.py.
Referenced by checkForPythonPathBesideScript(), and pythonscript.ProviderContext.getModuleByUrl().
def pythonscript.ensureSourceState | ( | code | ) |
Definition at line 278 of file pythonscript.py.
Referenced by pythonscript.ScriptBrowseNode.actionPerformed(), pythonscript.ProviderContext.getFuncsByUrl(), and pythonscript.ProviderContext.getModuleByUrl().
def pythonscript.expandUri | ( | uri | ) |
Definition at line 941 of file pythonscript.py.
References com::sun::star::uno.absolutize(), and com::sun::star::uno.getComponentContext().
Referenced by pythonscript.PythonScriptProvider.__init__(), getPackageName2PathMap(), pythonscript.PythonScriptProvider.hasByName(), pythonscript.PythonScriptProvider.insertByName(), pythonscript.PythonScriptProvider.removeByName(), and pythonscript.PythonScriptProvider.replaceByName().
def pythonscript.getLogTarget | ( | ) |
Definition at line 70 of file pythonscript.py.
References com::sun::star::uno.fileUrlToSystemPath(), com::sun::star::uno.getComponentContext(), and lastException2String().
def pythonscript.getModelFromDocUrl | ( | ctx, | |
url | |||
) |
Get document model from document url.
Definition at line 806 of file pythonscript.py.
Referenced by pythonscript.PythonScriptProvider.__init__().
def pythonscript.getPackageName2PathMap | ( | sfa, | |
storageType | |||
) |
Definition at line 839 of file pythonscript.py.
References expandUri(), com::sun::star::uno.getComponentContext(), getPathsFromPackage(), lastElement(), mapStorageType2PackageContext(), and penultimateElement().
def pythonscript.getPathsFromPackage | ( | rootUrl, | |
sfa | |||
) |
Definition at line 746 of file pythonscript.py.
References com::sun::star::uno.getComponentContext(), isPyFileInPath(), and lastException2String().
Referenced by getPackageName2PathMap().
def pythonscript.hasChanged | ( | oldDate, | |
newDate | |||
) |
Definition at line 269 of file pythonscript.py.
Referenced by pythonscript.ProviderContext.getModuleByUrl().
def pythonscript.isPyFileInPath | ( | sfa, | |
path | |||
) |
Definition at line 732 of file pythonscript.py.
Referenced by getPathsFromPackage(), and pythonscript.PythonScriptProvider.insertByName().
def pythonscript.isScript | ( | candidate | ) |
Definition at line 502 of file pythonscript.py.
Referenced by pythonscript.ScriptBrowseNode.actionPerformed().
def pythonscript.lastElement | ( | aStr | ) |
Definition at line 867 of file pythonscript.py.
Referenced by pythonscript.PackageBrowseNode.getChildNodes(), and getPackageName2PathMap().
def pythonscript.lastException2String | ( | ) |
Definition at line 56 of file pythonscript.py.
References com::sun::star::uno._uno_extract_printable_stacktrace().
Referenced by pythonscript.PythonScriptProvider.__init__(), pythonscript.ScriptBrowseNode.actionPerformed(), pythonscript.FileBrowseNode.getChildNodes(), pythonscript.DirBrowseNode.getChildNodes(), pythonscript.ProviderContext.getFuncsByUrl(), getLogTarget(), getPathsFromPackage(), pythonscript.ScriptBrowseNode.getPropertyValue(), pythonscript.PythonScriptProvider.getScript(), pythonscript.PythonScriptProvider.hasByName(), pythonscript.PythonScript.invoke(), and pythonscript.Logger.log().
def pythonscript.logLevel2String | ( | level | ) |
Definition at line 62 of file pythonscript.py.
Referenced by pythonscript.Logger.log().
def pythonscript.mapStorageType2PackageContext | ( | storageType | ) |
Definition at line 831 of file pythonscript.py.
Referenced by getPackageName2PathMap().
def pythonscript.penultimateElement | ( | aStr | ) |
Definition at line 862 of file pythonscript.py.
Referenced by getPackageName2PathMap().
def pythonscript.readTextFromStream | ( | inputStream | ) |
Definition at line 151 of file pythonscript.py.
Referenced by pythonscript.ProviderContext.getFuncsByUrl(), and pythonscript.ProviderContext.getModuleByUrl().
def pythonscript.toIniName | ( | str | ) |
Definition at line 161 of file pythonscript.py.
int pythonscript.BLOCK_SIZE = 65536 |
Definition at line 150 of file pythonscript.py.
string pythonscript.CALLABLE_CONTAINER_NAME = "g_exportedScripts" |
Definition at line 142 of file pythonscript.py.
bool pythonscript.ENABLE_EDIT_DIALOG = False |
Definition at line 50 of file pythonscript.py.
pythonscript.g_ImplementationHelper = unohelper.ImplementationHelper() |
Definition at line 145 of file pythonscript.py.
string pythonscript.g_implName = "org.libreoffice.pyuno.LanguageScriptProviderFor"+LANGUAGENAME |
Definition at line 146 of file pythonscript.py.
string pythonscript.GLOBAL_SCRIPTCONTEXT_NAME = "XSCRIPTCONTEXT" |
Definition at line 141 of file pythonscript.py.
string pythonscript.LANGUAGENAME = "Python" |
Definition at line 140 of file pythonscript.py.
pythonscript.log = Logger( getLogTarget() ) |
Definition at line 116 of file pythonscript.py.
string pythonscript.LOG_STDOUT = "0" |
Definition at line 48 of file pythonscript.py.
string pythonscript.PYSCRIPT_LOG_ENV = "PYSCRIPT_LOG_LEVEL" |
Definition at line 36 of file pythonscript.py.
string pythonscript.PYSCRIPT_LOG_STDOUT_ENV = "PYSCRIPT_LOG_STDOUT" |
Definition at line 37 of file pythonscript.py.
pythonscript.use |
Definition at line 40 of file pythonscript.py.