LibreOffice
LibreOffice 24.2 SDK API Reference
|
Executes VBA event handlers. More...
import"XVBAEventProcessor.idl";
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... | |
Executes VBA event handlers.
boolean hasVbaEventHandler | ( | [in] long | nEventId, |
[in] sequence< any > | aArgs | ||
) | |||
raises | ( | ::com::sun::star::lang::IllegalArgumentException | |
) |
Returns whether a VBA event handler exists.
nEventId | The identifier of the event. Must be a constant from VBAEventId. |
aArgs | Additional arguments needed to identify some event handlers, e.g. a sheet index for spreadsheet events. |
TRUE
, if the VBA event handler exists. FALSE
, for all other cases. 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.
nEventId | The identifier of the event. Must be a constant from VBAEventId. |
aArgs | The input arguments needed to create the argument list of the VBA event handler. |
TRUE
, if event handing is enabled, and the event handler macro exists and has been invoked.com::sun::star::lang::IllegalArgumentException | if 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::VetoException | if the VBA event handler has indicated to veto the event. |