LibreOffice Basic libraries contain classes, routines and variables, Python modules contain classes, functions and variables. XSCRIPTCONTEXT is not provided to imported modules. HelloWorld and Capitalise installation shared scripts illustrate UNO-related macros making use of XSCRIPTCONTEXT global variable. The component context which the script can use to create other uno components. The desktop reference on which the script can operate. The document reference on which the script can operate. Refer to LibreOffice API for a complete description of XSCRIPTCONTEXT. Genuine Basic UNO facilities can be inferred from XSCRIPTCONTEXT global variable. Python modules hold autonomous code logic, and are independent from one another. The g_exportedScripts global tuple explicitly lists selectable macros from a module. Unlike LibreOffice Basic and its dozen of UNO objects functions or services, Python macros use the XSCRIPTCONTEXT UNO single object, shared with JavaScript and BeanShell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |