LibreOffice Module scripting (master) 1
Classes | Functions | Variables
pythonscript Namespace Reference

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
 

Function Documentation

◆ checkForPythonPathBesideScript()

def pythonscript.checkForPythonPathBesideScript (   url)

◆ encfile()

def pythonscript.encfile (   uni)

◆ ensureSourceState()

def pythonscript.ensureSourceState (   code)

◆ expandUri()

def pythonscript.expandUri (   uri)

◆ getLogTarget()

def pythonscript.getLogTarget ( )

◆ getModelFromDocUrl()

def pythonscript.getModelFromDocUrl (   ctx,
  url 
)
Get document model from document url.

Definition at line 806 of file pythonscript.py.

Referenced by pythonscript.PythonScriptProvider.__init__().

◆ getPackageName2PathMap()

def pythonscript.getPackageName2PathMap (   sfa,
  storageType 
)

◆ getPathsFromPackage()

def pythonscript.getPathsFromPackage (   rootUrl,
  sfa 
)

◆ hasChanged()

def pythonscript.hasChanged (   oldDate,
  newDate 
)

Definition at line 269 of file pythonscript.py.

Referenced by pythonscript.ProviderContext.getModuleByUrl().

◆ isPyFileInPath()

def pythonscript.isPyFileInPath (   sfa,
  path 
)

◆ isScript()

def pythonscript.isScript (   candidate)

Definition at line 502 of file pythonscript.py.

Referenced by pythonscript.ScriptBrowseNode.actionPerformed().

◆ lastElement()

def pythonscript.lastElement (   aStr)

◆ lastException2String()

def pythonscript.lastException2String ( )

◆ logLevel2String()

def pythonscript.logLevel2String (   level)

Definition at line 62 of file pythonscript.py.

Referenced by pythonscript.Logger.log().

◆ mapStorageType2PackageContext()

def pythonscript.mapStorageType2PackageContext (   storageType)

Definition at line 831 of file pythonscript.py.

Referenced by getPackageName2PathMap().

◆ penultimateElement()

def pythonscript.penultimateElement (   aStr)

Definition at line 862 of file pythonscript.py.

Referenced by getPackageName2PathMap().

◆ readTextFromStream()

def pythonscript.readTextFromStream (   inputStream)

◆ toIniName()

def pythonscript.toIniName (   str)

Definition at line 161 of file pythonscript.py.

Variable Documentation

◆ BLOCK_SIZE

int pythonscript.BLOCK_SIZE = 65536

Definition at line 150 of file pythonscript.py.

◆ CALLABLE_CONTAINER_NAME

string pythonscript.CALLABLE_CONTAINER_NAME = "g_exportedScripts"

Definition at line 142 of file pythonscript.py.

◆ ENABLE_EDIT_DIALOG

bool pythonscript.ENABLE_EDIT_DIALOG = False

Definition at line 50 of file pythonscript.py.

◆ g_ImplementationHelper

pythonscript.g_ImplementationHelper = unohelper.ImplementationHelper()

Definition at line 145 of file pythonscript.py.

◆ g_implName

string pythonscript.g_implName = "org.libreoffice.pyuno.LanguageScriptProviderFor"+LANGUAGENAME

Definition at line 146 of file pythonscript.py.

◆ GLOBAL_SCRIPTCONTEXT_NAME

string pythonscript.GLOBAL_SCRIPTCONTEXT_NAME = "XSCRIPTCONTEXT"

Definition at line 141 of file pythonscript.py.

◆ LANGUAGENAME

string pythonscript.LANGUAGENAME = "Python"

Definition at line 140 of file pythonscript.py.

◆ log

pythonscript.log = Logger( getLogTarget() )

Definition at line 116 of file pythonscript.py.

◆ LOG_STDOUT

string pythonscript.LOG_STDOUT = "0"

Definition at line 48 of file pythonscript.py.

◆ PYSCRIPT_LOG_ENV

string pythonscript.PYSCRIPT_LOG_ENV = "PYSCRIPT_LOG_LEVEL"

Definition at line 36 of file pythonscript.py.

◆ PYSCRIPT_LOG_STDOUT_ENV

string pythonscript.PYSCRIPT_LOG_STDOUT_ENV = "PYSCRIPT_LOG_STDOUT"

Definition at line 37 of file pythonscript.py.

◆ use

pythonscript.use

Definition at line 40 of file pythonscript.py.