ooodev.adapter.script.vba.vba_compatibility_partial module

class ooodev.adapter.script.vba.vba_compatibility_partial.VBACompatibilityPartial(component, interface=com.sun.star.script.vba.XVBACompatibility)[source]

Bases: object

Partial class for XVBACompatibility.

Parameters:
  • component (XVBACompatibility) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.script.vba.XVBACompatibility)[source]

Constructor

Parameters:
  • component (XVBACompatibility) – UNO Component that implements com.sun.star.script.vba.XVBACompatibility interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XVBACompatibility.

Return type:

None

add_vba_script_listener(listener)[source]

Add a listener to be notified when a VBA script event occurs.

Return type:

None

Parameters:

listener (com.sun.star.script.vba.XVBAScriptListener) –

broadcast_vba_script_event(identifier, module_name)[source]

Broadcast a VBA script event to all listeners.

Return type:

None

Parameters:
  • identifier (int) –

  • module_name (str) –

remove_vba_script_listener(listener)[source]

Remove a listener from the list of listeners.

Return type:

None

Parameters:

listener (com.sun.star.script.vba.XVBAScriptListener) –

property project_name: str

Gets/Sets the name of the project.

Return type:

str

property running_vba_scripts: int

Gets the number of running VBA scripts.

Return type:

int

property vba_compatibility_mode: bool

Gets/Sets the VBA compatibility mode.

Return type:

bool