예제 #1
0
 def getStreamFromBytes(self, name, bytes):
     if name == "WordDocument":
         return WordDocumentStream(bytes, self.params, doc=self)
     if name in ("0Table", "1Table"):
         return TableStream(bytes, self.params, name, doc=self)
     else:
         return DOCDirStream(bytes, self.params, name, doc=self)
예제 #2
0
 def __init__(self, parent):
     DOCDirStream.__init__(self, parent.bytes)
     self.parent = parent
     self.pos = parent.pos
예제 #3
0
 def __init__(self, bytes):
     DOCDirStream.__init__(self, bytes)
예제 #4
0
 def __init__(self, parent, PropertyIds):
     DOCDirStream.__init__(self, parent.bytes)
     self.parent = parent
     self.propertyIds = PropertyIds
예제 #5
0
 def __init__(self, bytes, params, doc):
     DOCDirStream.__init__(self, bytes, params, "\x05SummaryInformation", doc=doc)
예제 #6
0
 def __init__(self, parent, name):
     DOCDirStream.__init__(self, parent.bytes)
     self.pos = parent.pos
     self.parent = parent
     self.name = name
예제 #7
0
 def __init__(self, parent, index):
     DOCDirStream.__init__(self, parent.bytes)
     self.parent = parent
     self.index = index
     self.pos = parent.posOrig + parent.idsAndOffsets[index].Offset
예제 #8
0
 def __init__(self, parent, index):
     DOCDirStream.__init__(self, parent.bytes)
     self.parent = parent
     self.index = index
     self.pos = parent.pos
예제 #9
0
 def __init__(self, bytes, params, doc):
     DOCDirStream.__init__(self, bytes, params, "WordDocument", doc=doc)
예제 #10
0
 def __init__(self, bytes, params, name, doc):
     DOCDirStream.__init__(self, bytes, params, name, doc=doc)
예제 #11
0
 def __init__(self, bytes, params, doc):
     DOCDirStream.__init__(self, bytes, params, "WordDocument", doc=doc)
예제 #12
0
 def __init__(self, bytes, params, name, doc):
     DOCDirStream.__init__(self, bytes, params, name, doc=doc)