ooodev.format.inner.common.abstract.abstract_writing_mode module
- class ooodev.format.inner.common.abstract.abstract_writing_mode.AbstractWritingMode(mode=None)[source]
Bases:
StyleBase
Paragraph Writing Mode
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.4.
- __init__(mode=None)[source]
Constructor
- Parameters:
mode (WritingMode2Enum, optional) – Determines the writing direction.
- Return type:
None
- apply(obj: Any)[source]
- apply(obj: Any, **kwargs)
- apply(obj, **kwargs)
Applies writing mode to
obj
- Parameters:
obj (object) – UNO object that supports
com.sun.star.style.ParagraphPropertiesComplex
service.- 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:
WritingMode
instance that representsobj
writing mode.- Return type:
- property default: _TAbstractWritingMode
Gets
WritingMode
default.- Return type:
TypeVar
(_TAbstractWritingMode
, bound= AbstractWritingMode)
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_mode: WritingMode2Enum | None
Gets/Sets writing mode of a paragraph.
- Return type:
WritingMode2Enum | None