Class ModelDialog

class ooodev.dialog.dl_control.model.model_dialog.ModelDialog(component)[source]

Bases: UnoControlModelComp

Parameters:

component (UnoControlModel) –

__init__(component)[source]

Constructor

Parameters:

component (UnoControlModel) – UNO Component that implements com.sun.star.awt.UnoControlModel service.

Return type:

None

add_event_listener(listener)

Adds an event listener to the component.

Parameters:

listener (XEventListener) – The event listener to be added.

Return type:

None

add_property_change_listener(name, listener)

Adds a listener for property changes.

Parameters:
  • name (str) – The name of the property.

  • listener (Any) – The listener to be added.

Return type:

None

add_vetoable_change_listener(name, listener)

Adds a listener for vetoable changes.

Parameters:
  • name (str) – The name of the property.

  • listener (Any) – The listener to be added.

Return type:

None

create_clone()

Creates a clone of the object.

Returns:

The clone.

Return type:

XCloneable

dispose()

Disposes the component.

Return type:

None

get_property_set_info()

Returns the property set info.

Returns:

The property set info.

Return type:

XPropertySetInfo

get_property_value(name)

Returns the value of a property.

Parameters:

name (str) – The name of the property.

Returns:

The value of the property.

Return type:

Any

remove_event_listener(listener)

Removes an event listener from the component.

Parameters:

listener (XEventListener) – The event listener to be removed.

Return type:

None

remove_property_change_listener(name, listener)

Removes a listener for property changes.

Parameters:
  • name (str) – The name of the property.

  • listener (Any) – The listener to be removed.

Return type:

None

remove_vetoable_change_listener(name, listener)

Removes a listener for vetoable changes.

Parameters:
  • name (str) – The name of the property.

  • listener (Any) – The listener to be removed.

Return type:

None

set_property_value(name, value)

Sets the value of a property.

Parameters:
  • name (str) – The name of the property.

  • value (Any) – The value of the property.

Return type:

None

property background_color: Color

Get or set the background color property.

Return type:

NewType()(Color, int)

property closeable: bool

Get or set the closable property.

Return type:

bool

property component: com.sun.star.awt.UnoControlModel

UnoControlModel Component

Return type:

UnoControlModel

property decoration: bool

Get or set the decoration property.

Return type:

bool

property desktop_as_parent: bool

Get or set the desktop_as_parent property.

Return type:

bool

property dialog_source_url: str

Get or set the dialog_source_url property.

Return type:

str

property enabled: bool

Get or set the enabled property.

Return type:

bool

property h_scroll: bool

Get or set the h_scroll property.

Return type:

bool

property height: UnitAppFontHeight

Get the height of the dialog.

Return type:

UnitAppFontHeight

property help_text: str

Get or set the help_text property.

Return type:

str

property help_url: str

Get or set the help_url property.

Return type:

str

property image_url: str

Get or set the image_url property.

Return type:

str

property model: com.sun.star.awt.UnoControlModel

Uno Control Model

Return type:

UnoControlModel

property moveable: bool

Get or set the movable property.

Return type:

bool

property name: str

Get or set the name property.

Return type:

str

property scroll_height: UnitAppFontHeight

Get or set the scroll_bar_height property.

Return type:

UnitAppFontHeight

property scroll_top: UnitAppFontX

Get or set the scroll_top property.

Return type:

UnitAppFontX

property scroll_width: UnitAppFontWidth

Get or set the scroll_bar_width property.

Return type:

UnitAppFontWidth

property sizeable: bool

Get or set the sizeable property.

Return type:

bool

property step: int

Get or set the step property.

Return type:

int

property tab_index: int

Get or set the tab_index property.

Return type:

int

property tab_page_id: int

Get or set the tab_page_id property.

Return type:

int

property tag: str

Get or set the tag property.

Return type:

str

property text_color: Color | None

Get or set the text_color property.

Return type:

Color | None

property text_line_color: Color | None

Get or set the text_line_color property.

Return type:

Color | None

property title: str

Get or set the title property.

Return type:

str

property tool_tip: str

Get or set the tool_tip property.

Return type:

str

property v_scroll: bool

Get or set the v_scroll property.

Return type:

bool

property width: UnitAppFontWidth

Get or set the width property.

Return type:

UnitAppFontWidth

property x: UnitAppFontX

Get or set the position_x property.

Return type:

UnitAppFontX

property y: UnitAppFontY

Get or set the position_y property.

Return type:

UnitAppFontY