Logo Search packages:      
Sourcecode: ocrfeeder version File versions  Download package

def odf::opendocument::OpenDocument::_getmasterstyles (   self  )  [private]

Loop through the masterstyles elements, and find the automatic
    styles that are used. These will be added to the automatic-styles
    element in styles.xml

Definition at line 149 of file opendocument.py.

00149                               :
        """ Loop through the masterstyles elements, and find the automatic
            styles that are used. These will be added to the automatic-styles
            element in styles.xml
        """
        stylelist = self._parseoneelement(self.masterstyles, [])
        automaticmasterstyles = AutomaticStyles()
        for e in self.automaticstyles.elements:
            if e.getAttr(STYLENS,u'name') in stylelist:
                automaticmasterstyles.addElement(copy.deepcopy(e))
        return automaticmasterstyles

    def stylesxml(self):


Generated by  Doxygen 1.6.0   Back to index