Class GuiPartialT

protocol ooodev.utils.partial.gui_partial_t.GuiPartialT[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

activate()[source]

Activates document window.

Return type:

None

add_item_to_toolbar(toolbar_name, item_name, im_fnm)[source]

Add a user-defined icon and command to the start of the specified toolbar.

Parameters:
  • toolbar_name (str) – toolbar name.

  • item_name (str) – item name.

  • im_fnm (str) – image file path.

Return type:

None

get_control_access()[source]

Get control access from office document.

Returns:

control access.

Return type:

XControlAccess

get_current_controller()[source]

Gets controller from document.

Returns:

controller.

Return type:

XController

get_dpi()[source]

Gets Dispatch provider interception.

Returns:

Dispatch provider interception.

Return type:

XDispatchProviderInterception

get_frame()[source]

Gets frame from doc.

Returns:

document frame.

Return type:

XFrame

get_selection_supplier()[source]

Gets selection supplier

Returns:

Selection supplier

Return type:

XSelectionSupplier

hide_all_menu_bars()[source]

Make all the toolbars invisible.

Return type:

None

hide_menu_bar()[source]

Hides the main menu bar.

Return type:

None

maximize()[source]

Maximizes document window.

Return type:

None

minimize()[source]

Minimizes document window.

Return type:

None

show_menu_bar()[source]

Shows the main menu bar.

Return type:

None

toggle_menu_bar()[source]

Toggles the main menu bar.

Return type:

None