def __init__(self, aDocInfo, aSourcePath, aOutputPath, aPrepareFuncObj, aProcessFuncObj): self.docInfo = cmn_utils_di.splitDate(aDocInfo) self.sourcePath = aSourcePath self.outputPath = aOutputPath self.paragraphs = [] self.styleSheet = styles self.resources = {"meta": self.docInfo} self.textCmdProcessors = { "res": self.resourceProcessor, "link": self.processAnchor, "ref": self.processRef, "titleref": self.processTitleRef, "inc": self.processIncrement, "incval": self.processIncrementValue, "count": self.processCount } self.pageCounter = cmn_utils_rp.PageCountBlocker() self.dummies = [] self.buildBeginsCallbacks = [] self.currentImage = 1 self.prepareFuncObj = aPrepareFuncObj self.processFuncObj = aProcessFuncObj self.anchors = {} self.incs = {}
def __init__(self, aDocInfo, aSourcePath, aOutputPath, aPrepareFuncObj, aProcessFuncObj): self.docInfo = cmn_utils_di.splitDate(aDocInfo) self.sourcePath = aSourcePath self.outputPath = aOutputPath self.paragraphs = [] self.styleSheet = styles self.resources = {"meta": self.docInfo} self.textCmdProcessors = { "res": self.resourceProcessor, "link": self.processAnchor } self.pageCounter = cmn_utils_rp.PageCountBlocker() self.dummies = [] self.currentImage = 1 self.prepareFuncObj = aPrepareFuncObj self.processFuncObj = aProcessFuncObj self.anchors = {}