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

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

A <draw:frame> is made into a <div> in HTML which is then styled

Definition at line 521 of file odf2xhtml.py.

00521                                       :
        """ A <draw:frame> is made into a <div> in HTML which is then styled
        """
        name = "G-" + attrs.get( (DRAWNS,'style-name'), "")
        if name == 'G-':
            name = "PR-" + attrs.get( (PRESENTATIONNS,'style-name'), "")
        name = name.replace(".","_")
        style = "position: absolute;"
        if attrs.has_key( (SVGNS,"width") ):
            style = style + "width:" + attrs[(SVGNS,"width")] + ";"
        if attrs.has_key( (SVGNS,"height") ):
            style = style + "height:" +  attrs[(SVGNS,"height")] + ";"
        if attrs.has_key( (SVGNS,"x") ):
            style = style + "left:" +  attrs[(SVGNS,"x")] + ";"
        if attrs.has_key( (SVGNS,"y") ):
            style = style + "top:" +  attrs[(SVGNS,"y")] + ";"
        self.opentag('div', {'class': name, 'style': style})

    def e_draw_frame(self, tag, attrs):


Generated by  Doxygen 1.6.0   Back to index