ooodev.format.writer.direct.image.wrap package

Module contents

class ooodev.format.writer.direct.image.wrap.Options(*, first=None, background=None, contour=None, outside=None, overlap=None)[source]

Bases: StyleBase

Frame Vertical Alignment

New in version 0.9.0.

__init__(*, first=None, background=None, contour=None, outside=None, overlap=None)[source]

Constructor

Parameters:
  • first (bool , optional) – Specifies first paragraph.

  • background (bool , optional) – Specifies in background.

  • contour (bool , optional) – Specifies contour.

  • outside (bool , optional) – Specifies contour outside only. contour must be True for this parameter to be effective.

  • overlap (bool , optional) – Specifies allow overlap.

Return type:

None

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

Gets instance from object

Parameters:

obj (Any) – UNO Object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Instance that represents Frame Wrap Settings.

Return type:

Options

property background: _TOptions

Gets copy of instance with in background set to True

Return type:

TypeVar(_TOptions, bound= Options)

property contour: _TOptions

Gets copy of instance with contour set to True

Return type:

TypeVar(_TOptions, bound= Options)

property first: _TOptions

Gets copy of instance with first paragraph set to True

Return type:

TypeVar(_TOptions, bound= Options)

property outside: _TOptions

Gets copy of instance with contour outside only set to True

Return type:

TypeVar(_TOptions, bound= Options)

property overlap: _TOptions

Gets copy of instance with allow overlap set to True

Return type:

TypeVar(_TOptions, bound= Options)

property prop_background: bool | None

Gets/Sets background value

Return type:

bool | None

property prop_contour: bool | None

Gets/Sets contour value

Return type:

bool | None

property prop_first: bool | None

Gets/Sets first paragraph value

Return type:

bool | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_outside: bool | None

Gets/Sets contour outside only value

Return type:

bool | None

property prop_overlap: bool | None

Gets/Sets allow overlap value

Return type:

bool | None

class ooodev.format.writer.direct.image.wrap.Settings(mode=WrapTextMode.PARALLEL)[source]

Bases: StyleBase

Frame Vertical Alignment

New in version 0.9.0.

__init__(mode=WrapTextMode.PARALLEL)[source]

Constructor

Parameters:

mode (WrapTextMode) – Specifies Wrap mode. Default WrapTextMode.PARALLEL

Return type:

None

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

Gets instance from object

Parameters:

obj (object) – UNO Object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Instance that represents Frame Wrap Settings.

Return type:

Settings

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_mode: WrapTextMode

Gets/Sets Wrap mode value

Return type:

WrapTextMode

class ooodev.format.writer.direct.image.wrap.Spacing(*, left=None, right=None, top=None, bottom=None, all=None)[source]

Bases: AbstractPadding

Frame Spacing

Any properties starting with prop_ set or get current instance values.

All methods starting with fmt_ can be used to chain together properties.

New in version 0.9.0.

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind