ooodev.adapter.ui.action_trigger_container_comp module
- class ooodev.adapter.ui.action_trigger_container_comp.ActionTriggerContainerComp(component)[source]
Bases:
IndexContainerComp
[ActionT
],MultiServiceFactoryPartial
Class for managing Action Trigger Container Component.
- __init__(component)[source]
Constructor
- Parameters:
component (Any) – UNO Component that supports
com.sun.star.ui.ActionTriggerContainer
service.- Return type:
None
- get_command_index(command_url)[source]
Gets the index of the action trigger with the specified command URL.
- Parameters:
command_url (str) – Command URL
- Returns:
Index of the action trigger with the specified command URL or
-1
if not found.- Return type:
int
- is_separator(itm)[source]
Determines if the specified action trigger is a separator.
- Parameters:
itm (ActionT) – Action Trigger
- Returns:
True
if the specified action trigger is a separator,False
otherwise.- Return type:
bool
- property component: com.sun.star.ui.ActionTriggerContainer
ActionTriggerContainer Component
- Return type:
ActionTriggerContainer