ODFPY 1.2.0
 
Loading...
Searching...
No Matches
odf.load.LoadParser Class Reference

Extract headings from content.xml of an ODT file. More...

Inheritance diagram for odf.load.LoadParser:
Collaboration diagram for odf.load.LoadParser:

Public Member Functions

 __init__ (self, document)
 
 characters (self, data)
 
 startElementNS (self, tag, qname, attrs)
 
 endElementNS (self, tag, qname)
 

Public Attributes

 doc = document
 
list data = []
 
int level = 0
 
bool parse = False
 
tuple parse = (OFFICENS, 'font-face-decls'):
 
dict data = {}
 
 curr = e
 
 parent = e
 

Static Public Attributes

tuple triggers
 

Detailed Description

Extract headings from content.xml of an ODT file.

Definition at line 42 of file load.py.

Constructor & Destructor Documentation

◆ __init__()

odf.load.LoadParser.__init__ ( self,
document )

Definition at line 49 of file load.py.

Member Function Documentation

◆ characters()

odf.load.LoadParser.characters ( self,
data )

Definition at line 55 of file load.py.

Here is the caller graph for this function:

◆ endElementNS()

odf.load.LoadParser.endElementNS ( self,
tag,
qname )

Definition at line 105 of file load.py.

Here is the caller graph for this function:

◆ startElementNS()

odf.load.LoadParser.startElementNS ( self,
tag,
qname,
attrs )

Definition at line 60 of file load.py.

Here is the caller graph for this function:

Member Data Documentation

◆ curr

odf.load.LoadParser.curr = e

Definition at line 80 of file load.py.

◆ data [1/2]

list odf.load.LoadParser.data = []

Definition at line 51 of file load.py.

◆ data [2/2]

dict odf.load.LoadParser.data = {}

Definition at line 73 of file load.py.

◆ doc

odf.load.LoadParser.doc = document

Definition at line 50 of file load.py.

◆ level

int odf.load.LoadParser.level = 0

Definition at line 52 of file load.py.

◆ parent

odf.load.LoadParser.parent = e

Definition at line 102 of file load.py.

◆ parse [1/2]

bool odf.load.LoadParser.parse = False

Definition at line 53 of file load.py.

◆ parse [2/2]

tuple odf.load.LoadParser.parse = (OFFICENS, 'font-face-decls'):

Definition at line 62 of file load.py.

◆ triggers

tuple odf.load.LoadParser.triggers
static
Initial value:
= (
(OFFICENS, 'automatic-styles'), (OFFICENS, 'body'),
(OFFICENS, 'font-face-decls'), (OFFICENS, 'master-styles'),
(OFFICENS, 'meta'), (OFFICENS, 'scripts'),
(OFFICENS, 'settings'), (OFFICENS, 'styles') )

Definition at line 43 of file load.py.


The documentation for this class was generated from the following file: