Logo Search packages:      
Sourcecode: calibre version File versions

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

A <draw:page> is a slide in a presentation. We use a <fieldset> element in HTML.
    Therefore if you convert a ODP file, you get a series of <fieldset>s.
    Override this for your own purpose.

Definition at line 621 of file odf2xhtml.py.

00621                                      :
        """ A <draw:page> is a slide in a presentation. We use a <fieldset> element in HTML.
            Therefore if you convert a ODP file, you get a series of <fieldset>s.
            Override this for your own purpose.
        """
        name = attrs.get( (DRAWNS,'name'), "NoName")
        stylename = attrs.get( (DRAWNS,'style-name'), "")
        stylename = stylename.replace(".","_")
        masterpage = attrs.get( (DRAWNS,'master-page-name'),"")
        masterpage = masterpage.replace(".","_")
        if self.generate_css:
            self.opentag('fieldset', {'class':"DP-%s MP-%s" % (stylename, masterpage) })
        else:
            self.opentag('fieldset')
        self.opentag('legend')
        self.writeout(escape(name))
        self.closetag('legend')

    def e_draw_page(self, tag, attrs):


Generated by  Doxygen 1.6.0   Back to index