ooodev.adapter.drawing.drawing_document_draw_view_comp module

class ooodev.adapter.drawing.drawing_document_draw_view_comp.DrawingDocumentDrawViewComp(component)[source]

Bases: ControllerComp, DrawViewPartial, PropertySetPartial, PropertyChangeImplement, VetoableChangeImplement

Class for managing DrawingDocumentDrawView Component.

Parameters:

component (XComponent) –

__init__(component)[source]

Constructor

Parameters:

component (XComponent) – UNO Component that supports com.sun.star.drawing.DrawingDocumentDrawView service.

Return type:

None

property component: com.sun.star.drawing.DrawingDocumentDrawView

DrawingDocumentDrawView Component

Return type:

DrawingDocumentDrawView

property current_page: XDrawPage

This is the drawing page that is currently visible.

Return type:

XDrawPage

property is_layer_mode: bool

If the view is in layer mode, the user can modify the layer of the model of this view in the user interface.

Return type:

bool

property is_master_page_mode: bool

If the view is in master page mode, the view shows the master pages of this model.

Return type:

bool

property view_offset: GenericUnitPoint[UnitMM100, int] | None

Gets/Sets the offset from the top left position of the displayed page to the top left position of the view area.

When setting value can be a Point or a GenericUnitPoint.

optional

Returns:

The offset from the top left position of the displayed page to the top left position of the view area.

Return type:

GenericUnitPoint[UnitMM100, int] | None

Hint
  • Point can be imported from ooo.dyn.awt.point

property visible_area: GenericUnitSizePos[UnitMM100, int]

Gets the area that is currently visible.

Return type:

GenericUnitSizePos[UnitMM100, int]

property zoom_type: ZoomKind

Gets/Sets the zoom type for the document.

Returns:

The zoom type.

Return type:

ZoomKind

Note

After setting to value ZoomKind.BY_VALUE, the zoom_value property should be set to the desired value.

Hint

  • ZoomKind can be imported from ooodev.utils.kind.zoom_kind

property zoom_value: int

Gets/Sets the zoom value to use.

When this value is set zoom_type is automatically set to ZoomKind.BY_VALUE.

Return type:

int