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

Classes

class  _A2B
 
class  _BasicObject
 
class  _Collection
 
class  _CommandBar
 
class  _CommandBarControl
 
class  _Control
 
class  _Database
 
class  _Dialog
 
class  _Event
 
class  _Field
 
class  _Form
 
class  _Module
 
class  _OptionGroup
 
class  _Property
 
class  _QueryDef
 
class  _Recordset
 
class  _Singleton
 
class  _SubForm
 
class  _TableDef
 
class  _TempVar
 
class  acConstants
 
class  Application
 
class  Basic
 
class  DoCmd
 

Functions

def _ErrorHandler (type, value, tb)
 
def A2BConnect (hostname='', port=0)
 
def DebugPrint (*args)
 
def TraceConsole ()
 
def TraceError (tracelevel, errorcode, errorprocedure, errorline)
 
def TraceLevel (newtracelevel='ERROR')
 
def TraceLog (tracelevel, text, messagebox=True)
 

Variables

 XSCRIPTCONTEXT = uno
 
string _LIBRARY = ''
 
string _VERSION = '7.4'
 
string _WRAPPERMODULE = 'Python'
 
 _vbGet
 
 _vbLet
 
 _vbMethod
 
 _vbSet
 
 _vbUNO
 

Function Documentation

◆ _ErrorHandler()

def access2base._ErrorHandler (   type,
  value,
  tb 
)
private
Is the function to be set as new sys.excepthook to bypass the standard error handler
    Derived from https://stackoverflow.com/questions/31949760/how-to-limit-python-traceback-to-specific-files
Handler removes traces pointing to methods located in access2base.py when error is due to a user programming error
    sys.excepthook = _ErrorHandler
NOT APPLIED YET

Definition at line 468 of file access2base.py.

◆ A2BConnect()

def access2base.A2BConnect (   hostname = '',
  port = 0 
)
To be called explicitly by user scripts when Python process runs outside the LibreOffice process.
    LibreOffice started as (Linux):
        ./soffice --accept='socket,host=localhost,port=xxxx;urp;'
Otherwise called implicitly by the current module without arguments
Initializes COMPONENTCONTEXT, SCRIPTPROVIDER and DESKTOP
:param hostname: probably 'localhost' or ''
:param port: port number or 0
:return: None

Definition at line 487 of file access2base.py.

Referenced by access2base._A2B.invokeMethod(), access2base._A2B.invokeWrapper(), and access2base.Application.OpenConnection().

◆ DebugPrint()

def access2base.DebugPrint ( args)

Definition at line 1460 of file access2base.py.

◆ TraceConsole()

def access2base.TraceConsole ( )

Definition at line 1467 of file access2base.py.

◆ TraceError()

def access2base.TraceError (   tracelevel,
  errorcode,
  errorprocedure,
  errorline 
)

Definition at line 1468 of file access2base.py.

◆ TraceLevel()

def access2base.TraceLevel (   newtracelevel = 'ERROR')

Definition at line 1470 of file access2base.py.

◆ TraceLog()

def access2base.TraceLog (   tracelevel,
  text,
  messagebox = True 
)

Definition at line 1471 of file access2base.py.

Variable Documentation

◆ _LIBRARY

string access2base._LIBRARY = ''
private

Definition at line 45 of file access2base.py.

◆ _vbGet

access2base._vbGet
private

Definition at line 50 of file access2base.py.

◆ _vbLet

access2base._vbLet
private

Definition at line 50 of file access2base.py.

◆ _vbMethod

access2base._vbMethod
private

Definition at line 50 of file access2base.py.

◆ _vbSet

access2base._vbSet
private

Definition at line 50 of file access2base.py.

◆ _vbUNO

access2base._vbUNO
private

Definition at line 50 of file access2base.py.

◆ _VERSION

string access2base._VERSION = '7.4'
private

Definition at line 46 of file access2base.py.

◆ _WRAPPERMODULE

string access2base._WRAPPERMODULE = 'Python'
private

Definition at line 47 of file access2base.py.

◆ XSCRIPTCONTEXT

access2base.XSCRIPTCONTEXT = uno

Definition at line 40 of file access2base.py.