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 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)