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,VetoableChangeImplementClass for managing DrawingDocumentDrawView Component.
- Parameters:
component (XComponent) –
- __init__(component)[source]
Constructor
- Parameters:
component (XComponent) – UNO Component that supports
com.sun.star.drawing.DrawingDocumentDrawViewservice.- 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
Pointor aGenericUnitPoint.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
Pointcan be imported fromooo.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, thezoom_valueproperty should be set to the desired value.Hint
ZoomKindcan be imported fromooodev.utils.kind.zoom_kind
- property zoom_value: int
Gets/Sets the zoom value to use.
When this value is set
zoom_typeis automatically set toZoomKind.BY_VALUE.- Return type:
int