ooodev.format.inner.direct.write.image.image_type.size module

Module for Fill Transparency.

New in version 0.9.0.

class ooodev.format.inner.direct.write.image.image_type.size.AbsoluteSize(value)[source]

Bases: object

Absolute size

Parameters:

value (float | UnitT) –

__init__(value)[source]

Constructor

Parameters:

value (float, UnitT) – Size value in mm units or Class UnitT.

Return type:

None

copy()[source]

Creates a copy of this object

Return type:

AbsoluteSize

property size: UnitMM

Gets/Sets Size value in mm units

Return type:

UnitMM

class ooodev.format.inner.direct.write.image.image_type.size.RelativeKind(value)[source]

Bases: Enum

Relative Kind

PAGE = 7

Entire Page

PARAGRAPH = 0

Paragraph area

class ooodev.format.inner.direct.write.image.image_type.size.RelativeSize(size, kind)[source]

Bases: object

Relative size

Parameters:
__init__(size, kind)
Parameters:
Return type:

None

kind: RelativeKind

Relative Kind

size: int

Percentage of Page Or Paragraph from 1 to 254

class ooodev.format.inner.direct.write.image.image_type.size.Size(width=None, height=None)[source]

Bases: AbstractDocument

Image Type Size

New in version 0.9.0.

__init__(width=None, height=None)[source]

Constructor

Parameters:
Return type:

None

apply(obj: Any)[source]
apply(obj: Any, **kwargs)
apply(obj, **kwargs)

Applies style of current instance.

Parameters:

obj (object) – UNO Object that styles are to be applied.

Return type:

None

copy()[source]
copy(**kwargs)
copy(**kwargs)

Gets a copy of instance as a new instance

Return type:

TypeVar(_TSize, bound= Size)

Parameters:

self (_TSize) –

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Gets instance from object

Parameters:

obj (object) – UNO Object.

Returns:

Instance that represents Frame size.

Return type:

Size

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_height: RelativeSize | AbsoluteSize | None

Gets/Sets height.

Return type:

RelativeSize | AbsoluteSize | None

property prop_width: RelativeSize | AbsoluteSize | None

Gets/Sets width.

Return type:

RelativeSize | AbsoluteSize | None