Classes | |
class | OpaqueObject |
just a record to bear a filename, a mediatype and a bytes content More... | |
class | OpenDocument |
Functions | |
OpenDocumentChart () | |
Creates a chart document. | |
OpenDocumentDrawing () | |
Creates a drawing document. | |
OpenDocumentImage () | |
Creates an image document. | |
OpenDocumentPresentation () | |
Creates a presentation document. | |
OpenDocumentSpreadsheet () | |
Creates a spreadsheet document. | |
OpenDocumentText () | |
Creates a text document. | |
OpenDocumentTextMaster () | |
Creates a text master document. | |
load (odffile) | |
Load an ODF file into memory. | |
Variables | |
unicode = str | |
str | _XMLPROLOGUE |
int | UNIXPERMS = 2175008768 |
file permission as an integer value. | |
int | IS_FILENAME = 0 |
int | IS_IMAGE = 1 |
dict | odmimetypes |
mime-types => file extensions | |
odf.opendocument.load | ( | odffile | ) |
Load an ODF file into memory.
odffile | unicode string: name of a file, or as an alternative, an open readable stream |
Definition at line 1008 of file opendocument.py.
odf.opendocument.OpenDocumentChart | ( | ) |
Creates a chart document.
Definition at line 827 of file opendocument.py.
odf.opendocument.OpenDocumentDrawing | ( | ) |
Creates a drawing document.
Definition at line 837 of file opendocument.py.
odf.opendocument.OpenDocumentImage | ( | ) |
Creates an image document.
Definition at line 847 of file opendocument.py.
odf.opendocument.OpenDocumentPresentation | ( | ) |
Creates a presentation document.
Definition at line 857 of file opendocument.py.
odf.opendocument.OpenDocumentSpreadsheet | ( | ) |
Creates a spreadsheet document.
Definition at line 867 of file opendocument.py.
odf.opendocument.OpenDocumentText | ( | ) |
Creates a text document.
Definition at line 877 of file opendocument.py.
odf.opendocument.OpenDocumentTextMaster | ( | ) |
Creates a text master document.
Definition at line 887 of file opendocument.py.
|
protected |
Definition at line 55 of file opendocument.py.
int odf.opendocument.IS_FILENAME = 0 |
Definition at line 67 of file opendocument.py.
int odf.opendocument.IS_IMAGE = 1 |
Definition at line 68 of file opendocument.py.
dict odf.opendocument.odmimetypes |
mime-types => file extensions
Definition at line 79 of file opendocument.py.
odf.opendocument.unicode = str |
Definition at line 48 of file opendocument.py.
int odf.opendocument.UNIXPERMS = 2175008768 |
file permission as an integer value.
The following syntax would be invalid for Python3: UNIXPERMS = 0100644 << 16L # -rw-r–r–
So it has been precomputed: 2175008768 is the same value as 0100644 << 16L == -rw-r–r–
Definition at line 65 of file opendocument.py.