LibreOffice Module wizards (master) 1
Classes | Functions | Variables
scriptforge Namespace Reference

Classes

class  _Singleton
 
class  ScriptForge
 
class  SFDatabases
 
class  SFDialogs
 
class  SFDocuments
 
class  SFScriptForge
 
class  SFServices
 
class  SFWidgets
 

Functions

def CreateScriptService (service, *args, **kwargs)
 

Variables

tuple g_exportedScripts = ()
 

Function Documentation

◆ CreateScriptService()

def scriptforge.CreateScriptService (   service,
args,
**  kwargs 
)
    A service being the name of a collection of properties and methods,
    this method returns either
        - the Python object mirror of the Basic object implementing the requested service
        - the Python object implementing the service itself

    A service may be designated by its official name, stored in its class.servicename
    or by one of its synonyms stored in its class.servicesynonyms list
    If the service is not identified, the service creation is delegated to Basic, that might raise an error
    if still not identified there

    :param service: the name of the service as a string 'library.service' - cased exactly
            or one of its synonyms
    :param args: the arguments to pass to the service constructor
    :return: the service as a Python object

Definition at line 2787 of file scriptforge.py.

Referenced by scriptforge.SFScriptForge.SF_Exception.DebugDisplay(), scriptforge.SFScriptForge.SF_Basic.ThisDatabaseDocument(), and scriptforge.SFScriptForge.SF_Platform.UserData().

Variable Documentation

◆ g_exportedScripts

tuple scriptforge.g_exportedScripts = ()

Definition at line 2855 of file scriptforge.py.