Example #1
0
 def __init__(self, name):
     self.name = name
     self.document = OpenDocumentText()
     self.current_page = None
     self.photo_style = Style(name="Photo", family="graphic")
     self.document.styles.addElement(self.photo_style)
     self.font_styles = []
     self.page_layouts = []
     self.page_masters = []
     self.page_styles = []
     self.temp_images = []
     frame_style = Style(name='FrameStyle', family = 'graphic')
     frame_style.addElement(GraphicProperties(borderlinewidth='none'))
     self.document.styles.addElement(frame_style)
     frame_style_rotated = Style(name='FrameStyleRotated', family = 'graphic')
     frame_style_rotated.addElement(GraphicProperties(fill = 'none', stroke = 'none', verticalpos = 'from-top', verticalrel = 'paragraph'))
     self.document.automaticstyles.addElement(frame_style_rotated)