ooodev.adapter.awt.dialog_partial module

class ooodev.adapter.awt.dialog_partial.DialogPartial(component, interface=com.sun.star.awt.XDialog)[source]

Bases: object

Partial class for XDialog.

Parameters:
  • component (XDialog) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XDialog)[source]

Constructor

Parameters:
  • component (XDialog) – UNO Component that implements com.sun.star.awt.XDialog interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XDialog.

Return type:

None

end_execute()[source]

Hides the dialog and then causes XDialog.execute() to return.

Return type:

None

execute()[source]

Runs the dialog modally: shows it, and waits for the execution to end.

Returns an exit code (e.g., indicating the button that was used to end the execution).

Return type:

int

get_title()[source]

Gets the title of the dialog.

Return type:

str

set_title(title)[source]

sets the title of the dialog.

Return type:

None

Parameters:

title (str) –