Class GuiPartial

class ooodev.utils.partial.gui_partial.GuiPartial(component, lo_inst)[source]
Parameters:
  • component (Any) –

  • lo_inst (LoInst) –

__init__(component, lo_inst)[source]
Parameters:
  • component (Any) –

  • lo_inst (LoInst) –

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_frame_comp()[source]

Gets frame from doc as a FrameComp.

Returns:

document frame.

Return type:

FrameComp

get_selection()[source]

Gets selection.

Returns:

Returns current selection or None.

Return type:

Any

get_selection_supplier()[source]

Gets selection supplier

Returns:

Selection supplier

Return type:

XSelectionSupplier

get_top_window()[source]

Gets top window.

Returns:

Top window or None if there is no Active Top Window.

Return type:

XTopWindow | None

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