Bases: lpod.element.odf_element
Specialised element for lists.
Return the list item that matches the criteria. In nested lists, return the list item that really contains that content.
Arguments:
position – int
content – unicode regex
Return: odf_element or None if not found
Return all the list items that match the criteria.
Arguments:
style – unicode
content – unicode regex
Return: list of odf_paragraph
Create a list element.
Arguments:
text – a list of unicode
style – unicode
The “text” argument is just a shortcut for the most common case. To create complex lists, first create an empty list, and fill it using built list items.
Return: odf_element
Create a list item element.
Sending a unicode text is just a shortcut for the most common case. To create a list item with several paragraphs or anything else (except tables), first create an empty list item, and fill it using the other “odf_create_*” functions.
Arguments:
text – unicode or odf_element
Return: odf_element