odt.enum package

Submodules

odt.enum.annotation module

class odt.enum.annotation.Annotation(text_annotation: str, author: str)[source]

Bases: object

A class for generating a annotation in a document

get_end() Element[source]
get_initials() str[source]
get_start() Element[source]

odt.enum.namespaces module

class odt.enum.namespaces.NameSpaces[source]

Bases: object

Class with document namespace odt

FO = '{urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0}'
OFFICE = '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}'
STYLE = '{urn:oasis:names:tc:opendocument:xmlns:style:1.0}'
TEXT = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0}'
XML = '{http://www.w3.org/XML/1998/namespace}'

odt.enum.style module

class odt.enum.style.Style(data: <module 'xml.etree.ElementTree' from '/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/xml/etree/ElementTree.py'>, font_name: str, font_size: int, color: str, parent_style_name: str, family: str, name: str, text_position: str)[source]

Bases: object

A class for generating a style in a document

create_element_style() Element[source]
get_style_name() str[source]

odt.enum.styles module

class odt.enum.styles.Styles[source]

Bases: object

Class with styles

A = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0}a'
ANNOTATION = '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}annotation'
ANNOTATION_END = '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}annotation-end'
AUTOMATIC_STYLE = '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}automatic-styles'
PARAGRAPH = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0}p'
SPAN = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0}span'
STYLE = '{urn:oasis:names:tc:opendocument:xmlns:style:1.0}style'
STYLE_NAME = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0}style-name'
TEXT_POSITION = '{urn:oasis:names:tc:opendocument:xmlns:style:1.0}text-position'
TEXT_PROPERTIES = '{urn:oasis:names:tc:opendocument:xmlns:style:1.0}text-properties'

Module contents