lpod.content

class lpod.content.odf_content(part_name, container)

Bases: lpod.xmlpart.odf_xmlpart

get_body()
get_style(family, name_or_element=None, display_name=None)

Return the style uniquely identified by the name/family pair. If the argument is already a style object, it will return it.

If the name is None, the default style is fetched.

If the name is not the internal name but the name you gave in the desktop application, use display_name instead.

Arguments:

family – ‘paragraph’, ‘text’, ‘graphic’, ‘table’, ‘list’,
‘number’

name_or_element – unicode or odf_style

display_name – unicode

Return: odf_style or None if not found

get_styles(family=None)

Return the list of styles in the Content part, optionally limited to the given family.

Arguments:

family – str

Return: list of odf_style

Previous topic

lpod.container

Next topic

lpod.datatype

This Page