ooodev.format.inner.direct.draw.shape.para.alignment.text_direction module
This module does not currently work. It is not clear what property needs to be set to change the writing mode.
The shape has a property called TextWritingMode
. But changing it does not seem to have any effect.
There is also a property called WritingMode
. But also changing it does not seem to have any effect.
When a shapes changes the writing mode via the dialog it seems to change the shape.Start.WritingMode property;
however it seems not possible to set this property manually.
- class ooodev.format.inner.direct.draw.shape.para.alignment.text_direction.TextDirection(mode=None)[source]
Bases:
StyleBase
Shape Paragraph Text Direction
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.17.8.
- __init__(mode=None)[source]
Constructor
- Parameters:
mode (WritingMode, optional) – Determines the writing direction
- 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: _TTextDirection
Gets
TextDirection
default.- Return type:
TypeVar
(_TTextDirection
, bound= TextDirection)
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_mode: WritingMode | None
Gets/Sets writing mode of a paragraph.
- Return type:
WritingMode | None