def createImage(self):
        cmdText = u'nyt billede tilføjet'
        pic = LayoutItem(self.composition)
        pic.setPosition(200, 200)
        curPic = pic.createPicture(self.__layoutData.logoPath)
        self.composition.addItem(curPic)
        self.composition.sendItemAddedSignal(curPic)
        self.composition.pushAddRemoveCommand(curPic,cmdText)      
        
        

        
         
        
        
 def createUserHeaderText(self):
     cmdText = u'ny overskrift tilføjet'
     txtHeaderUser = LayoutItem(self.composition)
     txtHeaderUser.setFont(self.__layoutData.headerFont)
     txtHeaderUser.setPosition(self.__layoutData.userDataBoundingBoxX, self.__layoutData.userDataBoundingBoxY)
     txtHeaderUserLbl = txtHeaderUser.createLabel('Bruger')
     self.composition.addItem(txtHeaderUserLbl)
     self.composition.sendItemAddedSignal(txtHeaderUserLbl)
     self.composition.pushAddRemoveCommand(txtHeaderUserLbl,cmdText)
 def createUserTextBox(self):
     cmdText = u'ny tekstbox tilføjet'
     txtBxUser = LayoutItem(self.composition)
     txtBxUser.setPosition(self.__layoutData.userDataBoundingBoxX ,self.__layoutData.userDataBoundingBoxY)
     txtBxUser.setWidthHeight(self.__layoutData.userDataBoundingBoxW,self.__layoutData.userDataBoundingBoxH)
     txtBxUserRect = txtBxUser.createRectangle()
     self.composition.addItem(txtBxUserRect)
     self.composition.sendItemAddedSignal(txtBxUserRect)
     self.composition.pushAddRemoveCommand(txtBxUserRect,cmdText)
 def createLayoutTxt(self,x,y,curText):
     cmdText = u'ny tekst tilføjet'
     txt = LayoutItem(self.composition)
     txt.setFont(self.__layoutData.textFont)
     txt.setPosition(x, y)
     txtFin = txt.createLabel(curText)
     self.composition.addItem(txtFin)
     self.composition.sendItemAddedSignal(txtFin)
     self.composition.pushAddRemoveCommand(txtFin,cmdText)      
 def createFirmHeaderText(self):
     cmdText = u'ny overskrift tilføjet'
     txtHeaderFirm = LayoutItem(self.composition)
     #txtHeaderFirm.setFont('Courier', 8)
     txtHeaderFirm.setFont(self.__layoutData.headerFont)
     txtHeaderFirm.setPosition(self.__layoutData.firmDataBoundingBoxX, self.__layoutData.firmDataBoundingBoxY)
     txtHeaderFirmLbl = txtHeaderFirm.createLabel('Firma')
     self.composition.addItem(txtHeaderFirmLbl)
     self.composition.sendItemAddedSignal(txtHeaderFirmLbl)
     self.composition.pushAddRemoveCommand(txtHeaderFirmLbl,cmdText)