LibreOffice Module wizards (master) 1
|
Classes | |
class | _Singleton |
class | Platform |
Functions | |
str | _SF_Dictionary__ConvertToJson (propval, indent=None) |
def | _SF_Dictionary__ImportFromJson (str jsonstr) |
bool | _SF_Exception__PythonPrint (str string) |
bool | _SF_FileSystem__CompareFiles (str filename1, str filename2, comparecontents=True) |
str | _SF_FileSystem__GetFilelen (str systemfilepath) |
str | _SF_FileSystem__HashFile (str filename, str algorithm) |
str | _SF_FileSystem__Normalize (str systemfilepath) |
def | _SF_Platform (str propertyname) |
def | _SF_Session__OpenURLInBrowser (str url) |
str | _SF_String__HashStr (str string, str algorithm) |
Variables | |
tuple | g_exportedScripts = () |
string | js |
def | arr = _SF_Dictionary__ImportFromJson(js) |
|
private |
Given an array of PropertyValues as argument, convert it to a JSON string
Definition at line 57 of file ScriptForgeHelper.py.
|
private |
Given a JSON string as argument, convert it to a list of tuples (name, value) The value must not be a (sub)dict. This doesn't pass the python-basic bridge.
Definition at line 69 of file ScriptForgeHelper.py.
|
private |
Write the argument to stdout. If the APSO shell console is active, the argument will be displayed in the console window
Definition at line 93 of file ScriptForgeHelper.py.
|
private |
Compare the 2 files, returning True if they seem equal, False otherwise. By default, only their signatures (modification time, ...) are compared. When comparecontents == True, their contents are compared.
Definition at line 107 of file ScriptForgeHelper.py.
|
private |
Definition at line 120 of file ScriptForgeHelper.py.
|
private |
Hash a given file with the given hashing algorithm cfr. https://www.pythoncentral.io/hashing-files-with-python/ Example hash = _SF_FileSystem__HashFile('myfile.txt','MD5')
Definition at line 124 of file ScriptForgeHelper.py.
References _SF_FileSystem__HashFile().
Referenced by _SF_FileSystem__HashFile().
|
private |
Normalize a pathname by collapsing redundant separators and up-level references so that A//B, A/B/, A/./B and A/foo/../B all become A/B. On Windows, it converts forward slashes to backward slashes.
Definition at line 161 of file ScriptForgeHelper.py.
|
private |
Switch between SF_Platform properties (read the documentation about the ScriptForge.Platform service)
Definition at line 175 of file ScriptForgeHelper.py.
|
private |
Display url using the default browser
Definition at line 249 of file ScriptForgeHelper.py.
|
private |
Hash a given UTF-8 string with the given hashing algorithm Example hash = _SF_String__HashStr('This is a UTF-8 encoded string.','MD5')
Definition at line 263 of file ScriptForgeHelper.py.
References _SF_String__HashStr().
Referenced by _SF_String__HashStr().
def ScriptForgeHelper.arr = _SF_Dictionary__ImportFromJson(js) |
Definition at line 329 of file ScriptForgeHelper.py.
tuple ScriptForgeHelper.g_exportedScripts = () |
Definition at line 299 of file ScriptForgeHelper.py.
string ScriptForgeHelper.js |
Definition at line 323 of file ScriptForgeHelper.py.