Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
('validation', 0x06),
('pivot-rowcol', 0x07),
('row', 0x09),
]
_fields_ = R([
(1, 'UseCB'),
(1, 'fValidPlex'),
(1, 'fValidIds'),
(1, 'fNo3d'),
(1, 'wListSelType'),
(1, 'unused'),
(1, 'reserved'),
(_lct, 'lct'),
])
class _bsels(Boolean, ubyte1): pass
_fields_ = [
(ObjFmlaNoSize, 'fmla'),
(uint2, 'cLines'),
(uint2, 'iSel'),
(_flags, 'flags'),
(ObjId, 'idEdit'),
(LbsDropData, 'dropData'),
(lambda s: dyn.array(XLUnicodeString, s['cLines'].li.int()), 'dropData'),
(lambda s: dyn.array(s._bsels, s['cLines'].li.int()), 'bsels'),
]
@Ft.define
class FtGboData(pstruct.type):
featureType = 0x000f
class _flags(pbinary.flags):
(lambda s: dyn.array(uint4, s['cId'].li.int()), 'rgId'),
]
class Feat11RgSharepointIdDel(Feat11RgSharepointId): pass
class Feat11RgSharepointIdChange(Feat11RgSharepointId): pass
class Feat11CellStruct(pstruct.type):
_fields_ = [(uint4, 'idxRow'),(uint4,'idxField')]
class Feat11RgInvalidCells(pstruct.type):
_fields_ = [
(uint2, 'cCellInvalid'),
(lambda s: dyn.array(Feat11CellStruct, s['cCellInvalid'].li.int()), 'rgCellInvalid'),
]
class TableFeatureType(pstruct.type):
class crwHeader(Boolean, uint4): pass
class crwTotals(Boolean, uint4): pass
class _flags(pbinary.flags):
_fields_ = R([
(1, 'unused2'), (1, 'fAutoFilter'), (1, 'fPersistAutoFilter'),
(1, 'fShowInsertRow'), (1, 'fInsertRowInsCells'), (1, 'fLoadPldwIdDeleted'),
(1, 'fShownTotalRow'), (1, 'reserved1'), (1, 'fNeedsCommit'),
(1, 'fSingleCell'), (1, 'reserved2'), (1, 'fApplyAutoFilter'),
(1, 'fForceInsertToBeVis'), (1, 'fCompressedXml'), (1, 'fLoadCSPName'),
(1, 'fLoadPldwIdChanged'), (4, 'verXL'), (1, 'fLoadEntryId'),
(1, 'fLoadPllstclInvalid'), (1, 'fGoodRupBld'), (1, 'unused3'),
(1, 'fPublished'), (7, 'reserved3'),
])
def __cSPName(self):
return XLUnicodeString if self['flags'].li['fLoadCSPName'] else ptype.undefined
]
class HideObjEnum(pint.enum):
_values_ = [
('SHOWALL', 0),
('SHOWPLACEHOLDER', 1),
('HIDEALL', 2),
]
@RT_Excel.define
class HideObj(HideObjEnum, uint2):
type = 0x8d
type = 141
@RT_Excel.define
class Backup(Boolean, uint2):
type = 0x40
type = 64
@RT_Excel.define
class CompressPictures(pstruct.type):
type = 0x89b
type = 2203
class _fAutoCompressPicture(Boolean, uint4): pass
_fields_ = [
(FrtHeader, 'frtHeader'),
(_fAutoCompressPicture, 'fAutoCompressPicture'),
]
class TabIndex(uint2): pass
('horizontal+', 1),
('horizontal-', 2),
('vertical+', 3),
('vertical-', 4),
]
class ebsrc(pint.enum, ubyte1):
_values_ = [
('percentage', 1),
('fixed', 2),
('standard', 3),
('custom', 4),
('error', 5),
]
class fTeeTop(Boolean, ubyte1): pass
_fields_ = [
(sertm, 'sertm'),
(ebsrc, 'ebsrc'),
(fTeeTop, 'fTeeTop'),
(ubyte1, 'reserved'),
(Xnum, 'numValue'),
(uint2, 'cnum'),
]
class SharedFeatureType(pint.enum, uint2):
_values_ = [
('ISFPROTECTION', 0x2),
('ISFFEC2', 0x3),
('ISFFACTOID', 0x4),
('ISFLIST', 0x5),
class _fAutoCompressPicture(Boolean, uint4): pass
_fields_ = [
(FrtHeader, 'frtHeader'),
(_fAutoCompressPicture, 'fAutoCompressPicture'),
]
class TabIndex(uint2): pass
@RT_Excel.define
class Password(uint2):
type = 0x13
type = 19
@RT_Excel.define
class Protect(Boolean, uint2):
type = 0x12
type = 18
@RT_Excel.define
class WinProtect(Boolean, uint2):
type = 0x19
type = 25
@RT_Excel.define
class UsesELFs(Boolean, uint2):
type = 0x1ae
type = 352
@RT_Excel.define
class WriteAccess(pstruct.type):
type = 0x5c
]
class TabIndex(uint2): pass
@RT_Excel.define
class Password(uint2):
type = 0x13
type = 19
@RT_Excel.define
class Protect(Boolean, uint2):
type = 0x12
type = 18
@RT_Excel.define
class WinProtect(Boolean, uint2):
type = 0x19
type = 25
@RT_Excel.define
class UsesELFs(Boolean, uint2):
type = 0x1ae
type = 352
@RT_Excel.define
class WriteAccess(pstruct.type):
type = 0x5c
type = 92
_fields_ = [
(XLUnicodeString, 'userName'),
(lambda s: dyn.block(112-s['userName'].li.size()), 'unused')
]
@RT_Excel.define
class HideObj(HideObjEnum, uint2):
type = 0x8d
type = 141
@RT_Excel.define
class Backup(Boolean, uint2):
type = 0x40
type = 64
@RT_Excel.define
class CompressPictures(pstruct.type):
type = 0x89b
type = 2203
class _fAutoCompressPicture(Boolean, uint4): pass
_fields_ = [
(FrtHeader, 'frtHeader'),
(_fAutoCompressPicture, 'fAutoCompressPicture'),
]
class TabIndex(uint2): pass
@RT_Excel.define
class Password(uint2):
type = 0x13
type = 19
@RT_Excel.define
class Protect(Boolean, uint2):
type = 0x12
@RT_Excel.define
class CalcMode(pint.enum, uint2):
type = 0xd
type = 13
_values_ = [
('Manual', 0),('Automatic', 1),('No Tables', 2),
]
@RT_Excel.define
class BuiltInFnGroupCount(uint2):
type = 156
type = 0x9c
@RT_Excel.define
class Prot4Rev(Boolean, uint2):
type = 431
type = 0x1af
@RT_Excel.define
class Prot4RevPass(uint2):
type = 444
type = 0x1bc
@RT_Excel.define
class DSF(uint2):
type = 353
type = 0x161
@RT_Excel.define
class MsoDrawingGroup(art.OfficeArtDggContainer):
type = 0xeb
_fields_ = [
(FrtHeader, 'frtHeader'),
(uint4, 'dwThemeVersion'),
(__rgb, 'rgb'),
]
@RT_Excel.define
class Blank(Cell):
type = 513
type = 0x201
@RT_Excel.define
class ForceFullCalculation(pstruct.type):
type = 0x8a3
type = 2211
class _fNoDeps(Boolean, uint4): pass
_fields_ = [
(FrtHeader, 'frtHeader'),
(_fNoDeps, 'fNoDeps'),
]
class XTI(pstruct.type):
_fields_ = [
(uint2, 'iSupBook'),
(sint2, 'iTabFirst'),
(sint2, 'iTabLast'),
]
@RT_Excel.define
class ExternSheet(pstruct.type):
type = 0x17
type = 23
]
class Feat11RgSharepointIdDel(Feat11RgSharepointId): pass
class Feat11RgSharepointIdChange(Feat11RgSharepointId): pass
class Feat11CellStruct(pstruct.type):
_fields_ = [(uint4, 'idxRow'),(uint4,'idxField')]
class Feat11RgInvalidCells(pstruct.type):
_fields_ = [
(uint2, 'cCellInvalid'),
(lambda s: dyn.array(Feat11CellStruct, s['cCellInvalid'].li.int()), 'rgCellInvalid'),
]
class TableFeatureType(pstruct.type):
class crwHeader(Boolean, uint4): pass
class crwTotals(Boolean, uint4): pass
class _flags(pbinary.flags):
_fields_ = R([
(1, 'unused2'), (1, 'fAutoFilter'), (1, 'fPersistAutoFilter'),
(1, 'fShowInsertRow'), (1, 'fInsertRowInsCells'), (1, 'fLoadPldwIdDeleted'),
(1, 'fShownTotalRow'), (1, 'reserved1'), (1, 'fNeedsCommit'),
(1, 'fSingleCell'), (1, 'reserved2'), (1, 'fApplyAutoFilter'),
(1, 'fForceInsertToBeVis'), (1, 'fCompressedXml'), (1, 'fLoadCSPName'),
(1, 'fLoadPldwIdChanged'), (4, 'verXL'), (1, 'fLoadEntryId'),
(1, 'fLoadPllstclInvalid'), (1, 'fGoodRupBld'), (1, 'unused3'),
(1, 'fPublished'), (7, 'reserved3'),
])
def __cSPName(self):
return XLUnicodeString if self['flags'].li['fLoadCSPName'] else ptype.undefined
def __entryId(self):