forked from amazingfate/loongoffice
Python scripts can now invoke usual Basic builtin functions
Example:
from ScriptForge import CreateScriptService
bas = CreateScriptService('Basic')
bas.MsgBox('This is the text to be displayed', bas.MB_ICONEXCLAMATION)
Python scripts can use most ScriptForge services written in Basic
Example:
from scriptforge import CreateScriptService
FSO = CreateScriptService('FileSystem')
a = FSO.BuildPath('/tmp', 'xyz')
Syntax and semantic are as close as possible to the Basic syntax
Implemented are a SFServices class and its subclasses representing each
a ScriptForge service and where the interfaces are defined (properties,
methods and arguments)
Their execution goes through the "machinery", i.e. a set of python
and basic routines that manage the call from the python process to
the appropriate service in an as much agnostic and generic way
Only a limited set of services are implemented so far: SF_FileSystem
(partially) and SF_Timer: they served as prototypes and initial tests
Change-Id: I0b383b59359c12710e7165139e498cca5a7856bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111971
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
22 lines
1.1 KiB
XML
22 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
|
|
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ScriptForge" library:readonly="false" library:passwordprotected="false">
|
|
<library:element library:name="__License"/>
|
|
<library:element library:name="SF_String"/>
|
|
<library:element library:name="_CodingConventions"/>
|
|
<library:element library:name="SF_Timer"/>
|
|
<library:element library:name="_ModuleModel"/>
|
|
<library:element library:name="SF_Utils"/>
|
|
<library:element library:name="SF_Root"/>
|
|
<library:element library:name="SF_Array"/>
|
|
<library:element library:name="SF_Services"/>
|
|
<library:element library:name="SF_Dictionary"/>
|
|
<library:element library:name="SF_Session"/>
|
|
<library:element library:name="SF_FileSystem"/>
|
|
<library:element library:name="SF_TextStream"/>
|
|
<library:element library:name="SF_L10N"/>
|
|
<library:element library:name="SF_Exception"/>
|
|
<library:element library:name="SF_UI"/>
|
|
<library:element library:name="SF_Platform"/>
|
|
<library:element library:name="SF_PythonHelper"/>
|
|
</library:library> |