63 if self.
doc._parsing !=
"styles.xml" and tag == (OFFICENS,
'font-face-decls'):
72 self.
parent.addText(content, check_grammar=
False)
76 for (att,value)
in attrs.items():
79 e =
Element(qname = tag, qattributes=attrdict, check_grammar=
False)
81 except AttributeError
as v:
82 print (
"Error: %s" % v)
84 if tag == (OFFICENS,
'automatic-styles'):
85 e = self.
doc.automaticstyles
86 elif tag == (OFFICENS,
'body'):
88 elif tag == (OFFICENS,
'master-styles'):
89 e = self.
doc.masterstyles
90 elif tag == (OFFICENS,
'meta'):
92 elif tag == (OFFICENS,
'scripts'):
94 elif tag == (OFFICENS,
'settings'):
96 elif tag == (OFFICENS,
'styles'):
98 elif self.
doc._parsing ==
"styles.xml" and tag == (OFFICENS,
'font-face-decls'):
99 e = self.
doc.fontfacedecls
100 elif hasattr(self,
'parent'):
101 self.
parent.addElement(e, check_grammar=
False)