Class DispatchPartial
- class ooodev.utils.partial.dispatch_partial.DispatchPartial(lo_inst, events=None)[source]
-
- dispatch_cmd(cmd: str) Any [source]
- dispatch_cmd(cmd: str, props: Iterable[com.sun.star.beans.PropertyValue]) Any
- dispatch_cmd(cmd: str, props: Iterable[com.sun.star.beans.PropertyValue], frame: com.sun.star.frame.XFrame) Any
- dispatch_cmd(cmd: str, *, frame: com.sun.star.frame.XFrame) Any
- dispatch_cmd(cmd, props=None, frame=None)
Dispatches a LibreOffice command.
- Parameters:
cmd (str) – Command to dispatch such as
GoToCell
. Note: cmd does not contain.uno:
prefix.props (PropertyValue, optional) – properties for dispatch.
frame (XFrame, optional) – Frame to dispatch to.
- Raises:
CancelEventError – If Dispatching is canceled via event.
DispatchError – If any other error occurs.
- Returns:
A possible result of the executed internal dispatch. The information behind this any depends on the dispatch!
- Return type:
Any
- Events:
Note
There are many dispatch command constants that can be found in dispatch Namespace
DISPATCHING
Event args data contains any properties passed in viaprops
.DISPATCHED
Event args data contains any results from the dispatch commands.