LibreOffice
LibreOffice 7.4 SDK API Reference
Public Member Functions | List of all members
XVBAEventProcessor Interface Reference

Executes VBA event handlers. More...

import"XVBAEventProcessor.idl";

Inheritance diagram for XVBAEventProcessor:
VBASpreadsheetEventProcessor VBATextEventProcessor VBAEventProcessor

Public Member Functions

boolean hasVbaEventHandler ([in] long nEventId, [in] sequence< any > aArgs) raises (::com::sun::star::lang::IllegalArgumentException)
 Returns whether a VBA event handler exists. More...
 
boolean processVbaEvent ([in] long nEventId, [in] sequence< any > aArgs) raises (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::util::VetoException)
 Executes a VBA event handler. More...
 

Detailed Description

Executes VBA event handlers.

Member Function Documentation

◆ hasVbaEventHandler()

boolean hasVbaEventHandler ( [in] long  nEventId,
[in] sequence< any >  aArgs 
)
raises (::com::sun::star::lang::IllegalArgumentException
)

Returns whether a VBA event handler exists.

Parameters
nEventIdThe identifier of the event. Must be a constant from VBAEventId.
aArgsAdditional arguments needed to identify some event handlers, e.g. a sheet index for spreadsheet events.
Returns
TRUE, if the VBA event handler exists. FALSE, for all other cases.

◆ processVbaEvent()

boolean processVbaEvent ( [in] long  nEventId,
[in] sequence< any >  aArgs 
)
raises (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::util::VetoException
)

Executes a VBA event handler.

Parameters
nEventIdThe identifier of the event. Must be a constant from VBAEventId.
aArgsThe input arguments needed to create the argument list of the VBA event handler.
Returns
TRUE, if event handing is enabled, and the event handler macro exists and has been invoked.
Exceptions
com::sun::star::lang::IllegalArgumentExceptionif the passed event identifier is not supported, or if the passed arguments do not conform to the arguments expected by the specified event.
com::sun::star::util::VetoExceptionif the VBA event handler has indicated to veto the event.

The documentation for this interface was generated from the following file: