ooodev.adapter.frame.controller_border_partial module

class ooodev.adapter.frame.controller_border_partial.ControllerBorderPartial(component, interface=com.sun.star.frame.XControllerBorder)[source]

Bases: object

Partial class for XControllerBorder.

Parameters:
  • component (XControllerBorder) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.frame.XControllerBorder)[source]

Constructor

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

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

Return type:

None

add_border_resize_listener(listener)[source]

Adds the specified listener to receive events about controller’s border resizing.

Return type:

None

Parameters:

listener (com.sun.star.frame.XBorderResizeListener) –

get_border()[source]

allows to get current border sizes of the document.

Return type:

BorderWidths

query_bordered_area(preliminary_rectangle)[source]

Allows to get suggestion for resizing of object area surrounded by the border.

If the view is going to be resized/moved this method can be used to get suggested object area. Pixels are used as units.

Return type:

Rectangle

Parameters:

preliminary_rectangle (com.sun.star.awt.Rectangle) –

removeBorderResizeListener(xListener)[source]

Removes the specified listener.

Return type:

None

Parameters:

xListener (com.sun.star.frame.XBorderResizeListener) –