Logo Search packages:      
Sourcecode: calibre version File versions

def odf::odf2xhtml::ODF2XHTML::s_style_master_page (   self,
  tag,
  attrs 
)

Collect the formatting for the page layout style.

Definition at line 851 of file odf2xhtml.py.

00851                                              :
        """ Collect the formatting for the page layout style.
        """
        name = attrs[(STYLENS,'name')]
        name = name.replace(".","_")

        self.currentstyle = ".MP-" + name
        self.stylestack.append(self.currentstyle)
        self.styledict[self.currentstyle] = {('','position'):'relative'}
        # Then load the pagelayout style if we find it
        pagelayout = attrs.get( (STYLENS,'page-layout-name'), None)
        if pagelayout:
            pagelayout = ".PL-" + pagelayout
            if self.styledict.has_key( pagelayout ):
                styles = self.styledict[pagelayout]
                for style, val in styles.items():
                    self.styledict[self.currentstyle][style] = val
            else:
                self.styledict[self.currentstyle]['__parent-style-name'] = pagelayout
        self.s_ignorexml(tag, attrs)

    # Short prefixes for class selectors
    familyshort = {'drawing-page':'DP', 'paragraph':'P', 'presentation':'PR',


Generated by  Doxygen 1.6.0   Back to index