diff --git a/filters/libmso/generated/mso.jar b/filters/libmso/generated/mso.jar index fd0c4885304..ddd890cc707 100644 Binary files a/filters/libmso/generated/mso.jar and b/filters/libmso/generated/mso.jar differ diff --git a/filters/libmso/generated/simpleParser.cpp b/filters/libmso/generated/simpleParser.cpp index 6bae7082b37..bf0bc2dff98 100644 --- a/filters/libmso/generated/simpleParser.cpp +++ b/filters/libmso/generated/simpleParser.cpp @@ -1,14165 +1,14159 @@ /* This code was generated by msoscheme (http://gitorious.org/msoscheme) */ -/* version a1780afd2e456087a351868bfe60aea6d0ff76ba */ +/* version aca4fd06f1ad330ecadf05b9e862d7c91338f051 */ #include "simpleParser.h" using namespace MSO; #include "leinputstream.h" void MSO::parseRecordHeader(LEInputStream& in, RecordHeader& _s) { _s.streamOffset = in.getPosition(); _s.recVer = in.readuint4(); _s.recInstance = in.readuint12(); _s.recType = in.readuint16(); _s.recLen = in.readuint32(); } void MSO::parseCurrentUserAtom(LEInputStream& in, CurrentUserAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FF6)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FF6"); } _s.size = in.readuint32(); if (!(((quint32)_s.size) == 0x14)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.size) == 0x14"); } _s.headerToken = in.readuint32(); if (!(((quint32)_s.headerToken) == 0xE391C05F || ((quint32)_s.headerToken) == 0xF3D1C4DF)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.headerToken) == 0xE391C05F || ((quint32)_s.headerToken) == 0xF3D1C4DF"); } _s.offsetToCurrentEdit = in.readuint32(); _s.lenUserName = in.readuint16(); if (!(((quint16)_s.lenUserName)<=255)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.lenUserName)<=255"); } _s.docFileVersion = in.readuint16(); if (!(((quint16)_s.docFileVersion) == 0x03F4)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.docFileVersion) == 0x03F4"); } _s.majorVersion = in.readuint8(); if (!(((quint8)_s.majorVersion) == 0x03)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.majorVersion) == 0x03"); } _s.minorVersion = in.readuint8(); if (!(((quint8)_s.minorVersion) == 0x00)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.minorVersion) == 0x00"); } _s.unused = in.readuint16(); _c = _s.lenUserName; _s.ansiUserName.resize(_c); in.readBytes(_s.ansiUserName); _s.relVersion = in.readuint32(); if (!(((quint32)_s.relVersion) == 0x8 || ((quint32)_s.relVersion) == 0x9)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.relVersion) == 0x8 || ((quint32)_s.relVersion) == 0x9"); } _s._has_unicodeUserName = _s.rh.recLen>3*_s.lenUserName+0x18; if (_s._has_unicodeUserName) { _c = _s.lenUserName; _s.unicodeUserName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.unicodeUserName[_i] = in.readuint16(); } } _s._has_unknown = _s.rh.recLen-0x18-3*_s.lenUserName>0; if (_s._has_unknown) { _c = _s.rh.recLen-0x18-3*_s.lenUserName; _s.unknown.resize(_c); in.readBytes(_s.unknown); } } void MSO::parseTODOS(LEInputStream& in, TODOS& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; _atend = false; while (!_atend) { _m = in.setMark(); try { _s.anon.append(Byte(&_s)); parseByte(in, _s.anon.last()); } catch(IncorrectValueException _e) { _s.anon.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.anon.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseByte(LEInputStream& in, Byte& _s) { _s.streamOffset = in.getPosition(); _s.b = in.readuint8(); } void MSO::parseZeroByte(LEInputStream& in, ZeroByte& _s) { _s.streamOffset = in.getPosition(); _s.b = in.readuint8(); if (!(((quint8)_s.b) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.b) == 0"); } } void MSO::parseCurrentUserStream(LEInputStream& in, CurrentUserStream& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseCurrentUserAtom(in, _s.anon1); _atend = false; while (!_atend) { _m = in.setMark(); try { _s.trailing.append(Byte(&_s)); parseByte(in, _s.trailing.last()); } catch(IncorrectValueException _e) { _s.trailing.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.trailing.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseOfficeArtBStoreDelay(LEInputStream& in, OfficeArtBStoreDelay& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgfb.append(OfficeArtBStoreContainerFileBlock(&_s)); parseOfficeArtBStoreContainerFileBlock(in, _s.rgfb.last()); } catch(IncorrectValueException _e) { _s.rgfb.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgfb.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseOfficeArtRecordHeader(LEInputStream& in, OfficeArtRecordHeader& _s) { _s.streamOffset = in.getPosition(); _s.recVer = in.readuint4(); _s.recInstance = in.readuint12(); _s.recType = in.readuint16(); _s.recLen = in.readuint32(); } void MSO::parseOfficeArtBlipJPEG(LEInputStream& in, OfficeArtBlipJPEG& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x46A || _s.rh.recInstance == 0x46B || _s.rh.recInstance == 0x6E2 || _s.rh.recInstance == 0x6E3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x46A || _s.rh.recInstance == 0x46B || _s.rh.recInstance == 0x6E2 || _s.rh.recInstance == 0x6E3"); } if (!(_s.rh.recType == 0xF01D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF01D"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x46B || _s.rh.recInstance == 0x6E3; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } _s.tag = in.readuint8(); _c = _s.rh.recLen-((_s.rh.recInstance == 0x46A || _s.rh.recInstance == 0x6E2)?17:33); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseOfficeArtBlipPNG(LEInputStream& in, OfficeArtBlipPNG& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x6E0 || _s.rh.recInstance == 0x6E1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x6E0 || _s.rh.recInstance == 0x6E1"); } if (!(_s.rh.recType == 0xF01E)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF01E"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x6E1; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } _s.tag = in.readuint8(); _c = _s.rh.recLen-((_s.rh.recInstance==0x6E0)?17:33); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseOfficeArtBlipDIB(LEInputStream& in, OfficeArtBlipDIB& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x7A8 || _s.rh.recInstance == 0x7A9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x7A8 || _s.rh.recInstance == 0x7A9"); } if (!(_s.rh.recType == 0xF01F)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF01F"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x7A9; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } _s.tag = in.readuint8(); _c = _s.rh.recLen-((_s.rh.recInstance==0x7A8)?17:33); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseOfficeArtBlipTIFF(LEInputStream& in, OfficeArtBlipTIFF& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x6E4 || _s.rh.recInstance == 0x6E5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x6E4 || _s.rh.recInstance == 0x6E5"); } if (!(_s.rh.recType == 0xF020)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF020"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x6E5; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } _s.tag = in.readuint8(); _c = _s.rh.recLen-((_s.rh.recInstance==0x6E4)?17:33); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseRECT(LEInputStream& in, RECT& _s) { _s.streamOffset = in.getPosition(); _s.left = in.readint32(); _s.top = in.readint32(); _s.right = in.readint32(); _s.bottom = in.readint32(); } void MSO::parsePOINT(LEInputStream& in, POINT& _s) { _s.streamOffset = in.getPosition(); _s.x = in.readint32(); _s.y = in.readint32(); } void MSO::parsePowerPointStructs(LEInputStream& in, PowerPointStructs& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; _atend = false; while (!_atend) { _m = in.setMark(); try { _s.anon.append(PowerPointStruct(&_s)); parsePowerPointStruct(in, _s.anon.last()); } catch(IncorrectValueException _e) { _s.anon.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.anon.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseSoundCollectionAtom(LEInputStream& in, SoundCollectionAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x7e5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x7e5"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.soundIdSeed = in.readuint32(); } void MSO::parseHeadersFootersAtom(LEInputStream& in, HeadersFootersAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFDA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFDA"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.formatId = in.readint16(); if (!(((qint16)_s.formatId)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.formatId)>=0"); } if (!(((qint16)_s.formatId)<=13)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.formatId)<=13"); } _s.fHasDate = in.readbit(); _s.fHasTodayDate = in.readbit(); _s.fHasUserDate = in.readbit(); _s.fHasSlideNumber = in.readbit(); _s.fHasHeader = in.readbit(); _s.fHasFooter = in.readbit(); _s.reserved1 = in.readuint2(); _s.reserved2 = in.readuint8(); } void MSO::parseUserDateAtom(LEInputStream& in, UserDateAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } if (!(_s.rh.recLen<=510)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen<=510"); } _c = _s.rh.recLen/2; _s.userDate.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.userDate[_i] = in.readuint16(); } } void MSO::parseHeaderAtom(LEInputStream& in, HeaderAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.header.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.header[_i] = in.readuint16(); } } void MSO::parseFooterAtom(LEInputStream& in, FooterAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 2"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.footer.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.footer[_i] = in.readuint16(); } } void MSO::parsePerSlideHeadersFootersContainer(LEInputStream& in, PerSlideHeadersFootersContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFD9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFD9"); } parseHeadersFootersAtom(in, _s.hfAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0)&&(_optionCheck.recLen<=510); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.userDateAtom = QSharedPointer(new UserDateAtom(&_s)); parseUserDateAtom(in, *_s.userDateAtom.data()); } catch(IncorrectValueException _e) { _s.userDateAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.userDateAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 1)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.headerAtom = QSharedPointer(new HeaderAtom(&_s)); parseHeaderAtom(in, *_s.headerAtom.data()); } catch(IncorrectValueException _e) { _s.headerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.headerAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 2)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.footerAtom = QSharedPointer(new FooterAtom(&_s)); parseFooterAtom(in, *_s.footerAtom.data()); } catch(IncorrectValueException _e) { _s.footerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.footerAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0)&&(_optionCheck.recLen<=510); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.userDateAtom2 = QSharedPointer(new UserDateAtom(&_s)); parseUserDateAtom(in, *_s.userDateAtom2.data()); } catch(IncorrectValueException _e) { _s.userDateAtom2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.userDateAtom2.clear(); in.rewind(_m); } } } void MSO::parseEndDocumentAtom(LEInputStream& in, EndDocumentAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3EA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3EA"); } if (!(_s.rh.recLen == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0"); } } void MSO::parseDocInfoListContainer(LEInputStream& in, DocInfoListContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x7D0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x7D0"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgChildRec.append(DocInfoListSubContainerOrAtom(&_s)); parseDocInfoListSubContainerOrAtom(in, _s.rgChildRec.last()); } catch(IncorrectValueException _e) { _s.rgChildRec.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgChildRec.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseSlideViewInfoAtom(LEInputStream& in, SlideViewInfoAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3FE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3FE"); } if (!(_s.rh.recLen == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 3"); } _s.unused1 = in.readuint8(); _s.fSnapToGrid = in.readuint8(); _s.fSnapToShape = in.readuint8(); } void MSO::parseGuideAtom(LEInputStream& in, GuideAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 7"); } if (!(_s.rh.recType == 0x3FB)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3FB"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.type = in.readuint32(); if (!(((quint32)_s.type) == 0 || ((quint32)_s.type) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.type) == 0 || ((quint32)_s.type) == 1"); } _s.pos = in.readint32(); if (!(((qint32)_s.pos)>=-15840)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.pos)>=-15840"); } if (!(((qint32)_s.pos)<=32255)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.pos)<=32255"); } } void MSO::parseDocProgTagsContainer(LEInputStream& in, DocProgTagsContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x1388)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1388"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgChildRec.append(DocProgTagsSubContainerOrAtom(&_s)); parseDocProgTagsSubContainerOrAtom(in, _s.rgChildRec.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseTextAutoNumberScheme(LEInputStream& in, TextAutoNumberScheme& _s) { _s.streamOffset = in.getPosition(); _s.scheme = in.readuint16(); if (!(((quint16)_s.scheme)<=40)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.scheme)<=40"); } _s.startNum = in.readuint16(); if (!(((quint16)_s.startNum)>=1)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.startNum)>=1"); } } void MSO::parseBlipCollection9Container(LEInputStream& in, BlipCollection9Container& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x07F8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x07F8"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgBlipEntityAtom.append(BlipEntityAtom(&_s)); parseBlipEntityAtom(in, _s.rgBlipEntityAtom.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseKinsoku9Atom(LEInputStream& in, Kinsoku9Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x3"); } if (!(_s.rh.recType == 0x0FD2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FD2"); } if (!(_s.rh.recLen == 0x0004)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x0004"); } _s.korLevel = in.readuint2(); if (!(((quint8)_s.korLevel) == 0x0 || ((quint8)_s.korLevel) == 0x2)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.korLevel) == 0x0 || ((quint8)_s.korLevel) == 0x2"); } _s.scLevel = in.readuint2(); if (!(((quint8)_s.scLevel) == 0x0 || ((quint8)_s.scLevel) == 0x2)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.scLevel) == 0x0 || ((quint8)_s.scLevel) == 0x2"); } _s.tcLevel = in.readuint2(); if (!(((quint8)_s.tcLevel) == 0x0 || ((quint8)_s.tcLevel) == 0x2)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.tcLevel) == 0x0 || ((quint8)_s.tcLevel) == 0x2"); } _s.jpnLevel = in.readuint2(); if (!(((quint8)_s.jpnLevel) == 0x0 || ((quint8)_s.jpnLevel) == 0x1 || ((quint8)_s.jpnLevel) == 0x2)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.jpnLevel) == 0x0 || ((quint8)_s.jpnLevel) == 0x1 || ((quint8)_s.jpnLevel) == 0x2"); } _s.reserveda = in.readuint4(); if (!(((quint8)_s.reserveda) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserveda) == 0"); } _s.reservedb = in.readuint20(); if (!(((quint32)_s.reservedb) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reservedb) == 0"); } } void MSO::parseExHyperlink9Container(LEInputStream& in, ExHyperlink9Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFE4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFE4"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parsePresAdvisorFlags9Atom(LEInputStream& in, PresAdvisorFlags9Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x177A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x177A"); } if (!(_s.rh.recLen == 0x4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x4"); } _s.fDisableCaseStyleTitleRule = in.readbit(); _s.fDisableCaseStyleBodyRule = in.readbit(); _s.fDisableEndPunctuationTitleRule = in.readbit(); _s.fDisableEndPunctuationBodyRule = in.readbit(); _s.fDisableTooManyBulletsRule = in.readbit(); _s.fDisableFontSizeTitleRule = in.readbit(); _s.fDisableFontSizeBodyRule = in.readbit(); _s.fDisableNumberOfLinesTitleRule = in.readbit(); _s.fDisableNumberOfLinesBodyRule = in.readbit(); _s.fDisableTooManyFontsRule = in.readbit(); _s.fDisablePrintTip = in.readbit(); _s.reserveda = in.readuint5(); if (!(((quint8)_s.reserveda) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserveda) == 0"); } _s.reservedb = in.readuint16(); if (!(((quint16)_s.reservedb) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.reservedb) == 0"); } } void MSO::parseEnvelopeData9Atom(LEInputStream& in, EnvelopeData9Atom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1785)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1785"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseEnvelopeFlags9Atom(LEInputStream& in, EnvelopeFlags9Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1784)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1784"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.fHasEnvelope = in.readbit(); _s.fEnvelopeVisible = in.readbit(); _s.reserved1 = in.readuint2(); if (!(((quint8)_s.reserved1) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved1) == 0"); } _s.fEnvelopeDirty = in.readbit(); _s.reserved2a = in.readuint3(); if (!(((quint8)_s.reserved2a) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2a) == 0"); } _s.reserved2b = in.readuint8(); if (!(((quint8)_s.reserved2b) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2b) == 0"); } _s.reserved2c = in.readuint16(); if (!(((quint16)_s.reserved2c) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.reserved2c) == 0"); } } void MSO::parseHTMLDocInfo9Atom(LEInputStream& in, HTMLDocInfo9Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x177B)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x177B"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _s.unused1 = in.readuint32(); _s.encoding = in.readuint32(); _s.frameColorType = in.readuint16(); if (!(((quint16)_s.frameColorType) == 0 || ((quint16)_s.frameColorType) == 1 || ((quint16)_s.frameColorType) == 2 || ((quint16)_s.frameColorType) == 3 || ((quint16)_s.frameColorType) == 4 || ((quint16)_s.frameColorType) == 5)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.frameColorType) == 0 || ((quint16)_s.frameColorType) == 1 || ((quint16)_s.frameColorType) == 2 || ((quint16)_s.frameColorType) == 3 || ((quint16)_s.frameColorType) == 4 || ((quint16)_s.frameColorType) == 5"); } _s.screenSize = in.readuint8(); _s.unused2 = in.readuint8(); _s.outputType = in.readuint8(); _s.fShowFrame = in.readbit(); _s.fResizeGraphics = in.readbit(); _s.fOrganizeInFolder = in.readbit(); _s.fUseLongFileNames = in.readbit(); _s.fRelyOnVML = in.readbit(); _s.fAllowPNG = in.readbit(); _s.fShowSlideAnimation = in.readbit(); _s.reserved1 = in.readbit(); if (!(((bool)_s.reserved1) == false)) { throw IncorrectValueException(in.getPosition(), "((bool)_s.reserved1) == false"); } _s.unused3 = in.readuint16(); } void MSO::parseHTMLPublishInfo9Container(LEInputStream& in, HTMLPublishInfo9Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x177D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x177D"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseBroadcastDocInfo9Container(LEInputStream& in, BroadcastDocInfo9Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x177E)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x177E"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseOutlineTextProps9Container(LEInputStream& in, OutlineTextProps9Container& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FAE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FAE"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgOutlineTextProps9Entry.append(OutlineTextProps9Entry(&_s)); parseOutlineTextProps9Entry(in, _s.rgOutlineTextProps9Entry.last()); } catch(IncorrectValueException _e) { _s.rgOutlineTextProps9Entry.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgOutlineTextProps9Entry.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseOutlineTextPropsHeaderExAtom(LEInputStream& in, OutlineTextPropsHeaderExAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance<=5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance<=5"); } if (!(_s.rh.recType == 0xFAF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFAF"); } _s.slideIdRef = in.readuint32(); _s.txType = in.readuint32(); } void MSO::parseStyleTextProp9Atom(LEInputStream& in, StyleTextProp9Atom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFAC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFAC"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgStyleTextProp9.append(StyleTextProp9(&_s)); parseStyleTextProp9(in, _s.rgStyleTextProp9.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseFontCollection10Container(LEInputStream& in, FontCollection10Container& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x07D6)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x07D6"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgFontCollectionEntry.append(FontCollectionEntry(&_s)); parseFontCollectionEntry(in, _s.rgFontCollectionEntry.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseGridSpacing10Atom(LEInputStream& in, GridSpacing10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x040D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x040D"); } if (!(_s.rh.recLen == 0x08)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x08"); } _s.x = in.readuint32(); if (!(((quint32)_s.x)>=23224)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.x)>=23224"); } if (!(((quint32)_s.x)<=1179648)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.x)<=1179648"); } _s.y = in.readuint32(); if (!(((quint32)_s.y)>=23224)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.y)>=23224"); } if (!(((quint32)_s.y)<=1179648)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.y)<=1179648"); } } void MSO::parseAuthorNameAtom(LEInputStream& in, AuthorNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen<=104)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen<=104"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen; _s.authorName.resize(_c); in.readBytes(_s.authorName); } void MSO::parseCommentIndex10Atom(LEInputStream& in, CommentIndex10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x2EE5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EE5"); } if (!(_s.rh.recLen == 0x08)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x08"); } _s.colorIndex = in.readint32(); if (!(((qint32)_s.colorIndex)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.colorIndex)>=0"); } _s.commentIndexSeed = in.readint32(); if (!(((qint32)_s.commentIndexSeed)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.commentIndexSeed)>=0"); } } void MSO::parseFontEmbedFlags10Atom(LEInputStream& in, FontEmbedFlags10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x32C8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x32C8"); } if (!(_s.rh.recLen == 0x04)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x04"); } _s.fSubset = in.readbit(); _s.fSubsetOptionConfirmed = in.readbit(); _s.unuseda = in.readuint14(); _s.unusedb = in.readuint16(); } void MSO::parseCopyrightAtom(LEInputStream& in, CopyrightAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x1"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen<=510)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen<=510"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen; _s.copyright.resize(_c); in.readBytes(_s.copyright); } void MSO::parseKeywordsAtom(LEInputStream& in, KeywordsAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x2"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen<=510)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen<=510"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen; _s.keywords.resize(_c); in.readBytes(_s.keywords); } void MSO::parseFilterPrivacyFlags10Atom(LEInputStream& in, FilterPrivacyFlags10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x36B0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x36B0"); } if (!(_s.rh.recLen == 0x04)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x04"); } _s.fRemovePII = in.readbit(); _s.reserved2a = in.readuint7(); if (!(((quint8)_s.reserved2a) == 0x0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2a) == 0x0"); } _s.reserved2b = in.readuint8(); if (!(((quint8)_s.reserved2b) == 0x0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2b) == 0x0"); } _s.reserved2c = in.readuint16(); if (!(((quint16)_s.reserved2c) == 0x0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.reserved2c) == 0x0"); } } void MSO::parseOutlineTextProps10Container(LEInputStream& in, OutlineTextProps10Container& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FB3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FB3"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgOutlineTextProps10Entry.append(OutlineTextProps10Entry(&_s)); parseOutlineTextProps10Entry(in, _s.rgOutlineTextProps10Entry.last()); } catch(IncorrectValueException _e) { _s.rgOutlineTextProps10Entry.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgOutlineTextProps10Entry.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseStyleTextProp10Atom(LEInputStream& in, StyleTextProp10Atom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0xFB1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFB1"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgStyleTextProp10.append(TextCFException10(&_s)); parseTextCFException10(in, _s.rgStyleTextProp10.last()); } catch(IncorrectValueException _e) { _s.rgStyleTextProp10.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgStyleTextProp10.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseDocToolbarStates10Atom(LEInputStream& in, DocToolbarStates10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x36B1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x36B1"); } if (!(_s.rh.recLen == 0x01)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x01"); } _s.fShowReviewingToolbar = in.readbit(); _s.fShowReviewingGallery = in.readbit(); _s.reserved = in.readuint6(); if (!(((quint8)_s.reserved) == 0x0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved) == 0x0"); } } void MSO::parseSlideListTable10Container(LEInputStream& in, SlideListTable10Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EF1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EF1"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseDiffTree10Container(LEInputStream& in, DiffTree10Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EEC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EEC"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseModifyPasswordAtom(LEInputStream& in, ModifyPasswordAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x03)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x03"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen<=510)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen<=510"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen; _s.modifyPassword.resize(_c); in.readBytes(_s.modifyPassword); } void MSO::parsePhotoAlbumInfo10Atom(LEInputStream& in, PhotoAlbumInfo10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x036B2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x036B2"); } if (!(_s.rh.recLen == 0x06)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x06"); } _s.fUseBlackWhite = in.readuint8(); _s.fHasCaption = in.readuint8(); _s.layout = in.readuint8(); if (!(((quint8)_s.layout) == 0 || ((quint8)_s.layout) == 1 || ((quint8)_s.layout) == 2 || ((quint8)_s.layout) == 3 || ((quint8)_s.layout) == 4 || ((quint8)_s.layout) == 5 || ((quint8)_s.layout) == 6)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.layout) == 0 || ((quint8)_s.layout) == 1 || ((quint8)_s.layout) == 2 || ((quint8)_s.layout) == 3 || ((quint8)_s.layout) == 4 || ((quint8)_s.layout) == 5 || ((quint8)_s.layout) == 6"); } _s.unused = in.readuint8(); _s.frameShape = in.readuint16(); if (!(((quint16)_s.frameShape) == 0x0000 || ((quint16)_s.frameShape) == 0x0001 || ((quint16)_s.frameShape) == 0x0002 || ((quint16)_s.frameShape) == 0x0003 || ((quint16)_s.frameShape) == 0x0004 || ((quint16)_s.frameShape) == 0x0005 || ((quint16)_s.frameShape) == 0x0006)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.frameShape) == 0x0000 || ((quint16)_s.frameShape) == 0x0001 || ((quint16)_s.frameShape) == 0x0002 || ((quint16)_s.frameShape) == 0x0003 || ((quint16)_s.frameShape) == 0x0004 || ((quint16)_s.frameShape) == 0x0005 || ((quint16)_s.frameShape) == 0x0006"); } } void MSO::parseSmartTagStore11Container(LEInputStream& in, SmartTagStore11Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x36B3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x36B3"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseOutlineTextProps11Container(LEInputStream& in, OutlineTextProps11Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FB5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FB5"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseBinaryTagDataBlob(LEInputStream& in, BinaryTagDataBlob& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x138B"); } _c = _s.rh.recLen; _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parsePP12DocBinaryTagExtension(LEInputStream& in, PP12DocBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 16; _s.tagName.resize(_c); in.readBytes(_s.tagName); parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0x0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _c = _s.rhData.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseSorterViewInfoContainer(LEInputStream& in, SorterViewInfoContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x408)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x408"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseVBAInfoAtom(LEInputStream& in, VBAInfoAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 2"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x400)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x400"); } if (!(_s.rh.recLen == 0xC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0xC"); } _s.persistIdRef = in.readuint32(); _s.fHasMacros = in.readuint32(); if (!(((quint32)_s.fHasMacros) == 0 || ((quint32)_s.fHasMacros) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.fHasMacros) == 0 || ((quint32)_s.fHasMacros) == 1"); } _s.version = in.readuint32(); if (!(((quint32)_s.version) == 0 || ((quint32)_s.version) == 1 || ((quint32)_s.version) == 2)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.version) == 0 || ((quint32)_s.version) == 1 || ((quint32)_s.version) == 2"); } } void MSO::parseMasterListWithTextContainer(LEInputStream& in, MasterListWithTextContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x1"); } if (!(_s.rh.recType == 0x0FF0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FF0"); } if (!(_s.rh.recLen%28==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%28==0"); } _c = _s.rh.recLen/28; for (int _i=0; _i<_c; ++_i) { _s.rgMasterPersistAtom.append(MasterPersistAtom(&_s)); parseMasterPersistAtom(in, _s.rgMasterPersistAtom[_i]); } } void MSO::parseMasterPersistAtom(LEInputStream& in, MasterPersistAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3F3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3F3"); } if (!(_s.rh.recLen == 0x14)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x14"); } _s.persistIdRef = in.readuint32(); _s.reserved1 = in.readuint2(); if (!(((quint8)_s.reserved1) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved1) == 0"); } _s.fNonOutLineData = in.readbit(); _s.reserved2 = in.readuint5(); if (!(((quint8)_s.reserved2) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2) == 0"); } _s.reserved3 = in.readuint8(); if (!(((quint8)_s.reserved3) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved3) == 0"); } _s.reserved4 = in.readuint16(); if (!(((quint16)_s.reserved4) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.reserved4) == 0"); } _s.reserved5 = in.readuint32(); if (!(((quint32)_s.reserved5) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved5) == 0"); } _s.masterId = in.readuint32(); _s.reserved6 = in.readuint32(); if (!(((quint32)_s.reserved6) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved6) == 0"); } } void MSO::parseSlideListWithTextContainer(LEInputStream& in, SlideListWithTextContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FF0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FF0"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgChildRec.append(SlideListWithTextSubContainerOrAtom(&_s)); parseSlideListWithTextSubContainerOrAtom(in, _s.rgChildRec.last()); } catch(IncorrectValueException _e) { _s.rgChildRec.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgChildRec.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseNotesListWithTextContainer(LEInputStream& in, NotesListWithTextContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 2"); } if (!(_s.rh.recType == 0x0FF0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FF0"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgNotesPersistAtom.append(NotesPersistAtom(&_s)); parseNotesPersistAtom(in, _s.rgNotesPersistAtom.last()); } catch(IncorrectValueException _e) { _s.rgNotesPersistAtom.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgNotesPersistAtom.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseNotesPersistAtom(LEInputStream& in, NotesPersistAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x03F3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03F3"); } if (!(_s.rh.recLen == 0x14)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x14"); } _s.persistIdRef = in.readuint32(); _s.reserved1 = in.readuint2(); if (!(((quint8)_s.reserved1) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved1) == 0"); } _s.fNonOutlineData = in.readbit(); _s.reserved2a = in.readuint5(); if (!(((quint8)_s.reserved2a) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2a) == 0"); } _s.reserved2b = in.readuint8(); if (!(((quint8)_s.reserved2b) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2b) == 0"); } _s.reserved2c = in.readuint16(); if (!(((quint16)_s.reserved2c) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.reserved2c) == 0"); } _s.reserved3 = in.readuint32(); if (!(((quint32)_s.reserved3) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved3) == 0"); } _s.notesId = in.readuint32(); _s.reserved4 = in.readuint32(); if (!(((quint32)_s.reserved4) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved4) == 0"); } } void MSO::parseTextHeaderAtom(LEInputStream& in, TextHeaderAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5"); } if (!(_s.rh.recType == 0xF9F)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF9F"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.textType = in.readuint32(); } void MSO::parseTextCharsAtom(LEInputStream& in, TextCharsAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFA0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFA0"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.textChars.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.textChars[_i] = in.readuint16(); } } void MSO::parseTextBytesAtom(LEInputStream& in, TextBytesAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFA8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFA8"); } _c = _s.rh.recLen; _s.textChars.resize(_c); in.readBytes(_s.textChars); } void MSO::parseMasterTextPropAtom(LEInputStream& in, MasterTextPropAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFA2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFA2"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgMasterTextPropRun.append(MasterTextPropRun(&_s)); parseMasterTextPropRun(in, _s.rgMasterTextPropRun.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseMasterTextPropRun(LEInputStream& in, MasterTextPropRun& _s) { _s.streamOffset = in.getPosition(); _s.count = in.readuint32(); _s.indentLevel = in.readuint16(); if (!(((quint16)_s.indentLevel)<=4)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.indentLevel)<=4"); } } void MSO::parseStyleTextPropAtom(LEInputStream& in, StyleTextPropAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFA1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFA1"); } } void MSO::parseSlideNumberMCAtom(LEInputStream& in, SlideNumberMCAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFD8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFD8"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.position = in.readint32(); } void MSO::parseDateTimeMCAtom(LEInputStream& in, DateTimeMCAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFF7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF7"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.position = in.readint32(); _s.index = in.readuint8(); _c = 3; _s.unused.resize(_c); in.readBytes(_s.unused); } void MSO::parseGenericDateMCAtom(LEInputStream& in, GenericDateMCAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFF8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF8"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.position = in.readint32(); } void MSO::parseHeaderMCAtom(LEInputStream& in, HeaderMCAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFF9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF9"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.position = in.readint32(); } void MSO::parseFooterMCAtom(LEInputStream& in, FooterMCAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFFA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFFA"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.position = in.readint32(); } void MSO::parseRTFDateTimeMCAtom(LEInputStream& in, RTFDateTimeMCAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1015)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1015"); } if (!(_s.rh.recLen == 0x84)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x84"); } _s.position = in.readint32(); _c = 128; _s.format.resize(_c); in.readBytes(_s.format); } void MSO::parseTextBookmarkAtom(LEInputStream& in, TextBookmarkAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFA7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFA7"); } if (!(_s.rh.recLen == 0xC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0xC"); } _s.begin = in.readint32(); _s.end = in.readint32(); _s.bookmarkID = in.readint32(); } void MSO::parseTextRange(LEInputStream& in, TextRange& _s) { _s.streamOffset = in.getPosition(); _s.begin = in.readint32(); _s.end = in.readint32(); } void MSO::parseMouseClickTextInteractiveInfoAtom(LEInputStream& in, MouseClickTextInteractiveInfoAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFDF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFDF"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } parseTextRange(in, _s.range); } void MSO::parseMouseOverTextInteractiveInfoAtom(LEInputStream& in, MouseOverTextInteractiveInfoAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0xFDF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFDF"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } parseTextRange(in, _s.range); } void MSO::parseSlideId(LEInputStream& in, SlideId& _s) { _s.streamOffset = in.getPosition(); _s.slideId = in.readuint32(); if (!(((quint32)_s.slideId)>=100)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.slideId)>=100"); } if (!(((quint32)_s.slideId)<2147483647)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.slideId)<2147483647"); } } void MSO::parseTabStops(LEInputStream& in, TabStops& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.count = in.readuint16(); _c = _s.count; for (int _i=0; _i<_c; ++_i) { _s.rgTabStop.append(TabStop(&_s)); parseTabStop(in, _s.rgTabStop[_i]); } } void MSO::parseTabStop(LEInputStream& in, TabStop& _s) { _s.streamOffset = in.getPosition(); _s.position = in.readint16(); _s.type = in.readuint16(); } void MSO::parsePFWrapFlags(LEInputStream& in, PFWrapFlags& _s) { _s.streamOffset = in.getPosition(); _s.charWrap = in.readbit(); _s.wordWrap = in.readbit(); _s.overflow = in.readbit(); _s.reserved1 = in.readuint5(); _s.reserved2 = in.readuint8(); } void MSO::parseColorIndexStruct(LEInputStream& in, ColorIndexStruct& _s) { _s.streamOffset = in.getPosition(); _s.red = in.readuint8(); _s.green = in.readuint8(); _s.blue = in.readuint8(); _s.index = in.readuint8(); } void MSO::parseBulletFlags(LEInputStream& in, BulletFlags& _s) { _s.streamOffset = in.getPosition(); _s.fHasBullet = in.readbit(); _s.fBulletHasFont = in.readbit(); _s.fBulletHasColor = in.readbit(); _s.fBulletHasSize = in.readbit(); _s.reserved = in.readuint12(); } void MSO::parsePFMasks(LEInputStream& in, PFMasks& _s) { _s.streamOffset = in.getPosition(); _s.hasBullet = in.readbit(); _s.bulletHasFont = in.readbit(); _s.bulletHasColor = in.readbit(); _s.bulletHasSize = in.readbit(); _s.bulletFont = in.readbit(); _s.bulletColor = in.readbit(); _s.bulletSize = in.readbit(); _s.bulletChar = in.readbit(); _s.leftMargin = in.readbit(); _s.unused = in.readbit(); _s.indent = in.readbit(); _s.align = in.readbit(); _s.lineSpacing = in.readbit(); _s.spaceBefore = in.readbit(); _s.spaceAfter = in.readbit(); _s.defaultTabSize = in.readbit(); _s.fontAlign = in.readbit(); _s.charWrap = in.readbit(); _s.wordWrap = in.readbit(); _s.overflow = in.readbit(); _s.tabStops = in.readbit(); _s.textDirection = in.readbit(); _s.reserved = in.readbit(); _s.bulletBlip = in.readbit(); _s.bulletScheme = in.readbit(); _s.bulletHasScheme = in.readbit(); _s.reserved2 = in.readuint6(); } void MSO::parseCFMasks(LEInputStream& in, CFMasks& _s) { _s.streamOffset = in.getPosition(); _s.bold = in.readbit(); _s.italic = in.readbit(); _s.underline = in.readbit(); _s.unused1 = in.readbit(); _s.shadow = in.readbit(); _s.fehint = in.readbit(); _s.unused2 = in.readbit(); _s.kumi = in.readbit(); _s.unused3 = in.readbit(); _s.emboss = in.readbit(); _s.fHasStyle = in.readuint4(); _s.unused4 = in.readuint2(); _s.typeface = in.readbit(); _s.size = in.readbit(); _s.color = in.readbit(); _s.position = in.readbit(); _s.pp10ext = in.readbit(); _s.oldEATypeface = in.readbit(); _s.ansiTypeface = in.readbit(); _s.symbolTypeface = in.readbit(); _s.newEATypeface = in.readbit(); _s.csTypeface = in.readbit(); _s.pp11ext = in.readbit(); _s.reserved = in.readuint5(); } void MSO::parseCFStyle(LEInputStream& in, CFStyle& _s) { _s.streamOffset = in.getPosition(); _s.bold = in.readbit(); _s.italic = in.readbit(); _s.underline = in.readbit(); _s.unused1 = in.readbit(); _s.shadow = in.readbit(); _s.fehint = in.readbit(); _s.unused2 = in.readbit(); _s.kumi = in.readbit(); _s.unused3 = in.readbit(); _s.emboss = in.readbit(); _s.pp9rt = in.readuint4(); _s.unused4 = in.readuint2(); } void MSO::parseFontCollectionContainer(LEInputStream& in, FontCollectionContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x07D5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x07D5"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgFontCollectionEntry.append(FontCollectionEntry(&_s)); parseFontCollectionEntry(in, _s.rgFontCollectionEntry.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseFontEntityAtom(LEInputStream& in, FontEntityAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance<=128)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance<=128"); } if (!(_s.rh.recType == 0xFB7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFB7"); } if (!(_s.rh.recLen == 0x44)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x44"); } _c = 32; _s.lfFaceName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.lfFaceName[_i] = in.readuint16(); } _s.lfCharSet = in.readuint8(); _s.fEmbedSubsetted = in.readbit(); _s.unused = in.readuint7(); _s.rasterFontType = in.readbit(); _s.deviceFontType = in.readbit(); _s.truetypeFontType = in.readbit(); _s.fNoFontSubstitution = in.readbit(); _s.reserved = in.readuint4(); if (!(((quint8)_s.reserved) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved) == 0"); } _s.lfPitchAndFamily = in.readuint8(); } void MSO::parseFontEmbedDataBlob(LEInputStream& in, FontEmbedDataBlob& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance<=3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance<=3"); } if (!(_s.rh.recType == 0xFB8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFB8"); } _c = _s.rh.recLen; _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parseKinsokuAtom(LEInputStream& in, KinsokuAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x3"); } if (!(_s.rh.recType == 0x0FD2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FD2"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.level = in.readuint32(); if (!(((quint32)_s.level) == 0 || ((quint32)_s.level) == 1 || ((quint32)_s.level) == 2 || ((quint32)_s.level) == 128)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.level) == 0 || ((quint32)_s.level) == 1 || ((quint32)_s.level) == 2 || ((quint32)_s.level) == 128"); } } void MSO::parseKinsokuLeadingAtom(LEInputStream& in, KinsokuLeadingAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.kinsokuLeading.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.kinsokuLeading[_i] = in.readuint16(); } } void MSO::parseKinsokuFollowingAtom(LEInputStream& in, KinsokuFollowingAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 1 )) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1 "); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.kinsokuFollowing.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.kinsokuFollowing[_i] = in.readuint16(); } } void MSO::parseTextSpecialInfoAtom(LEInputStream& in, TextSpecialInfoAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0xFAA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFAA"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgSIRun.append(TextSIRun(&_s)); parseTextSIRun(in, _s.rgSIRun.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseSmartTags(LEInputStream& in, SmartTags& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.count = in.readuint32(); _c = _s.count; _s.rgSmartTagIndex.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.rgSmartTagIndex[_i] = in.readuint32(); } } void MSO::parseExOleEmbedAtom(LEInputStream& in, ExOleEmbedAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FCD)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FCD"); } if (!(_s.rh.recLen == 0x8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x8"); } _s.exColorFollow = in.readuint32(); if (!(((quint32)_s.exColorFollow) == 0 || ((quint32)_s.exColorFollow) == 1 || ((quint32)_s.exColorFollow) == 2)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.exColorFollow) == 0 || ((quint32)_s.exColorFollow) == 1 || ((quint32)_s.exColorFollow) == 2"); } _s.fCantLockServer = in.readuint8(); _s.fNoSizeToServer = in.readuint8(); _s.fIsTable = in.readuint8(); _s.unused = in.readuint8(); } void MSO::parsePointStruct(LEInputStream& in, PointStruct& _s) { _s.streamOffset = in.getPosition(); _s.x = in.readint32(); _s.y = in.readint32(); } void MSO::parseRatioStruct(LEInputStream& in, RatioStruct& _s) { _s.streamOffset = in.getPosition(); _s.numer = in.readint32(); _s.denom = in.readint32(); if (!(((qint32)_s.denom)!= 0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.denom)!= 0"); } } void MSO::parsePersistDirectoryAtom(LEInputStream& in, PersistDirectoryAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1772)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1772"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgPersistDirEntry.append(PersistDirectoryEntry(&_s)); parsePersistDirectoryEntry(in, _s.rgPersistDirEntry.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseUnknownDocumentContainerChild(LEInputStream& in, UnknownDocumentContainerChild& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recType == 0x416 || _s.rh.recType == 0x41A || _s.rh.recType == 0x101A || _s.rh.recType == 0x1773 || _s.rh.recType == 0x1788 || _s.rh.recType == 0x178c || _s.rh.recType == 0x178d)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x416 || _s.rh.recType == 0x41A || _s.rh.recType == 0x101A || _s.rh.recType == 0x1773 || _s.rh.recType == 0x1788 || _s.rh.recType == 0x178c || _s.rh.recType == 0x178d"); } _c = _s.rh.recLen; _s.unknown.resize(_c); in.readBytes(_s.unknown); } void MSO::parseUnknownOfficeArtClientDataChild(LEInputStream& in, UnknownOfficeArtClientDataChild& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFE8 || _s.rh.recType == 0x1019)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFE8 || _s.rh.recType == 0x1019"); } _c = _s.rh.recLen; _s.unknown.resize(_c); in.readBytes(_s.unknown); } void MSO::parseUnknownSlideContainerChild(LEInputStream& in, UnknownSlideContainerChild& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x101D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x101D"); } _c = _s.rh.recLen; _s.unknown.resize(_c); in.readBytes(_s.unknown); } void MSO::parseUnknownTextContainerChild(LEInputStream& in, UnknownTextContainerChild& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 3"); } if (!(_s.rh.recInstance == 9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 9"); } if (!(_s.rh.recType == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0"); } _c = _s.rh.recLen; _s.unknown.resize(_c); in.readBytes(_s.unknown); } void MSO::parsePersistDirectoryEntry(LEInputStream& in, PersistDirectoryEntry& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.persistId = in.readuint20(); _s.cPersist = in.readuint12(); _c = _s.cPersist; _s.rgPersistOffset.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.rgPersistOffset[_i] = in.readuint32(); } } void MSO::parsePersistIdRef(LEInputStream& in, PersistIdRef& _s) { _s.streamOffset = in.getPosition(); _s.anon = in.readuint32(); } void MSO::parseSchemeListElementColorSchemeAtom(LEInputStream& in, SchemeListElementColorSchemeAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 6)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 6"); } if (!(_s.rh.recType == 0x7F0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x7F0"); } if (!(_s.rh.recLen == 0x20)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x20"); } _c = 8; for (int _i=0; _i<_c; ++_i) { _s.rgSchemeColor.append(ColorStruct(&_s)); parseColorStruct(in, _s.rgSchemeColor[_i]); } } void MSO::parseRoundTripOArtTextStyles12Atom(LEInputStream& in, RoundTripOArtTextStyles12Atom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x423)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x423"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseSlideNameAtom(LEInputStream& in, SlideNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 3"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.slideName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.slideName[_i] = in.readuint16(); } } void MSO::parseSlideProgTagsContainer(LEInputStream& in, SlideProgTagsContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1388)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1388"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgTypeRec.append(SlideProgTagsSubContainerOrAtom(&_s)); parseSlideProgTagsSubContainerOrAtom(in, _s.rgTypeRec.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parsePP9SlideBinaryTagExtension(LEInputStream& in, PP9SlideBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen == 0xE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0xE"); } _c = 7; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgTextMasterStyleAtom.append(TextMasterStyle9Atom(&_s)); parseTextMasterStyle9Atom(in, _s.rgTextMasterStyleAtom.last()); } catch(IncorrectValueException _e) { _s.rgTextMasterStyleAtom.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgTextMasterStyleAtom.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseComment10Container(LEInputStream& in, Comment10Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EE0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EE0"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseComment10Atom(LEInputStream& in, Comment10Atom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EE1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EE1"); } if (!(_s.rh.recLen == 0x1C)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x1C"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseLinkedSlide10Atom(LEInputStream& in, LinkedSlide10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EE7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EE7"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.linkedSlideIdRef = in.readuint32(); _s.clinkedShapes = in.readint32(); } void MSO::parseLinkedShape10Atom(LEInputStream& in, LinkedShape10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EE6)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EE6"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.shapeIdRef = in.readuint32(); _s.linkedShapeIdRef = in.readuint32(); } void MSO::parseSlideFlags10Atom(LEInputStream& in, SlideFlags10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EEA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EEA"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.fPreserveMaster = in.readbit(); _s.fOverrideMasterAnimatino = in.readbit(); _s.unuseda = in.readuint14(); _s.unusedb = in.readuint16(); } void MSO::parseHashCode10Atom(LEInputStream& in, HashCode10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2B00)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2B00"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.hash = in.readuint32(); } void MSO::parseExtTimeNodeContainer(LEInputStream& in, ExtTimeNodeContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0xF144)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF144"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseBuildListContainer(LEInputStream& in, BuildListContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2B02)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2B02"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseRoundTripHeaderFooterDefaults12Atom(LEInputStream& in, RoundTripHeaderFooterDefaults12Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0424)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0424"); } if (!(_s.rh.recLen == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 1"); } _s.fIncludeDate = in.readbit(); _s.fIncludeFooter = in.readbit(); _s.fIncludeHeader = in.readbit(); _s.fIncludeSlideNumber = in.readbit(); _s.reserved = in.readuint4(); } void MSO::parseTagNameAtom(LEInputStream& in, TagNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2 == 0 )) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2 == 0 "); } _c = _s.rh.recLen/2; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } } void MSO::parseTagValueAtom(LEInputStream& in, TagValueAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } _c = _s.rh.recLen/2; _s.tagValue.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagValue[_i] = in.readuint16(); } } void MSO::parseRoundTripMainMasterRecord(LEInputStream& in, RoundTripMainMasterRecord& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recType == 0x41C || _s.rh.recType == 0x40E || _s.rh.recType == 0x040F || _s.rh.recType == 0x41E || _s.rh.recType == 0x0423 || _s.rh.recType == 0x2B0D || _s.rh.recType == 0x2B0B || _s.rh.recType == 0x041D || _s.rh.recType == 0x2B0C || _s.rh.recType == 0x101D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x41C || _s.rh.recType == 0x40E || _s.rh.recType == 0x040F || _s.rh.recType == 0x41E || _s.rh.recType == 0x0423 || _s.rh.recType == 0x2B0D || _s.rh.recType == 0x2B0B || _s.rh.recType == 0x041D || _s.rh.recType == 0x2B0C || _s.rh.recType == 0x101D"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseTemplateNameAtom(LEInputStream& in, TemplateNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 2"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.templateName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.templateName[_i] = in.readuint16(); } } void MSO::parseRoundTripSlideSyncInfo12Container(LEInputStream& in, RoundTripSlideSyncInfo12Container& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3714)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3714"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseSlideFlags(LEInputStream& in, SlideFlags& _s) { _s.streamOffset = in.getPosition(); _s.fMasterObjects = in.readbit(); _s.fMasterScheme = in.readbit(); _s.fMasterBackground = in.readbit(); _s.unused1 = in.readuint5(); _s.unused2 = in.readuint8(); } void MSO::parseNotesRoundTripAtom(LEInputStream& in, NotesRoundTripAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x40E || _s.rh.recType == 0x40F || _s.rh.recType == 0x427)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x40E || _s.rh.recType == 0x40F || _s.rh.recType == 0x427"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseHandoutContainer(LEInputStream& in, HandoutContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FC9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FC9"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExControlStg(LEInputStream& in, ExControlStg& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x1011)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1011"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExOleObjStg(LEInputStream& in, ExOleObjStg& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1011)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1011"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseUserEditAtom(LEInputStream& in, UserEditAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FF5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FF5"); } if (!(_s.rh.recLen == 0x1C || _s.rh.recLen == 0x20)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x1C || _s.rh.recLen == 0x20"); } _s.lastSlideIdRef = in.readuint32(); _s.version = in.readuint16(); _s.minorVersion = in.readuint8(); if (!(((quint8)_s.minorVersion) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.minorVersion) == 0"); } _s.majorVersion = in.readuint8(); if (!(((quint8)_s.majorVersion) == 3)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.majorVersion) == 3"); } _s.offsetLastEdit = in.readuint32(); _s.offsetPersistDirectory = in.readuint32(); _s.docPersistIdRef = in.readuint32(); if (!(((quint32)_s.docPersistIdRef) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.docPersistIdRef) == 1"); } _s.persistIdSeed = in.readuint32(); _s.lastView = in.readuint16(); if (!(((quint16)_s.lastView)<=18)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.lastView)<=18"); } _s.unused = in.readuint16(); _s._has_encryptSessionPersistIdRef = _s.rh.recLen==32; if (_s._has_encryptSessionPersistIdRef) { _s.encryptSessionPersistIdRef = in.readuint32(); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.zeroPadding.append(ZeroByte(&_s)); parseZeroByte(in, _s.zeroPadding.last()); } catch(IncorrectValueException _e) { _s.zeroPadding.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.zeroPadding.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseVbaProjectStg(LEInputStream& in, VbaProjectStg& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x1011)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1011"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseSlideAtom(LEInputStream& in, SlideAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x2"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x03EF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03EF"); } if (!(_s.rh.recLen == 0x18)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x18"); } _s.geom = in.readuint32(); _c = 8; _s.rgPlaceholderTypes.resize(_c); in.readBytes(_s.rgPlaceholderTypes); _s.masterIdRef = in.readuint32(); _s.notesIdRef = in.readuint32(); parseSlideFlags(in, _s.slideFlags); _s.unused = in.readuint16(); } void MSO::parseSlideShowSlideInfoAtom(LEInputStream& in, SlideShowSlideInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x03F9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03F9"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _s.slidetime = in.readuint32(); _s.slideIdRef = in.readuint32(); _s.effectDirection = in.readuint8(); _s.effectType = in.readuint8(); _s.fManualAdvance = in.readbit(); _s.reserved = in.readbit(); _s.fHidden = in.readbit(); _s.reserved2 = in.readbit(); _s.fSound = in.readbit(); _s.reserved3 = in.readbit(); _s.fLoopSound = in.readbit(); _s.reserved4 = in.readbit(); _s.fStopSound = in.readbit(); _s.freserved5 = in.readbit(); _s.fAutoAdvance = in.readbit(); _s.reserved6 = in.readbit(); _s.fCursorVisible = in.readbit(); _s.reserved7 = in.readuint3(); _s.speed = in.readuint8(); _c = 3; _s.unused.resize(_c); in.readBytes(_s.unused); } void MSO::parseSlideShowDocInfoAtom(LEInputStream& in, SlideShowDocInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 1"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0401)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0401"); } if (!(_s.rh.recLen == 0x50)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x50"); } parseColorIndexStruct(in, _s.penColor); _s.restartTime = in.readint32(); _s.startSlide = in.readint16(); if (!(((qint16)_s.startSlide)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.startSlide)>=0"); } _s.endSlide = in.readint16(); if (!(((qint16)_s.endSlide)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.endSlide)>=0"); } _c = 64; _s.namedShow.resize(_c); in.readBytes(_s.namedShow); _s.fAutoAdvance = in.readbit(); _s.fWillSkipBuilds = in.readbit(); _s.fUseSlideRange = in.readbit(); _s.fDocUseNamedShow = in.readbit(); _s.fShowBrowseMode = in.readbit(); _s.fKioskMode = in.readbit(); _s.fWillSkipNarration = in.readbit(); _s.fLoopContinuously = in.readbit(); _s.fHideScrollBar = in.readbit(); _s.reserved = in.readuint7(); _s.unused = in.readuint16(); } void MSO::parseSlideSchemeColorSchemeAtom(LEInputStream& in, SlideSchemeColorSchemeAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x07F0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x07F0"); } if (!(_s.rh.recLen == 0x20)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x20"); } _c = 8; for (int _i=0; _i<_c; ++_i) { _s.rgSchemeColor.append(ColorStruct(&_s)); parseColorStruct(in, _s.rgSchemeColor[_i]); } } void MSO::parseRoundTripSlideRecord(LEInputStream& in, RoundTripSlideRecord& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recType == 0x40E || _s.rh.recType == 0x40F || _s.rh.recType == 0x41D || _s.rh.recType == 0x3714 || _s.rh.recType == 0x2B0D || _s.rh.recType == 0x2B0B || _s.rh.recType == 0x2B0C || _s.rh.recType == 0x422)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x40E || _s.rh.recType == 0x40F || _s.rh.recType == 0x41D || _s.rh.recType == 0x3714 || _s.rh.recType == 0x2B0D || _s.rh.recType == 0x2B0B || _s.rh.recType == 0x2B0C || _s.rh.recType == 0x422"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseNamedShowsContainer(LEInputStream& in, NamedShowsContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x410)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x410"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseSummaryContainer(LEInputStream& in, SummaryContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x402)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x402"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseDocRoutingSlipAtom(LEInputStream& in, DocRoutingSlipAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x406)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x406"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parsePrintOptionsAtom(LEInputStream& in, PrintOptionsAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1770)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1770"); } if (!(_s.rh.recLen == 5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 5"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseRoundTripCustomTableStyles12Atom(LEInputStream& in, RoundTripCustomTableStyles12Atom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0 || _s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0 || _s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x428)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x428"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseRoundTripCompositeMasterId12Atom(LEInputStream& in, RoundTripCompositeMasterId12Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x41D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x41D"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.compositeMasterId = in.readuint32(); } void MSO::parseColorStruct(LEInputStream& in, ColorStruct& _s) { _s.streamOffset = in.getPosition(); _s.red = in.readuint8(); _s.green = in.readuint8(); _s.blue = in.readuint8(); _s.unused = in.readuint8(); } void MSO::parseExObjListAtom(LEInputStream& in, ExObjListAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x040A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x040A"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.exObjIdSeed = in.readint32(); if (!(((qint32)_s.exObjIdSeed)>=1)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.exObjIdSeed)>=1"); } } void MSO::parseExAviMovieContainer(LEInputStream& in, ExAviMovieContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1006)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1006"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExCDAudioContainer(LEInputStream& in, ExCDAudioContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x100E)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x100E"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExControlAtom(LEInputStream& in, ExControlAtom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFFB)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFFB"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.slideIdRef = in.readuint32(); } void MSO::parseExHyperlinkAtom(LEInputStream& in, ExHyperlinkAtom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFD3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFD3"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.exHyperLinkId = in.readuint32(); } void MSO::parseFriendlyNameAtom(LEInputStream& in, FriendlyNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.friendlyName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.friendlyName[_i] = in.readuint16(); } } void MSO::parseTargetAtom(LEInputStream& in, TargetAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.target.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.target[_i] = in.readuint16(); } } void MSO::parseLocationAtom(LEInputStream& in, LocationAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 3"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen/2; _s.location.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.location[_i] = in.readuint16(); } } void MSO::parseExMCIMovieContainer(LEInputStream& in, ExMCIMovieContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1007)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1007"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExMIDIAudioContainer(LEInputStream& in, ExMIDIAudioContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x100D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x100D"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExWAVAudioEmbeddedContainer(LEInputStream& in, ExWAVAudioEmbeddedContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x100F)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x100F"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExWAVAudioLinkContainer(LEInputStream& in, ExWAVAudioLinkContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1010)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1010"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseUnknownExObjListSubContainerChild(LEInputStream& in, UnknownExObjListSubContainerChild& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFEA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFEA"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExOleLinkAtom(LEInputStream& in, ExOleLinkAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FD1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FD1"); } if (!(_s.rh.recLen == 0xC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0xC"); } _s.slideIdRef = in.readuint32(); _s.oleUpdateMode = in.readuint32(); _s.unused = in.readuint32(); } void MSO::parseExOleObjAtom(LEInputStream& in, ExOleObjAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x1"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FC3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FC3"); } if (!(_s.rh.recLen == 0x18)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x18"); } _s.drawAspect = in.readuint32(); _s.type = in.readuint32(); _s.exObjId = in.readuint32(); _s.subType = in.readuint32(); _s.persistIdRef = in.readuint32(); _s.unused = in.readuint32(); } void MSO::parseMenuNameAtom(LEInputStream& in, MenuNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x1"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen%2 == 0 )) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2 == 0 "); } _c = _s.rh.recLen; _s.menuName.resize(_c); in.readBytes(_s.menuName); } void MSO::parseProgIDAtom(LEInputStream& in, ProgIDAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x2"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen%2 == 0 )) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2 == 0 "); } _c = _s.rh.recLen; _s.progId.resize(_c); in.readBytes(_s.progId); } void MSO::parseClipboardNameAtom(LEInputStream& in, ClipboardNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x3"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen%2 == 0 )) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2 == 0 "); } _c = _s.rh.recLen; _s.clipboardName.resize(_c); in.readBytes(_s.clipboardName); } void MSO::parseMetafileBlob(LEInputStream& in, MetafileBlob& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FC1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FC1"); } if (!(_s.rh.recLen>16)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen>16"); } _s.mm = in.readint16(); _s.xExt = in.readint16(); _s.yExt = in.readint16(); _c = _s.rh.recLen-6; _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parseOfficeArtFDGG(LEInputStream& in, OfficeArtFDGG& _s) { _s.streamOffset = in.getPosition(); _s.spidMax = in.readuint32(); if (!(((quint32)_s.spidMax)<67098623)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.spidMax)<67098623"); } _s.cidcl = in.readuint32(); if (!(((quint32)_s.cidcl)<268435455)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.cidcl)<268435455"); } _s.cspSaved = in.readuint32(); _s.cdgSaved = in.readuint32(); } void MSO::parseOfficeArtFDG(LEInputStream& in, OfficeArtFDG& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance<=4094)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance<=4094"); } if (!(_s.rh.recType == 0x0F008)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F008"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.csp = in.readuint32(); _s.spidCur = in.readuint32(); } void MSO::parseOfficeArtFRITContainer(LEInputStream& in, OfficeArtFRITContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recType == 0xF118)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF118"); } if (!(_s.rh.recLen==4*_s.rh.recInstance)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen==4*_s.rh.recInstance"); } _c = _s.rh.recInstance; for (int _i=0; _i<_c; ++_i) { _s.rgfrit.append(OfficeArtFRIT(&_s)); parseOfficeArtFRIT(in, _s.rgfrit[_i]); } } void MSO::parseOfficeArtFRIT(LEInputStream& in, OfficeArtFRIT& _s) { _s.streamOffset = in.getPosition(); _s.fridNew = in.readuint16(); _s.fridOld = in.readuint16(); } void MSO::parseOfficeArtBStoreContainer(LEInputStream& in, OfficeArtBStoreContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recType == 0x0F001)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F001"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgfb.append(OfficeArtBStoreContainerFileBlock(&_s)); parseOfficeArtBStoreContainerFileBlock(in, _s.rgfb.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseOfficeArtSpgrContainer(LEInputStream& in, OfficeArtSpgrContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0F003)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F003"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgfb.append(OfficeArtSpgrContainerFileBlock(&_s)); parseOfficeArtSpgrContainerFileBlock(in, _s.rgfb.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseOfficeArtSolverContainer(LEInputStream& in, OfficeArtSolverContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recType == 0xF005)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF005"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgfb.append(OfficeArtSolverContainerFileBlock(&_s)); parseOfficeArtSolverContainerFileBlock(in, _s.rgfb.last()); } catch(IncorrectValueException _e) { _s.rgfb.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgfb.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseOfficeArtFConnectorRule(LEInputStream& in, OfficeArtFConnectorRule& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 1"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF012)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF012"); } if (!(_s.rh.recLen == 0x18)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x18"); } _s.ruid = in.readuint32(); _s.spidA = in.readuint32(); _s.spidB = in.readuint32(); _s.spidC = in.readuint32(); _s.cptiA = in.readuint32(); _s.cptiB = in.readuint32(); } void MSO::parseOfficeArtFArcRule(LEInputStream& in, OfficeArtFArcRule& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF014)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF014"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.ruid = in.readuint32(); _s.spid = in.readuint32(); } void MSO::parseOfficeArtFCalloutRule(LEInputStream& in, OfficeArtFCalloutRule& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF017)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF017"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.ruid = in.readuint32(); _s.spid = in.readuint32(); } void MSO::parseOfficeArtFSPGR(LEInputStream& in, OfficeArtFSPGR& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x1"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0F009)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F009"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _s.xLeft = in.readint32(); _s.yTop = in.readint32(); _s.xRight = in.readint32(); _s.yBottom = in.readint32(); } void MSO::parseOfficeArtFSP(LEInputStream& in, OfficeArtFSP& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x2"); } if (!(_s.rh.recInstance<= 202)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance<= 202"); } if (!(_s.rh.recType == 0x0F00A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F00A"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.spid = in.readuint32(); _s.fGroup = in.readbit(); _s.fChild = in.readbit(); _s.fPatriarch = in.readbit(); _s.fDeleted = in.readbit(); _s.fOleShape = in.readbit(); _s.fHaveMaster = in.readbit(); _s.fFlipH = in.readbit(); _s.fFlipV = in.readbit(); _s.fConnector = in.readbit(); _s.fHaveAnchor = in.readbit(); _s.fBackground = in.readbit(); _s.fHaveSpt = in.readbit(); _s.unused1 = in.readuint20(); } void MSO::parseOfficeArtFOPT(LEInputStream& in, OfficeArtFOPT& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x3"); } if (!(_s.rh.recType == 0x0F00B)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F00B"); } _c = _s.rh.recInstance; for (int _i=0; _i<_c; ++_i) { _s.fopt.append(OfficeArtFOPTEChoice(&_s)); parseOfficeArtFOPTEChoice(in, _s.fopt[_i]); } _c = _s.rh.recLen-6*_s.rh.recInstance; _s.complexData.resize(_c); in.readBytes(_s.complexData); } void MSO::parseOfficeArtSecondaryFOPT(LEInputStream& in, OfficeArtSecondaryFOPT& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 3"); } if (!(_s.rh.recType == 0xF121)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF121"); } _c = _s.rh.recInstance; for (int _i=0; _i<_c; ++_i) { _s.fopt.append(OfficeArtFOPTEChoice(&_s)); parseOfficeArtFOPTEChoice(in, _s.fopt[_i]); } _c = _s.rh.recLen-6*_s.rh.recInstance; _s.complexData.resize(_c); in.readBytes(_s.complexData); } void MSO::parseOfficeArtTertiaryFOPT(LEInputStream& in, OfficeArtTertiaryFOPT& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 3"); } if (!(_s.rh.recType == 0xF122)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF122"); } _c = _s.rh.recInstance; for (int _i=0; _i<_c; ++_i) { _s.fopt.append(OfficeArtFOPTEChoice(&_s)); parseOfficeArtFOPTEChoice(in, _s.fopt[_i]); } _c = _s.rh.recLen-6*_s.rh.recInstance; _s.complexData.resize(_c); in.readBytes(_s.complexData); } void MSO::parseMSOPATHINFO(LEInputStream& in, MSOPATHINFO& _s) { _s.streamOffset = in.getPosition(); _s.type = in.readuint3(); _s.segments = in.readuint13(); } void MSO::parseFixedPoint(LEInputStream& in, FixedPoint& _s) { _s.streamOffset = in.getPosition(); _s.fractional = in.readuint16(); _s.integral = in.readint16(); } void MSO::parsePVertices_complex(LEInputStream& in, PVertices_complex& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.nElems = in.readuint16(); _s.nElemsAlloc = in.readuint16(); _s.cbElem = in.readuint16(); _c = (_s.cbElem==0xFFF0)?(4 * _s.nElems):(_s.cbElem * _s.nElems); _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parsePSegmentInfo_complex(LEInputStream& in, PSegmentInfo_complex& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.nElems = in.readuint16(); _s.nElemsAlloc = in.readuint16(); _s.cbElem = in.readuint16(); _c = (_s.cbElem==0xFFF0)?(4 * _s.nElems):(_s.cbElem * _s.nElems); _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parseFillShadeColors_complex(LEInputStream& in, FillShadeColors_complex& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.nElems = in.readuint16(); _s.nElemsAlloc = in.readuint16(); _s.cbElem = in.readuint16(); _c = (_s.cbElem==0xFFF0)?(4 * _s.nElems):(_s.cbElem * _s.nElems); _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parsePWrapPolygonVertices_complex(LEInputStream& in, PWrapPolygonVertices_complex& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.nElems = in.readuint16(); _s.nElemsAlloc = in.readuint16(); _s.cbElem = in.readuint16(); _c = (_s.cbElem==0xFFF0)?(4 * _s.nElems):(_s.cbElem * _s.nElems); _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parseOfficeArtCOLORREF(LEInputStream& in, OfficeArtCOLORREF& _s) { _s.streamOffset = in.getPosition(); _s.red = in.readuint8(); _s.green = in.readuint8(); _s.blue = in.readuint8(); _s.fPaletteIndex = in.readbit(); _s.fPaletteRGB = in.readbit(); _s.fSystemRGB = in.readbit(); _s.fSchemeIndex = in.readbit(); _s.fSysIndex = in.readbit(); _s.unused1 = in.readbit(); _s.unused2 = in.readbit(); _s.unused3 = in.readbit(); } void MSO::parseOfficeArtChildAnchor(LEInputStream& in, OfficeArtChildAnchor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF00F)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF00F"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _s.xLeft = in.readint32(); _s.yTop = in.readint32(); _s.xRight = in.readint32(); _s.yBottom = in.readint32(); } void MSO::parseDocOfficeArtClientAnchor(LEInputStream& in, DocOfficeArtClientAnchor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF010)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF010"); } if (!(_s.rh.recLen == 0x4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x4"); } _s.clientAnchor = in.readint32(); } void MSO::parseXlsOfficeArtClientAnchor(LEInputStream& in, XlsOfficeArtClientAnchor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF010)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF010"); } if (!(_s.rh.recLen == 0x8 || _s.rh.recLen == 0x12)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x8 || _s.rh.recLen == 0x12"); } _s.fMove = in.readbit(); _s.fSize = in.readbit(); _s.unused = in.readuint14(); _s._has_width = _s.rh.recLen==0x8; if (_s._has_width) { _s.width = in.readint32(); } _s._has_height = _s.rh.recLen==0x8; if (_s._has_height) { _s.height = in.readint32(); } _s._has_colL = _s.rh.recLen==0x12; if (_s._has_colL) { _s.colL = in.readuint16(); } _s._has_dxL = _s.rh.recLen==0x12; if (_s._has_dxL) { _s.dxL = in.readint16(); } _s._has_rwT = _s.rh.recLen==0x12; if (_s._has_rwT) { _s.rwT = in.readuint16(); } _s._has_dyT = _s.rh.recLen==0x12; if (_s._has_dyT) { _s.dyT = in.readint16(); } _s._has_colR = _s.rh.recLen==0x12; if (_s._has_colR) { _s.colR = in.readuint16(); } _s._has_dxR = _s.rh.recLen==0x12; if (_s._has_dxR) { _s.dxR = in.readint16(); } _s._has_rwB = _s.rh.recLen==0x12; if (_s._has_rwB) { _s.rwB = in.readuint16(); } _s._has_dyB = _s.rh.recLen==0x12; if (_s._has_dyB) { _s.dyB = in.readint16(); } } void MSO::parseOfficeArtFPSPL(LEInputStream& in, OfficeArtFPSPL& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF11D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF11D"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.spid = in.readuint30(); _s.reserved1 = in.readbit(); _s.fLast = in.readbit(); } void MSO::parseRectStruct(LEInputStream& in, RectStruct& _s) { _s.streamOffset = in.getPosition(); _s.top = in.readint32(); _s.left = in.readint32(); _s.right = in.readint32(); _s.bottom = in.readint32(); } void MSO::parseSmallRectStruct(LEInputStream& in, SmallRectStruct& _s) { _s.streamOffset = in.getPosition(); _s.top = in.readint16(); _s.left = in.readint16(); _s.right = in.readint16(); _s.bottom = in.readint16(); } void MSO::parseDocOfficeArtClientData(LEInputStream& in, DocOfficeArtClientData& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF011)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF011"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.clientData = in.readuint32(); } void MSO::parseXlsOfficeArtClientData(LEInputStream& in, XlsOfficeArtClientData& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF011)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF011"); } if (!(_s.rh.recLen == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0"); } } void MSO::parseShapeFlagsAtom(LEInputStream& in, ShapeFlagsAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xBDB)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xBDB"); } if (!(_s.rh.recLen == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 1"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseShapeFlags10Atom(LEInputStream& in, ShapeFlags10Atom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xBDC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xBDC"); } if (!(_s.rh.recLen == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 1"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseExObjRefAtom(LEInputStream& in, ExObjRefAtom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xBC1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xBC1"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.exObjIdRef = in.readuint32(); } void MSO::parseAnimationInfoAtom(LEInputStream& in, AnimationInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x1"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFF1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF1"); } if (!(_s.rh.recLen == 0x1C)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x1C"); } _c = 0x1C; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseSoundContainer(LEInputStream& in, SoundContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x7E6)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x7E6"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseInteractiveInfoAtom(LEInputStream& in, InteractiveInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFF2 || _s.rh.recType == 0xFF3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF2 || _s.rh.recType == 0xFF3"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _s.soundIdRef = in.readuint32(); _s.exHyperlinkIdRef = in.readuint32(); _s.action = in.readuint8(); if (!(((quint8)_s.action)<8)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.action)<8"); } _s.oleVerb = in.readuint8(); if (!(((quint8)_s.oleVerb)<3)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.oleVerb)<3"); } _s.jump = in.readuint8(); if (!(((quint8)_s.jump)<7)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.jump)<7"); } _s.fAnimated = in.readbit(); _s.fStopSound = in.readbit(); _s.fCustomSoundReturn = in.readbit(); _s.fVisited = in.readbit(); _s.reserved = in.readuint4(); _s.hyperlinkType = in.readuint8(); _c = 3; _s.unused.resize(_c); in.readBytes(_s.unused); } void MSO::parseMacroNameAtom(LEInputStream& in, MacroNameAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 2"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen%2==0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen%2==0"); } _c = _s.rh.recLen; _s.macroName.resize(_c); in.readBytes(_s.macroName); } void MSO::parsePlaceholderAtom(LEInputStream& in, PlaceholderAtom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xBC3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xBC3"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } _s.position = in.readint32(); _s.placementId = in.readuint8(); _s.size = in.readuint8(); _s.unused = in.readuint16(); } void MSO::parseRecolorInfoAtom(LEInputStream& in, RecolorInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFE7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFE7"); } _c = _s.rh.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseOutlineTextRefAtom(LEInputStream& in, OutlineTextRefAtom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF9E)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF9E"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.index = in.readint32(); if (!(((qint32)_s.index)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.index)>=0"); } } void MSO::parseShapeProgsTagContainer(LEInputStream& in, ShapeProgsTagContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2"); } if (!(_s.rh.recType == 0x1388)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1388"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgChildRec.append(ShapeProgTagsSubContainerOrAtom(&_s)); parseShapeProgTagsSubContainerOrAtom(in, _s.rgChildRec.last()); } catch(IncorrectValueException _e) { _s.rgChildRec.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgChildRec.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parsePP9ShapeBinaryTagExtension(LEInputStream& in, PP9ShapeBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen == 0xE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0xE"); } _c = 7; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } parseStyleTextProp9Atom(in, _s.styleTextProp9Atom); } void MSO::parsePP10ShapeBinaryTagExtension(LEInputStream& in, PP10ShapeBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 8; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _c = _s.rhData.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parsePP11ShapeBinaryTagExtension(LEInputStream& in, PP11ShapeBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 8; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _c = _s.rhData.recLen; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parseRoundTripNewPlaceHolderId12Atom(LEInputStream& in, RoundTripNewPlaceHolderId12Atom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xBDD)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xBDD"); } if (!(_s.rh.recLen == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 1"); } _s.newPlaceHolderId = in.readuint8(); } void MSO::parseRoundTripShapeId12Atom(LEInputStream& in, RoundTripShapeId12Atom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x41F)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x41F"); } if (!(_s.rh.recLen == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 4"); } _s.shapeId = in.readuint32(); } void MSO::parseRoundTripHFPlaceholder12Atom(LEInputStream& in, RoundTripHFPlaceholder12Atom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x420)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x420"); } if (!(_s.rh.recLen == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 1"); } _s.placeHolderId = in.readuint8(); } void MSO::parseRoundTripShapeCheckSumForCustomLayouts12Atom(LEInputStream& in, RoundTripShapeCheckSumForCustomLayouts12Atom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x426)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x426"); } if (!(_s.rh.recLen == 8 || _s.rh.recLen == 40)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8 || _s.rh.recLen == 40"); } _s.shapeCheckSum = in.readuint32(); _s.textCheckSum = in.readuint32(); _c = _s.rh.recLen-8; _s.unknown.resize(_c); in.readBytes(_s.unknown); } void MSO::parseXlsOfficeArtClientTextBox(LEInputStream& in, XlsOfficeArtClientTextBox& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF00D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF00D"); } if (!(_s.rh.recLen == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0"); } } void MSO::parseDocOfficeArtClientTextBox(LEInputStream& in, DocOfficeArtClientTextBox& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0 || _s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0 || _s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF00D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF00D"); } if (!(_s.rh.recLen == 0x4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x4"); } _s.clientTextBox = in.readuint32(); } void MSO::parsePptOfficeArtClientTextBox(LEInputStream& in, PptOfficeArtClientTextBox& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0 || _s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0 || _s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF00D)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF00D"); } if (!(_s.rh.recLen!=4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen!=4"); } qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgChildRec.append(TextClientDataSubContainerOrAtom(&_s)); parseTextClientDataSubContainerOrAtom(in, _s.rgChildRec.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseOfficeArtIDCL(LEInputStream& in, OfficeArtIDCL& _s) { _s.streamOffset = in.getPosition(); _s.dgid = in.readuint32(); _s.cspidCur = in.readuint32(); } void MSO::parseOfficeArtFOPTEOPID(LEInputStream& in, OfficeArtFOPTEOPID& _s) { _s.streamOffset = in.getPosition(); _s.opid = in.readuint14(); _s.fBid = in.readbit(); _s.fComplex = in.readbit(); } void MSO::parseOfficeArtColorMRUContainer(LEInputStream& in, OfficeArtColorMRUContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recType == 0xF11A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF11A"); } if (!(_s.rh.recLen==4*_s.rh.recInstance)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen==4*_s.rh.recInstance"); } _c = _s.rh.recInstance; for (int _i=0; _i<_c; ++_i) { _s.rgmsocr.append(MSOCR(&_s)); parseMSOCR(in, _s.rgmsocr[_i]); } } void MSO::parseMSOCR(LEInputStream& in, MSOCR& _s) { _s.streamOffset = in.getPosition(); _s.red = in.readuint8(); _s.green = in.readuint8(); _s.blue = in.readuint8(); _s.unused1 = in.readuint3(); _s.fSchemeIndex = in.readbit(); _s.unused2 = in.readuint4(); } void MSO::parseOfficeArtSplitMenuColorContainer(LEInputStream& in, OfficeArtSplitMenuColorContainer& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x4"); } if (!(_s.rh.recType == 0xF11E)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF11E"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 4; for (int _i=0; _i<_c; ++_i) { _s.smca.append(MSOCR(&_s)); parseMSOCR(in, _s.smca[_i]); } } void MSO::parsetodo(LEInputStream& in, todo& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); _c = _s.rh.recLen; _s.anon.resize(_c); in.readBytes(_s.anon); } void MSO::parseFibBase(LEInputStream& in, FibBase& _s) { _s.streamOffset = in.getPosition(); _s.wIdent = in.readuint16(); _s.nFib = in.readuint16(); if (!(((quint16)_s.nFib) == 0x65 || ((quint16)_s.nFib) == 0x67 || ((quint16)_s.nFib) == 0x68 || ((quint16)_s.nFib) == 0xC0 || ((quint16)_s.nFib) == 0xC1 || ((quint16)_s.nFib) == 0xC2 || ((quint16)_s.nFib) == 0x101 || ((quint16)_s.nFib) == 0x10B || ((quint16)_s.nFib) == 0x10C || ((quint16)_s.nFib) == 0x112)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.nFib) == 0x65 || ((quint16)_s.nFib) == 0x67 || ((quint16)_s.nFib) == 0x68 || ((quint16)_s.nFib) == 0xC0 || ((quint16)_s.nFib) == 0xC1 || ((quint16)_s.nFib) == 0xC2 || ((quint16)_s.nFib) == 0x101 || ((quint16)_s.nFib) == 0x10B || ((quint16)_s.nFib) == 0x10C || ((quint16)_s.nFib) == 0x112"); } _s.unused = in.readuint16(); _s.lid = in.readuint16(); _s.pnNext = in.readuint16(); _s.fDot = in.readbit(); _s.fGlsy = in.readbit(); _s.fComplex = in.readbit(); _s.fHasPic = in.readbit(); _s.cQuickSaves = in.readuint4(); _s.fEncrypted = in.readbit(); _s.fWhichTblStm = in.readbit(); _s.fReadOnlyRecommended = in.readbit(); _s.fWriteReservation = in.readbit(); _s.fExtChar = in.readbit(); _s.fLoadOverride = in.readbit(); _s.fFarEast = in.readbit(); _s.fObfuscated = in.readbit(); _s.nFibBack = in.readuint16(); _s.IKey = in.readuint32(); _s.envr = in.readuint8(); _s.fMac = in.readbit(); _s.fEmptySpecial = in.readbit(); _s.fLoadOverridePage = in.readbit(); _s.reserved1 = in.readbit(); _s.reserved2 = in.readbit(); _s.fSpare0 = in.readuint3(); _s.reserved3 = in.readuint16(); _s.reserved4 = in.readuint16(); _s.reserved5 = in.readuint32(); _s.reserved6 = in.readuint32(); } void MSO::parseFibRgW97(LEInputStream& in, FibRgW97& _s) { _s.streamOffset = in.getPosition(); _s.reserved1 = in.readuint16(); _s.reserved2 = in.readuint16(); _s.reserved3 = in.readuint16(); _s.reserved4 = in.readuint16(); _s.reserved5 = in.readuint16(); _s.reserved6 = in.readuint16(); _s.reserved7 = in.readuint16(); _s.reserved8 = in.readuint16(); _s.reserved9 = in.readuint16(); _s.reserved10 = in.readuint16(); _s.reserved11 = in.readuint16(); _s.reserved12 = in.readuint16(); _s.reserved13 = in.readuint16(); _s.lidFE = in.readuint16(); } void MSO::parseFibRgLw97(LEInputStream& in, FibRgLw97& _s) { _s.streamOffset = in.getPosition(); _s.cbMac = in.readuint32(); _s.reserved1 = in.readuint32(); _s.reserved2 = in.readuint32(); _s.ccpText = in.readint32(); if (!(((qint32)_s.ccpText)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpText)>=0"); } _s.ccpFtn = in.readint32(); if (!(((qint32)_s.ccpFtn)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpFtn)>=0"); } _s.ccpHdd = in.readint32(); if (!(((qint32)_s.ccpHdd)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpHdd)>=0"); } _s.reserved3 = in.readuint32(); if (!(((quint32)_s.reserved3) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved3) == 0"); } _s.ccpAtn = in.readint32(); if (!(((qint32)_s.ccpAtn)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpAtn)>=0"); } _s.ccpEdn = in.readint32(); if (!(((qint32)_s.ccpEdn)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpEdn)>=0"); } _s.ccpTxbx = in.readint32(); if (!(((qint32)_s.ccpTxbx)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpTxbx)>=0"); } _s.ccpHdrTxbx = in.readint32(); if (!(((qint32)_s.ccpHdrTxbx)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.ccpHdrTxbx)>=0"); } _s.reserved4 = in.readuint32(); _s.reserved5 = in.readuint32(); _s.reserved6 = in.readuint32(); _s.reserved7 = in.readuint32(); _s.reserved8 = in.readuint32(); _s.reserved9 = in.readuint32(); _s.reserved10 = in.readuint32(); _s.reserved11 = in.readuint32(); _s.reserved12 = in.readuint32(); _s.reserved13 = in.readuint32(); if (!(((quint32)_s.reserved13) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved13) == 0"); } _s.reserved14 = in.readuint32(); if (!(((quint32)_s.reserved14) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved14) == 0"); } } void MSO::parseFibRgFcLcb97(LEInputStream& in, FibRgFcLcb97& _s) { _s.streamOffset = in.getPosition(); _s.fcStshfOrig = in.readuint32(); _s.lcbStshfOrig = in.readuint32(); _s.fcStshf = in.readuint32(); _s.lcbStshf = in.readuint32(); _s.fcPlcffndRef = in.readuint32(); _s.lcbPlcffndRef = in.readuint32(); _s.fcPlcffndTxt = in.readuint32(); _s.lcbPlcffndTxt = in.readuint32(); _s.fcPlcfandRef = in.readuint32(); _s.lcbPlcfandRef = in.readuint32(); _s.fcPlcfandTxt = in.readuint32(); _s.lcbPlcfandTxt = in.readuint32(); _s.fcPlcfSed = in.readuint32(); _s.lcbPlcfSed = in.readuint32(); _s.fcPlcPad = in.readuint32(); _s.lcbPlcPad = in.readuint32(); _s.fcPlcfPhe = in.readuint32(); _s.lcbPlcfPhe = in.readuint32(); _s.fcSttbfGlsy = in.readuint32(); _s.lcbSttbfGlsy = in.readuint32(); _s.fcPlcfGlsy = in.readuint32(); _s.lcbPlcfGlsy = in.readuint32(); _s.fcPlcfHdd = in.readuint32(); _s.lcbPlcfHdd = in.readuint32(); _s.fcPlcfBteChpx = in.readuint32(); _s.lcbPlcfBteChpx = in.readuint32(); _s.fcPlcfBtePapx = in.readuint32(); _s.lcbPlcfBtePapx = in.readuint32(); _s.fcPlcfSea = in.readuint32(); _s.lcbPlcfSea = in.readuint32(); _s.fcSttbfFfn = in.readuint32(); _s.lcbSttbfFfn = in.readuint32(); _s.fcPlcfFldMom = in.readuint32(); _s.lcbPlcfFldMom = in.readuint32(); _s.fcPlcfFldHdr = in.readuint32(); _s.lcbPlcfFldHdr = in.readuint32(); _s.fcPlcfFldFtn = in.readuint32(); _s.lcbPlcfFldFtn = in.readuint32(); _s.fcPlcfFldAtn = in.readuint32(); _s.lcbPlcfFldAtn = in.readuint32(); _s.fcPlcfFldMcr = in.readuint32(); _s.lcbPlcfFldMcr = in.readuint32(); _s.fcSttbfBkmk = in.readuint32(); _s.lcbSttbfBkmk = in.readuint32(); _s.fcPlcfBkf = in.readuint32(); _s.lcbPlcfBkf = in.readuint32(); _s.fcPlcfBkl = in.readuint32(); _s.lcbPlcfBkl = in.readuint32(); _s.fcCmds = in.readuint32(); _s.lcbCmds = in.readuint32(); _s.fcUnused1 = in.readuint32(); _s.lcbUnused1 = in.readuint32(); _s.fcSttbfMcr = in.readuint32(); _s.lcbSttbfMcr = in.readuint32(); _s.fcPrDrvr = in.readuint32(); _s.lcbPrDrvr = in.readuint32(); _s.fcPrEnvPort = in.readuint32(); _s.lcbPrEnvPort = in.readuint32(); _s.fcPrEnvLand = in.readuint32(); _s.lcbPrEnvLand = in.readuint32(); _s.fcWss = in.readuint32(); _s.lcbWss = in.readuint32(); _s.fcDop = in.readuint32(); _s.lcbDop = in.readuint32(); _s.fcSttbfAssoc = in.readuint32(); _s.lcbSttbfAssoc = in.readuint32(); _s.fcClx = in.readuint32(); _s.lcbClx = in.readuint32(); _s.fcPlcfPgdFtn = in.readuint32(); _s.lcbPlcfPgdFtn = in.readuint32(); _s.fcAutosaveSource = in.readuint32(); _s.lcbAutosaveSource = in.readuint32(); _s.fcGrpXstAtnOwners = in.readuint32(); _s.lcbGrpXstAtnOwners = in.readuint32(); _s.fcSttbfAtnBkmk = in.readuint32(); _s.lcbSttbfAtnBkmk = in.readuint32(); _s.fcUnused2 = in.readuint32(); _s.lcbUnused2 = in.readuint32(); _s.fcUnused3 = in.readuint32(); _s.lcbUnused3 = in.readuint32(); _s.fcPlcSpaMom = in.readuint32(); _s.lcbPlcSpaMom = in.readuint32(); _s.fcPlcSpaHdr = in.readuint32(); _s.lcbPlcSpaHdr = in.readuint32(); _s.fcPlcfAtnBkf = in.readuint32(); _s.lcbPlcfAtnBkf = in.readuint32(); _s.fcPlcfAtnBkl = in.readuint32(); _s.lcbPlcfAtnBkl = in.readuint32(); _s.fcPms = in.readuint32(); _s.lcbPms = in.readuint32(); _s.fcFormFldSttbs = in.readuint32(); _s.lcbFormFldSttbs = in.readuint32(); _s.fcPlcfendRef = in.readuint32(); _s.lcbPlcfendRef = in.readuint32(); _s.fcPlcfendTxt = in.readuint32(); _s.lcbPlcfendTxt = in.readuint32(); _s.fcPlcfFldEdn = in.readuint32(); _s.lcbPlcfFldEdn = in.readuint32(); _s.fcUnused4 = in.readuint32(); _s.lcbUnused4 = in.readuint32(); _s.fcDggInfo = in.readuint32(); _s.lcbDggInfo = in.readuint32(); _s.fcSttbfRMark = in.readuint32(); _s.lcbSttbfRMark = in.readuint32(); _s.fcSttbfCaption = in.readuint32(); _s.lcbSttbfCaption = in.readuint32(); _s.fcSttbfAutoCaption = in.readuint32(); _s.lcbSttbfAutoCaption = in.readuint32(); _s.fcPlcfWkb = in.readuint32(); _s.lcbPlcfWkb = in.readuint32(); _s.fcPlcfSpl = in.readuint32(); _s.lcbPlcfSpl = in.readuint32(); _s.fcPlcftxbxTxt = in.readuint32(); _s.lcbPlcftxbxTxt = in.readuint32(); _s.fcPlcfFldTxbx = in.readuint32(); _s.lcbPlcfFldTxbx = in.readuint32(); _s.fcPlcfHdrtxbxTxt = in.readuint32(); _s.lcbPlcfHdrtxbxTxt = in.readuint32(); _s.fcPlcffldHdrTxbx = in.readuint32(); _s.lcbPlcffldHdrTxbx = in.readuint32(); _s.fcStwUser = in.readuint32(); _s.lcbStwUser = in.readuint32(); _s.fcSttbTtmbd = in.readuint32(); _s.lcbSttbTtmbd = in.readuint32(); _s.fcCookieData = in.readuint32(); _s.lcbCookieData = in.readuint32(); _s.fcPgdMotherOldOld = in.readuint32(); _s.lcbPgdMotherOldOld = in.readuint32(); _s.fcBkdMotherOldOld = in.readuint32(); _s.lcbBkdMotherOldOld = in.readuint32(); _s.fcPgdFtnOldOld = in.readuint32(); _s.lcbPgdFtnOldOld = in.readuint32(); _s.fcBkdFtnOldOld = in.readuint32(); _s.lcbBkdFtnOldOld = in.readuint32(); _s.fcPgdEdnOldOld = in.readuint32(); _s.lcbPgdEdnOldOld = in.readuint32(); _s.fcBkdEdnOldOld = in.readuint32(); _s.lcbBkdEdnOldOld = in.readuint32(); _s.fcSttbfIntlFld = in.readuint32(); _s.lcbSttbfIntlFld = in.readuint32(); _s.fcRouteSlip = in.readuint32(); _s.lcbRouteSlip = in.readuint32(); _s.fcSttbSavedBy = in.readuint32(); _s.lcbSttbSavedBy = in.readuint32(); _s.fcSttbFnm = in.readuint32(); _s.lcbSttbFnm = in.readuint32(); _s.fcPlfLst = in.readuint32(); _s.lcbPlfLst = in.readuint32(); _s.fcPlfLfo = in.readuint32(); _s.lcbPlfLfo = in.readuint32(); _s.fcPlcfTxbxBkd = in.readuint32(); _s.lcbPlcfTxbxBkd = in.readuint32(); _s.fcPlcfTxbxHdrBkd = in.readuint32(); _s.lcbPlcfTxbxHdrBkd = in.readuint32(); _s.fcDocUndoWord9 = in.readuint32(); _s.lcbDocUndoWord9 = in.readuint32(); _s.fcRgbUse = in.readuint32(); _s.lcbRgbUse = in.readuint32(); _s.fcUsp = in.readuint32(); _s.lcbUsp = in.readuint32(); _s.fcUskf = in.readuint32(); _s.lcbUskf = in.readuint32(); _s.fcPlcupcRgbUse = in.readuint32(); _s.lcbPlcupcRgbUse = in.readuint32(); _s.fcPlcupcUsp = in.readuint32(); _s.lcbPlcupcUsp = in.readuint32(); _s.fcSttbGlsyStyle = in.readuint32(); _s.lcbSttbGlsyStyle = in.readuint32(); _s.fcPlgosl = in.readuint32(); _s.lcbPlgosl = in.readuint32(); _s.fcPlcocx = in.readuint32(); _s.lcbPlcocx = in.readuint32(); _s.fcPlcfBteLvc = in.readuint32(); _s.lcbPlcfBteLvc = in.readuint32(); _s.dwLowDateTime = in.readuint32(); _s.dwHighDateTime = in.readuint32(); _s.fcPlcfLvcPre10 = in.readuint32(); _s.lcbPlcfLvcPre10 = in.readuint32(); _s.fcPlcfAsumy = in.readuint32(); _s.lcbPlcfAsumy = in.readuint32(); _s.fcPlcfGram = in.readuint32(); _s.lcbPlcfGram = in.readuint32(); _s.fcSttbListNames = in.readuint32(); _s.lcbSttbListNames = in.readuint32(); _s.fcSttbfUssr = in.readuint32(); _s.lcbSttbfUssr = in.readuint32(); } void MSO::parseFibRgFcLcb2000(LEInputStream& in, FibRgFcLcb2000& _s) { _s.streamOffset = in.getPosition(); _s.fcPlcfTch = in.readuint32(); _s.lcbPlcfTch = in.readuint32(); _s.fcRmdThreading = in.readuint32(); _s.lcbRmdThreading = in.readuint32(); _s.fcMid = in.readuint32(); _s.lcbMid = in.readuint32(); _s.fcSttbRgtplc = in.readuint32(); _s.lcbSttbRgtplc = in.readuint32(); _s.fcMsoEnvelope = in.readuint32(); _s.lcbMsoEnvelope = in.readuint32(); _s.fcPlcfLad = in.readuint32(); _s.lcbPlcfLad = in.readuint32(); _s.fcRgDofr = in.readuint32(); _s.lcbRgDofr = in.readuint32(); _s.fcPlcosl = in.readuint32(); _s.lcbPlcosl = in.readuint32(); _s.fcPlcfCookieOld = in.readuint32(); _s.lcbPlcfCookieOld = in.readuint32(); _s.fcPgdMotherOld = in.readuint32(); _s.lcbPgdMotherOld = in.readuint32(); _s.fcBkdMotherOld = in.readuint32(); _s.lcbBkdMotherOld = in.readuint32(); _s.fcPgdFtnOld = in.readuint32(); _s.lcbPgdFtnOld = in.readuint32(); _s.fcBkdFtnOld = in.readuint32(); _s.lcbBkdFtnOld = in.readuint32(); _s.fcPgdEdnOld = in.readuint32(); _s.lcbPgdEdnOld = in.readuint32(); _s.fcBkdEdnOld = in.readuint32(); _s.lcbBkdEdnOld = in.readuint32(); } void MSO::parseFibRgFcLcb2002(LEInputStream& in, FibRgFcLcb2002& _s) { _s.streamOffset = in.getPosition(); _s.fcUnused1 = in.readuint32(); _s.lcbUnused1 = in.readuint32(); _s.fcPlcfPgp = in.readuint32(); _s.lcbPlcfPgp = in.readuint32(); _s.fcPlcfuim = in.readuint32(); _s.lcbPlcfuim = in.readuint32(); _s.fcPlfguidUim = in.readuint32(); _s.lcbPlfguidUim = in.readuint32(); _s.fcAtrdExtra = in.readuint32(); _s.lcbAtrdExtra = in.readuint32(); _s.fcPlrsid = in.readuint32(); _s.lcbPlrsid = in.readuint32(); _s.fcSttbfBkmkFactoid = in.readuint32(); _s.lcbSttbfBkmkFactoid = in.readuint32(); _s.fcPlcfBkfFactoid = in.readuint32(); _s.lcbPlcfBkfFactoid = in.readuint32(); _s.fcPlcfcookie = in.readuint32(); _s.lcbPlcfcookie = in.readuint32(); _s.fcPlcfBklFactoid = in.readuint32(); _s.lcbPlcfBklFactoid = in.readuint32(); _s.fcFactoidData = in.readuint32(); _s.lcbFactoidData = in.readuint32(); _s.fcDocUndo = in.readuint32(); _s.lcbDocUndo = in.readuint32(); _s.fcSttbfBkmkFcc = in.readuint32(); _s.lcbSttbfBkmkFcc = in.readuint32(); _s.fcPlcfBkfFcc = in.readuint32(); _s.lcbPlcfBkfFcc = in.readuint32(); _s.fcPlcfBklFcc = in.readuint32(); _s.lcbPlcfBklFcc = in.readuint32(); _s.fcSttbfbkmkBPRepairs = in.readuint32(); _s.lcbSttbfbkmkBPRepairs = in.readuint32(); _s.fcPlcfbkfBPRepairs = in.readuint32(); _s.lcbPlcfbkfBPRepairs = in.readuint32(); _s.fcPlcfbklBPRepairs = in.readuint32(); _s.lcbPlcfbklBPRepairs = in.readuint32(); _s.fcPmsNew = in.readuint32(); _s.lcbPmsNew = in.readuint32(); _s.fcODSO = in.readuint32(); _s.lcbODSO = in.readuint32(); _s.fcPlcfpmiOldXP = in.readuint32(); _s.lcbPlcfpmiOldXP = in.readuint32(); _s.fcPlcfpmiNewXP = in.readuint32(); _s.lcbPlcfpmiNewXP = in.readuint32(); _s.fcPlcfpmiMixedXP = in.readuint32(); _s.lcbPlcfpmiMixedXP = in.readuint32(); _s.fcUnused2 = in.readuint32(); _s.lcbUnused2 = in.readuint32(); _s.fcPlcffactoid = in.readuint32(); _s.lcbPlcffactoid = in.readuint32(); } void MSO::parseLPStshi(LEInputStream& in, LPStshi& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.cbSthi = in.readuint16(); _c = _s.cbSthi; _s.stshi.resize(_c); in.readBytes(_s.stshi); } void MSO::parseLPStd(LEInputStream& in, LPStd& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.cbStd = in.readuint16(); _c = _s.cbStd; _s.std.resize(_c); in.readBytes(_s.std); _s._has_padding = _s.cbStd%2==1; if (_s._has_padding) { _s.padding = in.readuint8(); } } void MSO::parsePlcfSed(LEInputStream& in, PlcfSed& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _c = 2; _s.aCP.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.aCP[_i] = in.readuint32(); } _c = 1; for (int _i=0; _i<_c; ++_i) { _s.aSed.append(Sed(&_s)); parseSed(in, _s.aSed[_i]); } } void MSO::parseSed(LEInputStream& in, Sed& _s) { _s.streamOffset = in.getPosition(); _s.fn = in.readuint16(); _s.fcSepx = in.readint32(); _s.fnMpr = in.readuint16(); _s.fcMpr = in.readuint32(); } void MSO::parsePlcfhdd(LEInputStream& in, Plcfhdd& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _c = 13; _s.aCP.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.aCP[_i] = in.readuint32(); } } void MSO::parsePlcBteChpx(LEInputStream& in, PlcBteChpx& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _c = 2; _s.aCP.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.aCP[_i] = in.readuint32(); } _c = 1; _s.aPnBteChpx.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.aPnBteChpx[_i] = in.readuint32(); } } void MSO::parsePlcfBtePapx(LEInputStream& in, PlcfBtePapx& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _c = 2; _s.aCP.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.aCP[_i] = in.readuint32(); } _c = 1; _s.aPnBteChpx.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.aPnBteChpx[_i] = in.readuint32(); } } void MSO::parseTcg(LEInputStream& in, Tcg& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.nTcgVer = in.readuint8(); if (!(((quint8)_s.nTcgVer) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.nTcgVer) == 0"); } _c = 11; _s.todo.resize(_c); in.readBytes(_s.todo); } void MSO::parsePrcData(LEInputStream& in, PrcData& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.cbGrpprl = in.readint16(); if (!(((qint16)_s.cbGrpprl)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.cbGrpprl)>=0"); } if (!(((qint16)_s.cbGrpprl)<=16290)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.cbGrpprl)<=16290"); } if (!(((qint16)_s.cbGrpprl)%2==0)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.cbGrpprl)%2==0"); } _c = _s.cbGrpprl/2; for (int _i=0; _i<_c; ++_i) { _s.GrpPrl.append(Sprm(&_s)); parseSprm(in, _s.GrpPrl[_i]); } } void MSO::parseSprm(LEInputStream& in, Sprm& _s) { _s.streamOffset = in.getPosition(); _s.ispmd = in.readuint9(); _s.fSpec = in.readbit(); _s.sgc = in.readuint3(); _s.spra = in.readuint3(); } void MSO::parsePcdt(LEInputStream& in, Pcdt& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.clxt = in.readuint8(); if (!(((quint8)_s.clxt) == 2)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.clxt) == 2"); } _s.lcb = in.readuint32(); _c = _s.lcb/8; for (int _i=0; _i<_c; ++_i) { _s.PlcPcd.append(Pcd(&_s)); parsePcd(in, _s.PlcPcd[_i]); } } void MSO::parseFCompressed(LEInputStream& in, FCompressed& _s) { _s.streamOffset = in.getPosition(); _s.fc = in.readuint30(); _s.fCompressed = in.readbit(); _s.r1 = in.readbit(); } void MSO::parsePrm0(LEInputStream& in, Prm0& _s) { _s.streamOffset = in.getPosition(); _s.fComplex = in.readbit(); if (!(((bool)_s.fComplex) == false)) { throw IncorrectValueException(in.getPosition(), "((bool)_s.fComplex) == false"); } _s.isprm = in.readuint7(); _s.val = in.readuint8(); } void MSO::parsePrm1(LEInputStream& in, Prm1& _s) { _s.streamOffset = in.getPosition(); _s.fComplex = in.readbit(); if (!(((bool)_s.fComplex) == true)) { throw IncorrectValueException(in.getPosition(), "((bool)_s.fComplex) == true"); } _s.igrpprl = in.readuint15(); } void MSO::parseSttbfFfn(LEInputStream& in, SttbfFfn& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.cData = in.readuint16(); _s.cbExtra = in.readuint16(); if (!(((quint16)_s.cbExtra) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cbExtra) == 0"); } _c = _s.cData; for (int _i=0; _i<_c; ++_i) { _s.data.append(SttbfFfnEntry(&_s)); parseSttbfFfnEntry(in, _s.data[_i]); } } void MSO::parseSttbfFfnEntry(LEInputStream& in, SttbfFfnEntry& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.cchData = in.readuint8(); _c = _s.cchData; _s.Data.resize(_c); in.readBytes(_s.Data); } void MSO::parseCodePageString(LEInputStream& in, CodePageString& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.size = in.readuint32(); _c = 4*(_s.size/4)+((_s.size%4!=0)?4:0); _s.characters.resize(_c); in.readBytes(_s.characters); } void MSO::parseFILETIME(LEInputStream& in, FILETIME& _s) { _s.streamOffset = in.getPosition(); _s.dwLowDateTime = in.readuint32(); _s.dwHighDateTime = in.readuint32(); } void MSO::parseClipboardData(LEInputStream& in, ClipboardData& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.size = in.readuint32(); _s.format = in.readuint32(); _c = 4*(_s.size/4)+((_s.size%4!=0)?4:0)-4; _s.data.resize(_c); in.readBytes(_s.data); } void MSO::parsePropertyIdentifierAndOffset(LEInputStream& in, PropertyIdentifierAndOffset& _s) { _s.streamOffset = in.getPosition(); _s.propertyIdentifier = in.readuint32(); _s.offset = in.readuint32(); } void MSO::parseTypedPropertyValue(LEInputStream& in, TypedPropertyValue& _s) { _s.streamOffset = in.getPosition(); _s.type = in.readuint16(); _s.padding = in.readuint16(); _s._has_vt_I2 = _s.type==2; if (_s._has_vt_I2) { _s.vt_I2 = in.readuint16(); } _s._has_paddingI2 = _s.type==2; if (_s._has_paddingI2) { _s.paddingI2 = in.readuint16(); } _s._has_vg_ERROR = _s.type==10; if (_s._has_vg_ERROR) { _s.vg_ERROR = in.readuint32(); } if (_s.type==30) { _s.vt_lpstr = QSharedPointer(new CodePageString(&_s)); parseCodePageString(in, *_s.vt_lpstr.data()); } if (_s.type==64) { _s.vg_FILETIME = QSharedPointer(new FILETIME(&_s)); parseFILETIME(in, *_s.vg_FILETIME.data()); } if (_s.type==71) { _s.vg_CF = QSharedPointer(new ClipboardData(&_s)); parseClipboardData(in, *_s.vg_CF.data()); } } void MSO::parsePropertySet(LEInputStream& in, PropertySet& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; _s.size = in.readuint32(); _s.numProperties = in.readuint32(); _c = _s.numProperties; for (int _i=0; _i<_c; ++_i) { _s.propertyIdentifierAndOffset.append(PropertyIdentifierAndOffset(&_s)); parsePropertyIdentifierAndOffset(in, _s.propertyIdentifierAndOffset[_i]); } _c = _s.numProperties; for (int _i=0; _i<_c; ++_i) { _s.property.append(TypedPropertyValue(&_s)); parseTypedPropertyValue(in, _s.property[_i]); } } void MSO::parsePropertySetStream(LEInputStream& in, PropertySetStream& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; bool _atend; _s.byteOrder = in.readuint16(); if (!(((quint16)_s.byteOrder) == 0xFFFE)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.byteOrder) == 0xFFFE"); } _s.version = in.readuint16(); _s.systemIdentifier = in.readuint32(); _c = 16; _s.clsID.resize(_c); in.readBytes(_s.clsID); _s.numPropertySets = in.readuint32(); if (!(((quint32)_s.numPropertySets) == 1 || ((quint32)_s.numPropertySets) == 2)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.numPropertySets) == 1 || ((quint32)_s.numPropertySets) == 2"); } _c = 16; _s.fmtID0.resize(_c); in.readBytes(_s.fmtID0); _s.offset0 = in.readuint32(); _s._has_fmtID1 = _s.numPropertySets==2; if (_s._has_fmtID1) { _c = 16; _s.fmtID1.resize(_c); in.readBytes(_s.fmtID1); } _s._has_offset1 = _s.numPropertySets==2; if (_s._has_offset1) { _s.offset1 = in.readuint32(); } parsePropertySet(in, _s.propertySet1); if (_s.numPropertySets==2) { _s.propertySet2 = QSharedPointer(new PropertySet(&_s)); parsePropertySet(in, *_s.propertySet2.data()); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.padding.append(Byte(&_s)); parseByte(in, _s.padding.last()); } catch(IncorrectValueException _e) { _s.padding.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.padding.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseSummaryInformationPropertySetStream(LEInputStream& in, SummaryInformationPropertySetStream& _s) { _s.streamOffset = in.getPosition(); parsePropertySetStream(in, _s.propertySet); if (!(_s.propertySet.version == 0)) { throw IncorrectValueException(in.getPosition(), "_s.propertySet.version == 0"); } } void MSO::parseDocumentSummaryInformationPropertySetStream(LEInputStream& in, DocumentSummaryInformationPropertySetStream& _s) { _s.streamOffset = in.getPosition(); parsePropertySetStream(in, _s.propertySet); if (!(_s.propertySet.version == 0)) { throw IncorrectValueException(in.getPosition(), "_s.propertySet.version == 0"); } } void MSO::parsePicturesStream(LEInputStream& in, PicturesStream& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtBStoreDelay(in, _s.anon1); _atend = false; while (!_atend) { _m = in.setMark(); try { _s.trailing.append(Byte(&_s)); parseByte(in, _s.trailing.last()); } catch(IncorrectValueException _e) { _s.trailing.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.trailing.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseOfficeArtMetafileHeader(LEInputStream& in, OfficeArtMetafileHeader& _s) { _s.streamOffset = in.getPosition(); _s.cbSize = in.readuint32(); parseRECT(in, _s.rcBounds); parsePOINT(in, _s.ptSize); _s.cbsave = in.readuint32(); _s.compression = in.readuint8(); _s.filter = in.readuint8(); } void MSO::parseSoundCollectionContainer(LEInputStream& in, SoundCollectionContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 5"); } if (!(_s.rh.recType == 0x7E4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x7E4"); } parseSoundCollectionAtom(in, _s.soundCollectionAtom); qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen-12, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgSoundContainer.append(SoundContainer(&_s)); parseSoundContainer(in, _s.rgSoundContainer.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseSlideHeadersFootersContainer(LEInputStream& in, SlideHeadersFootersContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 3"); } if (!(_s.rh.recType == 0xFD9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFD9"); } parseHeadersFootersAtom(in, _s.hfAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0)&&(_optionCheck.recLen<=510); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.userDateAtom = QSharedPointer(new UserDateAtom(&_s)); parseUserDateAtom(in, *_s.userDateAtom.data()); } catch(IncorrectValueException _e) { _s.userDateAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.userDateAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 2)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.footerAtom = QSharedPointer(new FooterAtom(&_s)); parseFooterAtom(in, *_s.footerAtom.data()); } catch(IncorrectValueException _e) { _s.footerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.footerAtom.clear(); in.rewind(_m); } } } void MSO::parseNotesHeadersFootersContainer(LEInputStream& in, NotesHeadersFootersContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 4"); } if (!(_s.rh.recType == 0xFD9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFD9"); } parseHeadersFootersAtom(in, _s.hfAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0)&&(_optionCheck.recLen<=510); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.userDateAtom = QSharedPointer(new UserDateAtom(&_s)); parseUserDateAtom(in, *_s.userDateAtom.data()); } catch(IncorrectValueException _e) { _s.userDateAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.userDateAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 1)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.headerAtom = QSharedPointer(new HeaderAtom(&_s)); parseHeaderAtom(in, *_s.headerAtom.data()); } catch(IncorrectValueException _e) { _s.headerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.headerAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 2)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.footerAtom = QSharedPointer(new FooterAtom(&_s)); parseFooterAtom(in, *_s.footerAtom.data()); } catch(IncorrectValueException _e) { _s.footerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.footerAtom.clear(); in.rewind(_m); } } } void MSO::parseScalingStruct(LEInputStream& in, ScalingStruct& _s) { _s.streamOffset = in.getPosition(); parseRatioStruct(in, _s.x); parseRatioStruct(in, _s.y); } void MSO::parseTextPFException9(LEInputStream& in, TextPFException9& _s) { _s.streamOffset = in.getPosition(); parsePFMasks(in, _s.masks); if (!(_s.masks.hasBullet == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.hasBullet == false"); } if (!(_s.masks.bulletHasFont == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletHasFont == false"); } if (!(_s.masks.bulletHasColor == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletHasColor == false"); } if (!(_s.masks.bulletHasSize == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletHasSize == false"); } if (!(_s.masks.bulletFont == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletFont == false"); } if (!(_s.masks.bulletColor == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletColor == false"); } if (!(_s.masks.bulletSize == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletSize == false"); } if (!(_s.masks.bulletChar == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletChar == false"); } if (!(_s.masks.leftMargin == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.leftMargin == false"); } if (!(_s.masks.indent == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.indent == false"); } if (!(_s.masks.align == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.align == false"); } if (!(_s.masks.lineSpacing == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.lineSpacing == false"); } if (!(_s.masks.spaceBefore == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.spaceBefore == false"); } if (!(_s.masks.spaceAfter == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.spaceAfter == false"); } if (!(_s.masks.defaultTabSize == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.defaultTabSize == false"); } if (!(_s.masks.fontAlign == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.fontAlign == false"); } if (!(_s.masks.charWrap == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.charWrap == false"); } if (!(_s.masks.wordWrap == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.wordWrap == false"); } if (!(_s.masks.overflow == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.overflow == false"); } if (!(_s.masks.tabStops == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.tabStops == false"); } if (!(_s.masks.textDirection == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.textDirection == false"); } _s._has_bulletBlipRef = _s.masks.bulletBlip; if (_s._has_bulletBlipRef) { _s.bulletBlipRef = in.readuint16(); } _s._has_fBulletHasAutoNumber = _s.masks.bulletHasScheme; if (_s._has_fBulletHasAutoNumber) { _s.fBulletHasAutoNumber = in.readuint16(); if (!(((quint16)_s.fBulletHasAutoNumber) == 0 || ((quint16)_s.fBulletHasAutoNumber) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.fBulletHasAutoNumber) == 0 || ((quint16)_s.fBulletHasAutoNumber) == 1"); } } if (_s.masks.bulletScheme) { _s.bulletAutoNumberScheme = QSharedPointer(new TextAutoNumberScheme(&_s)); parseTextAutoNumberScheme(in, *_s.bulletAutoNumberScheme.data()); } } void MSO::parseTextCFException9(LEInputStream& in, TextCFException9& _s) { _s.streamOffset = in.getPosition(); parseCFMasks(in, _s.masks); if (!(_s.masks.bold == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bold == false"); } if (!(_s.masks.italic == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.italic == false"); } if (!(_s.masks.underline == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.underline == false"); } if (!(_s.masks.shadow == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.shadow == false"); } if (!(_s.masks.fehint == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.fehint == false"); } if (!(_s.masks.kumi == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.kumi == false"); } if (!(_s.masks.emboss == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.emboss == false"); } if (!(_s.masks.reserved == 0)) { throw IncorrectValueException(in.getPosition(), "_s.masks.reserved == 0"); } if (!(_s.masks.typeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.typeface == false"); } if (!(_s.masks.size == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.size == false"); } if (!(_s.masks.color == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.color == false"); } if (!(_s.masks.position == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.position == false"); } if (!(_s.masks.oldEATypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.oldEATypeface == false"); } if (!(_s.masks.ansiTypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.ansiTypeface == false"); } if (!(_s.masks.symbolTypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.symbolTypeface == false"); } if (!(_s.masks.newEATypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.newEATypeface == false"); } if (!(_s.masks.csTypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.csTypeface == false"); } if (!(_s.masks.pp11ext == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.pp11ext == false"); } _s._has_pp10runid = _s.masks.pp10ext; if (_s._has_pp10runid) { _s.pp10runid = in.readuint4(); } _s._has_unuseda = _s.masks.pp10ext; if (_s._has_unuseda) { _s.unuseda = in.readuint20(); } _s._has_unusedb = _s.masks.pp10ext; if (_s._has_unusedb) { _s.unusedb = in.readuint8(); } } void MSO::parseTextDefaults9Atom(LEInputStream& in, TextDefaults9Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x00)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x00"); } if (!(_s.rh.recType == 0x0FB0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FB0"); } parseTextCFException9(in, _s.cf9); parseTextPFException9(in, _s.pf9); } void MSO::parseKinsoku9Container(LEInputStream& in, Kinsoku9Container& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x2"); } if (!(_s.rh.recType == 0x0FC8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FC8"); } parseKinsoku9Atom(in, _s.kinsoku9Atom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.kinsokuLeadingAtom = QSharedPointer(new KinsokuLeadingAtom(&_s)); parseKinsokuLeadingAtom(in, *_s.kinsokuLeadingAtom.data()); } catch(IncorrectValueException _e) { _s.kinsokuLeadingAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.kinsokuLeadingAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 1 )&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.kinsokuFollowingAtom = QSharedPointer(new KinsokuFollowingAtom(&_s)); parseKinsokuFollowingAtom(in, *_s.kinsokuFollowingAtom.data()); } catch(IncorrectValueException _e) { _s.kinsokuFollowingAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.kinsokuFollowingAtom.clear(); in.rewind(_m); } } } void MSO::parseOutlineTextProps9Entry(LEInputStream& in, OutlineTextProps9Entry& _s) { _s.streamOffset = in.getPosition(); parseOutlineTextPropsHeaderExAtom(in, _s.outlineTextHeaderAtom); parseStyleTextProp9Atom(in, _s.styleTextProp9Atom); } void MSO::parseTextCFException10(LEInputStream& in, TextCFException10& _s) { _s.streamOffset = in.getPosition(); parseCFMasks(in, _s.masks); if (!(_s.masks.bold == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bold == false"); } if (!(_s.masks.italic == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.italic == false"); } if (!(_s.masks.underline == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.underline == false"); } if (!(_s.masks.shadow == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.shadow == false"); } if (!(_s.masks.fehint == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.fehint == false"); } if (!(_s.masks.kumi == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.kumi == false"); } if (!(_s.masks.emboss == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.emboss == false"); } if (!(_s.masks.reserved == 0)) { throw IncorrectValueException(in.getPosition(), "_s.masks.reserved == 0"); } if (!(_s.masks.typeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.typeface == false"); } if (!(_s.masks.size == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.size == false"); } if (!(_s.masks.color == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.color == false"); } if (!(_s.masks.position == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.position == false"); } if (!(_s.masks.pp10ext == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.pp10ext == false"); } if (!(_s.masks.oldEATypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.oldEATypeface == false"); } if (!(_s.masks.ansiTypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.ansiTypeface == false"); } if (!(_s.masks.symbolTypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.symbolTypeface == false"); } _s._has_newEAFontRef = _s.masks.newEATypeface; if (_s._has_newEAFontRef) { _s.newEAFontRef = in.readuint16(); } _s._has_csFontRef = _s.masks.csTypeface; if (_s._has_csFontRef) { _s.csFontRef = in.readuint16(); } _s._has_pp11ext = _s.masks.pp11ext; if (_s._has_pp11ext) { _s.pp11ext = in.readuint32(); } } void MSO::parseTextDefaults10Atom(LEInputStream& in, TextDefaults10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FB4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FB4"); } parseTextCFException10(in, _s.cf10); } void MSO::parseCommentIndex10Container(LEInputStream& in, CommentIndex10Container& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x2EE4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EE4"); } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen<=104)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.authorNameAtom = QSharedPointer(new AuthorNameAtom(&_s)); parseAuthorNameAtom(in, *_s.authorNameAtom.data()); } catch(IncorrectValueException _e) { _s.authorNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.authorNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x2EE5)&&(_optionCheck.recLen == 0x08); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.authorIndexAtom = QSharedPointer(new CommentIndex10Atom(&_s)); parseCommentIndex10Atom(in, *_s.authorIndexAtom.data()); } catch(IncorrectValueException _e) { _s.authorIndexAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.authorIndexAtom.clear(); in.rewind(_m); } } } void MSO::parseOutlineTextProps10Entry(LEInputStream& in, OutlineTextProps10Entry& _s) { _s.streamOffset = in.getPosition(); parseOutlineTextPropsHeaderExAtom(in, _s.outlineTextHeaderAtom); parseStyleTextProp10Atom(in, _s.styleTextProp10Atom); } void MSO::parsePP11DocBinaryTagExtension(LEInputStream& in, PP11DocBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 16; _s.tagName.resize(_c); in.readBytes(_s.tagName); parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0x0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } parseSmartTagStore11Container(in, _s.smartTagStore11); parseOutlineTextProps11Container(in, _s.outlineTextProps); } void MSO::parseUnknownBinaryTag(LEInputStream& in, UnknownBinaryTag& _s) { _s.streamOffset = in.getPosition(); parseTagNameAtom(in, _s.tagNameAtom); parseBinaryTagDataBlob(in, _s.tagData); } void MSO::parseNoZoomViewInfoAtom(LEInputStream& in, NoZoomViewInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3FD)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3FD"); } if (!(_s.rh.recLen == 0x34)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x34"); } parseScalingStruct(in, _s.curScale); _c = 24; _s.unused1.resize(_c); in.readBytes(_s.unused1); parsePointStruct(in, _s.origin); _s.unused2 = in.readuint8(); _s.fDraftMode = in.readuint8(); _s.unused3 = in.readuint16(); } void MSO::parseVBAInfoContainer(LEInputStream& in, VBAInfoContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x3FF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3FF"); } if (!(_s.rh.recLen == 0x14)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x14"); } parseVBAInfoAtom(in, _s.vbaInfoAtom); } void MSO::parseNormalViewSetInfoAtom(LEInputStream& in, NormalViewSetInfoAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x415)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x415"); } if (!(_s.rh.recLen == 0x14)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x14"); } parseRatioStruct(in, _s.leftPortion); parseRatioStruct(in, _s.topPortion); _s.vertBarState = in.readuint8(); _s.horizBarState = in.readuint8(); _s.fPreferSingleSet = in.readuint8(); if (!(((quint8)_s.fPreferSingleSet) == 0 || ((quint8)_s.fPreferSingleSet) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.fPreferSingleSet) == 0 || ((quint8)_s.fPreferSingleSet) == 1"); } _s.fHideThumbnails = in.readbit(); _s.fBarSnapped = in.readbit(); _s.reserved = in.readuint6(); if (!(((quint8)_s.reserved) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved) == 0"); } } void MSO::parseTextContainerMeta(LEInputStream& in, TextContainerMeta& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFD8)&&(_choice.recLen == 4))) { + if (startPos == in.getPosition() && ((_choice.recType == 0xFD8)&&(_choice.recLen == 4))) { _s.meta = TextContainerMeta::choice242357012(new SlideNumberMCAtom(&_s)); parseSlideNumberMCAtom(in, *(SlideNumberMCAtom*)_s.meta.data()); } - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFF7)&&(_choice.recLen == 8))) { + if (startPos == in.getPosition() && ((_choice.recType == 0xFF7)&&(_choice.recLen == 8))) { _s.meta = TextContainerMeta::choice242357012(new DateTimeMCAtom(&_s)); parseDateTimeMCAtom(in, *(DateTimeMCAtom*)_s.meta.data()); } - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFF8)&&(_choice.recLen == 4))) { + if (startPos == in.getPosition() && ((_choice.recType == 0xFF8)&&(_choice.recLen == 4))) { _s.meta = TextContainerMeta::choice242357012(new GenericDateMCAtom(&_s)); parseGenericDateMCAtom(in, *(GenericDateMCAtom*)_s.meta.data()); } - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFF9)&&(_choice.recLen == 4))) { + if (startPos == in.getPosition() && ((_choice.recType == 0xFF9)&&(_choice.recLen == 4))) { _s.meta = TextContainerMeta::choice242357012(new HeaderMCAtom(&_s)); parseHeaderMCAtom(in, *(HeaderMCAtom*)_s.meta.data()); } - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFFA)&&(_choice.recLen == 4))) { + if (startPos == in.getPosition() && ((_choice.recType == 0xFFA)&&(_choice.recLen == 4))) { _s.meta = TextContainerMeta::choice242357012(new FooterMCAtom(&_s)); parseFooterMCAtom(in, *(FooterMCAtom*)_s.meta.data()); } if (startPos == in.getPosition()) { _s.meta = TextContainerMeta::choice242357012(new RTFDateTimeMCAtom(&_s)); parseRTFDateTimeMCAtom(in, *(RTFDateTimeMCAtom*)_s.meta.data()); } } void MSO::parseSlidePersistAtom(LEInputStream& in, SlidePersistAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3F3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3F3"); } if (!(_s.rh.recLen == 0x14)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x14"); } _s.persistIdRef = in.readuint32(); _s.reserved1 = in.readbit(); if (!(((bool)_s.reserved1) == false)) { throw IncorrectValueException(in.getPosition(), "((bool)_s.reserved1) == false"); } _s.fShouldCollapse = in.readbit(); _s.fNonOutlineData = in.readbit(); _s.reserved2 = in.readuint5(); if (!(((quint8)_s.reserved2) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved2) == 0"); } _s.reserved3 = in.readuint8(); if (!(((quint8)_s.reserved3) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.reserved3) == 0"); } _s.reserved4 = in.readuint16(); if (!(((quint16)_s.reserved4) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.reserved4) == 0"); } _s.cTexts = in.readint32(); if (!(((qint32)_s.cTexts)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.cTexts)>=0"); } if (!(((qint32)_s.cTexts)<=8)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.cTexts)<=8"); } parseSlideId(in, _s.slideId); _s.reserved5 = in.readuint32(); if (!(((quint32)_s.reserved5) == 0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.reserved5) == 0"); } } void MSO::parseTextRuler(LEInputStream& in, TextRuler& _s) { _s.streamOffset = in.getPosition(); _s.fDefaultTabSize = in.readbit(); _s.fCLevels = in.readbit(); _s.fTabStops = in.readbit(); _s.fLeftMargin1 = in.readbit(); _s.fLeftMargin2 = in.readbit(); _s.fLeftMargin3 = in.readbit(); _s.fLeftMargin4 = in.readbit(); _s.fLeftMargin5 = in.readbit(); _s.fIndent1 = in.readbit(); _s.fIndent2 = in.readbit(); _s.fIndent3 = in.readbit(); _s.fIndent4 = in.readbit(); _s.fIndent5 = in.readbit(); _s.reserved1 = in.readuint3(); _s.reserved2 = in.readuint16(); _s._has_cLevels = _s.fCLevels; if (_s._has_cLevels) { _s.cLevels = in.readint16(); } _s._has_defaultTabSize = _s.fDefaultTabSize; if (_s._has_defaultTabSize) { _s.defaultTabSize = in.readuint16(); } if (_s.fTabStops) { _s.tabs = QSharedPointer(new TabStops(&_s)); parseTabStops(in, *_s.tabs.data()); } _s._has_leftMargin1 = _s.fLeftMargin1; if (_s._has_leftMargin1) { _s.leftMargin1 = in.readuint16(); } _s._has_indent1 = _s.fIndent1; if (_s._has_indent1) { _s.indent1 = in.readuint16(); } _s._has_leftMargin2 = _s.fLeftMargin2; if (_s._has_leftMargin2) { _s.leftMargin2 = in.readuint16(); } _s._has_indent2 = _s.fIndent2; if (_s._has_indent2) { _s.indent2 = in.readuint16(); } _s._has_leftMargin3 = _s.fLeftMargin3; if (_s._has_leftMargin3) { _s.leftMargin3 = in.readuint16(); } _s._has_indent3 = _s.fIndent3; if (_s._has_indent3) { _s.indent3 = in.readuint16(); } _s._has_leftMargin4 = _s.fLeftMargin4; if (_s._has_leftMargin4) { _s.leftMargin4 = in.readuint16(); } _s._has_indent4 = _s.fIndent4; if (_s._has_indent4) { _s.indent4 = in.readuint16(); } _s._has_leftMargin5 = _s.fLeftMargin5; if (_s._has_leftMargin5) { _s.leftMargin5 = in.readuint16(); } _s._has_indent5 = _s.fIndent5; if (_s._has_indent5) { _s.indent5 = in.readuint16(); } } void MSO::parseTextPFException(LEInputStream& in, TextPFException& _s) { _s.streamOffset = in.getPosition(); parsePFMasks(in, _s.masks); if (!(_s.masks.bulletBlip == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletBlip == false"); } if (!(_s.masks.bulletHasScheme == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletHasScheme == false"); } if (!(_s.masks.bulletScheme == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.bulletScheme == false"); } if (_s.masks.hasBullet||_s.masks.bulletHasFont||_s.masks.bulletHasColor||_s.masks.bulletHasSize) { _s.bulletFlags = QSharedPointer(new BulletFlags(&_s)); parseBulletFlags(in, *_s.bulletFlags.data()); } _s._has_bulletChar = _s.masks.bulletChar; if (_s._has_bulletChar) { _s.bulletChar = in.readint16(); } _s._has_bulletFontRef = _s.masks.bulletFont; if (_s._has_bulletFontRef) { _s.bulletFontRef = in.readuint16(); } _s._has_bulletSize = _s.masks.bulletSize; if (_s._has_bulletSize) { _s.bulletSize = in.readint16(); } if (_s.masks.bulletColor) { _s.bulletColor = QSharedPointer(new ColorIndexStruct(&_s)); parseColorIndexStruct(in, *_s.bulletColor.data()); } _s._has_textAlignment = _s.masks.align; if (_s._has_textAlignment) { _s.textAlignment = in.readuint16(); } _s._has_lineSpacing = _s.masks.lineSpacing; if (_s._has_lineSpacing) { _s.lineSpacing = in.readint16(); } _s._has_spaceBefore = _s.masks.spaceBefore; if (_s._has_spaceBefore) { _s.spaceBefore = in.readint16(); } _s._has_spaceAfter = _s.masks.spaceAfter; if (_s._has_spaceAfter) { _s.spaceAfter = in.readint16(); } _s._has_leftMargin = _s.masks.leftMargin; if (_s._has_leftMargin) { _s.leftMargin = in.readuint16(); } _s._has_indent = _s.masks.indent; if (_s._has_indent) { _s.indent = in.readuint16(); } _s._has_defaultTabSize = _s.masks.defaultTabSize; if (_s._has_defaultTabSize) { _s.defaultTabSize = in.readuint16(); } if (_s.masks.tabStops) { _s.tabStops = QSharedPointer(new TabStops(&_s)); parseTabStops(in, *_s.tabStops.data()); } _s._has_fontAlign = _s.masks.fontAlign; if (_s._has_fontAlign) { _s.fontAlign = in.readuint16(); } if (_s.masks.charWrap||_s.masks.wordWrap||_s.masks.overflow) { _s.wrapFlags = QSharedPointer(new PFWrapFlags(&_s)); parsePFWrapFlags(in, *_s.wrapFlags.data()); } _s._has_textDirection = _s.masks.textDirection; if (_s._has_textDirection) { _s.textDirection = in.readuint16(); } } void MSO::parseTextCFException(LEInputStream& in, TextCFException& _s) { _s.streamOffset = in.getPosition(); parseCFMasks(in, _s.masks); if (!(_s.masks.pp10ext == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.pp10ext == false"); } if (!(_s.masks.newEATypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.newEATypeface == false"); } if (!(_s.masks.csTypeface == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.csTypeface == false"); } if (!(_s.masks.pp11ext == false)) { throw IncorrectValueException(in.getPosition(), "_s.masks.pp11ext == false"); } if (_s.masks.bold || _s.masks.italic || _s.masks.underline || _s.masks.shadow || _s.masks.fehint || _s.masks.kumi || _s.masks.emboss || _s.masks.fHasStyle != 0) { _s.fontStyle = QSharedPointer(new CFStyle(&_s)); parseCFStyle(in, *_s.fontStyle.data()); } _s._has_fontRef = _s.masks.typeface; if (_s._has_fontRef) { _s.fontRef = in.readuint16(); } _s._has_oldEAFontRef = _s.masks.oldEATypeface; if (_s._has_oldEAFontRef) { _s.oldEAFontRef = in.readuint16(); } _s._has_ansiFontRef = _s.masks.ansiTypeface; if (_s._has_ansiFontRef) { _s.ansiFontRef = in.readuint16(); } _s._has_symbolFontRef = _s.masks.symbolTypeface; if (_s._has_symbolFontRef) { _s.symbolFontRef = in.readuint16(); } _s._has_fontSize = _s.masks.size; if (_s._has_fontSize) { _s.fontSize = in.readuint16(); if (!(((quint16)_s.fontSize)>=1)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.fontSize)>=1"); } if (!(((quint16)_s.fontSize)<=4000)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.fontSize)<=4000"); } } if (_s.masks.color) { _s.color = QSharedPointer(new ColorIndexStruct(&_s)); parseColorIndexStruct(in, *_s.color.data()); } _s._has_position = _s.masks.position; if (_s._has_position) { _s.position = in.readint16(); if (!(((qint16)_s.position)>=-100)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.position)>=-100"); } if (!(((qint16)_s.position)<=100)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.position)<=100"); } } } void MSO::parseFontCollectionEntry(LEInputStream& in, FontCollectionEntry& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseFontEntityAtom(in, _s.fontEntityAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance<=3)&&(_optionCheck.recType == 0xFB8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontEmbedData1 = QSharedPointer(new FontEmbedDataBlob(&_s)); parseFontEmbedDataBlob(in, *_s.fontEmbedData1.data()); } catch(IncorrectValueException _e) { _s.fontEmbedData1.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontEmbedData1.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance<=3)&&(_optionCheck.recType == 0xFB8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontEmbedData2 = QSharedPointer(new FontEmbedDataBlob(&_s)); parseFontEmbedDataBlob(in, *_s.fontEmbedData2.data()); } catch(IncorrectValueException _e) { _s.fontEmbedData2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontEmbedData2.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance<=3)&&(_optionCheck.recType == 0xFB8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontEmbedData3 = QSharedPointer(new FontEmbedDataBlob(&_s)); parseFontEmbedDataBlob(in, *_s.fontEmbedData3.data()); } catch(IncorrectValueException _e) { _s.fontEmbedData3.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontEmbedData3.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance<=3)&&(_optionCheck.recType == 0xFB8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontEmbedData4 = QSharedPointer(new FontEmbedDataBlob(&_s)); parseFontEmbedDataBlob(in, *_s.fontEmbedData4.data()); } catch(IncorrectValueException _e) { _s.fontEmbedData4.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontEmbedData4.clear(); in.rewind(_m); } } } void MSO::parseKinsokuContainer(LEInputStream& in, KinsokuContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x2"); } if (!(_s.rh.recType == 0x0FC8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FC8"); } parseKinsokuAtom(in, _s.kinsokuAtom); if (_s.kinsokuAtom.level==2) { _s.kinsokuLeadingAtom = QSharedPointer(new KinsokuLeadingAtom(&_s)); parseKinsokuLeadingAtom(in, *_s.kinsokuLeadingAtom.data()); } if (_s.kinsokuAtom.level==2) { _s.kinsokuFollowingAtom = QSharedPointer(new KinsokuFollowingAtom(&_s)); parseKinsokuFollowingAtom(in, *_s.kinsokuFollowingAtom.data()); } } void MSO::parseTextSIException(LEInputStream& in, TextSIException& _s) { _s.streamOffset = in.getPosition(); _s.spell = in.readbit(); _s.lang = in.readbit(); _s.altLang = in.readbit(); _s.unused1 = in.readbit(); _s.unused2 = in.readbit(); _s.fPp10ext = in.readbit(); _s.fBidi = in.readbit(); _s.unused3 = in.readbit(); _s.reserved1 = in.readbit(); _s.smartTag = in.readbit(); _s.reserved2a = in.readuint2(); _s.reserved2b = in.readuint20(); _s._has_spellInfo = _s.spell; if (_s._has_spellInfo) { _s.spellInfo = in.readuint16(); } _s._has_lid = _s.lang; if (_s._has_lid) { _s.lid = in.readuint16(); } _s._has_altLid = _s.altLang; if (_s._has_altLid) { _s.altLid = in.readuint16(); } _s._has_bidi = _s.fBidi; if (_s._has_bidi) { _s.bidi = in.readint16(); if (!(((qint16)_s.bidi) == 0 || ((qint16)_s.bidi) == 1)) { throw IncorrectValueException(in.getPosition(), "((qint16)_s.bidi) == 0 || ((qint16)_s.bidi) == 1"); } } _s._has_pp10runid = _s.fPp10ext; if (_s._has_pp10runid) { _s.pp10runid = in.readuint4(); } _s._has_reserved3a = _s.fPp10ext; if (_s._has_reserved3a) { _s.reserved3a = in.readuint4(); } _s._has_reserved3b = _s.fPp10ext; if (_s._has_reserved3b) { _s.reserved3b = in.readuint16(); } _s._has_reserved3bc = _s.fPp10ext; if (_s._has_reserved3bc) { _s.reserved3bc = in.readuint7(); } _s._has_grammarError = _s.fPp10ext; if (_s._has_grammarError) { _s.grammarError = in.readbit(); } if (_s.smartTag) { _s.smartTags = QSharedPointer(new SmartTags(&_s)); parseSmartTags(in, *_s.smartTags.data()); } } void MSO::parseTextMasterStyleLevel(LEInputStream& in, TextMasterStyleLevel& _s) { _s.streamOffset = in.getPosition(); parseTextPFException(in, _s.pf); parseTextCFException(in, _s.cf); } void MSO::parseDocumentAtom(LEInputStream& in, DocumentAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 1"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x03E9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03E9"); } if (!(_s.rh.recLen == 0x28)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x28"); } parsePointStruct(in, _s.slideSize); parsePointStruct(in, _s.notesSize); parseRatioStruct(in, _s.serverZoom); if (!(_s.serverZoom.numer*_s.serverZoom.denom > 0)) { throw IncorrectValueException(in.getPosition(), "_s.serverZoom.numer*_s.serverZoom.denom > 0"); } _s.notesMasterPersistIdRef = in.readuint32(); _s.handoutMasterPersistIdRef = in.readuint32(); _s.firstSlideNumber = in.readuint16(); if (!(((quint16)_s.firstSlideNumber)<10000)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.firstSlideNumber)<10000"); } _s.slideSizeType = in.readuint16(); if (!(((quint16)_s.slideSizeType) == 0 || ((quint16)_s.slideSizeType) == 1 || ((quint16)_s.slideSizeType) == 2 || ((quint16)_s.slideSizeType) == 3 || ((quint16)_s.slideSizeType) == 4 || ((quint16)_s.slideSizeType) == 5 || ((quint16)_s.slideSizeType) == 6)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.slideSizeType) == 0 || ((quint16)_s.slideSizeType) == 1 || ((quint16)_s.slideSizeType) == 2 || ((quint16)_s.slideSizeType) == 3 || ((quint16)_s.slideSizeType) == 4 || ((quint16)_s.slideSizeType) == 5 || ((quint16)_s.slideSizeType) == 6"); } _s.fSaveWithFonts = in.readuint8(); _s.fOmitTitlePlace = in.readuint8(); _s.fRightToLeft = in.readuint8(); _s.fShowComments = in.readuint8(); } void MSO::parseSlideTime10Atom(LEInputStream& in, SlideTime10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x2EEB)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x2EEB"); } if (!(_s.rh.recLen == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 8"); } parseFILETIME(in, _s.fileTime); } void MSO::parsePP12SlideBinaryTagExtension(LEInputStream& in, PP12SlideBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 8; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } if (_s.rhData.recLen > 8) { _s.roundTripHeaderFooterDefaultsAtom = QSharedPointer(new RoundTripHeaderFooterDefaults12Atom(&_s)); parseRoundTripHeaderFooterDefaults12Atom(in, *_s.roundTripHeaderFooterDefaultsAtom.data()); } } void MSO::parseProgStringTagContainer(LEInputStream& in, ProgStringTagContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1389)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1389"); } parseTagNameAtom(in, _s.tagNameAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 1)&&(_optionCheck.recType == 0xFBA); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.tagValueAtom = QSharedPointer(new TagValueAtom(&_s)); parseTagValueAtom(in, *_s.tagValueAtom.data()); } catch(IncorrectValueException _e) { _s.tagValueAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.tagValueAtom.clear(); in.rewind(_m); } } } void MSO::parseNotesAtom(LEInputStream& in, NotesAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 1"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3F1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3F1"); } if (!(_s.rh.recLen == 0x8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x8"); } _s.slideIdRef = in.readuint32(); parseSlideFlags(in, _s.slideFlags); _s.unused = in.readuint16(); } void MSO::parseExObjListContainer(LEInputStream& in, ExObjListContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0409)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0409"); } if (!(_s.rh.recLen>=12)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen>=12"); } parseExObjListAtom(in, _s.exObjListAtom); qint64 _startPos = in.getPosition(); int _totalSize = qMin(_s.rh.recLen-12, quint32(in.getSize() - _startPos)); _atend = in.getPosition() - _startPos >= _totalSize; while (!_atend) { _s.rgChildRec.append(ExObjListSubContainer(&_s)); parseExObjListSubContainer(in, _s.rgChildRec.last()); _atend = in.getPosition() - _startPos >= _totalSize; } } void MSO::parseExControlContainer(LEInputStream& in, ExControlContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFEE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFEE"); } parseExControlAtom(in, _s.exControlAtom); parseExOleObjAtom(in, _s.exOleObjAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x1)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.menuNameAtom = QSharedPointer(new MenuNameAtom(&_s)); parseMenuNameAtom(in, *_s.menuNameAtom.data()); } catch(IncorrectValueException _e) { _s.menuNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.menuNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x2)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.progIdAtom = QSharedPointer(new ProgIDAtom(&_s)); parseProgIDAtom(in, *_s.progIdAtom.data()); } catch(IncorrectValueException _e) { _s.progIdAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.progIdAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x3)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.clipboardNameAtom = QSharedPointer(new ClipboardNameAtom(&_s)); parseClipboardNameAtom(in, *_s.clipboardNameAtom.data()); } catch(IncorrectValueException _e) { _s.clipboardNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.clipboardNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FC1)&&(_optionCheck.recLen>16); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.metafile = QSharedPointer(new MetafileBlob(&_s)); parseMetafileBlob(in, *_s.metafile.data()); } catch(IncorrectValueException _e) { _s.metafile.clear(); in.rewind(_m); } catch(EOFException _e) { _s.metafile.clear(); in.rewind(_m); } } } void MSO::parseExHyperlinkContainer(LEInputStream& in, ExHyperlinkContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFD7)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFD7"); } parseExHyperlinkAtom(in, _s.exHyperlinkAtom); _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.friendlyNameAtom = QSharedPointer(new FriendlyNameAtom(&_s)); parseFriendlyNameAtom(in, *_s.friendlyNameAtom.data()); } catch(IncorrectValueException _e) { _s.friendlyNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.friendlyNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 1)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.targetAtom = QSharedPointer(new TargetAtom(&_s)); parseTargetAtom(in, *_s.targetAtom.data()); } catch(IncorrectValueException _e) { _s.targetAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.targetAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 3)&&(_optionCheck.recType == 0xFBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.locationAtom = QSharedPointer(new LocationAtom(&_s)); parseLocationAtom(in, *_s.locationAtom.data()); } catch(IncorrectValueException _e) { _s.locationAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.locationAtom.clear(); in.rewind(_m); } } } void MSO::parseExOleLinkContainer(LEInputStream& in, ExOleLinkContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FCE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FCE"); } parseExOleLinkAtom(in, _s.exOleLinkAtom); parseExOleObjAtom(in, _s.exOleObjAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x1)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.menuNameAtom = QSharedPointer(new MenuNameAtom(&_s)); parseMenuNameAtom(in, *_s.menuNameAtom.data()); } catch(IncorrectValueException _e) { _s.menuNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.menuNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x2)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.progIdAtom = QSharedPointer(new ProgIDAtom(&_s)); parseProgIDAtom(in, *_s.progIdAtom.data()); } catch(IncorrectValueException _e) { _s.progIdAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.progIdAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x3)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.clipboardNameAtom = QSharedPointer(new ClipboardNameAtom(&_s)); parseClipboardNameAtom(in, *_s.clipboardNameAtom.data()); } catch(IncorrectValueException _e) { _s.clipboardNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.clipboardNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FC1)&&(_optionCheck.recLen>16); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.metafile = QSharedPointer(new MetafileBlob(&_s)); parseMetafileBlob(in, *_s.metafile.data()); } catch(IncorrectValueException _e) { _s.metafile.clear(); in.rewind(_m); } catch(EOFException _e) { _s.metafile.clear(); in.rewind(_m); } } } void MSO::parseExOleEmbedContainer(LEInputStream& in, ExOleEmbedContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FCC)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FCC"); } parseExOleEmbedAtom(in, _s.exOleEmbedAtom); parseExOleObjAtom(in, _s.exOleObjAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x1)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.menuNameAtom = QSharedPointer(new MenuNameAtom(&_s)); parseMenuNameAtom(in, *_s.menuNameAtom.data()); } catch(IncorrectValueException _e) { _s.menuNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.menuNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x2)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.progIdAtom = QSharedPointer(new ProgIDAtom(&_s)); parseProgIDAtom(in, *_s.progIdAtom.data()); } catch(IncorrectValueException _e) { _s.progIdAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.progIdAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x3)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2 == 0 ); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.clipboardNameAtom = QSharedPointer(new ClipboardNameAtom(&_s)); parseClipboardNameAtom(in, *_s.clipboardNameAtom.data()); } catch(IncorrectValueException _e) { _s.clipboardNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.clipboardNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FC1)&&(_optionCheck.recLen>16); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.metafile = QSharedPointer(new MetafileBlob(&_s)); parseMetafileBlob(in, *_s.metafile.data()); } catch(IncorrectValueException _e) { _s.metafile.clear(); in.rewind(_m); } catch(EOFException _e) { _s.metafile.clear(); in.rewind(_m); } } } void MSO::parseOfficeArtFDGGBlock(LEInputStream& in, OfficeArtFDGGBlock& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0F006)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F006"); } parseOfficeArtFDGG(in, _s.head); _c = _s.head.cidcl-1; for (int _i=0; _i<_c; ++_i) { _s.Rgidcl.append(OfficeArtIDCL(&_s)); parseOfficeArtIDCL(in, _s.Rgidcl[_i]); } } void MSO::parseOfficeArtSolverContainerFileBlock(LEInputStream& in, OfficeArtSolverContainerFileBlock& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recVer == 1)&&(_choice.recType == 0xF012)&&(_choice.recLen == 0x18))) { _s.anon = OfficeArtSolverContainerFileBlock::choice3062460075(new OfficeArtFConnectorRule(&_s)); parseOfficeArtFConnectorRule(in, *(OfficeArtFConnectorRule*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recType == 0xF014)&&(_choice.recLen == 8))) { _s.anon = OfficeArtSolverContainerFileBlock::choice3062460075(new OfficeArtFArcRule(&_s)); parseOfficeArtFArcRule(in, *(OfficeArtFArcRule*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtSolverContainerFileBlock::choice3062460075(new OfficeArtFCalloutRule(&_s)); parseOfficeArtFCalloutRule(in, *(OfficeArtFCalloutRule*)_s.anon.data()); } } void MSO::parseRotation(LEInputStream& in, Rotation& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0004)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0004"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.rotation); } void MSO::parseProtectionBooleanProperties(LEInputStream& in, ProtectionBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x007F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x007F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fLockAgainstGrouping = in.readbit(); _s.fLockAdjustHandles = in.readbit(); _s.fLockText = in.readbit(); _s.fLockVertices = in.readbit(); _s.fLockCropping = in.readbit(); _s.fLockAgainstSelect = in.readbit(); _s.fLockPosition = in.readbit(); _s.fLockAspectRatio = in.readbit(); _s.fLockRotation = in.readbit(); _s.fLockAgainstUngrouping = in.readbit(); _s.unused6 = in.readuint6(); _s.fUsefLockAgainstGrouping = in.readbit(); _s.fUseLockAdjustHandles = in.readbit(); _s.fUseLockText = in.readbit(); _s.fUsefLockVertices = in.readbit(); _s.fUsefLockCropping = in.readbit(); _s.fUsefLockAgainstSelect = in.readbit(); _s.fUsefLockPosition = in.readbit(); _s.fUsefLockAspectRatio = in.readbit(); _s.fUsefLockRotation = in.readbit(); _s.fUsefLockAgainstUngrouping = in.readbit(); _s.unused2 = in.readuint6(); } void MSO::parseITxid(LEInputStream& in, ITxid& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0080)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0080"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.iTxid = in.readint32(); } void MSO::parseDxTextLeft(LEInputStream& in, DxTextLeft& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0081)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0081"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxTextLeft = in.readint32(); } void MSO::parseDyTextTop(LEInputStream& in, DyTextTop& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0082)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0082"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dyTextTop = in.readint32(); } void MSO::parseDxTextRight(LEInputStream& in, DxTextRight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0083)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0083"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxTextRight = in.readint32(); } void MSO::parseDyTextBottom(LEInputStream& in, DyTextBottom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0084)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0084"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dyTextBottom = in.readint32(); } void MSO::parseWrapText(LEInputStream& in, WrapText& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0085)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0085"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.wrapText = in.readuint32(); if (!(((quint32)_s.wrapText)<5)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.wrapText)<5"); } } void MSO::parseAnchorText(LEInputStream& in, AnchorText& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0087)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0087"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.anchorText = in.readuint32(); if (!(((quint32)_s.anchorText)<=9)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.anchorText)<=9"); } } void MSO::parseTxflTextFlow(LEInputStream& in, TxflTextFlow& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0088)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0088"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.txflTextFlow = in.readuint32(); if (!(((quint32)_s.txflTextFlow)<=5)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.txflTextFlow)<=5"); } } void MSO::parseCdirFont(LEInputStream& in, CdirFont& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0089)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0089"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.cdirFont = in.readuint32(); if (!(((quint32)_s.cdirFont)<=3)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.cdirFont)<=3"); } } void MSO::parseHspNext(LEInputStream& in, HspNext& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x008A)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x008A"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.hspNext = in.readuint32(); } void MSO::parseTxdir(LEInputStream& in, Txdir& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x008B)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x008B"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.txdir = in.readuint32(); if (!(((quint32)_s.txdir)<=2)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.txdir)<=2"); } } void MSO::parseTextBooleanProperties(LEInputStream& in, TextBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x00BF)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x00BF"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.unused1 = in.readbit(); _s.fFitShapeToText = in.readbit(); _s.unused2 = in.readbit(); _s.fAutoTextMargin = in.readbit(); _s.fSelectText = in.readbit(); _s.unused3a = in.readuint3(); _s.unused3b = in.readuint8(); _s.unused4 = in.readbit(); _s.fUsefFitShapeToText = in.readbit(); _s.unused5 = in.readbit(); _s.fUsefAutoTextMargin = in.readbit(); _s.fUsefSelectText = in.readbit(); _s.unused6a = in.readuint3(); _s.unused6b = in.readuint8(); } void MSO::parseCropFromTop(LEInputStream& in, CropFromTop& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0100)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0100"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.cropFromTop); } void MSO::parseCropFromBottom(LEInputStream& in, CropFromBottom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0101)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0101"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.cropFromBottom); } void MSO::parseCropFromLeft(LEInputStream& in, CropFromLeft& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0102)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0102"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.cropFromLeft); } void MSO::parseCropFromRight(LEInputStream& in, CropFromRight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0103)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0103"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.cropFromRight); } void MSO::parsePib(LEInputStream& in, Pib& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0104)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0104"); } _s.pib = in.readuint32(); } void MSO::parsePibName(LEInputStream& in, PibName& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0105)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0105"); } _s.pibName = in.readuint32(); } void MSO::parsePibFlags(LEInputStream& in, PibFlags& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0106)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0106"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.pibFlags = in.readuint32(); } void MSO::parsePictureTransparent(LEInputStream& in, PictureTransparent& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0107)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0107"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.pictureTransparent); } void MSO::parsePictureContrast(LEInputStream& in, PictureContrast& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0108)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0108"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.pictureContrast = in.readint32(); } void MSO::parsePictureBrightness(LEInputStream& in, PictureBrightness& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0109)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0109"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.pictureBrightness = in.readint32(); } void MSO::parseBlipBooleanProperties(LEInputStream& in, BlipBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x013F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x013F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fPictureActive = in.readbit(); _s.fPictureBiLevel = in.readbit(); _s.fPictureGray = in.readbit(); _s.fNoHitTestPicture = in.readbit(); _s.fLooping = in.readbit(); _s.fRewind = in.readbit(); _s.fPicturePreserveGrays = in.readbit(); _s.unused1a = in.readbit(); _s.unused1b = in.readuint8(); _s.fUsefPictureActive = in.readbit(); _s.fUsefPictureBiLevel = in.readbit(); _s.fUsefPictureGray = in.readbit(); _s.fUsefNoHitTestPicture = in.readbit(); _s.fUsefLooping = in.readbit(); _s.fUsefRewind = in.readbit(); _s.fUsefPicturePreserveGrays = in.readbit(); _s.unused2a = in.readbit(); _s.unused2b = in.readuint8(); } void MSO::parseGeoLeft(LEInputStream& in, GeoLeft& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0140)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0140"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.geoLeft = in.readint32(); } void MSO::parseGeoTop(LEInputStream& in, GeoTop& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0141)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0141"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.geoTop = in.readint32(); } void MSO::parseGeoRight(LEInputStream& in, GeoRight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0142)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0142"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.geoRight = in.readint32(); } void MSO::parseGeoBottom(LEInputStream& in, GeoBottom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0143)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0143"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.geoBottom = in.readint32(); } void MSO::parseShapePath(LEInputStream& in, ShapePath& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0144)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0144"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.shapePath = in.readuint32(); if (!(((quint32)_s.shapePath)<=4)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.shapePath)<=4"); } } void MSO::parsePVertices(LEInputStream& in, PVertices& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0145)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0145"); } _s.pVertices = in.readuint32(); } void MSO::parsePSegmentInfo(LEInputStream& in, PSegmentInfo& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0146)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0146"); } _s.pSegmentInfo = in.readuint32(); } void MSO::parseAdjustValue(LEInputStream& in, AdjustValue& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0147)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0147"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjustvalue = in.readint32(); } void MSO::parseAdjust2Value(LEInputStream& in, Adjust2Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0148)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0148"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust2value = in.readint32(); } void MSO::parseAdjust3Value(LEInputStream& in, Adjust3Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0149)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0149"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust3value = in.readint32(); } void MSO::parseAdjust4Value(LEInputStream& in, Adjust4Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x014A)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x014A"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust4value = in.readint32(); } void MSO::parseAdjust5Value(LEInputStream& in, Adjust5Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x014B)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x014B"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust5value = in.readint32(); } void MSO::parseAdjust6Value(LEInputStream& in, Adjust6Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x014C)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x014C"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust6value = in.readint32(); } void MSO::parseAdjust7Value(LEInputStream& in, Adjust7Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x014D)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x014D"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust7value = in.readint32(); } void MSO::parseAdjust8Value(LEInputStream& in, Adjust8Value& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x014E)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x014E"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.adjust8value = in.readint32(); } void MSO::parseGeometryBooleanProperties(LEInputStream& in, GeometryBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x017F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x017F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fFillOk = in.readbit(); _s.fFillShadeShapeOK = in.readbit(); _s.fGtextOK = in.readbit(); _s.fLineOK = in.readbit(); _s.f3DOK = in.readbit(); _s.fShadowOK = in.readbit(); _s.unuseda = in.readbit(); _s.unusedb = in.readbit(); _s.unused2 = in.readuint8(); _s.fUsefFillOK = in.readbit(); _s.fUsefFillShadeShapeOK = in.readbit(); _s.fUsefGtextOK = in.readbit(); _s.fUsefLineOK = in.readbit(); _s.fUsef3DOK = in.readbit(); _s.fUsefShadowOK = in.readbit(); _s.unused3a = in.readbit(); _s.unused3b = in.readbit(); _s.unused4 = in.readuint8(); } void MSO::parseFillType(LEInputStream& in, FillType& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0180)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0180"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillType = in.readuint32(); if (!(((quint32)_s.fillType)<=9)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.fillType)<=9"); } } void MSO::parseFillColor(LEInputStream& in, FillColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0181)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0181"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.fillColor); } void MSO::parseFillOpacity(LEInputStream& in, FillOpacity& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0182)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0182"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillOpacity); } void MSO::parseFillBackColor(LEInputStream& in, FillBackColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0183)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0183"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.fillBackColor); } void MSO::parseFillBackOpacity(LEInputStream& in, FillBackOpacity& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0184)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0184"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillBackOpacity); } void MSO::parseFillCrMod(LEInputStream& in, FillCrMod& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0185)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0185"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.fillCrMod); } void MSO::parseFillBlip(LEInputStream& in, FillBlip& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0186)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0186"); } _s.fillBlip = in.readuint32(); } void MSO::parseFillBlipName(LEInputStream& in, FillBlipName& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0187)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0187"); } _s.fillBlipName = in.readuint32(); } void MSO::parseFillBlipFlags(LEInputStream& in, FillBlipFlags& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0188)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0188"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillBlipFlags = in.readuint32(); } void MSO::parseFillWidth(LEInputStream& in, FillWidth& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0189)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0189"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillWidth = in.readint32(); } void MSO::parseFillHeight(LEInputStream& in, FillHeight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x018A)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x018A"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillHeight = in.readint32(); } void MSO::parseFillAngle(LEInputStream& in, FillAngle& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x018B)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x018B"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillAngle); } void MSO::parseFillFocus(LEInputStream& in, FillFocus& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x018C)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x018C"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillFocus = in.readint32(); } void MSO::parseFillToLeft(LEInputStream& in, FillToLeft& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x018D)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x018D"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillToLeft); } void MSO::parseFillToTop(LEInputStream& in, FillToTop& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x018E)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x018E"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillToTop); } void MSO::parseFillToRight(LEInputStream& in, FillToRight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x018F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x018F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillToRight); } void MSO::parseFillToBottom(LEInputStream& in, FillToBottom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0190)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0190"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillToBottom); } void MSO::parseFillRectLeft(LEInputStream& in, FillRectLeft& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0191)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0191"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillRectLeft = in.readint32(); } void MSO::parseFillRectTop(LEInputStream& in, FillRectTop& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0192)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0192"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillRectTop = in.readint32(); } void MSO::parseFillRectRight(LEInputStream& in, FillRectRight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0193)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0193"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillRectRight = in.readint32(); } void MSO::parseFillRectBottom(LEInputStream& in, FillRectBottom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0194)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0194"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillRectBottom = in.readint32(); } void MSO::parseFillDztype(LEInputStream& in, FillDztype& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0195)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0195"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillDztype = in.readint32(); } void MSO::parseFillShadePreset(LEInputStream& in, FillShadePreset& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0196)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0196"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fillShadePreset = in.readint32(); } void MSO::parseFillShadeColors(LEInputStream& in, FillShadeColors& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0197)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0197"); } _s.fillShadeColors = in.readuint32(); } void MSO::parseFillOriginX(LEInputStream& in, FillOriginX& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0198)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0198"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillOriginX); } void MSO::parseFillOriginY(LEInputStream& in, FillOriginY& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0199)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0199"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillOriginY); } void MSO::parseFillShapeOriginX(LEInputStream& in, FillShapeOriginX& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x019A)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x019A"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillShapeOriginX); } void MSO::parseFillShapeOriginY(LEInputStream& in, FillShapeOriginY& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x019B)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x019B"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.fillShapeOriginY); } void MSO::parseFillColorExt(LEInputStream& in, FillColorExt& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x019E)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x019E"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.fillColorExt); } void MSO::parseFillBackColorExt(LEInputStream& in, FillBackColorExt& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01A2)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01A2"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.fillBackColorExt); } void MSO::parseFillStyleBooleanProperties(LEInputStream& in, FillStyleBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01BF)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01BF"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fNoFillHitTest = in.readbit(); _s.fillUseRect = in.readbit(); _s.fillShape = in.readbit(); _s.fHitTestFill = in.readbit(); _s.fFilled = in.readbit(); _s.fUseShapeAnchor = in.readbit(); _s.fRecolorFillAsPicture = in.readbit(); _s.unused1a = in.readbit(); _s.unused1b = in.readuint8(); _s.fUseNoFillHitTest = in.readbit(); _s.fUseFillUseRect = in.readbit(); _s.fUseFillShape = in.readbit(); _s.fUseHitTestFill = in.readbit(); _s.fUseFilled = in.readbit(); _s.fUseUseShapeAnchor = in.readbit(); _s.fUsefRecolorFillAsPicture = in.readbit(); _s.unused2a = in.readbit(); _s.unused2b = in.readuint8(); } void MSO::parseLineColor(LEInputStream& in, LineColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01C0)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01C0"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.lineColor); } void MSO::parseLineOpacity(LEInputStream& in, LineOpacity& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01C1)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01C1"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineOpacity = in.readint32(); if (!(((qint32)_s.lineOpacity)>=0)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.lineOpacity)>=0"); } if (!(((qint32)_s.lineOpacity)<=65536)) { throw IncorrectValueException(in.getPosition(), "((qint32)_s.lineOpacity)<=65536"); } } void MSO::parseLineBackColor(LEInputStream& in, LineBackColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01C2)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01C2"); } parseOfficeArtCOLORREF(in, _s.lineBackColor); } void MSO::parseLineFillBlip(LEInputStream& in, LineFillBlip& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01C5)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01C5"); } _s.lineFillBlip = in.readuint32(); } void MSO::parseLineWidth(LEInputStream& in, LineWidth& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01CB)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01CB"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineWidth = in.readuint32(); } void MSO::parseLineStyle(LEInputStream& in, LineStyle& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01CD)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01CD"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineStyle = in.readuint32(); } void MSO::parseLineDashing(LEInputStream& in, LineDashing& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01CE)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01CE"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineDashing = in.readuint32(); } void MSO::parseLineStartArrowhead(LEInputStream& in, LineStartArrowhead& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D0)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D0"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineStartArrowhead = in.readuint32(); if (!(((quint32)_s.lineStartArrowhead)<=8)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.lineStartArrowhead)<=8"); } } void MSO::parseLineEndArrowhead(LEInputStream& in, LineEndArrowhead& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D1)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D1"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineEndArrowhead = in.readuint32(); if (!(((quint32)_s.lineEndArrowhead)<=8)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.lineEndArrowhead)<=8"); } } void MSO::parseLineStartArrowWidth(LEInputStream& in, LineStartArrowWidth& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D2)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D2"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineStartArrowWidth = in.readuint32(); } void MSO::parseLineStartArrowLength(LEInputStream& in, LineStartArrowLength& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D3)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D3"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineStartArrowLength = in.readuint32(); } void MSO::parseLineEndArrowWidth(LEInputStream& in, LineEndArrowWidth& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D4)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D4"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineEndArrowWidth = in.readuint32(); } void MSO::parseLineEndArrowLength(LEInputStream& in, LineEndArrowLength& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D5)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D5"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineEndArrowLength = in.readuint32(); } void MSO::parseLineJoinStyle(LEInputStream& in, LineJoinStyle& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D6)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D6"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineJoinStyle = in.readuint32(); if (!(((quint32)_s.lineJoinStyle)<=2)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.lineJoinStyle)<=2"); } } void MSO::parseLineEndCapStyle(LEInputStream& in, LineEndCapStyle& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01D7)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01D7"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lineEndCapStyle = in.readuint32(); if (!(((quint32)_s.lineEndCapStyle)<=3)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.lineEndCapStyle)<=3"); } } void MSO::parseLineStyleBooleanProperties(LEInputStream& in, LineStyleBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x01FF)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x01FF"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fNoLineDrawDash = in.readbit(); _s.fLineFillShape = in.readbit(); _s.fHitTestLine = in.readbit(); _s.fLine = in.readbit(); _s.fArrowHeadsOK = in.readbit(); _s.fInsetPenOK = in.readbit(); _s.fInsetPen = in.readbit(); _s.reserved1 = in.readbit(); _s.reserved2 = in.readbit(); _s.fLineOpaqueBackColor = in.readbit(); _s.unused1 = in.readuint6(); _s.fUseNoLineDrawDash = in.readbit(); _s.fUseLineFillShape = in.readbit(); _s.fUseHitTestLine = in.readbit(); _s.fUsefLine = in.readbit(); _s.fUsefArrowHeadsOK = in.readbit(); _s.fUseInsetPenOK = in.readbit(); _s.fUseInsetPen = in.readbit(); _s.unused2 = in.readbit(); _s.unused3 = in.readbit(); _s.fUsefLineOpaqueBackColor = in.readbit(); _s.unused4 = in.readuint6(); } void MSO::parseShadowType(LEInputStream& in, ShadowType& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0200)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0200"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.shadowType = in.readuint32(); } void MSO::parseShadowColor(LEInputStream& in, ShadowColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0201)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0201"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.shadowColor); } void MSO::parseShadowOpacity(LEInputStream& in, ShadowOpacity& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0204)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0204"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseFixedPoint(in, _s.shadowOpacity); } void MSO::parseShadowOffsetX(LEInputStream& in, ShadowOffsetX& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0205)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0205"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.shadowOffsetX = in.readint32(); } void MSO::parseShadowOffsetY(LEInputStream& in, ShadowOffsetY& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0206)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0206"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.shadowOffsetY = in.readint32(); } void MSO::parseShadowStyleBooleanProperties(LEInputStream& in, ShadowStyleBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x023F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x023F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fShadowObscured = in.readbit(); _s.fShadow = in.readbit(); _s.unused1 = in.readuint14(); _s.fUsefShadowObscured = in.readbit(); _s.fUsefShadow = in.readbit(); _s.unused2 = in.readuint14(); } void MSO::parseHspMaster(LEInputStream& in, HspMaster& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0301)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0301"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.hspMaster = in.readuint32(); } void MSO::parseCxstyle(LEInputStream& in, Cxstyle& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0303)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0303"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.cxstyle = in.readuint32(); if (!(((quint32)_s.cxstyle)<=4)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.cxstyle)<=4"); } } void MSO::parseBWMode(LEInputStream& in, BWMode& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0304)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0304"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.bWMode = in.readuint32(); if (!(((quint32)_s.bWMode)<=10)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.bWMode)<=10"); } } void MSO::parseShapeBooleanProperties(LEInputStream& in, ShapeBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x033F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x033F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fBackground = in.readbit(); _s.reserved1 = in.readbit(); _s.fInitiator = in.readbit(); _s.fLockShapeType = in.readbit(); _s.fPreferRelativeResize = in.readbit(); _s.fOleIcon = in.readbit(); _s.fFlipVOverride = in.readbit(); _s.fFlipHOverride = in.readbit(); _s.fPolicyBarcode = in.readbit(); _s.fPolicyLabel = in.readbit(); _s.unused1 = in.readbit(); _s.unused2 = in.readbit(); _s.unused3 = in.readuint4(); _s.fUsefBackground = in.readbit(); _s.unused4 = in.readbit(); _s.fUsefInitiator = in.readbit(); _s.fUsefLockShapeType = in.readbit(); _s.fusePreferrelativeResize = in.readbit(); _s.fUsefOleIcon = in.readbit(); _s.fUsefFlipVOverride = in.readbit(); _s.fUsefFlipHOverride = in.readbit(); _s.fUsefPolicyBarcode = in.readbit(); _s.fUsefPolicyLabel = in.readbit(); _s.unused5 = in.readbit(); _s.unused6 = in.readbit(); _s.unused7 = in.readuint4(); } void MSO::parseDxyCalloutGap(LEInputStream& in, DxyCalloutGap& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0341)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0341"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxyCalloutGap = in.readuint32(); } void MSO::parseSpcoa(LEInputStream& in, Spcoa& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0342)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0342"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.spcoa = in.readuint32(); } void MSO::parseSpcod(LEInputStream& in, Spcod& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0343)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0343"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.spcod = in.readuint32(); } void MSO::parseDxyCalloutDropSpecified(LEInputStream& in, DxyCalloutDropSpecified& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0344)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0344"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxyCalloutDropSpecified = in.readuint32(); } void MSO::parseDxyCalloutLengthSpecified(LEInputStream& in, DxyCalloutLengthSpecified& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0345)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0345"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxyCalloutLengthSpecified = in.readuint32(); } void MSO::parseCalloutBooleanProperties(LEInputStream& in, CalloutBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x037F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x037F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fCalloutLengthSpecified = in.readbit(); _s.fCalloutDropAuto = in.readbit(); _s.fCalloutMinusY = in.readbit(); _s.fCalloutMinusX = in.readbit(); _s.fCalloutTextBorder = in.readbit(); _s.fCalloutAccentBar = in.readbit(); _s.fCallout = in.readbit(); _s.unused1a = in.readbit(); _s.unused1b = in.readuint8(); _s.fUsefCalloutLengthSpecified = in.readbit(); _s.fUsefCalloutDropAuto = in.readbit(); _s.fUsefCalloutMinusY = in.readbit(); _s.fUsefCalloutMinusX = in.readbit(); _s.fUsefCalloutTextBorder = in.readbit(); _s.fUsefCalloutAccentBar = in.readbit(); _s.fUsefCallout = in.readbit(); _s.unused2a = in.readbit(); _s.unused2b = in.readuint8(); } void MSO::parsePWrapPolygonVertices(LEInputStream& in, PWrapPolygonVertices& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0383)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0383"); } _s.pWrapPolygonVertices = in.readuint32(); } void MSO::parseDxWrapDistLeft(LEInputStream& in, DxWrapDistLeft& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0384)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0384"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxWrapDistLeft = in.readint32(); } void MSO::parseDyWrapDistTop(LEInputStream& in, DyWrapDistTop& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0385)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0385"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dyWrapDistTop = in.readint32(); } void MSO::parseDxWrapDistRight(LEInputStream& in, DxWrapDistRight& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0386)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0386"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxWrapDistRight = in.readint32(); } void MSO::parseDyWrapDistBottom(LEInputStream& in, DyWrapDistBottom& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0387)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0387"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dyWrapDistBottom = in.readint32(); } void MSO::parseLidRegroup(LEInputStream& in, LidRegroup& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0388)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0388"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.lidRegroup = in.readuint32(); } void MSO::parsePosH(LEInputStream& in, PosH& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x038F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x038F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.posH = in.readuint32(); } void MSO::parsePosRelH(LEInputStream& in, PosRelH& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0390)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0390"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.posRelH = in.readuint32(); } void MSO::parsePosV(LEInputStream& in, PosV& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0391)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0391"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.posV = in.readuint32(); } void MSO::parsePosRelV(LEInputStream& in, PosRelV& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0392)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0392"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.posRelV = in.readuint32(); } void MSO::parsePctHR(LEInputStream& in, PctHR& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0393)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0393"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.pctHR = in.readuint32(); } void MSO::parseAlignHR(LEInputStream& in, AlignHR& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0394)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0394"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.alignHR = in.readuint32(); } void MSO::parseDxHeightHR(LEInputStream& in, DxHeightHR& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0395)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0395"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxHeightHR = in.readint32(); } void MSO::parseDxWidthHR(LEInputStream& in, DxWidthHR& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0396)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0396"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.dxWidthHR = in.readint32(); } void MSO::parseBorderTopColor(LEInputStream& in, BorderTopColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x039b)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x039b"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.borderTopColor); } void MSO::parseBorderLeftColor(LEInputStream& in, BorderLeftColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x039c)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x039c"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.borderLeftColor); } void MSO::parseBorderBottomColor(LEInputStream& in, BorderBottomColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x039d)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x039d"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.borderBottomColor); } void MSO::parseBorderRightColor(LEInputStream& in, BorderRightColor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x039e)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x039e"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } parseOfficeArtCOLORREF(in, _s.borderRightColor); } void MSO::parseGroupShapeBooleanProperties(LEInputStream& in, GroupShapeBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x03bf)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x03bf"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fPrint = in.readbit(); _s.fHidden = in.readbit(); _s.fOneD = in.readbit(); _s.fIsButton = in.readbit(); _s.fOnDblClickNotify = in.readbit(); _s.fBehindDocument = in.readbit(); _s.fEditedWrap = in.readbit(); _s.fScriptAnchor = in.readbit(); _s.fReallyHidden = in.readbit(); _s.fAllowOverlap = in.readbit(); _s.fUserDrawn = in.readbit(); _s.fHorizRule = in.readbit(); _s.fNoshadeHR = in.readbit(); _s.fStandardHR = in.readbit(); _s.fIsBullet = in.readbit(); _s.fLayoutInCell = in.readbit(); _s.fUsefPrint = in.readbit(); _s.fUsefHidden = in.readbit(); _s.fUsefOneD = in.readbit(); _s.fUsefIsButton = in.readbit(); _s.fUsefOnDblClickNotify = in.readbit(); _s.fUsefBehindDocument = in.readbit(); _s.fUsefEditedWrap = in.readbit(); _s.fUsefScriptAnchor = in.readbit(); _s.fUsefReallyHidden = in.readbit(); _s.fUsefAllowOverlap = in.readbit(); _s.fUsefUserDrawn = in.readbit(); _s.fUsefHorizRule = in.readbit(); _s.fUsefNoshadeHR = in.readbit(); _s.fUsefStandardHR = in.readbit(); _s.fUsefIsBullet = in.readbit(); _s.fUsefLayoutInCell = in.readbit(); } void MSO::parseWzFillId(LEInputStream& in, WzFillId& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x0403)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x0403"); } _s.wzFillId = in.readint32(); } void MSO::parseDiagramBooleanProperties(LEInputStream& in, DiagramBooleanProperties& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); if (!(_s.opid.opid == 0x053F)) { throw IncorrectValueException(in.getPosition(), "_s.opid.opid == 0x053F"); } if (!(_s.opid.fBid == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fBid == false"); } if (!(_s.opid.fComplex == false)) { throw IncorrectValueException(in.getPosition(), "_s.opid.fComplex == false"); } _s.fPseudoInline = in.readbit(); _s.fDoLayout = in.readbit(); _s.fReverse = in.readbit(); _s.fDoFormat = in.readbit(); _s.unused1 = in.readbit(); _s.unused2 = in.readbit(); _s.unused3a = in.readuint2(); _s.unused3b = in.readuint8(); _s.fUsefPseudoInline = in.readbit(); _s.fUsefDoLayout = in.readbit(); _s.fUsefReverse = in.readbit(); _s.fUsefDoFormat = in.readbit(); _s.unused4 = in.readbit(); _s.unused5 = in.readbit(); _s.unused6a = in.readuint2(); _s.unused6b = in.readuint8(); } void MSO::parsePptOfficeArtClientAnchor(LEInputStream& in, PptOfficeArtClientAnchor& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF010)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF010"); } if (!(_s.rh.recLen == 0x8 || _s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x8 || _s.rh.recLen == 0x10"); } if (_s.rh.recLen==0x8) { _s.rect1 = QSharedPointer(new SmallRectStruct(&_s)); parseSmallRectStruct(in, *_s.rect1.data()); } if (_s.rh.recLen==0x10) { _s.rect2 = QSharedPointer(new RectStruct(&_s)); parseRectStruct(in, *_s.rect2.data()); } } void MSO::parseAnimationInfoContainer(LEInputStream& in, AnimationInfoContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x1014)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x1014"); } parseAnimationInfoAtom(in, _s.animationAtom); _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x7E6); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.animationSound = QSharedPointer(new SoundContainer(&_s)); parseSoundContainer(in, *_s.animationSound.data()); } catch(IncorrectValueException _e) { _s.animationSound.clear(); in.rewind(_m); } catch(EOFException _e) { _s.animationSound.clear(); in.rewind(_m); } } } void MSO::parseMouseClickInteractiveInfoContainer(LEInputStream& in, MouseClickInteractiveInfoContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFF2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF2"); } parseInteractiveInfoAtom(in, _s.interactiveInfoAtom); if (_s.rh.recLen>24) { _s.macroNameAtom = QSharedPointer(new MacroNameAtom(&_s)); parseMacroNameAtom(in, *_s.macroNameAtom.data()); } } void MSO::parseMouseOverInteractiveInfoContainer(LEInputStream& in, MouseOverInteractiveInfoContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0xFF2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFF2"); } parseInteractiveInfoAtom(in, _s.interactiveInfoAtom); if (_s.rh.recLen>24) { _s.macroNameAtom = QSharedPointer(new MacroNameAtom(&_s)); parseMacroNameAtom(in, *_s.macroNameAtom.data()); } } void MSO::parseShapeClientRoundtripDataSubcontainerOrAtom(LEInputStream& in, ShapeClientRoundtripDataSubcontainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recVer == 0xF)&&(_choice.recInstance == 0 || _choice.recInstance == 1 || _choice.recInstance == 2)&&(_choice.recType == 0x1388))) { _s.anon = ShapeClientRoundtripDataSubcontainerOrAtom::choice3146562028(new ShapeProgsTagContainer(&_s)); parseShapeProgsTagContainer(in, *(ShapeProgsTagContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recInstance == 0)&&(_choice.recType == 0xBDD)&&(_choice.recLen == 1))) { _s.anon = ShapeClientRoundtripDataSubcontainerOrAtom::choice3146562028(new RoundTripNewPlaceHolderId12Atom(&_s)); parseRoundTripNewPlaceHolderId12Atom(in, *(RoundTripNewPlaceHolderId12Atom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recInstance == 0)&&(_choice.recType == 0x41F)&&(_choice.recLen == 4))) { _s.anon = ShapeClientRoundtripDataSubcontainerOrAtom::choice3146562028(new RoundTripShapeId12Atom(&_s)); parseRoundTripShapeId12Atom(in, *(RoundTripShapeId12Atom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recInstance == 0)&&(_choice.recType == 0x420)&&(_choice.recLen == 1))) { _s.anon = ShapeClientRoundtripDataSubcontainerOrAtom::choice3146562028(new RoundTripHFPlaceholder12Atom(&_s)); parseRoundTripHFPlaceholder12Atom(in, *(RoundTripHFPlaceholder12Atom*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = ShapeClientRoundtripDataSubcontainerOrAtom::choice3146562028(new RoundTripShapeCheckSumForCustomLayouts12Atom(&_s)); parseRoundTripShapeCheckSumForCustomLayouts12Atom(in, *(RoundTripShapeCheckSumForCustomLayouts12Atom*)_s.anon.data()); } } void MSO::parseShapeProgBinaryTagSubContainerOrAtom(LEInputStream& in, ShapeProgBinaryTagSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); try { _s.anon = ShapeProgBinaryTagSubContainerOrAtom::choice2754406405(new PP9ShapeBinaryTagExtension(&_s)); parsePP9ShapeBinaryTagExtension(in, *(PP9ShapeBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _x) { _s.anon.clear(); in.rewind(_m); try { _s.anon = ShapeProgBinaryTagSubContainerOrAtom::choice2754406405(new PP10ShapeBinaryTagExtension(&_s)); parsePP10ShapeBinaryTagExtension(in, *(PP10ShapeBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = ShapeProgBinaryTagSubContainerOrAtom::choice2754406405(new PP11ShapeBinaryTagExtension(&_s)); parsePP11ShapeBinaryTagExtension(in, *(PP11ShapeBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xxx) { _s.anon.clear(); in.rewind(_m); _s.anon = ShapeProgBinaryTagSubContainerOrAtom::choice2754406405(new UnknownBinaryTag(&_s)); parseUnknownBinaryTag(in, *(UnknownBinaryTag*)_s.anon.data()); }}} } void MSO::parseOfficeArtClientTextBox(LEInputStream& in, OfficeArtClientTextBox& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recLen == 0))) { _s.anon = OfficeArtClientTextBox::choice2757443956(new XlsOfficeArtClientTextBox(&_s)); parseXlsOfficeArtClientTextBox(in, *(XlsOfficeArtClientTextBox*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0 || _choice.recVer == 0xF)&&(_choice.recLen == 0x4))) { _s.anon = OfficeArtClientTextBox::choice2757443956(new DocOfficeArtClientTextBox(&_s)); parseDocOfficeArtClientTextBox(in, *(DocOfficeArtClientTextBox*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtClientTextBox::choice2757443956(new PptOfficeArtClientTextBox(&_s)); parsePptOfficeArtClientTextBox(in, *(PptOfficeArtClientTextBox*)_s.anon.data()); } } void MSO::parseTextRulerAtom(LEInputStream& in, TextRulerAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFA6)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFA6"); } parseTextRuler(in, _s.textRuler); } void MSO::parseOfficeArtFOPTE(LEInputStream& in, OfficeArtFOPTE& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtFOPTEOPID(in, _s.opid); _s.op = in.readint32(); } void MSO::parseFib(LEInputStream& in, Fib& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseFibBase(in, _s.base); _s.csw = in.readuint16(); if (!(((quint16)_s.csw) == 14)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.csw) == 14"); } parseFibRgW97(in, _s.fibRgW); _s.cslw = in.readuint16(); if (!(((quint16)_s.cslw) == 22)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cslw) == 22"); } parseFibRgLw97(in, _s.fibRgLw); _s.cbRgFcLcb = in.readuint16(); if (!(((quint16)_s.cbRgFcLcb) == 0x5D || ((quint16)_s.cbRgFcLcb) == 0x6C || ((quint16)_s.cbRgFcLcb) == 0x88 || ((quint16)_s.cbRgFcLcb) == 0xA4 || ((quint16)_s.cbRgFcLcb) == 0xB7)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cbRgFcLcb) == 0x5D || ((quint16)_s.cbRgFcLcb) == 0x6C || ((quint16)_s.cbRgFcLcb) == 0x88 || ((quint16)_s.cbRgFcLcb) == 0xA4 || ((quint16)_s.cbRgFcLcb) == 0xB7"); } parseFibRgFcLcb97(in, _s.fibRgFcLcbBlob); if (_s.cbRgFcLcb>=0x6C) { _s.fibRgFcLcbBlob2 = QSharedPointer(new FibRgFcLcb2000(&_s)); parseFibRgFcLcb2000(in, *_s.fibRgFcLcbBlob2.data()); } if (_s.cbRgFcLcb>=0x88) { _s.fibRgFcLcbBlob3 = QSharedPointer(new FibRgFcLcb2002(&_s)); parseFibRgFcLcb2002(in, *_s.fibRgFcLcbBlob3.data()); } _s.cswNew = in.readuint16(); if (!(((quint16)_s.cswNew) == 0 || ((quint16)_s.cswNew) == 2 || ((quint16)_s.cswNew) == 5)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cswNew) == 0 || ((quint16)_s.cswNew) == 2 || ((quint16)_s.cswNew) == 5"); } _c = 2*_s.cswNew; _s.fibRgCswNew.resize(_c); in.readBytes(_s.fibRgCswNew); _c = _s.fibRgLw.cbMac-156-8*_s.cbRgFcLcb-2*_s.cswNew; _s.trail.resize(_c); in.readBytes(_s.trail); } void MSO::parseSTSH(LEInputStream& in, STSH& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseLPStshi(in, _s.lpstshi); _c = 20; for (int _i=0; _i<_c; ++_i) { _s.rglpstd.append(LPStd(&_s)); parseLPStd(in, _s.rglpstd[_i]); } } void MSO::parseClx(LEInputStream& in, Clx& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; _atend = false; while (!_atend) { _m = in.setMark(); try { _s.RgPrc.append(Pcr(&_s)); parsePcr(in, _s.RgPrc.last()); } catch(IncorrectValueException _e) { _s.RgPrc.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.RgPrc.removeLast(); _atend = true; in.rewind(_m); } } parsePcdt(in, _s.pcdt); } void MSO::parsePcr(LEInputStream& in, Pcr& _s) { _s.streamOffset = in.getPosition(); _s.clxt = in.readuint8(); if (!(((quint8)_s.clxt) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.clxt) == 1"); } parsePrcData(in, _s.prcData); } void MSO::parsePrm(LEInputStream& in, Prm& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); bool _choice = in.readbit(); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice == false))) { _s.prm = Prm::choice1129181155(new Prm0(&_s)); parsePrm0(in, *(Prm0*)_s.prm.data()); } if (startPos == in.getPosition()) { _s.prm = Prm::choice1129181155(new Prm1(&_s)); parsePrm1(in, *(Prm1*)_s.prm.data()); } } void MSO::parseOfficeArtBlipEMF(LEInputStream& in, OfficeArtBlipEMF& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x3D4 || _s.rh.recInstance == 0x3D5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x3D4 || _s.rh.recInstance == 0x3D5"); } if (!(_s.rh.recType == 0xF01A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF01A"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x3D5; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } parseOfficeArtMetafileHeader(in, _s.metafileHeader); _c = _s.rh.recLen-((_s.rh.recInstance==0x3D4)?50:66); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseOfficeArtBlipWMF(LEInputStream& in, OfficeArtBlipWMF& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x216 || _s.rh.recInstance == 0x217)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x216 || _s.rh.recInstance == 0x217"); } if (!(_s.rh.recType == 0xF01B)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF01B"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x217; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } parseOfficeArtMetafileHeader(in, _s.metafileHeader); _c = _s.rh.recLen-((_s.rh.recInstance==0x216)?50:66); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseOfficeArtBlipPICT(LEInputStream& in, OfficeArtBlipPICT& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0x542 || _s.rh.recInstance == 0x543)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x542 || _s.rh.recInstance == 0x543"); } if (!(_s.rh.recType == 0xF01C)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF01C"); } _c = 16; _s.rgbUid1.resize(_c); in.readBytes(_s.rgbUid1); _s._has_rgbUid2 = _s.rh.recInstance == 0x543; if (_s._has_rgbUid2) { _c = 16; _s.rgbUid2.resize(_c); in.readBytes(_s.rgbUid2); } parseOfficeArtMetafileHeader(in, _s.metafileHeader); _c = _s.rh.recLen-((_s.rh.recInstance==0x542)?50:66); _s.BLIPFileData.resize(_c); in.readBytes(_s.BLIPFileData); } void MSO::parseOfficeArtBlip(LEInputStream& in, OfficeArtBlip& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recInstance == 0x3D4 || _choice.recInstance == 0x3D5)&&(_choice.recType == 0xF01A))) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipEMF(&_s)); parseOfficeArtBlipEMF(in, *(OfficeArtBlipEMF*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x216 || _choice.recInstance == 0x217)&&(_choice.recType == 0xF01B))) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipWMF(&_s)); parseOfficeArtBlipWMF(in, *(OfficeArtBlipWMF*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x542 || _choice.recInstance == 0x543)&&(_choice.recType == 0xF01C))) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipPICT(&_s)); parseOfficeArtBlipPICT(in, *(OfficeArtBlipPICT*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x46A || _choice.recInstance == 0x46B || _choice.recInstance == 0x6E2 || _choice.recInstance == 0x6E3)&&(_choice.recType == 0xF01D))) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipJPEG(&_s)); parseOfficeArtBlipJPEG(in, *(OfficeArtBlipJPEG*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x6E0 || _choice.recInstance == 0x6E1)&&(_choice.recType == 0xF01E))) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipPNG(&_s)); parseOfficeArtBlipPNG(in, *(OfficeArtBlipPNG*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x7A8 || _choice.recInstance == 0x7A9)&&(_choice.recType == 0xF01F))) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipDIB(&_s)); parseOfficeArtBlipDIB(in, *(OfficeArtBlipDIB*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtBlip::choice279968329(new OfficeArtBlipTIFF(&_s)); parseOfficeArtBlipTIFF(in, *(OfficeArtBlipTIFF*)_s.anon.data()); } } void MSO::parseZoomViewInfoAtom(LEInputStream& in, ZoomViewInfoAtom& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x3FD)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3FD"); } if (!(_s.rh.recLen == 0x34)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x34"); } parseScalingStruct(in, _s.curScale); _c = 24; _s.unused1.resize(_c); in.readBytes(_s.unused1); parsePointStruct(in, _s.origin); _s.fUseVarScale = in.readuint8(); if (!(((quint8)_s.fUseVarScale) == 0 || ((quint8)_s.fUseVarScale) == 1)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.fUseVarScale) == 0 || ((quint8)_s.fUseVarScale) == 1"); } _s.fDraftMode = in.readuint8(); _s.unused2 = in.readuint16(); } void MSO::parsePP9DocBinaryTagExtension(LEInputStream& in, PP9DocBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen == 0x0E)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x0E"); } _c = 14; _s.tagName.resize(_c); in.readBytes(_s.tagName); parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0x0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgTextMasterStyle9.append(TextMasterStyle9Atom(&_s)); parseTextMasterStyle9Atom(in, _s.rgTextMasterStyle9.last()); } catch(IncorrectValueException _e) { _s.rgTextMasterStyle9.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgTextMasterStyle9.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x07F8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.blipCollectionContainer = QSharedPointer(new BlipCollection9Container(&_s)); parseBlipCollection9Container(in, *_s.blipCollectionContainer.data()); } catch(IncorrectValueException _e) { _s.blipCollectionContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.blipCollectionContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x00)&&(_optionCheck.recType == 0x0FB0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textDefaultsAtom = QSharedPointer(new TextDefaults9Atom(&_s)); parseTextDefaults9Atom(in, *_s.textDefaultsAtom.data()); } catch(IncorrectValueException _e) { _s.textDefaultsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textDefaultsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x2)&&(_optionCheck.recType == 0x0FC8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.kinsokuContainer = QSharedPointer(new Kinsoku9Container(&_s)); parseKinsoku9Container(in, *_s.kinsokuContainer.data()); } catch(IncorrectValueException _e) { _s.kinsokuContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.kinsokuContainer.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgExternalHyperlink9.append(ExHyperlink9Container(&_s)); parseExHyperlink9Container(in, _s.rgExternalHyperlink9.last()); } catch(IncorrectValueException _e) { _s.rgExternalHyperlink9.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgExternalHyperlink9.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x177A)&&(_optionCheck.recLen == 0x4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.presAdvisorFlagsAtom = QSharedPointer(new PresAdvisorFlags9Atom(&_s)); parsePresAdvisorFlags9Atom(in, *_s.presAdvisorFlagsAtom.data()); } catch(IncorrectValueException _e) { _s.presAdvisorFlagsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.presAdvisorFlagsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1785); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.envelopeDataAtom = QSharedPointer(new EnvelopeData9Atom(&_s)); parseEnvelopeData9Atom(in, *_s.envelopeDataAtom.data()); } catch(IncorrectValueException _e) { _s.envelopeDataAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.envelopeDataAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1784)&&(_optionCheck.recLen == 4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.envelopeFlagsAtom = QSharedPointer(new EnvelopeFlags9Atom(&_s)); parseEnvelopeFlags9Atom(in, *_s.envelopeFlagsAtom.data()); } catch(IncorrectValueException _e) { _s.envelopeFlagsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.envelopeFlagsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x177B)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.htmlDocInfoAtom = QSharedPointer(new HTMLDocInfo9Atom(&_s)); parseHTMLDocInfo9Atom(in, *_s.htmlDocInfoAtom.data()); } catch(IncorrectValueException _e) { _s.htmlDocInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.htmlDocInfoAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x177D); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.htmlPublishInfoAtom = QSharedPointer(new HTMLPublishInfo9Container(&_s)); parseHTMLPublishInfo9Container(in, *_s.htmlPublishInfoAtom.data()); } catch(IncorrectValueException _e) { _s.htmlPublishInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.htmlPublishInfoAtom.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgBroadcastDocInfo9.append(BroadcastDocInfo9Container(&_s)); parseBroadcastDocInfo9Container(in, _s.rgBroadcastDocInfo9.last()); } catch(IncorrectValueException _e) { _s.rgBroadcastDocInfo9.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgBroadcastDocInfo9.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x0FAE); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.outlineTextPropsContainer = QSharedPointer(new OutlineTextProps9Container(&_s)); parseOutlineTextProps9Container(in, *_s.outlineTextPropsContainer.data()); } catch(IncorrectValueException _e) { _s.outlineTextPropsContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.outlineTextPropsContainer.clear(); in.rewind(_m); } } } void MSO::parseTextMasterStyle9Level(LEInputStream& in, TextMasterStyle9Level& _s) { _s.streamOffset = in.getPosition(); parseTextPFException9(in, _s.pf9); parseTextCFException9(in, _s.cf9); } void MSO::parseStyleTextProp9(LEInputStream& in, StyleTextProp9& _s) { _s.streamOffset = in.getPosition(); parseTextPFException9(in, _s.pf9); parseTextCFException9(in, _s.cf9); parseTextSIException(in, _s.si); if (!(_s.si.spell == false)) { throw IncorrectValueException(in.getPosition(), "_s.si.spell == false"); } if (!(_s.si.lang == false)) { throw IncorrectValueException(in.getPosition(), "_s.si.lang == false"); } if (!(_s.si.altLang == false)) { throw IncorrectValueException(in.getPosition(), "_s.si.altLang == false"); } if (!(_s.si.smartTag == false)) { throw IncorrectValueException(in.getPosition(), "_s.si.smartTag == false"); } } void MSO::parsePP10DocBinaryTagExtension(LEInputStream& in, PP10DocBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0FBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 16; _s.tagName.resize(_c); in.readBytes(_s.tagName); parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0x0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x07D6); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontCollectionContainer = QSharedPointer(new FontCollection10Container(&_s)); parseFontCollection10Container(in, *_s.fontCollectionContainer.data()); } catch(IncorrectValueException _e) { _s.fontCollectionContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontCollectionContainer.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgTextMasterStyle10.append(TextMasterStyle10Atom(&_s)); parseTextMasterStyle10Atom(in, _s.rgTextMasterStyle10.last()); } catch(IncorrectValueException _e) { _s.rgTextMasterStyle10.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgTextMasterStyle10.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FB4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textDefaultsAtom = QSharedPointer(new TextDefaults10Atom(&_s)); parseTextDefaults10Atom(in, *_s.textDefaultsAtom.data()); } catch(IncorrectValueException _e) { _s.textDefaultsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textDefaultsAtom.clear(); in.rewind(_m); } } parseGridSpacing10Atom(in, _s.gridSpacingAtom); _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgCommentIndex10.append(CommentIndex10Container(&_s)); parseCommentIndex10Container(in, _s.rgCommentIndex10.last()); } catch(IncorrectValueException _e) { _s.rgCommentIndex10.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgCommentIndex10.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x32C8)&&(_optionCheck.recLen == 0x04); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontEmbedFlagsAtom = QSharedPointer(new FontEmbedFlags10Atom(&_s)); parseFontEmbedFlags10Atom(in, *_s.fontEmbedFlagsAtom.data()); } catch(IncorrectValueException _e) { _s.fontEmbedFlagsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontEmbedFlagsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x1)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen<=510)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.copyrightAtom = QSharedPointer(new CopyrightAtom(&_s)); parseCopyrightAtom(in, *_s.copyrightAtom.data()); } catch(IncorrectValueException _e) { _s.copyrightAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.copyrightAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x2)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen<=510)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.keywordsAtom = QSharedPointer(new KeywordsAtom(&_s)); parseKeywordsAtom(in, *_s.keywordsAtom.data()); } catch(IncorrectValueException _e) { _s.keywordsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.keywordsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x36B0)&&(_optionCheck.recLen == 0x04); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.filterPrivacyFlagsAtom = QSharedPointer(new FilterPrivacyFlags10Atom(&_s)); parseFilterPrivacyFlags10Atom(in, *_s.filterPrivacyFlagsAtom.data()); } catch(IncorrectValueException _e) { _s.filterPrivacyFlagsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.filterPrivacyFlagsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x0FB3); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.outlineTextPropsContainer = QSharedPointer(new OutlineTextProps10Container(&_s)); parseOutlineTextProps10Container(in, *_s.outlineTextPropsContainer.data()); } catch(IncorrectValueException _e) { _s.outlineTextPropsContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.outlineTextPropsContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x36B1)&&(_optionCheck.recLen == 0x01); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.docToolbarStatesAtom = QSharedPointer(new DocToolbarStates10Atom(&_s)); parseDocToolbarStates10Atom(in, *_s.docToolbarStatesAtom.data()); } catch(IncorrectValueException _e) { _s.docToolbarStatesAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.docToolbarStatesAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2EF1); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideListTableContainer = QSharedPointer(new SlideListTable10Container(&_s)); parseSlideListTable10Container(in, *_s.slideListTableContainer.data()); } catch(IncorrectValueException _e) { _s.slideListTableContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideListTableContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2EEC); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.rgDiffTree10Container = QSharedPointer(new DiffTree10Container(&_s)); parseDiffTree10Container(in, *_s.rgDiffTree10Container.data()); } catch(IncorrectValueException _e) { _s.rgDiffTree10Container.clear(); in.rewind(_m); } catch(EOFException _e) { _s.rgDiffTree10Container.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x03)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen<=510)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.modifyPasswordAtom = QSharedPointer(new ModifyPasswordAtom(&_s)); parseModifyPasswordAtom(in, *_s.modifyPasswordAtom.data()); } catch(IncorrectValueException _e) { _s.modifyPasswordAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.modifyPasswordAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x036B2)&&(_optionCheck.recLen == 0x06); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.photoAlbumInfoAtom = QSharedPointer(new PhotoAlbumInfo10Atom(&_s)); parsePhotoAlbumInfo10Atom(in, *_s.photoAlbumInfoAtom.data()); } catch(IncorrectValueException _e) { _s.photoAlbumInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.photoAlbumInfoAtom.clear(); in.rewind(_m); } } } void MSO::parseTextMasterStyle10Level(LEInputStream& in, TextMasterStyle10Level& _s) { _s.streamOffset = in.getPosition(); parseTextCFException10(in, _s.cf10); } void MSO::parseNotesTextViewInfoContainer(LEInputStream& in, NotesTextViewInfoContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x413)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x413"); } parseZoomViewInfoAtom(in, _s.zoomViewInfo); } void MSO::parseOutlineViewInfoContainer(LEInputStream& in, OutlineViewInfoContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x407)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x407"); } parseNoZoomViewInfoAtom(in, _s.noZoomViewInfo); } void MSO::parseNormalViewSetInfoContainer(LEInputStream& in, NormalViewSetInfoContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x414)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x414"); } if (!(_s.rh.recLen == 0x1C)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x1C"); } parseNormalViewSetInfoAtom(in, _s.normalViewSetInfoAtom); } void MSO::parseSlideListWithTextSubContainerOrAtom(LEInputStream& in, SlideListWithTextSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseSlidePersistAtom(in, _s.slidePersistAtom); _atend = false; while (!_atend) { _m = in.setMark(); try { _s.atoms.append(TextContainer(&_s)); parseTextContainer(in, _s.atoms.last()); } catch(IncorrectValueException _e) { _s.atoms.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.atoms.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseOutlineAtom(LEInputStream& in, OutlineAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseOutlineTextRefAtom(in, _s.outlineTextRefAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFA6); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textRulerAtom = QSharedPointer(new TextRulerAtom(&_s)); parseTextRulerAtom(in, *_s.textRulerAtom.data()); } catch(IncorrectValueException _e) { _s.textRulerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textRulerAtom.clear(); in.rewind(_m); } } } void MSO::parseTextContainer(LEInputStream& in, TextContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseTextHeaderAtom(in, _s.textHeaderAtom); _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recInstance == 0)&&(_choice.recType == 0xFA0)&&(_choice.recLen%2==0))) { _s.text = TextContainer::choice1060411409(new TextCharsAtom(&_s)); parseTextCharsAtom(in, *(TextCharsAtom*)_s.text.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recInstance == 0)&&(_choice.recType == 0xFA8))) { _s.text = TextContainer::choice1060411409(new TextBytesAtom(&_s)); parseTextBytesAtom(in, *(TextBytesAtom*)_s.text.data()); } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFA1); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.style = QSharedPointer(new StyleTextPropAtom(&_s)); parseStyleTextPropAtom(in, *_s.style.data()); } catch(IncorrectValueException _e) { _s.style.clear(); in.rewind(_m); } catch(EOFException _e) { _s.style.clear(); in.rewind(_m); } } if (_s.style) { quint32 count = 0; if (_s.text.is()) { count = _s.text.get()->textChars.size(); } if (_s.text.is()) { count = _s.text.get()->textChars.size(); } quint32 sum = 0; do { _s.style->rgTextPFRun.append(TextPFRun(_s.style.data())); parseTextPFRun(in, _s.style->rgTextPFRun.last()); sum += _s.style->rgTextPFRun.last().count; } while (sum <= count); sum = 0; do { _s.style->rgTextCFRun.append(TextCFRun(_s.style.data())); parseTextCFRun(in, _s.style->rgTextCFRun.last()); sum += _s.style->rgTextCFRun.last().count; } while (sum <= count); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.meta.append(TextContainerMeta(&_s)); parseTextContainerMeta(in, _s.meta.last()); } catch(IncorrectValueException _e) { _s.meta.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.meta.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFA2); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.master = QSharedPointer(new MasterTextPropAtom(&_s)); parseMasterTextPropAtom(in, *_s.master.data()); } catch(IncorrectValueException _e) { _s.master.clear(); in.rewind(_m); } catch(EOFException _e) { _s.master.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.bookmark.append(TextBookmarkAtom(&_s)); parseTextBookmarkAtom(in, _s.bookmark.last()); } catch(IncorrectValueException _e) { _s.bookmark.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.bookmark.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recInstance == 9)&&(_optionCheck.recType == 0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown = QSharedPointer(new UnknownTextContainerChild(&_s)); parseUnknownTextContainerChild(in, *_s.unknown.data()); } catch(IncorrectValueException _e) { _s.unknown.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0xFAA); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.specialinfo = QSharedPointer(new TextSpecialInfoAtom(&_s)); parseTextSpecialInfoAtom(in, *_s.specialinfo.data()); } catch(IncorrectValueException _e) { _s.specialinfo.clear(); in.rewind(_m); } catch(EOFException _e) { _s.specialinfo.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.interactive.append(TextContainerInteractiveInfo(&_s)); parseTextContainerInteractiveInfo(in, _s.interactive.last()); } catch(IncorrectValueException _e) { _s.interactive.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.interactive.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0xFAA); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.specialinfo2 = QSharedPointer(new TextSpecialInfoAtom(&_s)); parseTextSpecialInfoAtom(in, *_s.specialinfo2.data()); } catch(IncorrectValueException _e) { _s.specialinfo2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.specialinfo2.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFA6); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textRulerAtom = QSharedPointer(new TextRulerAtom(&_s)); parseTextRulerAtom(in, *_s.textRulerAtom.data()); } catch(IncorrectValueException _e) { _s.textRulerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textRulerAtom.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.interactive2.append(TextContainerInteractiveInfo(&_s)); parseTextContainerInteractiveInfo(in, _s.interactive2.last()); } catch(IncorrectValueException _e) { _s.interactive2.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.interactive2.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseMouseClickTextInfo(LEInputStream& in, MouseClickTextInfo& _s) { _s.streamOffset = in.getPosition(); parseMouseClickInteractiveInfoContainer(in, _s.interactive); parseMouseClickTextInteractiveInfoAtom(in, _s.text); } void MSO::parseMouseOverTextInfo(LEInputStream& in, MouseOverTextInfo& _s) { _s.streamOffset = in.getPosition(); parseMouseOverInteractiveInfoContainer(in, _s.interactive); parseMouseOverTextInteractiveInfoAtom(in, _s.text); } void MSO::parseTextPFRun(LEInputStream& in, TextPFRun& _s) { _s.streamOffset = in.getPosition(); _s.count = in.readuint32(); if (!(((quint32)_s.count)>0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.count)>0"); } _s.indentLevel = in.readuint16(); if (!(((quint16)_s.indentLevel)<=4)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.indentLevel)<=4"); } parseTextPFException(in, _s.pf); - if (!(_s.pf.masks.leftMargin == false)) { - throw IncorrectValueException(in.getPosition(), "_s.pf.masks.leftMargin == false"); - } - if (!(_s.pf.masks.indent == false)) { - throw IncorrectValueException(in.getPosition(), "_s.pf.masks.indent == false"); - } if (!(_s.pf.masks.defaultTabSize == false)) { throw IncorrectValueException(in.getPosition(), "_s.pf.masks.defaultTabSize == false"); } if (!(_s.pf.masks.tabStops == false)) { throw IncorrectValueException(in.getPosition(), "_s.pf.masks.tabStops == false"); } } void MSO::parseTextCFRun(LEInputStream& in, TextCFRun& _s) { _s.streamOffset = in.getPosition(); _s.count = in.readuint32(); if (!(((quint32)_s.count)>0)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.count)>0"); } parseTextCFException(in, _s.cf); } void MSO::parseTextCFExceptionAtom(LEInputStream& in, TextCFExceptionAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FA4)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FA4"); } parseTextCFException(in, _s.cf); } void MSO::parseDefaultRulerAtom(LEInputStream& in, DefaultRulerAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FAB)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FAB"); } parseTextRuler(in, _s.defaultTextRuler); if (!(_s.defaultTextRuler.fDefaultTabSize == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fDefaultTabSize == true"); } if (!(_s.defaultTextRuler.fCLevels == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fCLevels == true"); } if (!(_s.defaultTextRuler.fTabStops == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fTabStops == true"); } if (!(_s.defaultTextRuler.fLeftMargin1 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fLeftMargin1 == true"); } if (!(_s.defaultTextRuler.fLeftMargin2 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fLeftMargin2 == true"); } if (!(_s.defaultTextRuler.fLeftMargin3 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fLeftMargin3 == true"); } if (!(_s.defaultTextRuler.fLeftMargin4 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fLeftMargin4 == true"); } if (!(_s.defaultTextRuler.fIndent1 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fIndent1 == true"); } if (!(_s.defaultTextRuler.fIndent2 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fIndent2 == true"); } if (!(_s.defaultTextRuler.fIndent3 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fIndent3 == true"); } if (!(_s.defaultTextRuler.fIndent4 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fIndent4 == true"); } if (!(_s.defaultTextRuler.fIndent5 == true)) { throw IncorrectValueException(in.getPosition(), "_s.defaultTextRuler.fIndent5 == true"); } } void MSO::parseTextPFExceptionAtom(LEInputStream& in, TextPFExceptionAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FA5)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FA5"); } _s.reserved = in.readuint16(); parseTextPFException(in, _s.pf); } void MSO::parseTextSIRun(LEInputStream& in, TextSIRun& _s) { _s.streamOffset = in.getPosition(); _s.count = in.readuint32(); if (!(((quint32)_s.count)>=1)) { throw IncorrectValueException(in.getPosition(), "((quint32)_s.count)>=1"); } parseTextSIException(in, _s.si); } void MSO::parseTextSIExceptionAtom(LEInputStream& in, TextSIExceptionAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0FA9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FA9"); } parseTextSIException(in, _s.textSIException); if (!(_s.textSIException.fPp10ext == false)) { throw IncorrectValueException(in.getPosition(), "_s.textSIException.fPp10ext == false"); } if (!(_s.textSIException.fBidi == false)) { throw IncorrectValueException(in.getPosition(), "_s.textSIException.fBidi == false"); } if (!(_s.textSIException.smartTag == false)) { throw IncorrectValueException(in.getPosition(), "_s.textSIException.smartTag == false"); } } void MSO::parseTextMasterStyleAtom(LEInputStream& in, TextMasterStyleAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 8"); } if (!(_s.rh.recType == 0x0FA3)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FA3"); } _s.cLevels = in.readuint16(); if (!(((quint16)_s.cLevels)<=5)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cLevels)<=5"); } _s._has_lstLvl1level = _s.cLevels>0 && _s.rh.recInstance>=5; if (_s._has_lstLvl1level) { _s.lstLvl1level = in.readuint16(); } if (_s.cLevels>0) { _s.lstLvl1 = QSharedPointer(new TextMasterStyleLevel(&_s)); parseTextMasterStyleLevel(in, *_s.lstLvl1.data()); } _s._has_lstLvl2level = _s.cLevels>1 && _s.rh.recInstance>=5; if (_s._has_lstLvl2level) { _s.lstLvl2level = in.readuint16(); } if (_s.cLevels>1) { _s.lstLvl2 = QSharedPointer(new TextMasterStyleLevel(&_s)); parseTextMasterStyleLevel(in, *_s.lstLvl2.data()); } _s._has_lstLvl3level = _s.cLevels>2 && _s.rh.recInstance>=5; if (_s._has_lstLvl3level) { _s.lstLvl3level = in.readuint16(); } if (_s.cLevels>2) { _s.lstLvl3 = QSharedPointer(new TextMasterStyleLevel(&_s)); parseTextMasterStyleLevel(in, *_s.lstLvl3.data()); } _s._has_lstLvl4level = _s.cLevels>3 && _s.rh.recInstance>=5; if (_s._has_lstLvl4level) { _s.lstLvl4level = in.readuint16(); } if (_s.cLevels>3) { _s.lstLvl4 = QSharedPointer(new TextMasterStyleLevel(&_s)); parseTextMasterStyleLevel(in, *_s.lstLvl4.data()); } _s._has_lstLvl5level = _s.cLevels>4 && _s.rh.recInstance>=5; if (_s._has_lstLvl5level) { _s.lstLvl5level = in.readuint16(); } if (_s.cLevels>4) { _s.lstLvl5 = QSharedPointer(new TextMasterStyleLevel(&_s)); parseTextMasterStyleLevel(in, *_s.lstLvl5.data()); } } void MSO::parsePP10SlideBinaryTagExtension(LEInputStream& in, PP10SlideBinaryTagExtension& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xFBA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xFBA"); } if (!(_s.rh.recLen == 0x10)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recLen == 0x10"); } _c = 8; _s.tagName.resize(_c); for (int _i=0; _i<_c; ++_i) { _s.tagName[_i] = in.readuint16(); } parseRecordHeader(in, _s.rhData); if (!(_s.rhData.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recVer == 0"); } if (!(_s.rhData.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recInstance == 0"); } if (!(_s.rhData.recType == 0x138B)) { throw IncorrectValueException(in.getPosition(), "_s.rhData.recType == 0x138B"); } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgTextMasterStyleAtom.append(TextMasterStyle10Atom(&_s)); parseTextMasterStyle10Atom(in, _s.rgTextMasterStyleAtom.last()); } catch(IncorrectValueException _e) { _s.rgTextMasterStyleAtom.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgTextMasterStyleAtom.removeLast(); _atend = true; in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgComment10Container.append(Comment10Container(&_s)); parseComment10Container(in, _s.rgComment10Container.last()); } catch(IncorrectValueException _e) { _s.rgComment10Container.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgComment10Container.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2EE7)&&(_optionCheck.recLen == 8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.linkedSlideAtom = QSharedPointer(new LinkedSlide10Atom(&_s)); parseLinkedSlide10Atom(in, *_s.linkedSlideAtom.data()); } catch(IncorrectValueException _e) { _s.linkedSlideAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.linkedSlideAtom.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgLinkedShape10Atom.append(LinkedShape10Atom(&_s)); parseLinkedShape10Atom(in, _s.rgLinkedShape10Atom.last()); } catch(IncorrectValueException _e) { _s.rgLinkedShape10Atom.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgLinkedShape10Atom.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2EEA)&&(_optionCheck.recLen == 4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideFlagsAtom = QSharedPointer(new SlideFlags10Atom(&_s)); parseSlideFlags10Atom(in, *_s.slideFlagsAtom.data()); } catch(IncorrectValueException _e) { _s.slideFlagsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideFlagsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2EEB)&&(_optionCheck.recLen == 8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideTimeAtom = QSharedPointer(new SlideTime10Atom(&_s)); parseSlideTime10Atom(in, *_s.slideTimeAtom.data()); } catch(IncorrectValueException _e) { _s.slideTimeAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideTimeAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x101D); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown = QSharedPointer(new UnknownSlideContainerChild(&_s)); parseUnknownSlideContainerChild(in, *_s.unknown.data()); } catch(IncorrectValueException _e) { _s.unknown.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2B00)&&(_optionCheck.recLen == 4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.hashCodeAtom = QSharedPointer(new HashCode10Atom(&_s)); parseHashCode10Atom(in, *_s.hashCodeAtom.data()); } catch(IncorrectValueException _e) { _s.hashCodeAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.hashCodeAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 1)&&(_optionCheck.recType == 0xF144); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.extTimeNodeContainer = QSharedPointer(new ExtTimeNodeContainer(&_s)); parseExtTimeNodeContainer(in, *_s.extTimeNodeContainer.data()); } catch(IncorrectValueException _e) { _s.extTimeNodeContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.extTimeNodeContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x2B02); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.buildListContainer = QSharedPointer(new BuildListContainer(&_s)); parseBuildListContainer(in, *_s.buildListContainer.data()); } catch(IncorrectValueException _e) { _s.buildListContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.buildListContainer.clear(); in.rewind(_m); } } } void MSO::parseExObjListSubContainer(LEInputStream& in, ExObjListSubContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x1006))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExAviMovieContainer(&_s)); parseExAviMovieContainer(in, *(ExAviMovieContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x100E))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExCDAudioContainer(&_s)); parseExCDAudioContainer(in, *(ExCDAudioContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFEE))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExControlContainer(&_s)); parseExControlContainer(in, *(ExControlContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xFD7))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExHyperlinkContainer(&_s)); parseExHyperlinkContainer(in, *(ExHyperlinkContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x1007))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExMCIMovieContainer(&_s)); parseExMCIMovieContainer(in, *(ExMCIMovieContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x100D))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExMIDIAudioContainer(&_s)); parseExMIDIAudioContainer(in, *(ExMIDIAudioContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x0)&&(_choice.recType == 0x0FCC))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExOleEmbedContainer(&_s)); parseExOleEmbedContainer(in, *(ExOleEmbedContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0x0)&&(_choice.recType == 0x0FCE))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExOleLinkContainer(&_s)); parseExOleLinkContainer(in, *(ExOleLinkContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x100F))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExWAVAudioEmbeddedContainer(&_s)); parseExWAVAudioEmbeddedContainer(in, *(ExWAVAudioEmbeddedContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x1010))) { _s.anon = ExObjListSubContainer::choice2338534801(new ExWAVAudioLinkContainer(&_s)); parseExWAVAudioLinkContainer(in, *(ExWAVAudioLinkContainer*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = ExObjListSubContainer::choice2338534801(new UnknownExObjListSubContainerChild(&_s)); parseUnknownExObjListSubContainerChild(in, *(UnknownExObjListSubContainerChild*)_s.anon.data()); } } void MSO::parseOfficeArtDggContainer(LEInputStream& in, OfficeArtDggContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x0F000)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F000"); } parseOfficeArtFDGGBlock(in, _s.drawingGroup); _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recType == 0x0F001); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.blipStore = QSharedPointer(new OfficeArtBStoreContainer(&_s)); parseOfficeArtBStoreContainer(in, *_s.blipStore.data()); } catch(IncorrectValueException _e) { _s.blipStore.clear(); in.rewind(_m); } catch(EOFException _e) { _s.blipStore.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x3)&&(_optionCheck.recType == 0x0F00B); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.drawingPrimaryOptions = QSharedPointer(new OfficeArtFOPT(&_s)); parseOfficeArtFOPT(in, *_s.drawingPrimaryOptions.data()); } catch(IncorrectValueException _e) { _s.drawingPrimaryOptions.clear(); in.rewind(_m); } catch(EOFException _e) { _s.drawingPrimaryOptions.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recType == 0xF122); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.drawingTertiaryOptions = QSharedPointer(new OfficeArtTertiaryFOPT(&_s)); parseOfficeArtTertiaryFOPT(in, *_s.drawingTertiaryOptions.data()); } catch(IncorrectValueException _e) { _s.drawingTertiaryOptions.clear(); in.rewind(_m); } catch(EOFException _e) { _s.drawingTertiaryOptions.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recType == 0xF11A)&&(_optionCheck.recLen==4*_optionCheck.recInstance); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.colorMRU = QSharedPointer(new OfficeArtColorMRUContainer(&_s)); parseOfficeArtColorMRUContainer(in, *_s.colorMRU.data()); } catch(IncorrectValueException _e) { _s.colorMRU.clear(); in.rewind(_m); } catch(EOFException _e) { _s.colorMRU.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x4)&&(_optionCheck.recType == 0xF11E)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.splitColors = QSharedPointer(new OfficeArtSplitMenuColorContainer(&_s)); parseOfficeArtSplitMenuColorContainer(in, *_s.splitColors.data()); } catch(IncorrectValueException _e) { _s.splitColors.clear(); in.rewind(_m); } catch(EOFException _e) { _s.splitColors.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recType == 0x0F001); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.blipStore2 = QSharedPointer(new OfficeArtBStoreContainer(&_s)); parseOfficeArtBStoreContainer(in, *_s.blipStore2.data()); } catch(IncorrectValueException _e) { _s.blipStore2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.blipStore2.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recType == 0xF122); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown = QSharedPointer(new OfficeArtTertiaryFOPT(&_s)); parseOfficeArtTertiaryFOPT(in, *_s.unknown.data()); } catch(IncorrectValueException _e) { _s.unknown.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown.clear(); in.rewind(_m); } } } void MSO::parseOfficeArtFOPTEChoice(LEInputStream& in, OfficeArtFOPTEChoice& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtFOPTEOPID _choice(&_s); parseOfficeArtFOPTEOPID(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.opid == 0x0004)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Rotation(&_s)); parseRotation(in, *(Rotation*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x007F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ProtectionBooleanProperties(&_s)); parseProtectionBooleanProperties(in, *(ProtectionBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0080)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ITxid(&_s)); parseITxid(in, *(ITxid*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0081)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxTextLeft(&_s)); parseDxTextLeft(in, *(DxTextLeft*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0082)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DyTextTop(&_s)); parseDyTextTop(in, *(DyTextTop*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0083)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxTextRight(&_s)); parseDxTextRight(in, *(DxTextRight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0084)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DyTextBottom(&_s)); parseDyTextBottom(in, *(DyTextBottom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0085)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new WrapText(&_s)); parseWrapText(in, *(WrapText*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0087)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new AnchorText(&_s)); parseAnchorText(in, *(AnchorText*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0088)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new TxflTextFlow(&_s)); parseTxflTextFlow(in, *(TxflTextFlow*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0089)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new CdirFont(&_s)); parseCdirFont(in, *(CdirFont*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x008A)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new HspNext(&_s)); parseHspNext(in, *(HspNext*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x008B)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Txdir(&_s)); parseTxdir(in, *(Txdir*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x00BF)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new TextBooleanProperties(&_s)); parseTextBooleanProperties(in, *(TextBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0100)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new CropFromTop(&_s)); parseCropFromTop(in, *(CropFromTop*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0101)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new CropFromBottom(&_s)); parseCropFromBottom(in, *(CropFromBottom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0102)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new CropFromLeft(&_s)); parseCropFromLeft(in, *(CropFromLeft*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0103)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new CropFromRight(&_s)); parseCropFromRight(in, *(CropFromRight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0104))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Pib(&_s)); parsePib(in, *(Pib*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0105))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PibName(&_s)); parsePibName(in, *(PibName*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0106)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PibFlags(&_s)); parsePibFlags(in, *(PibFlags*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0107)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PictureTransparent(&_s)); parsePictureTransparent(in, *(PictureTransparent*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0108)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PictureContrast(&_s)); parsePictureContrast(in, *(PictureContrast*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0109)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PictureBrightness(&_s)); parsePictureBrightness(in, *(PictureBrightness*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x013F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new BlipBooleanProperties(&_s)); parseBlipBooleanProperties(in, *(BlipBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0140)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new GeoLeft(&_s)); parseGeoLeft(in, *(GeoLeft*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0141)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new GeoTop(&_s)); parseGeoTop(in, *(GeoTop*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0142)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new GeoRight(&_s)); parseGeoRight(in, *(GeoRight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0143)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new GeoBottom(&_s)); parseGeoBottom(in, *(GeoBottom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0144)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShapePath(&_s)); parseShapePath(in, *(ShapePath*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0145))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PVertices(&_s)); parsePVertices(in, *(PVertices*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0146))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PSegmentInfo(&_s)); parsePSegmentInfo(in, *(PSegmentInfo*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0147)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new AdjustValue(&_s)); parseAdjustValue(in, *(AdjustValue*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0148)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust2Value(&_s)); parseAdjust2Value(in, *(Adjust2Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0149)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust3Value(&_s)); parseAdjust3Value(in, *(Adjust3Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x014A)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust4Value(&_s)); parseAdjust4Value(in, *(Adjust4Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x014B)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust5Value(&_s)); parseAdjust5Value(in, *(Adjust5Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x014C)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust6Value(&_s)); parseAdjust6Value(in, *(Adjust6Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x014D)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust7Value(&_s)); parseAdjust7Value(in, *(Adjust7Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x014E)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Adjust8Value(&_s)); parseAdjust8Value(in, *(Adjust8Value*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x017F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new GeometryBooleanProperties(&_s)); parseGeometryBooleanProperties(in, *(GeometryBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0180)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillType(&_s)); parseFillType(in, *(FillType*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0181)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillColor(&_s)); parseFillColor(in, *(FillColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0182)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillOpacity(&_s)); parseFillOpacity(in, *(FillOpacity*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0183)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillBackColor(&_s)); parseFillBackColor(in, *(FillBackColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0184)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillBackOpacity(&_s)); parseFillBackOpacity(in, *(FillBackOpacity*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0185)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillCrMod(&_s)); parseFillCrMod(in, *(FillCrMod*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0186))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillBlip(&_s)); parseFillBlip(in, *(FillBlip*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0187))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillBlipName(&_s)); parseFillBlipName(in, *(FillBlipName*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0188)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillBlipFlags(&_s)); parseFillBlipFlags(in, *(FillBlipFlags*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0189)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillWidth(&_s)); parseFillWidth(in, *(FillWidth*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x018A)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillHeight(&_s)); parseFillHeight(in, *(FillHeight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x018B)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillAngle(&_s)); parseFillAngle(in, *(FillAngle*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x018C)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillFocus(&_s)); parseFillFocus(in, *(FillFocus*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x018D)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillToLeft(&_s)); parseFillToLeft(in, *(FillToLeft*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x018E)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillToTop(&_s)); parseFillToTop(in, *(FillToTop*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x018F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillToRight(&_s)); parseFillToRight(in, *(FillToRight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0190)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillToBottom(&_s)); parseFillToBottom(in, *(FillToBottom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0191)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillRectLeft(&_s)); parseFillRectLeft(in, *(FillRectLeft*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0192)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillRectTop(&_s)); parseFillRectTop(in, *(FillRectTop*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0193)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillRectRight(&_s)); parseFillRectRight(in, *(FillRectRight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0194)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillRectBottom(&_s)); parseFillRectBottom(in, *(FillRectBottom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0195)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillDztype(&_s)); parseFillDztype(in, *(FillDztype*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0196)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillShadePreset(&_s)); parseFillShadePreset(in, *(FillShadePreset*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0197))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillShadeColors(&_s)); parseFillShadeColors(in, *(FillShadeColors*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0198)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillOriginX(&_s)); parseFillOriginX(in, *(FillOriginX*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0199)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillOriginY(&_s)); parseFillOriginY(in, *(FillOriginY*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x019A)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillShapeOriginX(&_s)); parseFillShapeOriginX(in, *(FillShapeOriginX*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x019B)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillShapeOriginY(&_s)); parseFillShapeOriginY(in, *(FillShapeOriginY*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x019E)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillColorExt(&_s)); parseFillColorExt(in, *(FillColorExt*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01A2)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillBackColorExt(&_s)); parseFillBackColorExt(in, *(FillBackColorExt*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01BF)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new FillStyleBooleanProperties(&_s)); parseFillStyleBooleanProperties(in, *(FillStyleBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01C0)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineColor(&_s)); parseLineColor(in, *(LineColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01C1)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineOpacity(&_s)); parseLineOpacity(in, *(LineOpacity*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01C2))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineBackColor(&_s)); parseLineBackColor(in, *(LineBackColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01C5))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineFillBlip(&_s)); parseLineFillBlip(in, *(LineFillBlip*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01CB)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineWidth(&_s)); parseLineWidth(in, *(LineWidth*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01CD)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineStyle(&_s)); parseLineStyle(in, *(LineStyle*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01CE)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineDashing(&_s)); parseLineDashing(in, *(LineDashing*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D0)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineStartArrowhead(&_s)); parseLineStartArrowhead(in, *(LineStartArrowhead*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D1)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineEndArrowhead(&_s)); parseLineEndArrowhead(in, *(LineEndArrowhead*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D2)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineStartArrowWidth(&_s)); parseLineStartArrowWidth(in, *(LineStartArrowWidth*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D3)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineStartArrowLength(&_s)); parseLineStartArrowLength(in, *(LineStartArrowLength*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D4)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineEndArrowWidth(&_s)); parseLineEndArrowWidth(in, *(LineEndArrowWidth*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D5)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineEndArrowLength(&_s)); parseLineEndArrowLength(in, *(LineEndArrowLength*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D6)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineJoinStyle(&_s)); parseLineJoinStyle(in, *(LineJoinStyle*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01D7)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineEndCapStyle(&_s)); parseLineEndCapStyle(in, *(LineEndCapStyle*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x01FF)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LineStyleBooleanProperties(&_s)); parseLineStyleBooleanProperties(in, *(LineStyleBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0200)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShadowType(&_s)); parseShadowType(in, *(ShadowType*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0201)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShadowColor(&_s)); parseShadowColor(in, *(ShadowColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0204)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShadowOpacity(&_s)); parseShadowOpacity(in, *(ShadowOpacity*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0205)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShadowOffsetX(&_s)); parseShadowOffsetX(in, *(ShadowOffsetX*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0206)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShadowOffsetY(&_s)); parseShadowOffsetY(in, *(ShadowOffsetY*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x023F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShadowStyleBooleanProperties(&_s)); parseShadowStyleBooleanProperties(in, *(ShadowStyleBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0301)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new HspMaster(&_s)); parseHspMaster(in, *(HspMaster*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0303)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Cxstyle(&_s)); parseCxstyle(in, *(Cxstyle*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0304)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new BWMode(&_s)); parseBWMode(in, *(BWMode*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x033F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new ShapeBooleanProperties(&_s)); parseShapeBooleanProperties(in, *(ShapeBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0341)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxyCalloutGap(&_s)); parseDxyCalloutGap(in, *(DxyCalloutGap*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0342)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Spcoa(&_s)); parseSpcoa(in, *(Spcoa*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0343)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new Spcod(&_s)); parseSpcod(in, *(Spcod*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0344)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxyCalloutDropSpecified(&_s)); parseDxyCalloutDropSpecified(in, *(DxyCalloutDropSpecified*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0345)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxyCalloutLengthSpecified(&_s)); parseDxyCalloutLengthSpecified(in, *(DxyCalloutLengthSpecified*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x037F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new CalloutBooleanProperties(&_s)); parseCalloutBooleanProperties(in, *(CalloutBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0383))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PWrapPolygonVertices(&_s)); parsePWrapPolygonVertices(in, *(PWrapPolygonVertices*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0384)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxWrapDistLeft(&_s)); parseDxWrapDistLeft(in, *(DxWrapDistLeft*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0385)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DyWrapDistTop(&_s)); parseDyWrapDistTop(in, *(DyWrapDistTop*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0386)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxWrapDistRight(&_s)); parseDxWrapDistRight(in, *(DxWrapDistRight*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0387)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DyWrapDistBottom(&_s)); parseDyWrapDistBottom(in, *(DyWrapDistBottom*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0388)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new LidRegroup(&_s)); parseLidRegroup(in, *(LidRegroup*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x038F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PosH(&_s)); parsePosH(in, *(PosH*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0390)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PosRelH(&_s)); parsePosRelH(in, *(PosRelH*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0391)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PosV(&_s)); parsePosV(in, *(PosV*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0392)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PosRelV(&_s)); parsePosRelV(in, *(PosRelV*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0393)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new PctHR(&_s)); parsePctHR(in, *(PctHR*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0394)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new AlignHR(&_s)); parseAlignHR(in, *(AlignHR*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0395)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxHeightHR(&_s)); parseDxHeightHR(in, *(DxHeightHR*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0396)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DxWidthHR(&_s)); parseDxWidthHR(in, *(DxWidthHR*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x039b)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new BorderTopColor(&_s)); parseBorderTopColor(in, *(BorderTopColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x039c)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new BorderLeftColor(&_s)); parseBorderLeftColor(in, *(BorderLeftColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x039d)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new BorderBottomColor(&_s)); parseBorderBottomColor(in, *(BorderBottomColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x039e)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new BorderRightColor(&_s)); parseBorderRightColor(in, *(BorderRightColor*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x03bf)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new GroupShapeBooleanProperties(&_s)); parseGroupShapeBooleanProperties(in, *(GroupShapeBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x0403))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new WzFillId(&_s)); parseWzFillId(in, *(WzFillId*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.opid == 0x053F)&&(_choice.fBid == false)&&(_choice.fComplex == false))) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new DiagramBooleanProperties(&_s)); parseDiagramBooleanProperties(in, *(DiagramBooleanProperties*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtFOPTEChoice::choice3165202096(new OfficeArtFOPTE(&_s)); parseOfficeArtFOPTE(in, *(OfficeArtFOPTE*)_s.anon.data()); } } void MSO::parseOfficeArtClientAnchor(LEInputStream& in, OfficeArtClientAnchor& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recLen == 0x8 || _choice.recLen == 0x10))) { + if (startPos == in.getPosition() && ((_choice.recLen == 0x8 || _choice.recLen == 0x10))) { _s.anon = OfficeArtClientAnchor::choice1726903461(new PptOfficeArtClientAnchor(&_s)); parsePptOfficeArtClientAnchor(in, *(PptOfficeArtClientAnchor*)_s.anon.data()); } - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recLen == 0x4))) { + if (startPos == in.getPosition() && ((_choice.recLen == 0x4))) { _s.anon = OfficeArtClientAnchor::choice1726903461(new DocOfficeArtClientAnchor(&_s)); parseDocOfficeArtClientAnchor(in, *(DocOfficeArtClientAnchor*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtClientAnchor::choice1726903461(new XlsOfficeArtClientAnchor(&_s)); parseXlsOfficeArtClientAnchor(in, *(XlsOfficeArtClientAnchor*)_s.anon.data()); } } void MSO::parsePptOfficeArtClientData(LEInputStream& in, PptOfficeArtClientData& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0xF011)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF011"); } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xBDB)&&(_optionCheck.recLen == 1); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeFlagsAtom = QSharedPointer(new ShapeFlagsAtom(&_s)); parseShapeFlagsAtom(in, *_s.shapeFlagsAtom.data()); } catch(IncorrectValueException _e) { _s.shapeFlagsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeFlagsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xBDC)&&(_optionCheck.recLen == 1); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeFlags10Atom = QSharedPointer(new ShapeFlags10Atom(&_s)); parseShapeFlags10Atom(in, *_s.shapeFlags10Atom.data()); } catch(IncorrectValueException _e) { _s.shapeFlags10Atom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeFlags10Atom.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xBC1)&&(_optionCheck.recLen == 4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.exObjRefAtom = QSharedPointer(new ExObjRefAtom(&_s)); parseExObjRefAtom(in, *_s.exObjRefAtom.data()); } catch(IncorrectValueException _e) { _s.exObjRefAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.exObjRefAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1014); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.animationInfo = QSharedPointer(new AnimationInfoContainer(&_s)); parseAnimationInfoContainer(in, *_s.animationInfo.data()); } catch(IncorrectValueException _e) { _s.animationInfo.clear(); in.rewind(_m); } catch(EOFException _e) { _s.animationInfo.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFF2); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.mouseClickInteractiveInfo = QSharedPointer(new MouseClickInteractiveInfoContainer(&_s)); parseMouseClickInteractiveInfoContainer(in, *_s.mouseClickInteractiveInfo.data()); } catch(IncorrectValueException _e) { _s.mouseClickInteractiveInfo.clear(); in.rewind(_m); } catch(EOFException _e) { _s.mouseClickInteractiveInfo.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 1)&&(_optionCheck.recType == 0xFF2); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.mouseOverInteractiveInfo = QSharedPointer(new MouseOverInteractiveInfoContainer(&_s)); parseMouseOverInteractiveInfoContainer(in, *_s.mouseOverInteractiveInfo.data()); } catch(IncorrectValueException _e) { _s.mouseOverInteractiveInfo.clear(); in.rewind(_m); } catch(EOFException _e) { _s.mouseOverInteractiveInfo.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgShapeClientRoundtripData0.append(ShapeClientRoundtripDataSubcontainerOrAtom(&_s)); parseShapeClientRoundtripDataSubcontainerOrAtom(in, _s.rgShapeClientRoundtripData0.last()); } catch(IncorrectValueException _e) { _s.rgShapeClientRoundtripData0.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgShapeClientRoundtripData0.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xBC3)&&(_optionCheck.recLen == 8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.placeholderAtom = QSharedPointer(new PlaceholderAtom(&_s)); parsePlaceholderAtom(in, *_s.placeholderAtom.data()); } catch(IncorrectValueException _e) { _s.placeholderAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.placeholderAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFE7); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.recolorInfoAtom = QSharedPointer(new RecolorInfoAtom(&_s)); parseRecolorInfoAtom(in, *_s.recolorInfoAtom.data()); } catch(IncorrectValueException _e) { _s.recolorInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.recolorInfoAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFE8 || _optionCheck.recType == 0x1019); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown1 = QSharedPointer(new UnknownOfficeArtClientDataChild(&_s)); parseUnknownOfficeArtClientDataChild(in, *_s.unknown1.data()); } catch(IncorrectValueException _e) { _s.unknown1.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown1.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgShapeClientRoundtripData.append(ShapeClientRoundtripDataSubcontainerOrAtom(&_s)); parseShapeClientRoundtripDataSubcontainerOrAtom(in, _s.rgShapeClientRoundtripData.last()); } catch(IncorrectValueException _e) { _s.rgShapeClientRoundtripData.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgShapeClientRoundtripData.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFE8 || _optionCheck.recType == 0x1019); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown2 = QSharedPointer(new UnknownOfficeArtClientDataChild(&_s)); parseUnknownOfficeArtClientDataChild(in, *_s.unknown2.data()); } catch(IncorrectValueException _e) { _s.unknown2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown2.clear(); in.rewind(_m); } } } void MSO::parseShapeProgBinaryTagContainer(LEInputStream& in, ShapeProgBinaryTagContainer& _s) { _s.streamOffset = in.getPosition(); parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x138A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x138A"); } parseShapeProgBinaryTagSubContainerOrAtom(in, _s.rec); } void MSO::parseWordDocument(LEInputStream& in, WordDocument& _s) { _s.streamOffset = in.getPosition(); parseFib(in, _s.fib); } void MSO::parseTable(LEInputStream& in, Table& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseSTSH(in, _s.stsh); parsePlcfSed(in, _s.plcfSed); parsePlcfhdd(in, _s.plcfHdd); parsePlcBteChpx(in, _s.plcfBteChpx); parsePlcfBtePapx(in, _s.plcfBtePapx); parseTcg(in, _s.cmds); parseClx(in, _s.clx); parseSttbfFfn(in, _s.sttbfFfn); _c = 600; _s.dop.resize(_c); in.readBytes(_s.dop); } void MSO::parsePcd(LEInputStream& in, Pcd& _s) { _s.streamOffset = in.getPosition(); _s.fNoParaLast = in.readbit(); _s.fR1 = in.readbit(); _s.fDirtly = in.readbit(); if (!(((bool)_s.fDirtly) == false)) { throw IncorrectValueException(in.getPosition(), "((bool)_s.fDirtly) == false"); } _s.fR2 = in.readbit(); _s.fR3 = in.readuint12(); parseFCompressed(in, _s.fc); parsePrm(in, _s.prm); } void MSO::parseOfficeArtFBSE(LEInputStream& in, OfficeArtFBSE& _s) { _s.streamOffset = in.getPosition(); int _c; LEInputStream::Mark _m; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x2"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 0x11 || _s.rh.recInstance == 0x12)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 0x11 || _s.rh.recInstance == 0x12"); } if (!(_s.rh.recType == 0xF007)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF007"); } _s.btWin32 = in.readuint8(); _s.btMacOS = in.readuint8(); _c = 16; _s.rgbUid.resize(_c); in.readBytes(_s.rgbUid); _s.tag = in.readuint16(); _s.size = in.readuint32(); _s.cRef = in.readuint32(); _s.foDelay = in.readuint32(); _s.unused1 = in.readuint8(); _s.cbName = in.readuint8(); _s.unused2 = in.readuint8(); _s.unused3 = in.readuint8(); _s._has_nameData = _s.cbName>0; if (_s._has_nameData) { _c = _s.cbName; _s.nameData.resize(_c); in.readBytes(_s.nameData); } if (_s.rh.recLen > 36 + _s.cbName) { _s.embeddedBlip = QSharedPointer(new OfficeArtBlip(&_s)); parseOfficeArtBlip(in, *_s.embeddedBlip.data()); } } void MSO::parseOfficeArtBStoreContainerFileBlock(LEInputStream& in, OfficeArtBStoreContainerFileBlock& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recVer == 0x2)&&(_choice.recInstance == 0 || _choice.recInstance == 1 || _choice.recInstance == 2 || _choice.recInstance == 3 || _choice.recInstance == 4 || _choice.recInstance == 5 || _choice.recInstance == 6 || _choice.recInstance == 7 || _choice.recInstance == 0x11 || _choice.recInstance == 0x12)&&(_choice.recType == 0xF007))) { _s.anon = OfficeArtBStoreContainerFileBlock::choice2043165903(new OfficeArtFBSE(&_s)); parseOfficeArtFBSE(in, *(OfficeArtFBSE*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtBStoreContainerFileBlock::choice2043165903(new OfficeArtBlip(&_s)); parseOfficeArtBlip(in, *(OfficeArtBlip*)_s.anon.data()); } } void MSO::parseSlideViewInfoInstance(LEInputStream& in, SlideViewInfoInstance& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1"); } if (!(_s.rh.recType == 0x3FA)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x3FA"); } parseSlideViewInfoAtom(in, _s.slideViewInfoAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x3FD)&&(_optionCheck.recLen == 0x34); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.zoomViewInfoAtom = QSharedPointer(new ZoomViewInfoAtom(&_s)); parseZoomViewInfoAtom(in, *_s.zoomViewInfoAtom.data()); } catch(IncorrectValueException _e) { _s.zoomViewInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.zoomViewInfoAtom.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgGuideAtom.append(GuideAtom(&_s)); parseGuideAtom(in, _s.rgGuideAtom.last()); } catch(IncorrectValueException _e) { _s.rgGuideAtom.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgGuideAtom.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseDocProgBinaryTagSubContainerOrAtom(LEInputStream& in, DocProgBinaryTagSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); try { _s.anon = DocProgBinaryTagSubContainerOrAtom::choice214961565(new PP9DocBinaryTagExtension(&_s)); parsePP9DocBinaryTagExtension(in, *(PP9DocBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _x) { _s.anon.clear(); in.rewind(_m); try { _s.anon = DocProgBinaryTagSubContainerOrAtom::choice214961565(new PP10DocBinaryTagExtension(&_s)); parsePP10DocBinaryTagExtension(in, *(PP10DocBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = DocProgBinaryTagSubContainerOrAtom::choice214961565(new PP11DocBinaryTagExtension(&_s)); parsePP11DocBinaryTagExtension(in, *(PP11DocBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = DocProgBinaryTagSubContainerOrAtom::choice214961565(new PP12DocBinaryTagExtension(&_s)); parsePP12DocBinaryTagExtension(in, *(PP12DocBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xxxx) { _s.anon.clear(); in.rewind(_m); _s.anon = DocProgBinaryTagSubContainerOrAtom::choice214961565(new UnknownBinaryTag(&_s)); parseUnknownBinaryTag(in, *(UnknownBinaryTag*)_s.anon.data()); }}}} } void MSO::parseTextMasterStyle9Atom(LEInputStream& in, TextMasterStyle9Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 8"); } if (!(_s.rh.recType == 0x0FAD)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FAD"); } _s.cLevels = in.readuint16(); if (!(((quint16)_s.cLevels)<=5)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cLevels)<=5"); } if (_s.cLevels>0) { _s.lstLvl1 = QSharedPointer(new TextMasterStyle9Level(&_s)); parseTextMasterStyle9Level(in, *_s.lstLvl1.data()); } if (_s.cLevels>1) { _s.lstLvl2 = QSharedPointer(new TextMasterStyle9Level(&_s)); parseTextMasterStyle9Level(in, *_s.lstLvl2.data()); } if (_s.cLevels>2) { _s.lstLvl3 = QSharedPointer(new TextMasterStyle9Level(&_s)); parseTextMasterStyle9Level(in, *_s.lstLvl3.data()); } if (_s.cLevels>3) { _s.lstLvl4 = QSharedPointer(new TextMasterStyle9Level(&_s)); parseTextMasterStyle9Level(in, *_s.lstLvl4.data()); } if (_s.cLevels>4) { _s.lstLvl5 = QSharedPointer(new TextMasterStyle9Level(&_s)); parseTextMasterStyle9Level(in, *_s.lstLvl5.data()); } } void MSO::parseBlipEntityAtom(LEInputStream& in, BlipEntityAtom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0"); } if (!(_s.rh.recInstance<=128)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance<=128"); } if (!(_s.rh.recType == 0x07F9)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x07F9"); } _s.winBlipType = in.readuint8(); if (!(((quint8)_s.winBlipType) == 0x02 || ((quint8)_s.winBlipType) == 0x03 || ((quint8)_s.winBlipType) == 0x05 || ((quint8)_s.winBlipType) == 0x06)) { throw IncorrectValueException(in.getPosition(), "((quint8)_s.winBlipType) == 0x02 || ((quint8)_s.winBlipType) == 0x03 || ((quint8)_s.winBlipType) == 0x05 || ((quint8)_s.winBlipType) == 0x06"); } _s.unused = in.readuint8(); parseOfficeArtBStoreContainerFileBlock(in, _s.blip); } void MSO::parseTextMasterStyle10Atom(LEInputStream& in, TextMasterStyle10Atom& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0x0"); } if (!(_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0 || _s.rh.recInstance == 1 || _s.rh.recInstance == 2 || _s.rh.recInstance == 3 || _s.rh.recInstance == 4 || _s.rh.recInstance == 5 || _s.rh.recInstance == 6 || _s.rh.recInstance == 7 || _s.rh.recInstance == 8"); } if (!(_s.rh.recType == 0x0FB2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0FB2"); } _s.cLevels = in.readuint16(); if (!(((quint16)_s.cLevels)<=5)) { throw IncorrectValueException(in.getPosition(), "((quint16)_s.cLevels)<=5"); } _s._has_lstLvl1level = _s.cLevels>0 && _s.rh.recInstance>=5; if (_s._has_lstLvl1level) { _s.lstLvl1level = in.readuint16(); } if (_s.cLevels>0) { _s.lstLvl1 = QSharedPointer(new TextMasterStyle10Level(&_s)); parseTextMasterStyle10Level(in, *_s.lstLvl1.data()); } _s._has_lstLvl2level = _s.cLevels>1 && _s.rh.recInstance>=5; if (_s._has_lstLvl2level) { _s.lstLvl2level = in.readuint16(); } if (_s.cLevels>1) { _s.lstLvl2 = QSharedPointer(new TextMasterStyle10Level(&_s)); parseTextMasterStyle10Level(in, *_s.lstLvl2.data()); } _s._has_lstLvl3level = _s.cLevels>2 && _s.rh.recInstance>=5; if (_s._has_lstLvl3level) { _s.lstLvl3level = in.readuint16(); } if (_s.cLevels>2) { _s.lstLvl3 = QSharedPointer(new TextMasterStyle10Level(&_s)); parseTextMasterStyle10Level(in, *_s.lstLvl3.data()); } _s._has_lstLvl4level = _s.cLevels>3 && _s.rh.recInstance>=5; if (_s._has_lstLvl4level) { _s.lstLvl4level = in.readuint16(); } if (_s.cLevels>3) { _s.lstLvl4 = QSharedPointer(new TextMasterStyle10Level(&_s)); parseTextMasterStyle10Level(in, *_s.lstLvl4.data()); } _s._has_lstLvl5level = _s.cLevels>4 && _s.rh.recInstance>=5; if (_s._has_lstLvl5level) { _s.lstLvl5level = in.readuint16(); } if (_s.cLevels>4) { _s.lstLvl5 = QSharedPointer(new TextMasterStyle10Level(&_s)); parseTextMasterStyle10Level(in, *_s.lstLvl5.data()); } } void MSO::parseTextClientDataSubContainerOrAtom(LEInputStream& in, TextClientDataSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0xF9E))) { _s.anon = TextClientDataSubContainerOrAtom::choice2925155378(new OutlineAtom(&_s)); parseOutlineAtom(in, *(OutlineAtom*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = TextClientDataSubContainerOrAtom::choice2925155378(new TextContainer(&_s)); parseTextContainer(in, *(TextContainer*)_s.anon.data()); } } void MSO::parseTextContainerInteractiveInfo(LEInputStream& in, TextContainerInteractiveInfo& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recInstance == 0))) { _s.interactive = TextContainerInteractiveInfo::choice3752530176(new MouseClickTextInfo(&_s)); parseMouseClickTextInfo(in, *(MouseClickTextInfo*)_s.interactive.data()); } if (startPos == in.getPosition()) { _s.interactive = TextContainerInteractiveInfo::choice3752530176(new MouseOverTextInfo(&_s)); parseMouseOverTextInfo(in, *(MouseOverTextInfo*)_s.interactive.data()); } } void MSO::parseDocumentTextInfoContainer(LEInputStream& in, DocumentTextInfoContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x03F2)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03F2"); } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x2)&&(_optionCheck.recType == 0x0FC8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.kinsoku = QSharedPointer(new KinsokuContainer(&_s)); parseKinsokuContainer(in, *_s.kinsoku.data()); } catch(IncorrectValueException _e) { _s.kinsoku.clear(); in.rewind(_m); } catch(EOFException _e) { _s.kinsoku.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x07D5); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.fontCollection = QSharedPointer(new FontCollectionContainer(&_s)); parseFontCollectionContainer(in, *_s.fontCollection.data()); } catch(IncorrectValueException _e) { _s.fontCollection.clear(); in.rewind(_m); } catch(EOFException _e) { _s.fontCollection.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FA4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textCFDefaultsAtom = QSharedPointer(new TextCFExceptionAtom(&_s)); parseTextCFExceptionAtom(in, *_s.textCFDefaultsAtom.data()); } catch(IncorrectValueException _e) { _s.textCFDefaultsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textCFDefaultsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FA5); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textPFDefaultsAtom = QSharedPointer(new TextPFExceptionAtom(&_s)); parseTextPFExceptionAtom(in, *_s.textPFDefaultsAtom.data()); } catch(IncorrectValueException _e) { _s.textPFDefaultsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textPFDefaultsAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FAB); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.defaultRulerAtom = QSharedPointer(new DefaultRulerAtom(&_s)); parseDefaultRulerAtom(in, *_s.defaultRulerAtom.data()); } catch(IncorrectValueException _e) { _s.defaultRulerAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.defaultRulerAtom.clear(); in.rewind(_m); } } parseTextSIExceptionAtom(in, _s.textSIDefaultsAtom); parseTextMasterStyleAtom(in, _s.textMasterStyleAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0 || _optionCheck.recInstance == 1 || _optionCheck.recInstance == 2 || _optionCheck.recInstance == 3 || _optionCheck.recInstance == 4 || _optionCheck.recInstance == 5 || _optionCheck.recInstance == 6 || _optionCheck.recInstance == 7 || _optionCheck.recInstance == 8)&&(_optionCheck.recType == 0x0FA3); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.textMasterStyleAtom2 = QSharedPointer(new TextMasterStyleAtom(&_s)); parseTextMasterStyleAtom(in, *_s.textMasterStyleAtom2.data()); } catch(IncorrectValueException _e) { _s.textMasterStyleAtom2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.textMasterStyleAtom2.clear(); in.rewind(_m); } } } void MSO::parseSlideProgBinaryTagSubContainerOrAtom(LEInputStream& in, SlideProgBinaryTagSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); try { _s.anon = SlideProgBinaryTagSubContainerOrAtom::choice4024872665(new PP9SlideBinaryTagExtension(&_s)); parsePP9SlideBinaryTagExtension(in, *(PP9SlideBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _x) { _s.anon.clear(); in.rewind(_m); try { _s.anon = SlideProgBinaryTagSubContainerOrAtom::choice4024872665(new PP12SlideBinaryTagExtension(&_s)); parsePP12SlideBinaryTagExtension(in, *(PP12SlideBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = SlideProgBinaryTagSubContainerOrAtom::choice4024872665(new PP10SlideBinaryTagExtension(&_s)); parsePP10SlideBinaryTagExtension(in, *(PP10SlideBinaryTagExtension*)_s.anon.data()); } catch (IncorrectValueException _xxx) { _s.anon.clear(); in.rewind(_m); _s.anon = SlideProgBinaryTagSubContainerOrAtom::choice4024872665(new UnknownBinaryTag(&_s)); parseUnknownBinaryTag(in, *(UnknownBinaryTag*)_s.anon.data()); }}} } void MSO::parseDrawingGroupContainer(LEInputStream& in, DrawingGroupContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x040B)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x040B"); } parseOfficeArtDggContainer(in, _s.OfficeArtDgg); } void MSO::parseOfficeArtClientData(LEInputStream& in, OfficeArtClientData& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recVer == 0)&&(_choice.recLen == 4))) { _s.anon = OfficeArtClientData::choice2520977885(new DocOfficeArtClientData(&_s)); parseDocOfficeArtClientData(in, *(DocOfficeArtClientData*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recVer == 0xF))) { _s.anon = OfficeArtClientData::choice2520977885(new PptOfficeArtClientData(&_s)); parsePptOfficeArtClientData(in, *(PptOfficeArtClientData*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = OfficeArtClientData::choice2520977885(new XlsOfficeArtClientData(&_s)); parseXlsOfficeArtClientData(in, *(XlsOfficeArtClientData*)_s.anon.data()); } } void MSO::parseShapeProgTagsSubContainerOrAtom(LEInputStream& in, ShapeProgTagsSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); OfficeArtRecordHeader _choice(&_s); parseOfficeArtRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x1389))) { + if (startPos == in.getPosition() && ((_choice.recType == 0x1389))) { _s.anon = ShapeProgTagsSubContainerOrAtom::choice42781012(new ProgStringTagContainer(&_s)); parseProgStringTagContainer(in, *(ProgStringTagContainer*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = ShapeProgTagsSubContainerOrAtom::choice42781012(new ShapeProgBinaryTagContainer(&_s)); parseShapeProgBinaryTagContainer(in, *(ShapeProgBinaryTagContainer*)_s.anon.data()); } } void MSO::parseDocumentContainer(LEInputStream& in, DocumentContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x03E8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03E8"); } parseDocumentAtom(in, _s.documentAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0409)&&(_optionCheck.recLen>=12); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.exObjList = QSharedPointer(new ExObjListContainer(&_s)); parseExObjListContainer(in, *_s.exObjList.data()); } catch(IncorrectValueException _e) { _s.exObjList.clear(); in.rewind(_m); } catch(EOFException _e) { _s.exObjList.clear(); in.rewind(_m); } } parseDocumentTextInfoContainer(in, _s.documentTextInfo); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0 || _optionCheck.recInstance == 5)&&(_optionCheck.recType == 0x7E4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.soundCollection = QSharedPointer(new SoundCollectionContainer(&_s)); parseSoundCollectionContainer(in, *_s.soundCollection.data()); } catch(IncorrectValueException _e) { _s.soundCollection.clear(); in.rewind(_m); } catch(EOFException _e) { _s.soundCollection.clear(); in.rewind(_m); } } parseDrawingGroupContainer(in, _s.drawingGroup); parseMasterListWithTextContainer(in, _s.masterList); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x7D0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.docInfoList = QSharedPointer(new DocInfoListContainer(&_s)); parseDocInfoListContainer(in, *_s.docInfoList.data()); } catch(IncorrectValueException _e) { _s.docInfoList.clear(); in.rewind(_m); } catch(EOFException _e) { _s.docInfoList.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 3)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideHF = QSharedPointer(new SlideHeadersFootersContainer(&_s)); parseSlideHeadersFootersContainer(in, *_s.slideHF.data()); } catch(IncorrectValueException _e) { _s.slideHF.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideHF.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 4)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.notesHF = QSharedPointer(new NotesHeadersFootersContainer(&_s)); parseNotesHeadersFootersContainer(in, *_s.notesHF.data()); } catch(IncorrectValueException _e) { _s.notesHF.clear(); in.rewind(_m); } catch(EOFException _e) { _s.notesHF.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0x0)&&(_optionCheck.recType == 0x0FF0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideList = QSharedPointer(new SlideListWithTextContainer(&_s)); parseSlideListWithTextContainer(in, *_s.slideList.data()); } catch(IncorrectValueException _e) { _s.slideList.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideList.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 3)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideHF2 = QSharedPointer(new SlideHeadersFootersContainer(&_s)); parseSlideHeadersFootersContainer(in, *_s.slideHF2.data()); } catch(IncorrectValueException _e) { _s.slideHF2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideHF2.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 2)&&(_optionCheck.recType == 0x0FF0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.notesList = QSharedPointer(new NotesListWithTextContainer(&_s)); parseNotesListWithTextContainer(in, *_s.notesList.data()); } catch(IncorrectValueException _e) { _s.notesList.clear(); in.rewind(_m); } catch(EOFException _e) { _s.notesList.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 1)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x0401)&&(_optionCheck.recLen == 0x50); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideShowDocInfoAtom = QSharedPointer(new SlideShowDocInfoAtom(&_s)); parseSlideShowDocInfoAtom(in, *_s.slideShowDocInfoAtom.data()); } catch(IncorrectValueException _e) { _s.slideShowDocInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideShowDocInfoAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x410); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.namedShows = QSharedPointer(new NamedShowsContainer(&_s)); parseNamedShowsContainer(in, *_s.namedShows.data()); } catch(IncorrectValueException _e) { _s.namedShows.clear(); in.rewind(_m); } catch(EOFException _e) { _s.namedShows.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x402); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.summary = QSharedPointer(new SummaryContainer(&_s)); parseSummaryContainer(in, *_s.summary.data()); } catch(IncorrectValueException _e) { _s.summary.clear(); in.rewind(_m); } catch(EOFException _e) { _s.summary.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x406); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.docRoutingSlipAtom = QSharedPointer(new DocRoutingSlipAtom(&_s)); parseDocRoutingSlipAtom(in, *_s.docRoutingSlipAtom.data()); } catch(IncorrectValueException _e) { _s.docRoutingSlipAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.docRoutingSlipAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1770)&&(_optionCheck.recLen == 5); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.printOptionsAtom = QSharedPointer(new PrintOptionsAtom(&_s)); parsePrintOptionsAtom(in, *_s.printOptionsAtom.data()); } catch(IncorrectValueException _e) { _s.printOptionsAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.printOptionsAtom.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.unknown0.append(UnknownDocumentContainerChild(&_s)); parseUnknownDocumentContainerChild(in, _s.unknown0.last()); } catch(IncorrectValueException _e) { _s.unknown0.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.unknown0.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0 || _optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x428); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.rtCustomTableStylesAtom1 = QSharedPointer(new RoundTripCustomTableStyles12Atom(&_s)); parseRoundTripCustomTableStyles12Atom(in, *_s.rtCustomTableStylesAtom1.data()); } catch(IncorrectValueException _e) { _s.rtCustomTableStylesAtom1.clear(); in.rewind(_m); } catch(EOFException _e) { _s.rtCustomTableStylesAtom1.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.unknown1.append(UnknownDocumentContainerChild(&_s)); parseUnknownDocumentContainerChild(in, _s.unknown1.last()); } catch(IncorrectValueException _e) { _s.unknown1.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.unknown1.removeLast(); _atend = true; in.rewind(_m); } } parseEndDocumentAtom(in, _s.endDocumentAtom); _atend = false; while (!_atend) { _m = in.setMark(); try { _s.unknown2.append(UnknownDocumentContainerChild(&_s)); parseUnknownDocumentContainerChild(in, _s.unknown2.last()); } catch(IncorrectValueException _e) { _s.unknown2.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.unknown2.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0 || _optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x428); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.rtCustomTableStylesAtom2 = QSharedPointer(new RoundTripCustomTableStyles12Atom(&_s)); parseRoundTripCustomTableStyles12Atom(in, *_s.rtCustomTableStylesAtom2.data()); } catch(IncorrectValueException _e) { _s.rtCustomTableStylesAtom2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.rtCustomTableStylesAtom2.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.unknown4.append(UnknownDocumentContainerChild(&_s)); parseUnknownDocumentContainerChild(in, _s.unknown4.last()); } catch(IncorrectValueException _e) { _s.unknown4.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.unknown4.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance == 0 || _optionCheck.recInstance == 1 || _optionCheck.recInstance == 2 || _optionCheck.recInstance == 3 || _optionCheck.recInstance == 4 || _optionCheck.recInstance == 5 || _optionCheck.recInstance == 6 || _optionCheck.recInstance == 7 || _optionCheck.recInstance == 8)&&(_optionCheck.recType == 0x0FB2); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown5 = QSharedPointer(new TextMasterStyle10Atom(&_s)); parseTextMasterStyle10Atom(in, *_s.unknown5.data()); } catch(IncorrectValueException _e) { _s.unknown5.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown5.clear(); in.rewind(_m); } } } void MSO::parseDocInfoListSubContainerOrAtom(LEInputStream& in, DocInfoListSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); if (startPos == in.getPosition() && ((_choice.recInstance == 0 || _choice.recInstance == 1)&&(_choice.recType == 0x1388))) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new DocProgTagsContainer(&_s)); parseDocProgTagsContainer(in, *(DocProgTagsContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 1)&&(_choice.recType == 0x414)&&(_choice.recLen == 0x1C))) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new NormalViewSetInfoContainer(&_s)); parseNormalViewSetInfoContainer(in, *(NormalViewSetInfoContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 1)&&(_choice.recType == 0x413))) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new NotesTextViewInfoContainer(&_s)); parseNotesTextViewInfoContainer(in, *(NotesTextViewInfoContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0 || _choice.recInstance == 1)&&(_choice.recType == 0x407))) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new OutlineViewInfoContainer(&_s)); parseOutlineViewInfoContainer(in, *(OutlineViewInfoContainer*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 0 || _choice.recInstance == 1)&&(_choice.recType == 0x3FA))) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new SlideViewInfoInstance(&_s)); parseSlideViewInfoInstance(in, *(SlideViewInfoInstance*)_s.anon.data()); } if (startPos == in.getPosition() && ((_choice.recInstance == 1)&&(_choice.recType == 0x408))) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new SorterViewInfoContainer(&_s)); parseSorterViewInfoContainer(in, *(SorterViewInfoContainer*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = DocInfoListSubContainerOrAtom::choice2631814737(new VBAInfoContainer(&_s)); parseVBAInfoContainer(in, *(VBAInfoContainer*)_s.anon.data()); } } void MSO::parseDocProgBinaryTagContainer(LEInputStream& in, DocProgBinaryTagContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x138A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x138A"); } parseDocProgBinaryTagSubContainerOrAtom(in, _s.rec); } void MSO::parseSlideProgBinaryTagContainer(LEInputStream& in, SlideProgBinaryTagContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x138A)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x138A"); } parseSlideProgBinaryTagSubContainerOrAtom(in, _s.rec); } void MSO::parseOfficeArtSpContainer(LEInputStream& in, OfficeArtSpContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x0F004)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x0F004"); } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x1)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x0F009)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeGroup = QSharedPointer(new OfficeArtFSPGR(&_s)); parseOfficeArtFSPGR(in, *_s.shapeGroup.data()); } catch(IncorrectValueException _e) { _s.shapeGroup.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeGroup.clear(); in.rewind(_m); } } parseOfficeArtFSP(in, _s.shapeProp); _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xF11D)&&(_optionCheck.recLen == 4); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.deletedshape = QSharedPointer(new OfficeArtFPSPL(&_s)); parseOfficeArtFPSPL(in, *_s.deletedshape.data()); } catch(IncorrectValueException _e) { _s.deletedshape.clear(); in.rewind(_m); } catch(EOFException _e) { _s.deletedshape.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x3)&&(_optionCheck.recType == 0x0F00B); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapePrimaryOptions = QSharedPointer(new OfficeArtFOPT(&_s)); parseOfficeArtFOPT(in, *_s.shapePrimaryOptions.data()); } catch(IncorrectValueException _e) { _s.shapePrimaryOptions.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapePrimaryOptions.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recType == 0xF121); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeSecondaryOptions1 = QSharedPointer(new OfficeArtSecondaryFOPT(&_s)); parseOfficeArtSecondaryFOPT(in, *_s.shapeSecondaryOptions1.data()); } catch(IncorrectValueException _e) { _s.shapeSecondaryOptions1.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeSecondaryOptions1.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recType == 0xF122); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeTertiaryOptions1 = QSharedPointer(new OfficeArtTertiaryFOPT(&_s)); parseOfficeArtTertiaryFOPT(in, *_s.shapeTertiaryOptions1.data()); } catch(IncorrectValueException _e) { _s.shapeTertiaryOptions1.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeTertiaryOptions1.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xF00F)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.childAnchor = QSharedPointer(new OfficeArtChildAnchor(&_s)); parseOfficeArtChildAnchor(in, *_s.childAnchor.data()); } catch(IncorrectValueException _e) { _s.childAnchor.clear(); in.rewind(_m); } catch(EOFException _e) { _s.childAnchor.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); - _possiblyPresent = ((_optionCheck.recInstance == 0)&&(_optionCheck.recLen == 0x8 || _optionCheck.recLen == 0x10))||((_optionCheck.recInstance == 0)&&(_optionCheck.recLen == 0x4))||((_optionCheck.recInstance == 0)&&(_optionCheck.recLen == 0x8 || _optionCheck.recLen == 0x12)); + _possiblyPresent = ((_optionCheck.recLen == 0x8 || _optionCheck.recLen == 0x10))||((_optionCheck.recLen == 0x4))||((_optionCheck.recLen == 0x8 || _optionCheck.recLen == 0x12)); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.clientAnchor = QSharedPointer(new OfficeArtClientAnchor(&_s)); parseOfficeArtClientAnchor(in, *_s.clientAnchor.data()); } catch(IncorrectValueException _e) { _s.clientAnchor.clear(); in.rewind(_m); } catch(EOFException _e) { _s.clientAnchor.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = ((_optionCheck.recVer == 0)&&(_optionCheck.recLen == 4))||((_optionCheck.recVer == 0xF))||((_optionCheck.recVer == 0)&&(_optionCheck.recLen == 0)); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.clientData = QSharedPointer(new OfficeArtClientData(&_s)); parseOfficeArtClientData(in, *_s.clientData.data()); } catch(IncorrectValueException _e) { _s.clientData.clear(); in.rewind(_m); } catch(EOFException _e) { _s.clientData.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = ((_optionCheck.recVer == 0)&&(_optionCheck.recLen == 0))||((_optionCheck.recVer == 0 || _optionCheck.recVer == 0xF)&&(_optionCheck.recLen == 0x4))||((_optionCheck.recVer == 0 || _optionCheck.recVer == 0xF)&&(_optionCheck.recLen!=4)); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.clientTextbox = QSharedPointer(new OfficeArtClientTextBox(&_s)); parseOfficeArtClientTextBox(in, *_s.clientTextbox.data()); } catch(IncorrectValueException _e) { _s.clientTextbox.clear(); in.rewind(_m); } catch(EOFException _e) { _s.clientTextbox.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x3)&&(_optionCheck.recType == 0x0F00B); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapePrimaryOptions2 = QSharedPointer(new OfficeArtFOPT(&_s)); parseOfficeArtFOPT(in, *_s.shapePrimaryOptions2.data()); } catch(IncorrectValueException _e) { _s.shapePrimaryOptions2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapePrimaryOptions2.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recType == 0xF121); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeSecondaryOptions2 = QSharedPointer(new OfficeArtSecondaryFOPT(&_s)); parseOfficeArtSecondaryFOPT(in, *_s.shapeSecondaryOptions2.data()); } catch(IncorrectValueException _e) { _s.shapeSecondaryOptions2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeSecondaryOptions2.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recType == 0xF122); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shapeTertiaryOptions2 = QSharedPointer(new OfficeArtTertiaryFOPT(&_s)); parseOfficeArtTertiaryFOPT(in, *_s.shapeTertiaryOptions2.data()); } catch(IncorrectValueException _e) { _s.shapeTertiaryOptions2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shapeTertiaryOptions2.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 3)&&(_optionCheck.recInstance == 9)&&(_optionCheck.recType == 0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown = QSharedPointer(new UnknownTextContainerChild(&_s)); parseUnknownTextContainerChild(in, *_s.unknown.data()); } catch(IncorrectValueException _e) { _s.unknown.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown.clear(); in.rewind(_m); } } } void MSO::parseOfficeArtInlineSpContainer(LEInputStream& in, OfficeArtInlineSpContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _atend; parseOfficeArtSpContainer(in, _s.shape); _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgfb.append(OfficeArtBStoreContainerFileBlock(&_s)); parseOfficeArtBStoreContainerFileBlock(in, _s.rgfb.last()); } catch(IncorrectValueException _e) { _s.rgfb.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgfb.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseDocProgTagsSubContainerOrAtom(LEInputStream& in, DocProgTagsSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x1389))) { + if (startPos == in.getPosition() && ((_choice.recType == 0x1389))) { _s.anon = DocProgTagsSubContainerOrAtom::choice61655436(new ProgStringTagContainer(&_s)); parseProgStringTagContainer(in, *(ProgStringTagContainer*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = DocProgTagsSubContainerOrAtom::choice61655436(new DocProgBinaryTagContainer(&_s)); parseDocProgBinaryTagContainer(in, *(DocProgBinaryTagContainer*)_s.anon.data()); } } void MSO::parseSlideProgTagsSubContainerOrAtom(LEInputStream& in, SlideProgTagsSubContainerOrAtom& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); - if (startPos == in.getPosition() && ((_choice.recInstance == 0)&&(_choice.recType == 0x1389))) { + if (startPos == in.getPosition() && ((_choice.recType == 0x1389))) { _s.anon = SlideProgTagsSubContainerOrAtom::choice310259039(new ProgStringTagContainer(&_s)); parseProgStringTagContainer(in, *(ProgStringTagContainer*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = SlideProgTagsSubContainerOrAtom::choice310259039(new SlideProgBinaryTagContainer(&_s)); parseSlideProgBinaryTagContainer(in, *(SlideProgBinaryTagContainer*)_s.anon.data()); } } void MSO::parseOfficeArtDgContainer(LEInputStream& in, OfficeArtDgContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseOfficeArtRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0xF002)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0xF002"); } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0x0)&&(_optionCheck.recInstance<=4094)&&(_optionCheck.recType == 0x0F008)&&(_optionCheck.recLen == 8); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.drawingData = QSharedPointer(new OfficeArtFDG(&_s)); parseOfficeArtFDG(in, *_s.drawingData.data()); } catch(IncorrectValueException _e) { _s.drawingData.clear(); in.rewind(_m); } catch(EOFException _e) { _s.drawingData.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recType == 0xF118)&&(_optionCheck.recLen==4*_optionCheck.recInstance); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.regroupItems = QSharedPointer(new OfficeArtFRITContainer(&_s)); parseOfficeArtFRITContainer(in, *_s.regroupItems.data()); } catch(IncorrectValueException _e) { _s.regroupItems.clear(); in.rewind(_m); } catch(EOFException _e) { _s.regroupItems.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x0F003); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.groupShape = QSharedPointer(new OfficeArtSpgrContainer(&_s)); parseOfficeArtSpgrContainer(in, *_s.groupShape.data()); } catch(IncorrectValueException _e) { _s.groupShape.clear(); in.rewind(_m); } catch(EOFException _e) { _s.groupShape.clear(); in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x0F004); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.shape = QSharedPointer(new OfficeArtSpContainer(&_s)); parseOfficeArtSpContainer(in, *_s.shape.data()); } catch(IncorrectValueException _e) { _s.shape.clear(); in.rewind(_m); } catch(EOFException _e) { _s.shape.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.deletedShapes.append(OfficeArtSpgrContainerFileBlock(&_s)); parseOfficeArtSpgrContainerFileBlock(in, _s.deletedShapes.last()); } catch(IncorrectValueException _e) { _s.deletedShapes.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.deletedShapes.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { OfficeArtRecordHeader _optionCheck(&_s); parseOfficeArtRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recType == 0xF005); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.solvers = QSharedPointer(new OfficeArtSolverContainer(&_s)); parseOfficeArtSolverContainer(in, *_s.solvers.data()); } catch(IncorrectValueException _e) { _s.solvers.clear(); in.rewind(_m); } catch(EOFException _e) { _s.solvers.clear(); in.rewind(_m); } } } void MSO::parseOfficeArtSpgrContainerFileBlock(LEInputStream& in, OfficeArtSpgrContainerFileBlock& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); try { _s.anon = OfficeArtSpgrContainerFileBlock::choice4117040(new OfficeArtSpContainer(&_s)); parseOfficeArtSpContainer(in, *(OfficeArtSpContainer*)_s.anon.data()); } catch (IncorrectValueException _x) { _s.anon.clear(); in.rewind(_m); try { _s.anon = OfficeArtSpgrContainerFileBlock::choice4117040(new OfficeArtSpgrContainer(&_s)); parseOfficeArtSpgrContainer(in, *(OfficeArtSpgrContainer*)_s.anon.data()); } catch (IncorrectValueException _xx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = OfficeArtSpgrContainerFileBlock::choice4117040(new OfficeArtFSP(&_s)); parseOfficeArtFSP(in, *(OfficeArtFSP*)_s.anon.data()); } catch (IncorrectValueException _xxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = OfficeArtSpgrContainerFileBlock::choice4117040(new OfficeArtFSPGR(&_s)); parseOfficeArtFSPGR(in, *(OfficeArtFSPGR*)_s.anon.data()); } catch (IncorrectValueException _xxxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = OfficeArtSpgrContainerFileBlock::choice4117040(new OfficeArtClientAnchor(&_s)); parseOfficeArtClientAnchor(in, *(OfficeArtClientAnchor*)_s.anon.data()); } catch (IncorrectValueException _xxxxx) { _s.anon.clear(); in.rewind(_m); _s.anon = OfficeArtSpgrContainerFileBlock::choice4117040(new OfficeArtClientData(&_s)); parseOfficeArtClientData(in, *(OfficeArtClientData*)_s.anon.data()); }}}}} } void MSO::parseDrawingContainer(LEInputStream& in, DrawingContainer& _s) { _s.streamOffset = in.getPosition(); parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x040C)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x040C"); } parseOfficeArtDgContainer(in, _s.OfficeArtDg); } void MSO::parseMainMasterContainer(LEInputStream& in, MainMasterContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x03F8)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03F8"); } parseSlideAtom(in, _s.slideAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x03F9)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown = QSharedPointer(new SlideShowSlideInfoAtom(&_s)); parseSlideShowSlideInfoAtom(in, *_s.unknown.data()); } catch(IncorrectValueException _e) { _s.unknown.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgSchemeListElementColorScheme.append(SchemeListElementColorSchemeAtom(&_s)); parseSchemeListElementColorSchemeAtom(in, _s.rgSchemeListElementColorScheme.last()); } catch(IncorrectValueException _e) { _s.rgSchemeListElementColorScheme.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgSchemeListElementColorScheme.removeLast(); _atend = true; in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgTextMasterStyle.append(TextMasterStyleAtom(&_s)); parseTextMasterStyleAtom(in, _s.rgTextMasterStyle.last()); } catch(IncorrectValueException _e) { _s.rgTextMasterStyle.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgTextMasterStyle.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x423); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.roundTripOArtTextSTyles12Atom = QSharedPointer(new RoundTripOArtTextStyles12Atom(&_s)); parseRoundTripOArtTextStyles12Atom(in, *_s.roundTripOArtTextSTyles12Atom.data()); } catch(IncorrectValueException _e) { _s.roundTripOArtTextSTyles12Atom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.roundTripOArtTextSTyles12Atom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x03F9)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideShowInfoAtom = QSharedPointer(new SlideShowSlideInfoAtom(&_s)); parseSlideShowSlideInfoAtom(in, *_s.slideShowInfoAtom.data()); } catch(IncorrectValueException _e) { _s.slideShowInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideShowInfoAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.perSlideHeadersFootersContainer = QSharedPointer(new PerSlideHeadersFootersContainer(&_s)); parsePerSlideHeadersFootersContainer(in, *_s.perSlideHeadersFootersContainer.data()); } catch(IncorrectValueException _e) { _s.perSlideHeadersFootersContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.perSlideHeadersFootersContainer.clear(); in.rewind(_m); } } parseDrawingContainer(in, _s.drawing); parseSlideSchemeColorSchemeAtom(in, _s.slideSchemeColorSchemeAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 3)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideNameAtom = QSharedPointer(new SlideNameAtom(&_s)); parseSlideNameAtom(in, *_s.slideNameAtom.data()); } catch(IncorrectValueException _e) { _s.slideNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1388); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideProgTagsContainer = QSharedPointer(new SlideProgTagsContainer(&_s)); parseSlideProgTagsContainer(in, *_s.slideProgTagsContainer.data()); } catch(IncorrectValueException _e) { _s.slideProgTagsContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideProgTagsContainer.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgRoundTripMainMaster.append(RoundTripMainMasterRecord(&_s)); parseRoundTripMainMasterRecord(in, _s.rgRoundTripMainMaster.last()); } catch(IncorrectValueException _e) { _s.rgRoundTripMainMaster.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgRoundTripMainMaster.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 2)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.templateNameAtom = QSharedPointer(new TemplateNameAtom(&_s)); parseTemplateNameAtom(in, *_s.templateNameAtom.data()); } catch(IncorrectValueException _e) { _s.templateNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.templateNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1388); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown3 = QSharedPointer(new SlideProgTagsContainer(&_s)); parseSlideProgTagsContainer(in, *_s.unknown3.data()); } catch(IncorrectValueException _e) { _s.unknown3.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown3.clear(); in.rewind(_m); } } } void MSO::parseSlideContainer(LEInputStream& in, SlideContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0x0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0x0"); } if (!(_s.rh.recType == 0x03EE)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03EE"); } parseSlideAtom(in, _s.slideAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x03F9)&&(_optionCheck.recLen == 0x10); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideShowSlideInfoAtom = QSharedPointer(new SlideShowSlideInfoAtom(&_s)); parseSlideShowSlideInfoAtom(in, *_s.slideShowSlideInfoAtom.data()); } catch(IncorrectValueException _e) { _s.slideShowSlideInfoAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideShowSlideInfoAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.perSlideHFContainer = QSharedPointer(new PerSlideHeadersFootersContainer(&_s)); parsePerSlideHeadersFootersContainer(in, *_s.perSlideHFContainer.data()); } catch(IncorrectValueException _e) { _s.perSlideHFContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.perSlideHFContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x3714); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.rtSlideSyncInfo12 = QSharedPointer(new RoundTripSlideSyncInfo12Container(&_s)); parseRoundTripSlideSyncInfo12Container(in, *_s.rtSlideSyncInfo12.data()); } catch(IncorrectValueException _e) { _s.rtSlideSyncInfo12.clear(); in.rewind(_m); } catch(EOFException _e) { _s.rtSlideSyncInfo12.clear(); in.rewind(_m); } } parseDrawingContainer(in, _s.drawing); parseSlideSchemeColorSchemeAtom(in, _s.slideSchemeColorSchemeAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 3)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideNameAtom = QSharedPointer(new SlideNameAtom(&_s)); parseSlideNameAtom(in, *_s.slideNameAtom.data()); } catch(IncorrectValueException _e) { _s.slideNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1388); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideProgTagsContainer = QSharedPointer(new SlideProgTagsContainer(&_s)); parseSlideProgTagsContainer(in, *_s.slideProgTagsContainer.data()); } catch(IncorrectValueException _e) { _s.slideProgTagsContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideProgTagsContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x101D); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown = QSharedPointer(new UnknownSlideContainerChild(&_s)); parseUnknownSlideContainerChild(in, *_s.unknown.data()); } catch(IncorrectValueException _e) { _s.unknown.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgRoundTripSlide.append(RoundTripSlideRecord(&_s)); parseRoundTripSlideRecord(in, _s.rgRoundTripSlide.last()); } catch(IncorrectValueException _e) { _s.rgRoundTripSlide.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgRoundTripSlide.removeLast(); _atend = true; in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x101D); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.unknown2 = QSharedPointer(new UnknownSlideContainerChild(&_s)); parseUnknownSlideContainerChild(in, *_s.unknown2.data()); } catch(IncorrectValueException _e) { _s.unknown2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.unknown2.clear(); in.rewind(_m); } } } void MSO::parseNotesContainer(LEInputStream& in, NotesContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; bool _possiblyPresent; bool _atend; parseRecordHeader(in, _s.rh); if (!(_s.rh.recVer == 0xF)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recVer == 0xF"); } if (!(_s.rh.recInstance == 0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recInstance == 0"); } if (!(_s.rh.recType == 0x03F0)) { throw IncorrectValueException(in.getPosition(), "_s.rh.recType == 0x03F0"); } parseNotesAtom(in, _s.notesAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.perSlideHFContainer = QSharedPointer(new PerSlideHeadersFootersContainer(&_s)); parsePerSlideHeadersFootersContainer(in, *_s.perSlideHFContainer.data()); } catch(IncorrectValueException _e) { _s.perSlideHFContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.perSlideHFContainer.clear(); in.rewind(_m); } } parseDrawingContainer(in, _s.drawing); parseSlideSchemeColorSchemeAtom(in, _s.slideSchemeColorSchemeAtom); _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0)&&(_optionCheck.recInstance == 3)&&(_optionCheck.recType == 0x0FBA)&&(_optionCheck.recLen%2==0); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideNameAtom = QSharedPointer(new SlideNameAtom(&_s)); parseSlideNameAtom(in, *_s.slideNameAtom.data()); } catch(IncorrectValueException _e) { _s.slideNameAtom.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideNameAtom.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0x1388); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.slideProgTagsContainer = QSharedPointer(new SlideProgTagsContainer(&_s)); parseSlideProgTagsContainer(in, *_s.slideProgTagsContainer.data()); } catch(IncorrectValueException _e) { _s.slideProgTagsContainer.clear(); in.rewind(_m); } catch(EOFException _e) { _s.slideProgTagsContainer.clear(); in.rewind(_m); } } _m = in.setMark(); try { RecordHeader _optionCheck(&_s); parseRecordHeader(in, _optionCheck); _possiblyPresent = (_optionCheck.recVer == 0xF)&&(_optionCheck.recInstance == 0)&&(_optionCheck.recType == 0xFD9); } catch(EOFException _e) { _possiblyPresent = false; } in.rewind(_m); _m = in.setMark(); if (_possiblyPresent) { try { _s.perSlideHFContainer2 = QSharedPointer(new PerSlideHeadersFootersContainer(&_s)); parsePerSlideHeadersFootersContainer(in, *_s.perSlideHFContainer2.data()); } catch(IncorrectValueException _e) { _s.perSlideHFContainer2.clear(); in.rewind(_m); } catch(EOFException _e) { _s.perSlideHFContainer2.clear(); in.rewind(_m); } } _atend = false; while (!_atend) { _m = in.setMark(); try { _s.rgNotesRoundTripAtom.append(NotesRoundTripAtom(&_s)); parseNotesRoundTripAtom(in, _s.rgNotesRoundTripAtom.last()); } catch(IncorrectValueException _e) { _s.rgNotesRoundTripAtom.removeLast(); _atend = true; in.rewind(_m); } catch(EOFException _e) { _s.rgNotesRoundTripAtom.removeLast(); _atend = true; in.rewind(_m); } } } void MSO::parseMasterOrSlideContainer(LEInputStream& in, MasterOrSlideContainer& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); RecordHeader _choice(&_s); parseRecordHeader(in, _choice); in.rewind(_m); qint64 startPos = in.getPosition(); - if (startPos == in.getPosition() && ((_choice.recInstance == 0x0)&&(_choice.recType == 0x03F8))) { + if (startPos == in.getPosition() && ((_choice.recType == 0x03F8))) { _s.anon = MasterOrSlideContainer::choice2788643208(new MainMasterContainer(&_s)); parseMainMasterContainer(in, *(MainMasterContainer*)_s.anon.data()); } if (startPos == in.getPosition()) { _s.anon = MasterOrSlideContainer::choice2788643208(new SlideContainer(&_s)); parseSlideContainer(in, *(SlideContainer*)_s.anon.data()); } } void MSO::parsePowerPointStruct(LEInputStream& in, PowerPointStruct& _s) { _s.streamOffset = in.getPosition(); LEInputStream::Mark _m; _m = in.setMark(); try { _s.anon = PowerPointStruct::choice394521820(new DocumentContainer(&_s)); parseDocumentContainer(in, *(DocumentContainer*)_s.anon.data()); } catch (IncorrectValueException _x) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new MasterOrSlideContainer(&_s)); parseMasterOrSlideContainer(in, *(MasterOrSlideContainer*)_s.anon.data()); } catch (IncorrectValueException _xx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new PersistDirectoryAtom(&_s)); parsePersistDirectoryAtom(in, *(PersistDirectoryAtom*)_s.anon.data()); } catch (IncorrectValueException _xxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new NotesContainer(&_s)); parseNotesContainer(in, *(NotesContainer*)_s.anon.data()); } catch (IncorrectValueException _xxxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new HandoutContainer(&_s)); parseHandoutContainer(in, *(HandoutContainer*)_s.anon.data()); } catch (IncorrectValueException _xxxxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new SlideContainer(&_s)); parseSlideContainer(in, *(SlideContainer*)_s.anon.data()); } catch (IncorrectValueException _xxxxxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new ExOleObjStg(&_s)); parseExOleObjStg(in, *(ExOleObjStg*)_s.anon.data()); } catch (IncorrectValueException _xxxxxxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new ExControlStg(&_s)); parseExControlStg(in, *(ExControlStg*)_s.anon.data()); } catch (IncorrectValueException _xxxxxxxx) { _s.anon.clear(); in.rewind(_m); try { _s.anon = PowerPointStruct::choice394521820(new VbaProjectStg(&_s)); parseVbaProjectStg(in, *(VbaProjectStg*)_s.anon.data()); } catch (IncorrectValueException _xxxxxxxxx) { _s.anon.clear(); in.rewind(_m); _s.anon = PowerPointStruct::choice394521820(new UserEditAtom(&_s)); parseUserEditAtom(in, *(UserEditAtom*)_s.anon.data()); }}}}}}}}} } diff --git a/filters/libmso/generated/simpleParser.h b/filters/libmso/generated/simpleParser.h index fc83ede80d9..11c84697fbe 100644 --- a/filters/libmso/generated/simpleParser.h +++ b/filters/libmso/generated/simpleParser.h @@ -1,5746 +1,5746 @@ /* This code was generated by msoscheme (http://gitorious.org/msoscheme) */ -/* version a1780afd2e456087a351868bfe60aea6d0ff76ba */ +/* version aca4fd06f1ad330ecadf05b9e862d7c91338f051 */ #ifndef SIMPLEPARSER_H #define SIMPLEPARSER_H #include #include #include #include // replace with QScopedPointer when switching to Qt 4.6 class LEInputStream; namespace MSO{ class StreamOffset { public: virtual ~StreamOffset() {} quint32 streamOffset; }; class RecordHeader; void parseRecordHeader(LEInputStream& in, RecordHeader& _s); class CurrentUserAtom; void parseCurrentUserAtom(LEInputStream& in, CurrentUserAtom& _s); class TODOS; void parseTODOS(LEInputStream& in, TODOS& _s); class Byte; void parseByte(LEInputStream& in, Byte& _s); class ZeroByte; void parseZeroByte(LEInputStream& in, ZeroByte& _s); class CurrentUserStream; void parseCurrentUserStream(LEInputStream& in, CurrentUserStream& _s); class OfficeArtBStoreDelay; void parseOfficeArtBStoreDelay(LEInputStream& in, OfficeArtBStoreDelay& _s); class OfficeArtRecordHeader; void parseOfficeArtRecordHeader(LEInputStream& in, OfficeArtRecordHeader& _s); class OfficeArtBlipJPEG; void parseOfficeArtBlipJPEG(LEInputStream& in, OfficeArtBlipJPEG& _s); class OfficeArtBlipPNG; void parseOfficeArtBlipPNG(LEInputStream& in, OfficeArtBlipPNG& _s); class OfficeArtBlipDIB; void parseOfficeArtBlipDIB(LEInputStream& in, OfficeArtBlipDIB& _s); class OfficeArtBlipTIFF; void parseOfficeArtBlipTIFF(LEInputStream& in, OfficeArtBlipTIFF& _s); class RECT; void parseRECT(LEInputStream& in, RECT& _s); class POINT; void parsePOINT(LEInputStream& in, POINT& _s); class PowerPointStructs; void parsePowerPointStructs(LEInputStream& in, PowerPointStructs& _s); class SoundCollectionAtom; void parseSoundCollectionAtom(LEInputStream& in, SoundCollectionAtom& _s); class HeadersFootersAtom; void parseHeadersFootersAtom(LEInputStream& in, HeadersFootersAtom& _s); class UserDateAtom; void parseUserDateAtom(LEInputStream& in, UserDateAtom& _s); class HeaderAtom; void parseHeaderAtom(LEInputStream& in, HeaderAtom& _s); class FooterAtom; void parseFooterAtom(LEInputStream& in, FooterAtom& _s); class PerSlideHeadersFootersContainer; void parsePerSlideHeadersFootersContainer(LEInputStream& in, PerSlideHeadersFootersContainer& _s); class EndDocumentAtom; void parseEndDocumentAtom(LEInputStream& in, EndDocumentAtom& _s); class DocInfoListContainer; void parseDocInfoListContainer(LEInputStream& in, DocInfoListContainer& _s); class SlideViewInfoAtom; void parseSlideViewInfoAtom(LEInputStream& in, SlideViewInfoAtom& _s); class GuideAtom; void parseGuideAtom(LEInputStream& in, GuideAtom& _s); class DocProgTagsContainer; void parseDocProgTagsContainer(LEInputStream& in, DocProgTagsContainer& _s); class TextAutoNumberScheme; void parseTextAutoNumberScheme(LEInputStream& in, TextAutoNumberScheme& _s); class BlipCollection9Container; void parseBlipCollection9Container(LEInputStream& in, BlipCollection9Container& _s); class Kinsoku9Atom; void parseKinsoku9Atom(LEInputStream& in, Kinsoku9Atom& _s); class ExHyperlink9Container; void parseExHyperlink9Container(LEInputStream& in, ExHyperlink9Container& _s); class PresAdvisorFlags9Atom; void parsePresAdvisorFlags9Atom(LEInputStream& in, PresAdvisorFlags9Atom& _s); class EnvelopeData9Atom; void parseEnvelopeData9Atom(LEInputStream& in, EnvelopeData9Atom& _s); class EnvelopeFlags9Atom; void parseEnvelopeFlags9Atom(LEInputStream& in, EnvelopeFlags9Atom& _s); class HTMLDocInfo9Atom; void parseHTMLDocInfo9Atom(LEInputStream& in, HTMLDocInfo9Atom& _s); class HTMLPublishInfo9Container; void parseHTMLPublishInfo9Container(LEInputStream& in, HTMLPublishInfo9Container& _s); class BroadcastDocInfo9Container; void parseBroadcastDocInfo9Container(LEInputStream& in, BroadcastDocInfo9Container& _s); class OutlineTextProps9Container; void parseOutlineTextProps9Container(LEInputStream& in, OutlineTextProps9Container& _s); class OutlineTextPropsHeaderExAtom; void parseOutlineTextPropsHeaderExAtom(LEInputStream& in, OutlineTextPropsHeaderExAtom& _s); class StyleTextProp9Atom; void parseStyleTextProp9Atom(LEInputStream& in, StyleTextProp9Atom& _s); class FontCollection10Container; void parseFontCollection10Container(LEInputStream& in, FontCollection10Container& _s); class GridSpacing10Atom; void parseGridSpacing10Atom(LEInputStream& in, GridSpacing10Atom& _s); class AuthorNameAtom; void parseAuthorNameAtom(LEInputStream& in, AuthorNameAtom& _s); class CommentIndex10Atom; void parseCommentIndex10Atom(LEInputStream& in, CommentIndex10Atom& _s); class FontEmbedFlags10Atom; void parseFontEmbedFlags10Atom(LEInputStream& in, FontEmbedFlags10Atom& _s); class CopyrightAtom; void parseCopyrightAtom(LEInputStream& in, CopyrightAtom& _s); class KeywordsAtom; void parseKeywordsAtom(LEInputStream& in, KeywordsAtom& _s); class FilterPrivacyFlags10Atom; void parseFilterPrivacyFlags10Atom(LEInputStream& in, FilterPrivacyFlags10Atom& _s); class OutlineTextProps10Container; void parseOutlineTextProps10Container(LEInputStream& in, OutlineTextProps10Container& _s); class StyleTextProp10Atom; void parseStyleTextProp10Atom(LEInputStream& in, StyleTextProp10Atom& _s); class DocToolbarStates10Atom; void parseDocToolbarStates10Atom(LEInputStream& in, DocToolbarStates10Atom& _s); class SlideListTable10Container; void parseSlideListTable10Container(LEInputStream& in, SlideListTable10Container& _s); class DiffTree10Container; void parseDiffTree10Container(LEInputStream& in, DiffTree10Container& _s); class ModifyPasswordAtom; void parseModifyPasswordAtom(LEInputStream& in, ModifyPasswordAtom& _s); class PhotoAlbumInfo10Atom; void parsePhotoAlbumInfo10Atom(LEInputStream& in, PhotoAlbumInfo10Atom& _s); class SmartTagStore11Container; void parseSmartTagStore11Container(LEInputStream& in, SmartTagStore11Container& _s); class OutlineTextProps11Container; void parseOutlineTextProps11Container(LEInputStream& in, OutlineTextProps11Container& _s); class BinaryTagDataBlob; void parseBinaryTagDataBlob(LEInputStream& in, BinaryTagDataBlob& _s); class PP12DocBinaryTagExtension; void parsePP12DocBinaryTagExtension(LEInputStream& in, PP12DocBinaryTagExtension& _s); class SorterViewInfoContainer; void parseSorterViewInfoContainer(LEInputStream& in, SorterViewInfoContainer& _s); class VBAInfoAtom; void parseVBAInfoAtom(LEInputStream& in, VBAInfoAtom& _s); class MasterListWithTextContainer; void parseMasterListWithTextContainer(LEInputStream& in, MasterListWithTextContainer& _s); class MasterPersistAtom; void parseMasterPersistAtom(LEInputStream& in, MasterPersistAtom& _s); class SlideListWithTextContainer; void parseSlideListWithTextContainer(LEInputStream& in, SlideListWithTextContainer& _s); class NotesListWithTextContainer; void parseNotesListWithTextContainer(LEInputStream& in, NotesListWithTextContainer& _s); class NotesPersistAtom; void parseNotesPersistAtom(LEInputStream& in, NotesPersistAtom& _s); class TextHeaderAtom; void parseTextHeaderAtom(LEInputStream& in, TextHeaderAtom& _s); class TextCharsAtom; void parseTextCharsAtom(LEInputStream& in, TextCharsAtom& _s); class TextBytesAtom; void parseTextBytesAtom(LEInputStream& in, TextBytesAtom& _s); class MasterTextPropAtom; void parseMasterTextPropAtom(LEInputStream& in, MasterTextPropAtom& _s); class MasterTextPropRun; void parseMasterTextPropRun(LEInputStream& in, MasterTextPropRun& _s); class StyleTextPropAtom; void parseStyleTextPropAtom(LEInputStream& in, StyleTextPropAtom& _s); class SlideNumberMCAtom; void parseSlideNumberMCAtom(LEInputStream& in, SlideNumberMCAtom& _s); class DateTimeMCAtom; void parseDateTimeMCAtom(LEInputStream& in, DateTimeMCAtom& _s); class GenericDateMCAtom; void parseGenericDateMCAtom(LEInputStream& in, GenericDateMCAtom& _s); class HeaderMCAtom; void parseHeaderMCAtom(LEInputStream& in, HeaderMCAtom& _s); class FooterMCAtom; void parseFooterMCAtom(LEInputStream& in, FooterMCAtom& _s); class RTFDateTimeMCAtom; void parseRTFDateTimeMCAtom(LEInputStream& in, RTFDateTimeMCAtom& _s); class TextBookmarkAtom; void parseTextBookmarkAtom(LEInputStream& in, TextBookmarkAtom& _s); class TextRange; void parseTextRange(LEInputStream& in, TextRange& _s); class MouseClickTextInteractiveInfoAtom; void parseMouseClickTextInteractiveInfoAtom(LEInputStream& in, MouseClickTextInteractiveInfoAtom& _s); class MouseOverTextInteractiveInfoAtom; void parseMouseOverTextInteractiveInfoAtom(LEInputStream& in, MouseOverTextInteractiveInfoAtom& _s); class SlideId; void parseSlideId(LEInputStream& in, SlideId& _s); class TabStops; void parseTabStops(LEInputStream& in, TabStops& _s); class TabStop; void parseTabStop(LEInputStream& in, TabStop& _s); class PFWrapFlags; void parsePFWrapFlags(LEInputStream& in, PFWrapFlags& _s); class ColorIndexStruct; void parseColorIndexStruct(LEInputStream& in, ColorIndexStruct& _s); class BulletFlags; void parseBulletFlags(LEInputStream& in, BulletFlags& _s); class PFMasks; void parsePFMasks(LEInputStream& in, PFMasks& _s); class CFMasks; void parseCFMasks(LEInputStream& in, CFMasks& _s); class CFStyle; void parseCFStyle(LEInputStream& in, CFStyle& _s); class FontCollectionContainer; void parseFontCollectionContainer(LEInputStream& in, FontCollectionContainer& _s); class FontEntityAtom; void parseFontEntityAtom(LEInputStream& in, FontEntityAtom& _s); class FontEmbedDataBlob; void parseFontEmbedDataBlob(LEInputStream& in, FontEmbedDataBlob& _s); class KinsokuAtom; void parseKinsokuAtom(LEInputStream& in, KinsokuAtom& _s); class KinsokuLeadingAtom; void parseKinsokuLeadingAtom(LEInputStream& in, KinsokuLeadingAtom& _s); class KinsokuFollowingAtom; void parseKinsokuFollowingAtom(LEInputStream& in, KinsokuFollowingAtom& _s); class TextSpecialInfoAtom; void parseTextSpecialInfoAtom(LEInputStream& in, TextSpecialInfoAtom& _s); class SmartTags; void parseSmartTags(LEInputStream& in, SmartTags& _s); class ExOleEmbedAtom; void parseExOleEmbedAtom(LEInputStream& in, ExOleEmbedAtom& _s); class PointStruct; void parsePointStruct(LEInputStream& in, PointStruct& _s); class RatioStruct; void parseRatioStruct(LEInputStream& in, RatioStruct& _s); class PersistDirectoryAtom; void parsePersistDirectoryAtom(LEInputStream& in, PersistDirectoryAtom& _s); class UnknownDocumentContainerChild; void parseUnknownDocumentContainerChild(LEInputStream& in, UnknownDocumentContainerChild& _s); class UnknownOfficeArtClientDataChild; void parseUnknownOfficeArtClientDataChild(LEInputStream& in, UnknownOfficeArtClientDataChild& _s); class UnknownSlideContainerChild; void parseUnknownSlideContainerChild(LEInputStream& in, UnknownSlideContainerChild& _s); class UnknownTextContainerChild; void parseUnknownTextContainerChild(LEInputStream& in, UnknownTextContainerChild& _s); class PersistDirectoryEntry; void parsePersistDirectoryEntry(LEInputStream& in, PersistDirectoryEntry& _s); class PersistIdRef; void parsePersistIdRef(LEInputStream& in, PersistIdRef& _s); class SchemeListElementColorSchemeAtom; void parseSchemeListElementColorSchemeAtom(LEInputStream& in, SchemeListElementColorSchemeAtom& _s); class RoundTripOArtTextStyles12Atom; void parseRoundTripOArtTextStyles12Atom(LEInputStream& in, RoundTripOArtTextStyles12Atom& _s); class SlideNameAtom; void parseSlideNameAtom(LEInputStream& in, SlideNameAtom& _s); class SlideProgTagsContainer; void parseSlideProgTagsContainer(LEInputStream& in, SlideProgTagsContainer& _s); class PP9SlideBinaryTagExtension; void parsePP9SlideBinaryTagExtension(LEInputStream& in, PP9SlideBinaryTagExtension& _s); class Comment10Container; void parseComment10Container(LEInputStream& in, Comment10Container& _s); class Comment10Atom; void parseComment10Atom(LEInputStream& in, Comment10Atom& _s); class LinkedSlide10Atom; void parseLinkedSlide10Atom(LEInputStream& in, LinkedSlide10Atom& _s); class LinkedShape10Atom; void parseLinkedShape10Atom(LEInputStream& in, LinkedShape10Atom& _s); class SlideFlags10Atom; void parseSlideFlags10Atom(LEInputStream& in, SlideFlags10Atom& _s); class HashCode10Atom; void parseHashCode10Atom(LEInputStream& in, HashCode10Atom& _s); class ExtTimeNodeContainer; void parseExtTimeNodeContainer(LEInputStream& in, ExtTimeNodeContainer& _s); class BuildListContainer; void parseBuildListContainer(LEInputStream& in, BuildListContainer& _s); class RoundTripHeaderFooterDefaults12Atom; void parseRoundTripHeaderFooterDefaults12Atom(LEInputStream& in, RoundTripHeaderFooterDefaults12Atom& _s); class TagNameAtom; void parseTagNameAtom(LEInputStream& in, TagNameAtom& _s); class TagValueAtom; void parseTagValueAtom(LEInputStream& in, TagValueAtom& _s); class RoundTripMainMasterRecord; void parseRoundTripMainMasterRecord(LEInputStream& in, RoundTripMainMasterRecord& _s); class TemplateNameAtom; void parseTemplateNameAtom(LEInputStream& in, TemplateNameAtom& _s); class RoundTripSlideSyncInfo12Container; void parseRoundTripSlideSyncInfo12Container(LEInputStream& in, RoundTripSlideSyncInfo12Container& _s); class SlideFlags; void parseSlideFlags(LEInputStream& in, SlideFlags& _s); class NotesRoundTripAtom; void parseNotesRoundTripAtom(LEInputStream& in, NotesRoundTripAtom& _s); class HandoutContainer; void parseHandoutContainer(LEInputStream& in, HandoutContainer& _s); class ExControlStg; void parseExControlStg(LEInputStream& in, ExControlStg& _s); class ExOleObjStg; void parseExOleObjStg(LEInputStream& in, ExOleObjStg& _s); class UserEditAtom; void parseUserEditAtom(LEInputStream& in, UserEditAtom& _s); class VbaProjectStg; void parseVbaProjectStg(LEInputStream& in, VbaProjectStg& _s); class SlideAtom; void parseSlideAtom(LEInputStream& in, SlideAtom& _s); class SlideShowSlideInfoAtom; void parseSlideShowSlideInfoAtom(LEInputStream& in, SlideShowSlideInfoAtom& _s); class SlideShowDocInfoAtom; void parseSlideShowDocInfoAtom(LEInputStream& in, SlideShowDocInfoAtom& _s); class SlideSchemeColorSchemeAtom; void parseSlideSchemeColorSchemeAtom(LEInputStream& in, SlideSchemeColorSchemeAtom& _s); class RoundTripSlideRecord; void parseRoundTripSlideRecord(LEInputStream& in, RoundTripSlideRecord& _s); class NamedShowsContainer; void parseNamedShowsContainer(LEInputStream& in, NamedShowsContainer& _s); class SummaryContainer; void parseSummaryContainer(LEInputStream& in, SummaryContainer& _s); class DocRoutingSlipAtom; void parseDocRoutingSlipAtom(LEInputStream& in, DocRoutingSlipAtom& _s); class PrintOptionsAtom; void parsePrintOptionsAtom(LEInputStream& in, PrintOptionsAtom& _s); class RoundTripCustomTableStyles12Atom; void parseRoundTripCustomTableStyles12Atom(LEInputStream& in, RoundTripCustomTableStyles12Atom& _s); class RoundTripCompositeMasterId12Atom; void parseRoundTripCompositeMasterId12Atom(LEInputStream& in, RoundTripCompositeMasterId12Atom& _s); class ColorStruct; void parseColorStruct(LEInputStream& in, ColorStruct& _s); class ExObjListAtom; void parseExObjListAtom(LEInputStream& in, ExObjListAtom& _s); class ExAviMovieContainer; void parseExAviMovieContainer(LEInputStream& in, ExAviMovieContainer& _s); class ExCDAudioContainer; void parseExCDAudioContainer(LEInputStream& in, ExCDAudioContainer& _s); class ExControlAtom; void parseExControlAtom(LEInputStream& in, ExControlAtom& _s); class ExHyperlinkAtom; void parseExHyperlinkAtom(LEInputStream& in, ExHyperlinkAtom& _s); class FriendlyNameAtom; void parseFriendlyNameAtom(LEInputStream& in, FriendlyNameAtom& _s); class TargetAtom; void parseTargetAtom(LEInputStream& in, TargetAtom& _s); class LocationAtom; void parseLocationAtom(LEInputStream& in, LocationAtom& _s); class ExMCIMovieContainer; void parseExMCIMovieContainer(LEInputStream& in, ExMCIMovieContainer& _s); class ExMIDIAudioContainer; void parseExMIDIAudioContainer(LEInputStream& in, ExMIDIAudioContainer& _s); class ExWAVAudioEmbeddedContainer; void parseExWAVAudioEmbeddedContainer(LEInputStream& in, ExWAVAudioEmbeddedContainer& _s); class ExWAVAudioLinkContainer; void parseExWAVAudioLinkContainer(LEInputStream& in, ExWAVAudioLinkContainer& _s); class UnknownExObjListSubContainerChild; void parseUnknownExObjListSubContainerChild(LEInputStream& in, UnknownExObjListSubContainerChild& _s); class ExOleLinkAtom; void parseExOleLinkAtom(LEInputStream& in, ExOleLinkAtom& _s); class ExOleObjAtom; void parseExOleObjAtom(LEInputStream& in, ExOleObjAtom& _s); class MenuNameAtom; void parseMenuNameAtom(LEInputStream& in, MenuNameAtom& _s); class ProgIDAtom; void parseProgIDAtom(LEInputStream& in, ProgIDAtom& _s); class ClipboardNameAtom; void parseClipboardNameAtom(LEInputStream& in, ClipboardNameAtom& _s); class MetafileBlob; void parseMetafileBlob(LEInputStream& in, MetafileBlob& _s); class OfficeArtFDGG; void parseOfficeArtFDGG(LEInputStream& in, OfficeArtFDGG& _s); class OfficeArtFDG; void parseOfficeArtFDG(LEInputStream& in, OfficeArtFDG& _s); class OfficeArtFRITContainer; void parseOfficeArtFRITContainer(LEInputStream& in, OfficeArtFRITContainer& _s); class OfficeArtFRIT; void parseOfficeArtFRIT(LEInputStream& in, OfficeArtFRIT& _s); class OfficeArtBStoreContainer; void parseOfficeArtBStoreContainer(LEInputStream& in, OfficeArtBStoreContainer& _s); class OfficeArtSpgrContainer; void parseOfficeArtSpgrContainer(LEInputStream& in, OfficeArtSpgrContainer& _s); class OfficeArtSolverContainer; void parseOfficeArtSolverContainer(LEInputStream& in, OfficeArtSolverContainer& _s); class OfficeArtFConnectorRule; void parseOfficeArtFConnectorRule(LEInputStream& in, OfficeArtFConnectorRule& _s); class OfficeArtFArcRule; void parseOfficeArtFArcRule(LEInputStream& in, OfficeArtFArcRule& _s); class OfficeArtFCalloutRule; void parseOfficeArtFCalloutRule(LEInputStream& in, OfficeArtFCalloutRule& _s); class OfficeArtFSPGR; void parseOfficeArtFSPGR(LEInputStream& in, OfficeArtFSPGR& _s); class OfficeArtFSP; void parseOfficeArtFSP(LEInputStream& in, OfficeArtFSP& _s); class OfficeArtFOPT; void parseOfficeArtFOPT(LEInputStream& in, OfficeArtFOPT& _s); class OfficeArtSecondaryFOPT; void parseOfficeArtSecondaryFOPT(LEInputStream& in, OfficeArtSecondaryFOPT& _s); class OfficeArtTertiaryFOPT; void parseOfficeArtTertiaryFOPT(LEInputStream& in, OfficeArtTertiaryFOPT& _s); class MSOPATHINFO; void parseMSOPATHINFO(LEInputStream& in, MSOPATHINFO& _s); class FixedPoint; void parseFixedPoint(LEInputStream& in, FixedPoint& _s); class PVertices_complex; void parsePVertices_complex(LEInputStream& in, PVertices_complex& _s); class PSegmentInfo_complex; void parsePSegmentInfo_complex(LEInputStream& in, PSegmentInfo_complex& _s); class FillShadeColors_complex; void parseFillShadeColors_complex(LEInputStream& in, FillShadeColors_complex& _s); class PWrapPolygonVertices_complex; void parsePWrapPolygonVertices_complex(LEInputStream& in, PWrapPolygonVertices_complex& _s); class OfficeArtCOLORREF; void parseOfficeArtCOLORREF(LEInputStream& in, OfficeArtCOLORREF& _s); class OfficeArtChildAnchor; void parseOfficeArtChildAnchor(LEInputStream& in, OfficeArtChildAnchor& _s); class DocOfficeArtClientAnchor; void parseDocOfficeArtClientAnchor(LEInputStream& in, DocOfficeArtClientAnchor& _s); class XlsOfficeArtClientAnchor; void parseXlsOfficeArtClientAnchor(LEInputStream& in, XlsOfficeArtClientAnchor& _s); class OfficeArtFPSPL; void parseOfficeArtFPSPL(LEInputStream& in, OfficeArtFPSPL& _s); class RectStruct; void parseRectStruct(LEInputStream& in, RectStruct& _s); class SmallRectStruct; void parseSmallRectStruct(LEInputStream& in, SmallRectStruct& _s); class DocOfficeArtClientData; void parseDocOfficeArtClientData(LEInputStream& in, DocOfficeArtClientData& _s); class XlsOfficeArtClientData; void parseXlsOfficeArtClientData(LEInputStream& in, XlsOfficeArtClientData& _s); class ShapeFlagsAtom; void parseShapeFlagsAtom(LEInputStream& in, ShapeFlagsAtom& _s); class ShapeFlags10Atom; void parseShapeFlags10Atom(LEInputStream& in, ShapeFlags10Atom& _s); class ExObjRefAtom; void parseExObjRefAtom(LEInputStream& in, ExObjRefAtom& _s); class AnimationInfoAtom; void parseAnimationInfoAtom(LEInputStream& in, AnimationInfoAtom& _s); class SoundContainer; void parseSoundContainer(LEInputStream& in, SoundContainer& _s); class InteractiveInfoAtom; void parseInteractiveInfoAtom(LEInputStream& in, InteractiveInfoAtom& _s); class MacroNameAtom; void parseMacroNameAtom(LEInputStream& in, MacroNameAtom& _s); class PlaceholderAtom; void parsePlaceholderAtom(LEInputStream& in, PlaceholderAtom& _s); class RecolorInfoAtom; void parseRecolorInfoAtom(LEInputStream& in, RecolorInfoAtom& _s); class OutlineTextRefAtom; void parseOutlineTextRefAtom(LEInputStream& in, OutlineTextRefAtom& _s); class ShapeProgsTagContainer; void parseShapeProgsTagContainer(LEInputStream& in, ShapeProgsTagContainer& _s); class PP9ShapeBinaryTagExtension; void parsePP9ShapeBinaryTagExtension(LEInputStream& in, PP9ShapeBinaryTagExtension& _s); class PP10ShapeBinaryTagExtension; void parsePP10ShapeBinaryTagExtension(LEInputStream& in, PP10ShapeBinaryTagExtension& _s); class PP11ShapeBinaryTagExtension; void parsePP11ShapeBinaryTagExtension(LEInputStream& in, PP11ShapeBinaryTagExtension& _s); class RoundTripNewPlaceHolderId12Atom; void parseRoundTripNewPlaceHolderId12Atom(LEInputStream& in, RoundTripNewPlaceHolderId12Atom& _s); class RoundTripShapeId12Atom; void parseRoundTripShapeId12Atom(LEInputStream& in, RoundTripShapeId12Atom& _s); class RoundTripHFPlaceholder12Atom; void parseRoundTripHFPlaceholder12Atom(LEInputStream& in, RoundTripHFPlaceholder12Atom& _s); class RoundTripShapeCheckSumForCustomLayouts12Atom; void parseRoundTripShapeCheckSumForCustomLayouts12Atom(LEInputStream& in, RoundTripShapeCheckSumForCustomLayouts12Atom& _s); class XlsOfficeArtClientTextBox; void parseXlsOfficeArtClientTextBox(LEInputStream& in, XlsOfficeArtClientTextBox& _s); class DocOfficeArtClientTextBox; void parseDocOfficeArtClientTextBox(LEInputStream& in, DocOfficeArtClientTextBox& _s); class PptOfficeArtClientTextBox; void parsePptOfficeArtClientTextBox(LEInputStream& in, PptOfficeArtClientTextBox& _s); class OfficeArtIDCL; void parseOfficeArtIDCL(LEInputStream& in, OfficeArtIDCL& _s); class OfficeArtFOPTEOPID; void parseOfficeArtFOPTEOPID(LEInputStream& in, OfficeArtFOPTEOPID& _s); class OfficeArtColorMRUContainer; void parseOfficeArtColorMRUContainer(LEInputStream& in, OfficeArtColorMRUContainer& _s); class MSOCR; void parseMSOCR(LEInputStream& in, MSOCR& _s); class OfficeArtSplitMenuColorContainer; void parseOfficeArtSplitMenuColorContainer(LEInputStream& in, OfficeArtSplitMenuColorContainer& _s); class todo; void parsetodo(LEInputStream& in, todo& _s); class FibBase; void parseFibBase(LEInputStream& in, FibBase& _s); class FibRgW97; void parseFibRgW97(LEInputStream& in, FibRgW97& _s); class FibRgLw97; void parseFibRgLw97(LEInputStream& in, FibRgLw97& _s); class FibRgFcLcb97; void parseFibRgFcLcb97(LEInputStream& in, FibRgFcLcb97& _s); class FibRgFcLcb2000; void parseFibRgFcLcb2000(LEInputStream& in, FibRgFcLcb2000& _s); class FibRgFcLcb2002; void parseFibRgFcLcb2002(LEInputStream& in, FibRgFcLcb2002& _s); class LPStshi; void parseLPStshi(LEInputStream& in, LPStshi& _s); class LPStd; void parseLPStd(LEInputStream& in, LPStd& _s); class PlcfSed; void parsePlcfSed(LEInputStream& in, PlcfSed& _s); class Sed; void parseSed(LEInputStream& in, Sed& _s); class Plcfhdd; void parsePlcfhdd(LEInputStream& in, Plcfhdd& _s); class PlcBteChpx; void parsePlcBteChpx(LEInputStream& in, PlcBteChpx& _s); class PlcfBtePapx; void parsePlcfBtePapx(LEInputStream& in, PlcfBtePapx& _s); class Tcg; void parseTcg(LEInputStream& in, Tcg& _s); class PrcData; void parsePrcData(LEInputStream& in, PrcData& _s); class Sprm; void parseSprm(LEInputStream& in, Sprm& _s); class Pcdt; void parsePcdt(LEInputStream& in, Pcdt& _s); class FCompressed; void parseFCompressed(LEInputStream& in, FCompressed& _s); class Prm0; void parsePrm0(LEInputStream& in, Prm0& _s); class Prm1; void parsePrm1(LEInputStream& in, Prm1& _s); class SttbfFfn; void parseSttbfFfn(LEInputStream& in, SttbfFfn& _s); class SttbfFfnEntry; void parseSttbfFfnEntry(LEInputStream& in, SttbfFfnEntry& _s); class CodePageString; void parseCodePageString(LEInputStream& in, CodePageString& _s); class FILETIME; void parseFILETIME(LEInputStream& in, FILETIME& _s); class ClipboardData; void parseClipboardData(LEInputStream& in, ClipboardData& _s); class PropertyIdentifierAndOffset; void parsePropertyIdentifierAndOffset(LEInputStream& in, PropertyIdentifierAndOffset& _s); class TypedPropertyValue; void parseTypedPropertyValue(LEInputStream& in, TypedPropertyValue& _s); class PropertySet; void parsePropertySet(LEInputStream& in, PropertySet& _s); class PropertySetStream; void parsePropertySetStream(LEInputStream& in, PropertySetStream& _s); class SummaryInformationPropertySetStream; void parseSummaryInformationPropertySetStream(LEInputStream& in, SummaryInformationPropertySetStream& _s); class DocumentSummaryInformationPropertySetStream; void parseDocumentSummaryInformationPropertySetStream(LEInputStream& in, DocumentSummaryInformationPropertySetStream& _s); class PicturesStream; void parsePicturesStream(LEInputStream& in, PicturesStream& _s); class OfficeArtMetafileHeader; void parseOfficeArtMetafileHeader(LEInputStream& in, OfficeArtMetafileHeader& _s); class SoundCollectionContainer; void parseSoundCollectionContainer(LEInputStream& in, SoundCollectionContainer& _s); class SlideHeadersFootersContainer; void parseSlideHeadersFootersContainer(LEInputStream& in, SlideHeadersFootersContainer& _s); class NotesHeadersFootersContainer; void parseNotesHeadersFootersContainer(LEInputStream& in, NotesHeadersFootersContainer& _s); class ScalingStruct; void parseScalingStruct(LEInputStream& in, ScalingStruct& _s); class TextPFException9; void parseTextPFException9(LEInputStream& in, TextPFException9& _s); class TextCFException9; void parseTextCFException9(LEInputStream& in, TextCFException9& _s); class TextDefaults9Atom; void parseTextDefaults9Atom(LEInputStream& in, TextDefaults9Atom& _s); class Kinsoku9Container; void parseKinsoku9Container(LEInputStream& in, Kinsoku9Container& _s); class OutlineTextProps9Entry; void parseOutlineTextProps9Entry(LEInputStream& in, OutlineTextProps9Entry& _s); class TextCFException10; void parseTextCFException10(LEInputStream& in, TextCFException10& _s); class TextDefaults10Atom; void parseTextDefaults10Atom(LEInputStream& in, TextDefaults10Atom& _s); class CommentIndex10Container; void parseCommentIndex10Container(LEInputStream& in, CommentIndex10Container& _s); class OutlineTextProps10Entry; void parseOutlineTextProps10Entry(LEInputStream& in, OutlineTextProps10Entry& _s); class PP11DocBinaryTagExtension; void parsePP11DocBinaryTagExtension(LEInputStream& in, PP11DocBinaryTagExtension& _s); class UnknownBinaryTag; void parseUnknownBinaryTag(LEInputStream& in, UnknownBinaryTag& _s); class NoZoomViewInfoAtom; void parseNoZoomViewInfoAtom(LEInputStream& in, NoZoomViewInfoAtom& _s); class VBAInfoContainer; void parseVBAInfoContainer(LEInputStream& in, VBAInfoContainer& _s); class NormalViewSetInfoAtom; void parseNormalViewSetInfoAtom(LEInputStream& in, NormalViewSetInfoAtom& _s); class TextContainerMeta; void parseTextContainerMeta(LEInputStream& in, TextContainerMeta& _s); class SlidePersistAtom; void parseSlidePersistAtom(LEInputStream& in, SlidePersistAtom& _s); class TextRuler; void parseTextRuler(LEInputStream& in, TextRuler& _s); class TextPFException; void parseTextPFException(LEInputStream& in, TextPFException& _s); class TextCFException; void parseTextCFException(LEInputStream& in, TextCFException& _s); class FontCollectionEntry; void parseFontCollectionEntry(LEInputStream& in, FontCollectionEntry& _s); class KinsokuContainer; void parseKinsokuContainer(LEInputStream& in, KinsokuContainer& _s); class TextSIException; void parseTextSIException(LEInputStream& in, TextSIException& _s); class TextMasterStyleLevel; void parseTextMasterStyleLevel(LEInputStream& in, TextMasterStyleLevel& _s); class DocumentAtom; void parseDocumentAtom(LEInputStream& in, DocumentAtom& _s); class SlideTime10Atom; void parseSlideTime10Atom(LEInputStream& in, SlideTime10Atom& _s); class PP12SlideBinaryTagExtension; void parsePP12SlideBinaryTagExtension(LEInputStream& in, PP12SlideBinaryTagExtension& _s); class ProgStringTagContainer; void parseProgStringTagContainer(LEInputStream& in, ProgStringTagContainer& _s); class NotesAtom; void parseNotesAtom(LEInputStream& in, NotesAtom& _s); class ExObjListContainer; void parseExObjListContainer(LEInputStream& in, ExObjListContainer& _s); class ExControlContainer; void parseExControlContainer(LEInputStream& in, ExControlContainer& _s); class ExHyperlinkContainer; void parseExHyperlinkContainer(LEInputStream& in, ExHyperlinkContainer& _s); class ExOleLinkContainer; void parseExOleLinkContainer(LEInputStream& in, ExOleLinkContainer& _s); class ExOleEmbedContainer; void parseExOleEmbedContainer(LEInputStream& in, ExOleEmbedContainer& _s); class OfficeArtFDGGBlock; void parseOfficeArtFDGGBlock(LEInputStream& in, OfficeArtFDGGBlock& _s); class OfficeArtSolverContainerFileBlock; void parseOfficeArtSolverContainerFileBlock(LEInputStream& in, OfficeArtSolverContainerFileBlock& _s); class Rotation; void parseRotation(LEInputStream& in, Rotation& _s); class ProtectionBooleanProperties; void parseProtectionBooleanProperties(LEInputStream& in, ProtectionBooleanProperties& _s); class ITxid; void parseITxid(LEInputStream& in, ITxid& _s); class DxTextLeft; void parseDxTextLeft(LEInputStream& in, DxTextLeft& _s); class DyTextTop; void parseDyTextTop(LEInputStream& in, DyTextTop& _s); class DxTextRight; void parseDxTextRight(LEInputStream& in, DxTextRight& _s); class DyTextBottom; void parseDyTextBottom(LEInputStream& in, DyTextBottom& _s); class WrapText; void parseWrapText(LEInputStream& in, WrapText& _s); class AnchorText; void parseAnchorText(LEInputStream& in, AnchorText& _s); class TxflTextFlow; void parseTxflTextFlow(LEInputStream& in, TxflTextFlow& _s); class CdirFont; void parseCdirFont(LEInputStream& in, CdirFont& _s); class HspNext; void parseHspNext(LEInputStream& in, HspNext& _s); class Txdir; void parseTxdir(LEInputStream& in, Txdir& _s); class TextBooleanProperties; void parseTextBooleanProperties(LEInputStream& in, TextBooleanProperties& _s); class CropFromTop; void parseCropFromTop(LEInputStream& in, CropFromTop& _s); class CropFromBottom; void parseCropFromBottom(LEInputStream& in, CropFromBottom& _s); class CropFromLeft; void parseCropFromLeft(LEInputStream& in, CropFromLeft& _s); class CropFromRight; void parseCropFromRight(LEInputStream& in, CropFromRight& _s); class Pib; void parsePib(LEInputStream& in, Pib& _s); class PibName; void parsePibName(LEInputStream& in, PibName& _s); class PibFlags; void parsePibFlags(LEInputStream& in, PibFlags& _s); class PictureTransparent; void parsePictureTransparent(LEInputStream& in, PictureTransparent& _s); class PictureContrast; void parsePictureContrast(LEInputStream& in, PictureContrast& _s); class PictureBrightness; void parsePictureBrightness(LEInputStream& in, PictureBrightness& _s); class BlipBooleanProperties; void parseBlipBooleanProperties(LEInputStream& in, BlipBooleanProperties& _s); class GeoLeft; void parseGeoLeft(LEInputStream& in, GeoLeft& _s); class GeoTop; void parseGeoTop(LEInputStream& in, GeoTop& _s); class GeoRight; void parseGeoRight(LEInputStream& in, GeoRight& _s); class GeoBottom; void parseGeoBottom(LEInputStream& in, GeoBottom& _s); class ShapePath; void parseShapePath(LEInputStream& in, ShapePath& _s); class PVertices; void parsePVertices(LEInputStream& in, PVertices& _s); class PSegmentInfo; void parsePSegmentInfo(LEInputStream& in, PSegmentInfo& _s); class AdjustValue; void parseAdjustValue(LEInputStream& in, AdjustValue& _s); class Adjust2Value; void parseAdjust2Value(LEInputStream& in, Adjust2Value& _s); class Adjust3Value; void parseAdjust3Value(LEInputStream& in, Adjust3Value& _s); class Adjust4Value; void parseAdjust4Value(LEInputStream& in, Adjust4Value& _s); class Adjust5Value; void parseAdjust5Value(LEInputStream& in, Adjust5Value& _s); class Adjust6Value; void parseAdjust6Value(LEInputStream& in, Adjust6Value& _s); class Adjust7Value; void parseAdjust7Value(LEInputStream& in, Adjust7Value& _s); class Adjust8Value; void parseAdjust8Value(LEInputStream& in, Adjust8Value& _s); class GeometryBooleanProperties; void parseGeometryBooleanProperties(LEInputStream& in, GeometryBooleanProperties& _s); class FillType; void parseFillType(LEInputStream& in, FillType& _s); class FillColor; void parseFillColor(LEInputStream& in, FillColor& _s); class FillOpacity; void parseFillOpacity(LEInputStream& in, FillOpacity& _s); class FillBackColor; void parseFillBackColor(LEInputStream& in, FillBackColor& _s); class FillBackOpacity; void parseFillBackOpacity(LEInputStream& in, FillBackOpacity& _s); class FillCrMod; void parseFillCrMod(LEInputStream& in, FillCrMod& _s); class FillBlip; void parseFillBlip(LEInputStream& in, FillBlip& _s); class FillBlipName; void parseFillBlipName(LEInputStream& in, FillBlipName& _s); class FillBlipFlags; void parseFillBlipFlags(LEInputStream& in, FillBlipFlags& _s); class FillWidth; void parseFillWidth(LEInputStream& in, FillWidth& _s); class FillHeight; void parseFillHeight(LEInputStream& in, FillHeight& _s); class FillAngle; void parseFillAngle(LEInputStream& in, FillAngle& _s); class FillFocus; void parseFillFocus(LEInputStream& in, FillFocus& _s); class FillToLeft; void parseFillToLeft(LEInputStream& in, FillToLeft& _s); class FillToTop; void parseFillToTop(LEInputStream& in, FillToTop& _s); class FillToRight; void parseFillToRight(LEInputStream& in, FillToRight& _s); class FillToBottom; void parseFillToBottom(LEInputStream& in, FillToBottom& _s); class FillRectLeft; void parseFillRectLeft(LEInputStream& in, FillRectLeft& _s); class FillRectTop; void parseFillRectTop(LEInputStream& in, FillRectTop& _s); class FillRectRight; void parseFillRectRight(LEInputStream& in, FillRectRight& _s); class FillRectBottom; void parseFillRectBottom(LEInputStream& in, FillRectBottom& _s); class FillDztype; void parseFillDztype(LEInputStream& in, FillDztype& _s); class FillShadePreset; void parseFillShadePreset(LEInputStream& in, FillShadePreset& _s); class FillShadeColors; void parseFillShadeColors(LEInputStream& in, FillShadeColors& _s); class FillOriginX; void parseFillOriginX(LEInputStream& in, FillOriginX& _s); class FillOriginY; void parseFillOriginY(LEInputStream& in, FillOriginY& _s); class FillShapeOriginX; void parseFillShapeOriginX(LEInputStream& in, FillShapeOriginX& _s); class FillShapeOriginY; void parseFillShapeOriginY(LEInputStream& in, FillShapeOriginY& _s); class FillColorExt; void parseFillColorExt(LEInputStream& in, FillColorExt& _s); class FillBackColorExt; void parseFillBackColorExt(LEInputStream& in, FillBackColorExt& _s); class FillStyleBooleanProperties; void parseFillStyleBooleanProperties(LEInputStream& in, FillStyleBooleanProperties& _s); class LineColor; void parseLineColor(LEInputStream& in, LineColor& _s); class LineOpacity; void parseLineOpacity(LEInputStream& in, LineOpacity& _s); class LineBackColor; void parseLineBackColor(LEInputStream& in, LineBackColor& _s); class LineFillBlip; void parseLineFillBlip(LEInputStream& in, LineFillBlip& _s); class LineWidth; void parseLineWidth(LEInputStream& in, LineWidth& _s); class LineStyle; void parseLineStyle(LEInputStream& in, LineStyle& _s); class LineDashing; void parseLineDashing(LEInputStream& in, LineDashing& _s); class LineStartArrowhead; void parseLineStartArrowhead(LEInputStream& in, LineStartArrowhead& _s); class LineEndArrowhead; void parseLineEndArrowhead(LEInputStream& in, LineEndArrowhead& _s); class LineStartArrowWidth; void parseLineStartArrowWidth(LEInputStream& in, LineStartArrowWidth& _s); class LineStartArrowLength; void parseLineStartArrowLength(LEInputStream& in, LineStartArrowLength& _s); class LineEndArrowWidth; void parseLineEndArrowWidth(LEInputStream& in, LineEndArrowWidth& _s); class LineEndArrowLength; void parseLineEndArrowLength(LEInputStream& in, LineEndArrowLength& _s); class LineJoinStyle; void parseLineJoinStyle(LEInputStream& in, LineJoinStyle& _s); class LineEndCapStyle; void parseLineEndCapStyle(LEInputStream& in, LineEndCapStyle& _s); class LineStyleBooleanProperties; void parseLineStyleBooleanProperties(LEInputStream& in, LineStyleBooleanProperties& _s); class ShadowType; void parseShadowType(LEInputStream& in, ShadowType& _s); class ShadowColor; void parseShadowColor(LEInputStream& in, ShadowColor& _s); class ShadowOpacity; void parseShadowOpacity(LEInputStream& in, ShadowOpacity& _s); class ShadowOffsetX; void parseShadowOffsetX(LEInputStream& in, ShadowOffsetX& _s); class ShadowOffsetY; void parseShadowOffsetY(LEInputStream& in, ShadowOffsetY& _s); class ShadowStyleBooleanProperties; void parseShadowStyleBooleanProperties(LEInputStream& in, ShadowStyleBooleanProperties& _s); class HspMaster; void parseHspMaster(LEInputStream& in, HspMaster& _s); class Cxstyle; void parseCxstyle(LEInputStream& in, Cxstyle& _s); class BWMode; void parseBWMode(LEInputStream& in, BWMode& _s); class ShapeBooleanProperties; void parseShapeBooleanProperties(LEInputStream& in, ShapeBooleanProperties& _s); class DxyCalloutGap; void parseDxyCalloutGap(LEInputStream& in, DxyCalloutGap& _s); class Spcoa; void parseSpcoa(LEInputStream& in, Spcoa& _s); class Spcod; void parseSpcod(LEInputStream& in, Spcod& _s); class DxyCalloutDropSpecified; void parseDxyCalloutDropSpecified(LEInputStream& in, DxyCalloutDropSpecified& _s); class DxyCalloutLengthSpecified; void parseDxyCalloutLengthSpecified(LEInputStream& in, DxyCalloutLengthSpecified& _s); class CalloutBooleanProperties; void parseCalloutBooleanProperties(LEInputStream& in, CalloutBooleanProperties& _s); class PWrapPolygonVertices; void parsePWrapPolygonVertices(LEInputStream& in, PWrapPolygonVertices& _s); class DxWrapDistLeft; void parseDxWrapDistLeft(LEInputStream& in, DxWrapDistLeft& _s); class DyWrapDistTop; void parseDyWrapDistTop(LEInputStream& in, DyWrapDistTop& _s); class DxWrapDistRight; void parseDxWrapDistRight(LEInputStream& in, DxWrapDistRight& _s); class DyWrapDistBottom; void parseDyWrapDistBottom(LEInputStream& in, DyWrapDistBottom& _s); class LidRegroup; void parseLidRegroup(LEInputStream& in, LidRegroup& _s); class PosH; void parsePosH(LEInputStream& in, PosH& _s); class PosRelH; void parsePosRelH(LEInputStream& in, PosRelH& _s); class PosV; void parsePosV(LEInputStream& in, PosV& _s); class PosRelV; void parsePosRelV(LEInputStream& in, PosRelV& _s); class PctHR; void parsePctHR(LEInputStream& in, PctHR& _s); class AlignHR; void parseAlignHR(LEInputStream& in, AlignHR& _s); class DxHeightHR; void parseDxHeightHR(LEInputStream& in, DxHeightHR& _s); class DxWidthHR; void parseDxWidthHR(LEInputStream& in, DxWidthHR& _s); class BorderTopColor; void parseBorderTopColor(LEInputStream& in, BorderTopColor& _s); class BorderLeftColor; void parseBorderLeftColor(LEInputStream& in, BorderLeftColor& _s); class BorderBottomColor; void parseBorderBottomColor(LEInputStream& in, BorderBottomColor& _s); class BorderRightColor; void parseBorderRightColor(LEInputStream& in, BorderRightColor& _s); class GroupShapeBooleanProperties; void parseGroupShapeBooleanProperties(LEInputStream& in, GroupShapeBooleanProperties& _s); class WzFillId; void parseWzFillId(LEInputStream& in, WzFillId& _s); class DiagramBooleanProperties; void parseDiagramBooleanProperties(LEInputStream& in, DiagramBooleanProperties& _s); class PptOfficeArtClientAnchor; void parsePptOfficeArtClientAnchor(LEInputStream& in, PptOfficeArtClientAnchor& _s); class AnimationInfoContainer; void parseAnimationInfoContainer(LEInputStream& in, AnimationInfoContainer& _s); class MouseClickInteractiveInfoContainer; void parseMouseClickInteractiveInfoContainer(LEInputStream& in, MouseClickInteractiveInfoContainer& _s); class MouseOverInteractiveInfoContainer; void parseMouseOverInteractiveInfoContainer(LEInputStream& in, MouseOverInteractiveInfoContainer& _s); class ShapeClientRoundtripDataSubcontainerOrAtom; void parseShapeClientRoundtripDataSubcontainerOrAtom(LEInputStream& in, ShapeClientRoundtripDataSubcontainerOrAtom& _s); class ShapeProgBinaryTagSubContainerOrAtom; void parseShapeProgBinaryTagSubContainerOrAtom(LEInputStream& in, ShapeProgBinaryTagSubContainerOrAtom& _s); class OfficeArtClientTextBox; void parseOfficeArtClientTextBox(LEInputStream& in, OfficeArtClientTextBox& _s); class TextRulerAtom; void parseTextRulerAtom(LEInputStream& in, TextRulerAtom& _s); class OfficeArtFOPTE; void parseOfficeArtFOPTE(LEInputStream& in, OfficeArtFOPTE& _s); class Fib; void parseFib(LEInputStream& in, Fib& _s); class STSH; void parseSTSH(LEInputStream& in, STSH& _s); class Clx; void parseClx(LEInputStream& in, Clx& _s); class Pcr; void parsePcr(LEInputStream& in, Pcr& _s); class Prm; void parsePrm(LEInputStream& in, Prm& _s); class OfficeArtBlipEMF; void parseOfficeArtBlipEMF(LEInputStream& in, OfficeArtBlipEMF& _s); class OfficeArtBlipWMF; void parseOfficeArtBlipWMF(LEInputStream& in, OfficeArtBlipWMF& _s); class OfficeArtBlipPICT; void parseOfficeArtBlipPICT(LEInputStream& in, OfficeArtBlipPICT& _s); class OfficeArtBlip; void parseOfficeArtBlip(LEInputStream& in, OfficeArtBlip& _s); class ZoomViewInfoAtom; void parseZoomViewInfoAtom(LEInputStream& in, ZoomViewInfoAtom& _s); class PP9DocBinaryTagExtension; void parsePP9DocBinaryTagExtension(LEInputStream& in, PP9DocBinaryTagExtension& _s); class TextMasterStyle9Level; void parseTextMasterStyle9Level(LEInputStream& in, TextMasterStyle9Level& _s); class StyleTextProp9; void parseStyleTextProp9(LEInputStream& in, StyleTextProp9& _s); class PP10DocBinaryTagExtension; void parsePP10DocBinaryTagExtension(LEInputStream& in, PP10DocBinaryTagExtension& _s); class TextMasterStyle10Level; void parseTextMasterStyle10Level(LEInputStream& in, TextMasterStyle10Level& _s); class NotesTextViewInfoContainer; void parseNotesTextViewInfoContainer(LEInputStream& in, NotesTextViewInfoContainer& _s); class OutlineViewInfoContainer; void parseOutlineViewInfoContainer(LEInputStream& in, OutlineViewInfoContainer& _s); class NormalViewSetInfoContainer; void parseNormalViewSetInfoContainer(LEInputStream& in, NormalViewSetInfoContainer& _s); class SlideListWithTextSubContainerOrAtom; void parseSlideListWithTextSubContainerOrAtom(LEInputStream& in, SlideListWithTextSubContainerOrAtom& _s); class OutlineAtom; void parseOutlineAtom(LEInputStream& in, OutlineAtom& _s); class TextContainer; void parseTextContainer(LEInputStream& in, TextContainer& _s); class MouseClickTextInfo; void parseMouseClickTextInfo(LEInputStream& in, MouseClickTextInfo& _s); class MouseOverTextInfo; void parseMouseOverTextInfo(LEInputStream& in, MouseOverTextInfo& _s); class TextPFRun; void parseTextPFRun(LEInputStream& in, TextPFRun& _s); class TextCFRun; void parseTextCFRun(LEInputStream& in, TextCFRun& _s); class TextCFExceptionAtom; void parseTextCFExceptionAtom(LEInputStream& in, TextCFExceptionAtom& _s); class DefaultRulerAtom; void parseDefaultRulerAtom(LEInputStream& in, DefaultRulerAtom& _s); class TextPFExceptionAtom; void parseTextPFExceptionAtom(LEInputStream& in, TextPFExceptionAtom& _s); class TextSIRun; void parseTextSIRun(LEInputStream& in, TextSIRun& _s); class TextSIExceptionAtom; void parseTextSIExceptionAtom(LEInputStream& in, TextSIExceptionAtom& _s); class TextMasterStyleAtom; void parseTextMasterStyleAtom(LEInputStream& in, TextMasterStyleAtom& _s); class PP10SlideBinaryTagExtension; void parsePP10SlideBinaryTagExtension(LEInputStream& in, PP10SlideBinaryTagExtension& _s); class ExObjListSubContainer; void parseExObjListSubContainer(LEInputStream& in, ExObjListSubContainer& _s); class OfficeArtDggContainer; void parseOfficeArtDggContainer(LEInputStream& in, OfficeArtDggContainer& _s); class OfficeArtFOPTEChoice; void parseOfficeArtFOPTEChoice(LEInputStream& in, OfficeArtFOPTEChoice& _s); class OfficeArtClientAnchor; void parseOfficeArtClientAnchor(LEInputStream& in, OfficeArtClientAnchor& _s); class PptOfficeArtClientData; void parsePptOfficeArtClientData(LEInputStream& in, PptOfficeArtClientData& _s); class ShapeProgBinaryTagContainer; void parseShapeProgBinaryTagContainer(LEInputStream& in, ShapeProgBinaryTagContainer& _s); class WordDocument; void parseWordDocument(LEInputStream& in, WordDocument& _s); class Table; void parseTable(LEInputStream& in, Table& _s); class Pcd; void parsePcd(LEInputStream& in, Pcd& _s); class OfficeArtFBSE; void parseOfficeArtFBSE(LEInputStream& in, OfficeArtFBSE& _s); class OfficeArtBStoreContainerFileBlock; void parseOfficeArtBStoreContainerFileBlock(LEInputStream& in, OfficeArtBStoreContainerFileBlock& _s); class SlideViewInfoInstance; void parseSlideViewInfoInstance(LEInputStream& in, SlideViewInfoInstance& _s); class DocProgBinaryTagSubContainerOrAtom; void parseDocProgBinaryTagSubContainerOrAtom(LEInputStream& in, DocProgBinaryTagSubContainerOrAtom& _s); class TextMasterStyle9Atom; void parseTextMasterStyle9Atom(LEInputStream& in, TextMasterStyle9Atom& _s); class BlipEntityAtom; void parseBlipEntityAtom(LEInputStream& in, BlipEntityAtom& _s); class TextMasterStyle10Atom; void parseTextMasterStyle10Atom(LEInputStream& in, TextMasterStyle10Atom& _s); class TextClientDataSubContainerOrAtom; void parseTextClientDataSubContainerOrAtom(LEInputStream& in, TextClientDataSubContainerOrAtom& _s); class TextContainerInteractiveInfo; void parseTextContainerInteractiveInfo(LEInputStream& in, TextContainerInteractiveInfo& _s); class DocumentTextInfoContainer; void parseDocumentTextInfoContainer(LEInputStream& in, DocumentTextInfoContainer& _s); class SlideProgBinaryTagSubContainerOrAtom; void parseSlideProgBinaryTagSubContainerOrAtom(LEInputStream& in, SlideProgBinaryTagSubContainerOrAtom& _s); class DrawingGroupContainer; void parseDrawingGroupContainer(LEInputStream& in, DrawingGroupContainer& _s); class OfficeArtClientData; void parseOfficeArtClientData(LEInputStream& in, OfficeArtClientData& _s); class ShapeProgTagsSubContainerOrAtom; void parseShapeProgTagsSubContainerOrAtom(LEInputStream& in, ShapeProgTagsSubContainerOrAtom& _s); class DocumentContainer; void parseDocumentContainer(LEInputStream& in, DocumentContainer& _s); class DocInfoListSubContainerOrAtom; void parseDocInfoListSubContainerOrAtom(LEInputStream& in, DocInfoListSubContainerOrAtom& _s); class DocProgBinaryTagContainer; void parseDocProgBinaryTagContainer(LEInputStream& in, DocProgBinaryTagContainer& _s); class SlideProgBinaryTagContainer; void parseSlideProgBinaryTagContainer(LEInputStream& in, SlideProgBinaryTagContainer& _s); class OfficeArtSpContainer; void parseOfficeArtSpContainer(LEInputStream& in, OfficeArtSpContainer& _s); class OfficeArtInlineSpContainer; void parseOfficeArtInlineSpContainer(LEInputStream& in, OfficeArtInlineSpContainer& _s); class DocProgTagsSubContainerOrAtom; void parseDocProgTagsSubContainerOrAtom(LEInputStream& in, DocProgTagsSubContainerOrAtom& _s); class SlideProgTagsSubContainerOrAtom; void parseSlideProgTagsSubContainerOrAtom(LEInputStream& in, SlideProgTagsSubContainerOrAtom& _s); class OfficeArtDgContainer; void parseOfficeArtDgContainer(LEInputStream& in, OfficeArtDgContainer& _s); class OfficeArtSpgrContainerFileBlock; void parseOfficeArtSpgrContainerFileBlock(LEInputStream& in, OfficeArtSpgrContainerFileBlock& _s); class DrawingContainer; void parseDrawingContainer(LEInputStream& in, DrawingContainer& _s); class MainMasterContainer; void parseMainMasterContainer(LEInputStream& in, MainMasterContainer& _s); class SlideContainer; void parseSlideContainer(LEInputStream& in, SlideContainer& _s); class NotesContainer; void parseNotesContainer(LEInputStream& in, NotesContainer& _s); class MasterOrSlideContainer; void parseMasterOrSlideContainer(LEInputStream& in, MasterOrSlideContainer& _s); class PowerPointStruct; void parsePowerPointStruct(LEInputStream& in, PowerPointStruct& _s); class RecordHeader : public StreamOffset { public: quint8 recVer; quint16 recInstance; quint16 recType; quint32 recLen; RecordHeader(void* /*dummy*/ = 0) {} }; class CurrentUserAtom : public StreamOffset { public: bool _has_unicodeUserName; bool _has_unknown; RecordHeader rh; quint32 size; quint32 headerToken; quint32 offsetToCurrentEdit; quint16 lenUserName; quint16 docFileVersion; quint8 majorVersion; quint8 minorVersion; quint16 unused; QByteArray ansiUserName; quint32 relVersion; QVector unicodeUserName; QByteArray unknown; CurrentUserAtom(void* /*dummy*/ = 0) {} }; class TODOS : public StreamOffset { public: QList anon; TODOS(void* /*dummy*/ = 0) {} }; class Byte : public StreamOffset { public: quint8 b; Byte(void* /*dummy*/ = 0) {} }; class ZeroByte : public StreamOffset { public: quint8 b; ZeroByte(void* /*dummy*/ = 0) {} }; class CurrentUserStream : public StreamOffset { public: CurrentUserAtom anon1; QList trailing; CurrentUserStream(void* /*dummy*/ = 0) {} }; class OfficeArtBStoreDelay : public StreamOffset { public: QList rgfb; OfficeArtBStoreDelay(void* /*dummy*/ = 0) {} }; class OfficeArtRecordHeader : public StreamOffset { public: quint8 recVer; quint16 recInstance; quint16 recType; quint32 recLen; OfficeArtRecordHeader(void* /*dummy*/ = 0) {} }; class OfficeArtBlipJPEG : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; quint8 tag; QByteArray BLIPFileData; OfficeArtBlipJPEG(void* /*dummy*/ = 0) {} }; class OfficeArtBlipPNG : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; quint8 tag; QByteArray BLIPFileData; OfficeArtBlipPNG(void* /*dummy*/ = 0) {} }; class OfficeArtBlipDIB : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; quint8 tag; QByteArray BLIPFileData; OfficeArtBlipDIB(void* /*dummy*/ = 0) {} }; class OfficeArtBlipTIFF : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; quint8 tag; QByteArray BLIPFileData; OfficeArtBlipTIFF(void* /*dummy*/ = 0) {} }; class RECT : public StreamOffset { public: qint32 left; qint32 top; qint32 right; qint32 bottom; RECT(void* /*dummy*/ = 0) {} }; class POINT : public StreamOffset { public: qint32 x; qint32 y; POINT(void* /*dummy*/ = 0) {} }; class PowerPointStructs : public StreamOffset { public: QList anon; PowerPointStructs(void* /*dummy*/ = 0) {} }; class SoundCollectionAtom : public StreamOffset { public: RecordHeader rh; quint32 soundIdSeed; SoundCollectionAtom(void* /*dummy*/ = 0) {} }; class HeadersFootersAtom : public StreamOffset { public: RecordHeader rh; qint16 formatId; bool fHasDate; bool fHasTodayDate; bool fHasUserDate; bool fHasSlideNumber; bool fHasHeader; bool fHasFooter; quint8 reserved1; quint8 reserved2; HeadersFootersAtom(void* /*dummy*/ = 0) {} }; class UserDateAtom : public StreamOffset { public: RecordHeader rh; QVector userDate; UserDateAtom(void* /*dummy*/ = 0) {} }; class HeaderAtom : public StreamOffset { public: RecordHeader rh; QVector header; HeaderAtom(void* /*dummy*/ = 0) {} }; class FooterAtom : public StreamOffset { public: RecordHeader rh; QVector footer; FooterAtom(void* /*dummy*/ = 0) {} }; class PerSlideHeadersFootersContainer : public StreamOffset { public: RecordHeader rh; HeadersFootersAtom hfAtom; QSharedPointer userDateAtom; QSharedPointer headerAtom; QSharedPointer footerAtom; QSharedPointer userDateAtom2; PerSlideHeadersFootersContainer(void* /*dummy*/ = 0) {} }; class EndDocumentAtom : public StreamOffset { public: RecordHeader rh; EndDocumentAtom(void* /*dummy*/ = 0) {} }; class DocInfoListContainer : public StreamOffset { public: RecordHeader rh; QList rgChildRec; DocInfoListContainer(void* /*dummy*/ = 0) {} }; class SlideViewInfoAtom : public StreamOffset { public: RecordHeader rh; quint8 unused1; quint8 fSnapToGrid; quint8 fSnapToShape; SlideViewInfoAtom(void* /*dummy*/ = 0) {} }; class GuideAtom : public StreamOffset { public: RecordHeader rh; quint32 type; qint32 pos; GuideAtom(void* /*dummy*/ = 0) {} }; class DocProgTagsContainer : public StreamOffset { public: RecordHeader rh; QList rgChildRec; DocProgTagsContainer(void* /*dummy*/ = 0) {} }; class TextAutoNumberScheme : public StreamOffset { public: quint16 scheme; quint16 startNum; TextAutoNumberScheme(void* /*dummy*/ = 0) {} }; class BlipCollection9Container : public StreamOffset { public: RecordHeader rh; QList rgBlipEntityAtom; BlipCollection9Container(void* /*dummy*/ = 0) {} }; class Kinsoku9Atom : public StreamOffset { public: RecordHeader rh; quint8 korLevel; quint8 scLevel; quint8 tcLevel; quint8 jpnLevel; quint8 reserveda; quint32 reservedb; Kinsoku9Atom(void* /*dummy*/ = 0) {} }; class ExHyperlink9Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; ExHyperlink9Container(void* /*dummy*/ = 0) {} }; class PresAdvisorFlags9Atom : public StreamOffset { public: RecordHeader rh; bool fDisableCaseStyleTitleRule; bool fDisableCaseStyleBodyRule; bool fDisableEndPunctuationTitleRule; bool fDisableEndPunctuationBodyRule; bool fDisableTooManyBulletsRule; bool fDisableFontSizeTitleRule; bool fDisableFontSizeBodyRule; bool fDisableNumberOfLinesTitleRule; bool fDisableNumberOfLinesBodyRule; bool fDisableTooManyFontsRule; bool fDisablePrintTip; quint8 reserveda; quint16 reservedb; PresAdvisorFlags9Atom(void* /*dummy*/ = 0) {} }; class EnvelopeData9Atom : public StreamOffset { public: RecordHeader rh; QByteArray todo; EnvelopeData9Atom(void* /*dummy*/ = 0) {} }; class EnvelopeFlags9Atom : public StreamOffset { public: RecordHeader rh; bool fHasEnvelope; bool fEnvelopeVisible; quint8 reserved1; bool fEnvelopeDirty; quint8 reserved2a; quint8 reserved2b; quint16 reserved2c; EnvelopeFlags9Atom(void* /*dummy*/ = 0) {} }; class HTMLDocInfo9Atom : public StreamOffset { public: RecordHeader rh; quint32 unused1; quint32 encoding; quint16 frameColorType; quint8 screenSize; quint8 unused2; quint8 outputType; bool fShowFrame; bool fResizeGraphics; bool fOrganizeInFolder; bool fUseLongFileNames; bool fRelyOnVML; bool fAllowPNG; bool fShowSlideAnimation; bool reserved1; quint16 unused3; HTMLDocInfo9Atom(void* /*dummy*/ = 0) {} }; class HTMLPublishInfo9Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; HTMLPublishInfo9Container(void* /*dummy*/ = 0) {} }; class BroadcastDocInfo9Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; BroadcastDocInfo9Container(void* /*dummy*/ = 0) {} }; class OutlineTextProps9Container : public StreamOffset { public: RecordHeader rh; QList rgOutlineTextProps9Entry; OutlineTextProps9Container(void* /*dummy*/ = 0) {} }; class OutlineTextPropsHeaderExAtom : public StreamOffset { public: RecordHeader rh; quint32 slideIdRef; quint32 txType; OutlineTextPropsHeaderExAtom(void* /*dummy*/ = 0) {} }; class StyleTextProp9Atom : public StreamOffset { public: RecordHeader rh; QList rgStyleTextProp9; StyleTextProp9Atom(void* /*dummy*/ = 0) {} }; class FontCollection10Container : public StreamOffset { public: RecordHeader rh; QList rgFontCollectionEntry; FontCollection10Container(void* /*dummy*/ = 0) {} }; class GridSpacing10Atom : public StreamOffset { public: RecordHeader rh; quint32 x; quint32 y; GridSpacing10Atom(void* /*dummy*/ = 0) {} }; class AuthorNameAtom : public StreamOffset { public: RecordHeader rh; QByteArray authorName; AuthorNameAtom(void* /*dummy*/ = 0) {} }; class CommentIndex10Atom : public StreamOffset { public: RecordHeader rh; qint32 colorIndex; qint32 commentIndexSeed; CommentIndex10Atom(void* /*dummy*/ = 0) {} }; class FontEmbedFlags10Atom : public StreamOffset { public: RecordHeader rh; bool fSubset; bool fSubsetOptionConfirmed; quint16 unuseda; quint16 unusedb; FontEmbedFlags10Atom(void* /*dummy*/ = 0) {} }; class CopyrightAtom : public StreamOffset { public: RecordHeader rh; QByteArray copyright; CopyrightAtom(void* /*dummy*/ = 0) {} }; class KeywordsAtom : public StreamOffset { public: RecordHeader rh; QByteArray keywords; KeywordsAtom(void* /*dummy*/ = 0) {} }; class FilterPrivacyFlags10Atom : public StreamOffset { public: RecordHeader rh; bool fRemovePII; quint8 reserved2a; quint8 reserved2b; quint16 reserved2c; FilterPrivacyFlags10Atom(void* /*dummy*/ = 0) {} }; class OutlineTextProps10Container : public StreamOffset { public: RecordHeader rh; QList rgOutlineTextProps10Entry; OutlineTextProps10Container(void* /*dummy*/ = 0) {} }; class StyleTextProp10Atom : public StreamOffset { public: RecordHeader rh; QList rgStyleTextProp10; StyleTextProp10Atom(void* /*dummy*/ = 0) {} }; class DocToolbarStates10Atom : public StreamOffset { public: RecordHeader rh; bool fShowReviewingToolbar; bool fShowReviewingGallery; quint8 reserved; DocToolbarStates10Atom(void* /*dummy*/ = 0) {} }; class SlideListTable10Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; SlideListTable10Container(void* /*dummy*/ = 0) {} }; class DiffTree10Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; DiffTree10Container(void* /*dummy*/ = 0) {} }; class ModifyPasswordAtom : public StreamOffset { public: RecordHeader rh; QByteArray modifyPassword; ModifyPasswordAtom(void* /*dummy*/ = 0) {} }; class PhotoAlbumInfo10Atom : public StreamOffset { public: RecordHeader rh; quint8 fUseBlackWhite; quint8 fHasCaption; quint8 layout; quint8 unused; quint16 frameShape; PhotoAlbumInfo10Atom(void* /*dummy*/ = 0) {} }; class SmartTagStore11Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; SmartTagStore11Container(void* /*dummy*/ = 0) {} }; class OutlineTextProps11Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; OutlineTextProps11Container(void* /*dummy*/ = 0) {} }; class BinaryTagDataBlob : public StreamOffset { public: RecordHeader rh; QByteArray data; BinaryTagDataBlob(void* /*dummy*/ = 0) {} }; class PP12DocBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QByteArray tagName; RecordHeader rhData; QByteArray todo; PP12DocBinaryTagExtension(void* /*dummy*/ = 0) {} }; class SorterViewInfoContainer : public StreamOffset { public: RecordHeader rh; QByteArray todo; SorterViewInfoContainer(void* /*dummy*/ = 0) {} }; class VBAInfoAtom : public StreamOffset { public: RecordHeader rh; quint32 persistIdRef; quint32 fHasMacros; quint32 version; VBAInfoAtom(void* /*dummy*/ = 0) {} }; class MasterListWithTextContainer : public StreamOffset { public: RecordHeader rh; QList rgMasterPersistAtom; MasterListWithTextContainer(void* /*dummy*/ = 0) {} }; class MasterPersistAtom : public StreamOffset { public: RecordHeader rh; quint32 persistIdRef; quint8 reserved1; bool fNonOutLineData; quint8 reserved2; quint8 reserved3; quint16 reserved4; quint32 reserved5; quint32 masterId; quint32 reserved6; MasterPersistAtom(void* /*dummy*/ = 0) {} }; class SlideListWithTextContainer : public StreamOffset { public: RecordHeader rh; QList rgChildRec; SlideListWithTextContainer(void* /*dummy*/ = 0) {} }; class NotesListWithTextContainer : public StreamOffset { public: RecordHeader rh; QList rgNotesPersistAtom; NotesListWithTextContainer(void* /*dummy*/ = 0) {} }; class NotesPersistAtom : public StreamOffset { public: RecordHeader rh; quint32 persistIdRef; quint8 reserved1; bool fNonOutlineData; quint8 reserved2a; quint8 reserved2b; quint16 reserved2c; quint32 reserved3; quint32 notesId; quint32 reserved4; NotesPersistAtom(void* /*dummy*/ = 0) {} }; class TextHeaderAtom : public StreamOffset { public: RecordHeader rh; quint32 textType; TextHeaderAtom(void* /*dummy*/ = 0) {} }; class TextCharsAtom : public StreamOffset { public: RecordHeader rh; QVector textChars; TextCharsAtom(void* /*dummy*/ = 0) {} }; class TextBytesAtom : public StreamOffset { public: RecordHeader rh; QByteArray textChars; TextBytesAtom(void* /*dummy*/ = 0) {} }; class MasterTextPropAtom : public StreamOffset { public: RecordHeader rh; QList rgMasterTextPropRun; MasterTextPropAtom(void* /*dummy*/ = 0) {} }; class MasterTextPropRun : public StreamOffset { public: quint32 count; quint16 indentLevel; MasterTextPropRun(void* /*dummy*/ = 0) {} }; class StyleTextPropAtom : public StreamOffset { public: RecordHeader rh; QList rgTextPFRun; QList rgTextCFRun; StyleTextPropAtom(void* /*dummy*/ = 0) {} }; class SlideNumberMCAtom : public StreamOffset { public: RecordHeader rh; qint32 position; SlideNumberMCAtom(void* /*dummy*/ = 0) {} }; class DateTimeMCAtom : public StreamOffset { public: RecordHeader rh; qint32 position; quint8 index; QByteArray unused; DateTimeMCAtom(void* /*dummy*/ = 0) {} }; class GenericDateMCAtom : public StreamOffset { public: RecordHeader rh; qint32 position; GenericDateMCAtom(void* /*dummy*/ = 0) {} }; class HeaderMCAtom : public StreamOffset { public: RecordHeader rh; qint32 position; HeaderMCAtom(void* /*dummy*/ = 0) {} }; class FooterMCAtom : public StreamOffset { public: RecordHeader rh; qint32 position; FooterMCAtom(void* /*dummy*/ = 0) {} }; class RTFDateTimeMCAtom : public StreamOffset { public: RecordHeader rh; qint32 position; QByteArray format; RTFDateTimeMCAtom(void* /*dummy*/ = 0) {} }; class TextBookmarkAtom : public StreamOffset { public: RecordHeader rh; qint32 begin; qint32 end; qint32 bookmarkID; TextBookmarkAtom(void* /*dummy*/ = 0) {} }; class TextRange : public StreamOffset { public: qint32 begin; qint32 end; TextRange(void* /*dummy*/ = 0) {} }; class MouseClickTextInteractiveInfoAtom : public StreamOffset { public: RecordHeader rh; TextRange range; MouseClickTextInteractiveInfoAtom(void* /*dummy*/ = 0) {} }; class MouseOverTextInteractiveInfoAtom : public StreamOffset { public: RecordHeader rh; TextRange range; MouseOverTextInteractiveInfoAtom(void* /*dummy*/ = 0) {} }; class SlideId : public StreamOffset { public: quint32 slideId; SlideId(void* /*dummy*/ = 0) {} }; class TabStops : public StreamOffset { public: quint16 count; QList rgTabStop; TabStops(void* /*dummy*/ = 0) {} }; class TabStop : public StreamOffset { public: qint16 position; quint16 type; TabStop(void* /*dummy*/ = 0) {} }; class PFWrapFlags : public StreamOffset { public: bool charWrap; bool wordWrap; bool overflow; quint8 reserved1; quint8 reserved2; PFWrapFlags(void* /*dummy*/ = 0) {} }; class ColorIndexStruct : public StreamOffset { public: quint8 red; quint8 green; quint8 blue; quint8 index; ColorIndexStruct(void* /*dummy*/ = 0) {} }; class BulletFlags : public StreamOffset { public: bool fHasBullet; bool fBulletHasFont; bool fBulletHasColor; bool fBulletHasSize; quint16 reserved; BulletFlags(void* /*dummy*/ = 0) {} }; class PFMasks : public StreamOffset { public: bool hasBullet; bool bulletHasFont; bool bulletHasColor; bool bulletHasSize; bool bulletFont; bool bulletColor; bool bulletSize; bool bulletChar; bool leftMargin; bool unused; bool indent; bool align; bool lineSpacing; bool spaceBefore; bool spaceAfter; bool defaultTabSize; bool fontAlign; bool charWrap; bool wordWrap; bool overflow; bool tabStops; bool textDirection; bool reserved; bool bulletBlip; bool bulletScheme; bool bulletHasScheme; quint8 reserved2; PFMasks(void* /*dummy*/ = 0) {} }; class CFMasks : public StreamOffset { public: bool bold; bool italic; bool underline; bool unused1; bool shadow; bool fehint; bool unused2; bool kumi; bool unused3; bool emboss; quint8 fHasStyle; quint8 unused4; bool typeface; bool size; bool color; bool position; bool pp10ext; bool oldEATypeface; bool ansiTypeface; bool symbolTypeface; bool newEATypeface; bool csTypeface; bool pp11ext; quint8 reserved; CFMasks(void* /*dummy*/ = 0) {} }; class CFStyle : public StreamOffset { public: bool bold; bool italic; bool underline; bool unused1; bool shadow; bool fehint; bool unused2; bool kumi; bool unused3; bool emboss; quint8 pp9rt; quint8 unused4; CFStyle(void* /*dummy*/ = 0) {} }; class FontCollectionContainer : public StreamOffset { public: RecordHeader rh; QList rgFontCollectionEntry; FontCollectionContainer(void* /*dummy*/ = 0) {} }; class FontEntityAtom : public StreamOffset { public: RecordHeader rh; QVector lfFaceName; quint8 lfCharSet; bool fEmbedSubsetted; quint8 unused; bool rasterFontType; bool deviceFontType; bool truetypeFontType; bool fNoFontSubstitution; quint8 reserved; quint8 lfPitchAndFamily; FontEntityAtom(void* /*dummy*/ = 0) {} }; class FontEmbedDataBlob : public StreamOffset { public: RecordHeader rh; QByteArray data; FontEmbedDataBlob(void* /*dummy*/ = 0) {} }; class KinsokuAtom : public StreamOffset { public: RecordHeader rh; quint32 level; KinsokuAtom(void* /*dummy*/ = 0) {} }; class KinsokuLeadingAtom : public StreamOffset { public: RecordHeader rh; QVector kinsokuLeading; KinsokuLeadingAtom(void* /*dummy*/ = 0) {} }; class KinsokuFollowingAtom : public StreamOffset { public: RecordHeader rh; QVector kinsokuFollowing; KinsokuFollowingAtom(void* /*dummy*/ = 0) {} }; class TextSpecialInfoAtom : public StreamOffset { public: RecordHeader rh; QList rgSIRun; TextSpecialInfoAtom(void* /*dummy*/ = 0) {} }; class SmartTags : public StreamOffset { public: quint32 count; QVector rgSmartTagIndex; SmartTags(void* /*dummy*/ = 0) {} }; class ExOleEmbedAtom : public StreamOffset { public: RecordHeader rh; quint32 exColorFollow; quint8 fCantLockServer; quint8 fNoSizeToServer; quint8 fIsTable; quint8 unused; ExOleEmbedAtom(void* /*dummy*/ = 0) {} }; class PointStruct : public StreamOffset { public: qint32 x; qint32 y; PointStruct(void* /*dummy*/ = 0) {} }; class RatioStruct : public StreamOffset { public: qint32 numer; qint32 denom; RatioStruct(void* /*dummy*/ = 0) {} }; class PersistDirectoryAtom : public StreamOffset { public: RecordHeader rh; QList rgPersistDirEntry; PersistDirectoryAtom(void* /*dummy*/ = 0) {} }; class UnknownDocumentContainerChild : public StreamOffset { public: RecordHeader rh; QByteArray unknown; UnknownDocumentContainerChild(void* /*dummy*/ = 0) {} }; class UnknownOfficeArtClientDataChild : public StreamOffset { public: RecordHeader rh; QByteArray unknown; UnknownOfficeArtClientDataChild(void* /*dummy*/ = 0) {} }; class UnknownSlideContainerChild : public StreamOffset { public: RecordHeader rh; QByteArray unknown; UnknownSlideContainerChild(void* /*dummy*/ = 0) {} }; class UnknownTextContainerChild : public StreamOffset { public: RecordHeader rh; QByteArray unknown; UnknownTextContainerChild(void* /*dummy*/ = 0) {} }; class PersistDirectoryEntry : public StreamOffset { public: quint32 persistId; quint16 cPersist; QVector rgPersistOffset; PersistDirectoryEntry(void* /*dummy*/ = 0) {} }; class PersistIdRef : public StreamOffset { public: quint32 anon; PersistIdRef(void* /*dummy*/ = 0) {} }; class SchemeListElementColorSchemeAtom : public StreamOffset { public: RecordHeader rh; QList rgSchemeColor; SchemeListElementColorSchemeAtom(void* /*dummy*/ = 0) {} }; class RoundTripOArtTextStyles12Atom : public StreamOffset { public: RecordHeader rh; QByteArray todo; RoundTripOArtTextStyles12Atom(void* /*dummy*/ = 0) {} }; class SlideNameAtom : public StreamOffset { public: RecordHeader rh; QVector slideName; SlideNameAtom(void* /*dummy*/ = 0) {} }; class SlideProgTagsContainer : public StreamOffset { public: RecordHeader rh; QList rgTypeRec; SlideProgTagsContainer(void* /*dummy*/ = 0) {} }; class PP9SlideBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QVector tagName; RecordHeader rhData; QList rgTextMasterStyleAtom; PP9SlideBinaryTagExtension(void* /*dummy*/ = 0) {} }; class Comment10Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; Comment10Container(void* /*dummy*/ = 0) {} }; class Comment10Atom : public StreamOffset { public: RecordHeader rh; QByteArray todo; Comment10Atom(void* /*dummy*/ = 0) {} }; class LinkedSlide10Atom : public StreamOffset { public: RecordHeader rh; quint32 linkedSlideIdRef; qint32 clinkedShapes; LinkedSlide10Atom(void* /*dummy*/ = 0) {} }; class LinkedShape10Atom : public StreamOffset { public: RecordHeader rh; quint32 shapeIdRef; quint32 linkedShapeIdRef; LinkedShape10Atom(void* /*dummy*/ = 0) {} }; class SlideFlags10Atom : public StreamOffset { public: RecordHeader rh; bool fPreserveMaster; bool fOverrideMasterAnimatino; quint16 unuseda; quint16 unusedb; SlideFlags10Atom(void* /*dummy*/ = 0) {} }; class HashCode10Atom : public StreamOffset { public: RecordHeader rh; quint32 hash; HashCode10Atom(void* /*dummy*/ = 0) {} }; class ExtTimeNodeContainer : public StreamOffset { public: RecordHeader rh; QByteArray todo; ExtTimeNodeContainer(void* /*dummy*/ = 0) {} }; class BuildListContainer : public StreamOffset { public: RecordHeader rh; QByteArray todo; BuildListContainer(void* /*dummy*/ = 0) {} }; class RoundTripHeaderFooterDefaults12Atom : public StreamOffset { public: RecordHeader rh; bool fIncludeDate; bool fIncludeFooter; bool fIncludeHeader; bool fIncludeSlideNumber; quint8 reserved; RoundTripHeaderFooterDefaults12Atom(void* /*dummy*/ = 0) {} }; class TagNameAtom : public StreamOffset { public: RecordHeader rh; QVector tagName; TagNameAtom(void* /*dummy*/ = 0) {} }; class TagValueAtom : public StreamOffset { public: RecordHeader rh; QVector tagValue; TagValueAtom(void* /*dummy*/ = 0) {} }; class RoundTripMainMasterRecord : public StreamOffset { public: RecordHeader rh; QByteArray todo; RoundTripMainMasterRecord(void* /*dummy*/ = 0) {} }; class TemplateNameAtom : public StreamOffset { public: RecordHeader rh; QVector templateName; TemplateNameAtom(void* /*dummy*/ = 0) {} }; class RoundTripSlideSyncInfo12Container : public StreamOffset { public: RecordHeader rh; QByteArray todo; RoundTripSlideSyncInfo12Container(void* /*dummy*/ = 0) {} }; class SlideFlags : public StreamOffset { public: bool fMasterObjects; bool fMasterScheme; bool fMasterBackground; quint8 unused1; quint8 unused2; SlideFlags(void* /*dummy*/ = 0) {} }; class NotesRoundTripAtom : public StreamOffset { public: RecordHeader rh; QByteArray todo; NotesRoundTripAtom(void* /*dummy*/ = 0) {} }; class HandoutContainer : public StreamOffset { public: RecordHeader rh; QByteArray todo; HandoutContainer(void* /*dummy*/ = 0) {} }; class ExControlStg : public StreamOffset { public: RecordHeader rh; QByteArray todo; ExControlStg(void* /*dummy*/ = 0) {} }; class ExOleObjStg : public StreamOffset { public: RecordHeader rh; QByteArray todo; ExOleObjStg(void* /*dummy*/ = 0) {} }; class UserEditAtom : public StreamOffset { public: bool _has_encryptSessionPersistIdRef; RecordHeader rh; quint32 lastSlideIdRef; quint16 version; quint8 minorVersion; quint8 majorVersion; quint32 offsetLastEdit; quint32 offsetPersistDirectory; quint32 docPersistIdRef; quint32 persistIdSeed; quint16 lastView; quint16 unused; quint32 encryptSessionPersistIdRef; QList zeroPadding; UserEditAtom(void* /*dummy*/ = 0) {} }; class VbaProjectStg : public StreamOffset { public: RecordHeader rh; QByteArray todo; VbaProjectStg(void* /*dummy*/ = 0) {} }; class SlideAtom : public StreamOffset { public: RecordHeader rh; quint32 geom; QByteArray rgPlaceholderTypes; quint32 masterIdRef; quint32 notesIdRef; SlideFlags slideFlags; quint16 unused; SlideAtom(void* /*dummy*/ = 0) {} }; class SlideShowSlideInfoAtom : public StreamOffset { public: RecordHeader rh; quint32 slidetime; quint32 slideIdRef; quint8 effectDirection; quint8 effectType; bool fManualAdvance; bool reserved; bool fHidden; bool reserved2; bool fSound; bool reserved3; bool fLoopSound; bool reserved4; bool fStopSound; bool freserved5; bool fAutoAdvance; bool reserved6; bool fCursorVisible; quint8 reserved7; quint8 speed; QByteArray unused; SlideShowSlideInfoAtom(void* /*dummy*/ = 0) {} }; class SlideShowDocInfoAtom : public StreamOffset { public: RecordHeader rh; ColorIndexStruct penColor; qint32 restartTime; qint16 startSlide; qint16 endSlide; QByteArray namedShow; bool fAutoAdvance; bool fWillSkipBuilds; bool fUseSlideRange; bool fDocUseNamedShow; bool fShowBrowseMode; bool fKioskMode; bool fWillSkipNarration; bool fLoopContinuously; bool fHideScrollBar; quint8 reserved; quint16 unused; SlideShowDocInfoAtom(void* /*dummy*/ = 0) {} }; class SlideSchemeColorSchemeAtom : public StreamOffset { public: RecordHeader rh; QList rgSchemeColor; SlideSchemeColorSchemeAtom(void* /*dummy*/ = 0) {} }; class RoundTripSlideRecord : public StreamOffset { public: RecordHeader rh; QByteArray todo; RoundTripSlideRecord(void* /*dummy*/ = 0) {} }; class NamedShowsContainer : public StreamOffset { public: RecordHeader rh; QByteArray todo; NamedShowsContainer(void* /*dummy*/ = 0) {} }; class SummaryContainer : public StreamOffset { public: RecordHeader rh; QByteArray todo; SummaryContainer(void* /*dummy*/ = 0) {} }; class DocRoutingSlipAtom : public StreamOffset { public: RecordHeader rh; QByteArray todo; DocRoutingSlipAtom(void* /*dummy*/ = 0) {} }; class PrintOptionsAtom : public StreamOffset { public: RecordHeader rh; QByteArray todo; PrintOptionsAtom(void* /*dummy*/ = 0) {} }; class RoundTripCustomTableStyles12Atom : public StreamOffset { public: RecordHeader rh; QByteArray todo; RoundTripCustomTableStyles12Atom(void* /*dummy*/ = 0) {} }; class RoundTripCompositeMasterId12Atom : public StreamOffset { public: RecordHeader rh; quint32 compositeMasterId; RoundTripCompositeMasterId12Atom(void* /*dummy*/ = 0) {} }; class ColorStruct : public StreamOffset { public: quint8 red; quint8 green; quint8 blue; quint8 unused; ColorStruct(void* /*dummy*/ = 0) {} }; class ExObjListAtom : public StreamOffset { public: RecordHeader rh; qint32 exObjIdSeed; ExObjListAtom(void* /*dummy*/ = 0) {} }; class ExAviMovieContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ExAviMovieContainer(void* /*dummy*/ = 0) {} }; class ExCDAudioContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ExCDAudioContainer(void* /*dummy*/ = 0) {} }; class ExControlAtom : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 slideIdRef; ExControlAtom(void* /*dummy*/ = 0) {} }; class ExHyperlinkAtom : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 exHyperLinkId; ExHyperlinkAtom(void* /*dummy*/ = 0) {} }; class FriendlyNameAtom : public StreamOffset { public: OfficeArtRecordHeader rh; QVector friendlyName; FriendlyNameAtom(void* /*dummy*/ = 0) {} }; class TargetAtom : public StreamOffset { public: OfficeArtRecordHeader rh; QVector target; TargetAtom(void* /*dummy*/ = 0) {} }; class LocationAtom : public StreamOffset { public: OfficeArtRecordHeader rh; QVector location; LocationAtom(void* /*dummy*/ = 0) {} }; class ExMCIMovieContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ExMCIMovieContainer(void* /*dummy*/ = 0) {} }; class ExMIDIAudioContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ExMIDIAudioContainer(void* /*dummy*/ = 0) {} }; class ExWAVAudioEmbeddedContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ExWAVAudioEmbeddedContainer(void* /*dummy*/ = 0) {} }; class ExWAVAudioLinkContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ExWAVAudioLinkContainer(void* /*dummy*/ = 0) {} }; class UnknownExObjListSubContainerChild : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; UnknownExObjListSubContainerChild(void* /*dummy*/ = 0) {} }; class ExOleLinkAtom : public StreamOffset { public: RecordHeader rh; quint32 slideIdRef; quint32 oleUpdateMode; quint32 unused; ExOleLinkAtom(void* /*dummy*/ = 0) {} }; class ExOleObjAtom : public StreamOffset { public: RecordHeader rh; quint32 drawAspect; quint32 type; quint32 exObjId; quint32 subType; quint32 persistIdRef; quint32 unused; ExOleObjAtom(void* /*dummy*/ = 0) {} }; class MenuNameAtom : public StreamOffset { public: RecordHeader rh; QByteArray menuName; MenuNameAtom(void* /*dummy*/ = 0) {} }; class ProgIDAtom : public StreamOffset { public: RecordHeader rh; QByteArray progId; ProgIDAtom(void* /*dummy*/ = 0) {} }; class ClipboardNameAtom : public StreamOffset { public: RecordHeader rh; QByteArray clipboardName; ClipboardNameAtom(void* /*dummy*/ = 0) {} }; class MetafileBlob : public StreamOffset { public: RecordHeader rh; qint16 mm; qint16 xExt; qint16 yExt; QByteArray data; MetafileBlob(void* /*dummy*/ = 0) {} }; class OfficeArtFDGG : public StreamOffset { public: quint32 spidMax; quint32 cidcl; quint32 cspSaved; quint32 cdgSaved; OfficeArtFDGG(void* /*dummy*/ = 0) {} }; class OfficeArtFDG : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 csp; quint32 spidCur; OfficeArtFDG(void* /*dummy*/ = 0) {} }; class OfficeArtFRITContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgfrit; OfficeArtFRITContainer(void* /*dummy*/ = 0) {} }; class OfficeArtFRIT : public StreamOffset { public: quint16 fridNew; quint16 fridOld; OfficeArtFRIT(void* /*dummy*/ = 0) {} }; class OfficeArtBStoreContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgfb; OfficeArtBStoreContainer(void* /*dummy*/ = 0) {} }; class OfficeArtSpgrContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgfb; OfficeArtSpgrContainer(void* /*dummy*/ = 0) {} }; class OfficeArtSolverContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgfb; OfficeArtSolverContainer(void* /*dummy*/ = 0) {} }; class OfficeArtFConnectorRule : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 ruid; quint32 spidA; quint32 spidB; quint32 spidC; quint32 cptiA; quint32 cptiB; OfficeArtFConnectorRule(void* /*dummy*/ = 0) {} }; class OfficeArtFArcRule : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 ruid; quint32 spid; OfficeArtFArcRule(void* /*dummy*/ = 0) {} }; class OfficeArtFCalloutRule : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 ruid; quint32 spid; OfficeArtFCalloutRule(void* /*dummy*/ = 0) {} }; class OfficeArtFSPGR : public StreamOffset { public: OfficeArtRecordHeader rh; qint32 xLeft; qint32 yTop; qint32 xRight; qint32 yBottom; OfficeArtFSPGR(void* /*dummy*/ = 0) {} }; class OfficeArtFSP : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 spid; bool fGroup; bool fChild; bool fPatriarch; bool fDeleted; bool fOleShape; bool fHaveMaster; bool fFlipH; bool fFlipV; bool fConnector; bool fHaveAnchor; bool fBackground; bool fHaveSpt; quint32 unused1; OfficeArtFSP(void* /*dummy*/ = 0) {} }; class OfficeArtFOPT : public StreamOffset { public: OfficeArtRecordHeader rh; QList fopt; QByteArray complexData; OfficeArtFOPT(void* /*dummy*/ = 0) {} }; class OfficeArtSecondaryFOPT : public StreamOffset { public: OfficeArtRecordHeader rh; QList fopt; QByteArray complexData; OfficeArtSecondaryFOPT(void* /*dummy*/ = 0) {} }; class OfficeArtTertiaryFOPT : public StreamOffset { public: OfficeArtRecordHeader rh; QList fopt; QByteArray complexData; OfficeArtTertiaryFOPT(void* /*dummy*/ = 0) {} }; class MSOPATHINFO : public StreamOffset { public: quint8 type; quint16 segments; MSOPATHINFO(void* /*dummy*/ = 0) {} }; class FixedPoint : public StreamOffset { public: quint16 fractional; qint16 integral; FixedPoint(void* /*dummy*/ = 0) {} }; class PVertices_complex : public StreamOffset { public: quint16 nElems; quint16 nElemsAlloc; quint16 cbElem; QByteArray data; PVertices_complex(void* /*dummy*/ = 0) {} }; class PSegmentInfo_complex : public StreamOffset { public: quint16 nElems; quint16 nElemsAlloc; quint16 cbElem; QByteArray data; PSegmentInfo_complex(void* /*dummy*/ = 0) {} }; class FillShadeColors_complex : public StreamOffset { public: quint16 nElems; quint16 nElemsAlloc; quint16 cbElem; QByteArray data; FillShadeColors_complex(void* /*dummy*/ = 0) {} }; class PWrapPolygonVertices_complex : public StreamOffset { public: quint16 nElems; quint16 nElemsAlloc; quint16 cbElem; QByteArray data; PWrapPolygonVertices_complex(void* /*dummy*/ = 0) {} }; class OfficeArtCOLORREF : public StreamOffset { public: quint8 red; quint8 green; quint8 blue; bool fPaletteIndex; bool fPaletteRGB; bool fSystemRGB; bool fSchemeIndex; bool fSysIndex; bool unused1; bool unused2; bool unused3; OfficeArtCOLORREF(void* /*dummy*/ = 0) {} }; class OfficeArtChildAnchor : public StreamOffset { public: OfficeArtRecordHeader rh; qint32 xLeft; qint32 yTop; qint32 xRight; qint32 yBottom; OfficeArtChildAnchor(void* /*dummy*/ = 0) {} }; class DocOfficeArtClientAnchor : public StreamOffset { public: OfficeArtRecordHeader rh; qint32 clientAnchor; DocOfficeArtClientAnchor(void* /*dummy*/ = 0) {} }; class XlsOfficeArtClientAnchor : public StreamOffset { public: bool _has_width; bool _has_height; bool _has_colL; bool _has_dxL; bool _has_rwT; bool _has_dyT; bool _has_colR; bool _has_dxR; bool _has_rwB; bool _has_dyB; OfficeArtRecordHeader rh; bool fMove; bool fSize; quint16 unused; qint32 width; qint32 height; quint16 colL; qint16 dxL; quint16 rwT; qint16 dyT; quint16 colR; qint16 dxR; quint16 rwB; qint16 dyB; XlsOfficeArtClientAnchor(void* /*dummy*/ = 0) {} }; class OfficeArtFPSPL : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 spid; bool reserved1; bool fLast; OfficeArtFPSPL(void* /*dummy*/ = 0) {} }; class RectStruct : public StreamOffset { public: qint32 top; qint32 left; qint32 right; qint32 bottom; RectStruct(void* /*dummy*/ = 0) {} }; class SmallRectStruct : public StreamOffset { public: qint16 top; qint16 left; qint16 right; qint16 bottom; SmallRectStruct(void* /*dummy*/ = 0) {} }; class DocOfficeArtClientData : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 clientData; DocOfficeArtClientData(void* /*dummy*/ = 0) {} }; class XlsOfficeArtClientData : public StreamOffset { public: OfficeArtRecordHeader rh; XlsOfficeArtClientData(void* /*dummy*/ = 0) {} }; class ShapeFlagsAtom : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ShapeFlagsAtom(void* /*dummy*/ = 0) {} }; class ShapeFlags10Atom : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; ShapeFlags10Atom(void* /*dummy*/ = 0) {} }; class ExObjRefAtom : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 exObjIdRef; ExObjRefAtom(void* /*dummy*/ = 0) {} }; class AnimationInfoAtom : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; AnimationInfoAtom(void* /*dummy*/ = 0) {} }; class SoundContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; SoundContainer(void* /*dummy*/ = 0) {} }; class InteractiveInfoAtom : public StreamOffset { public: RecordHeader rh; quint32 soundIdRef; quint32 exHyperlinkIdRef; quint8 action; quint8 oleVerb; quint8 jump; bool fAnimated; bool fStopSound; bool fCustomSoundReturn; bool fVisited; quint8 reserved; quint8 hyperlinkType; QByteArray unused; InteractiveInfoAtom(void* /*dummy*/ = 0) {} }; class MacroNameAtom : public StreamOffset { public: RecordHeader rh; QByteArray macroName; MacroNameAtom(void* /*dummy*/ = 0) {} }; class PlaceholderAtom : public StreamOffset { public: OfficeArtRecordHeader rh; qint32 position; quint8 placementId; quint8 size; quint16 unused; PlaceholderAtom(void* /*dummy*/ = 0) {} }; class RecolorInfoAtom : public StreamOffset { public: OfficeArtRecordHeader rh; QByteArray todo; RecolorInfoAtom(void* /*dummy*/ = 0) {} }; class OutlineTextRefAtom : public StreamOffset { public: OfficeArtRecordHeader rh; qint32 index; OutlineTextRefAtom(void* /*dummy*/ = 0) {} }; class ShapeProgsTagContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgChildRec; ShapeProgsTagContainer(void* /*dummy*/ = 0) {} }; class PP9ShapeBinaryTagExtension : public StreamOffset { public: OfficeArtRecordHeader rh; QVector tagName; RecordHeader rhData; StyleTextProp9Atom styleTextProp9Atom; PP9ShapeBinaryTagExtension(void* /*dummy*/ = 0) {} }; class PP10ShapeBinaryTagExtension : public StreamOffset { public: OfficeArtRecordHeader rh; QVector tagName; RecordHeader rhData; QByteArray todo; PP10ShapeBinaryTagExtension(void* /*dummy*/ = 0) {} }; class PP11ShapeBinaryTagExtension : public StreamOffset { public: OfficeArtRecordHeader rh; QVector tagName; RecordHeader rhData; QByteArray todo; PP11ShapeBinaryTagExtension(void* /*dummy*/ = 0) {} }; class RoundTripNewPlaceHolderId12Atom : public StreamOffset { public: OfficeArtRecordHeader rh; quint8 newPlaceHolderId; RoundTripNewPlaceHolderId12Atom(void* /*dummy*/ = 0) {} }; class RoundTripShapeId12Atom : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 shapeId; RoundTripShapeId12Atom(void* /*dummy*/ = 0) {} }; class RoundTripHFPlaceholder12Atom : public StreamOffset { public: OfficeArtRecordHeader rh; quint8 placeHolderId; RoundTripHFPlaceholder12Atom(void* /*dummy*/ = 0) {} }; class RoundTripShapeCheckSumForCustomLayouts12Atom : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 shapeCheckSum; quint32 textCheckSum; QByteArray unknown; RoundTripShapeCheckSumForCustomLayouts12Atom(void* /*dummy*/ = 0) {} }; class XlsOfficeArtClientTextBox : public StreamOffset { public: OfficeArtRecordHeader rh; XlsOfficeArtClientTextBox(void* /*dummy*/ = 0) {} }; class DocOfficeArtClientTextBox : public StreamOffset { public: OfficeArtRecordHeader rh; quint32 clientTextBox; DocOfficeArtClientTextBox(void* /*dummy*/ = 0) {} }; class PptOfficeArtClientTextBox : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgChildRec; PptOfficeArtClientTextBox(void* /*dummy*/ = 0) {} }; class OfficeArtIDCL : public StreamOffset { public: quint32 dgid; quint32 cspidCur; OfficeArtIDCL(void* /*dummy*/ = 0) {} }; class OfficeArtFOPTEOPID : public StreamOffset { public: quint16 opid; bool fBid; bool fComplex; OfficeArtFOPTEOPID(void* /*dummy*/ = 0) {} }; class OfficeArtColorMRUContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList rgmsocr; OfficeArtColorMRUContainer(void* /*dummy*/ = 0) {} }; class MSOCR : public StreamOffset { public: quint8 red; quint8 green; quint8 blue; quint8 unused1; bool fSchemeIndex; quint8 unused2; MSOCR(void* /*dummy*/ = 0) {} }; class OfficeArtSplitMenuColorContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QList smca; OfficeArtSplitMenuColorContainer(void* /*dummy*/ = 0) {} }; class todo : public StreamOffset { public: RecordHeader rh; QByteArray anon; todo(void* /*dummy*/ = 0) {} }; class FibBase : public StreamOffset { public: quint16 wIdent; quint16 nFib; quint16 unused; quint16 lid; quint16 pnNext; bool fDot; bool fGlsy; bool fComplex; bool fHasPic; quint8 cQuickSaves; bool fEncrypted; bool fWhichTblStm; bool fReadOnlyRecommended; bool fWriteReservation; bool fExtChar; bool fLoadOverride; bool fFarEast; bool fObfuscated; quint16 nFibBack; quint32 IKey; quint8 envr; bool fMac; bool fEmptySpecial; bool fLoadOverridePage; bool reserved1; bool reserved2; quint8 fSpare0; quint16 reserved3; quint16 reserved4; quint32 reserved5; quint32 reserved6; FibBase(void* /*dummy*/ = 0) {} }; class FibRgW97 : public StreamOffset { public: quint16 reserved1; quint16 reserved2; quint16 reserved3; quint16 reserved4; quint16 reserved5; quint16 reserved6; quint16 reserved7; quint16 reserved8; quint16 reserved9; quint16 reserved10; quint16 reserved11; quint16 reserved12; quint16 reserved13; quint16 lidFE; FibRgW97(void* /*dummy*/ = 0) {} }; class FibRgLw97 : public StreamOffset { public: quint32 cbMac; quint32 reserved1; quint32 reserved2; qint32 ccpText; qint32 ccpFtn; qint32 ccpHdd; quint32 reserved3; qint32 ccpAtn; qint32 ccpEdn; qint32 ccpTxbx; qint32 ccpHdrTxbx; quint32 reserved4; quint32 reserved5; quint32 reserved6; quint32 reserved7; quint32 reserved8; quint32 reserved9; quint32 reserved10; quint32 reserved11; quint32 reserved12; quint32 reserved13; quint32 reserved14; FibRgLw97(void* /*dummy*/ = 0) {} }; class FibRgFcLcb97 : public StreamOffset { public: quint32 fcStshfOrig; quint32 lcbStshfOrig; quint32 fcStshf; quint32 lcbStshf; quint32 fcPlcffndRef; quint32 lcbPlcffndRef; quint32 fcPlcffndTxt; quint32 lcbPlcffndTxt; quint32 fcPlcfandRef; quint32 lcbPlcfandRef; quint32 fcPlcfandTxt; quint32 lcbPlcfandTxt; quint32 fcPlcfSed; quint32 lcbPlcfSed; quint32 fcPlcPad; quint32 lcbPlcPad; quint32 fcPlcfPhe; quint32 lcbPlcfPhe; quint32 fcSttbfGlsy; quint32 lcbSttbfGlsy; quint32 fcPlcfGlsy; quint32 lcbPlcfGlsy; quint32 fcPlcfHdd; quint32 lcbPlcfHdd; quint32 fcPlcfBteChpx; quint32 lcbPlcfBteChpx; quint32 fcPlcfBtePapx; quint32 lcbPlcfBtePapx; quint32 fcPlcfSea; quint32 lcbPlcfSea; quint32 fcSttbfFfn; quint32 lcbSttbfFfn; quint32 fcPlcfFldMom; quint32 lcbPlcfFldMom; quint32 fcPlcfFldHdr; quint32 lcbPlcfFldHdr; quint32 fcPlcfFldFtn; quint32 lcbPlcfFldFtn; quint32 fcPlcfFldAtn; quint32 lcbPlcfFldAtn; quint32 fcPlcfFldMcr; quint32 lcbPlcfFldMcr; quint32 fcSttbfBkmk; quint32 lcbSttbfBkmk; quint32 fcPlcfBkf; quint32 lcbPlcfBkf; quint32 fcPlcfBkl; quint32 lcbPlcfBkl; quint32 fcCmds; quint32 lcbCmds; quint32 fcUnused1; quint32 lcbUnused1; quint32 fcSttbfMcr; quint32 lcbSttbfMcr; quint32 fcPrDrvr; quint32 lcbPrDrvr; quint32 fcPrEnvPort; quint32 lcbPrEnvPort; quint32 fcPrEnvLand; quint32 lcbPrEnvLand; quint32 fcWss; quint32 lcbWss; quint32 fcDop; quint32 lcbDop; quint32 fcSttbfAssoc; quint32 lcbSttbfAssoc; quint32 fcClx; quint32 lcbClx; quint32 fcPlcfPgdFtn; quint32 lcbPlcfPgdFtn; quint32 fcAutosaveSource; quint32 lcbAutosaveSource; quint32 fcGrpXstAtnOwners; quint32 lcbGrpXstAtnOwners; quint32 fcSttbfAtnBkmk; quint32 lcbSttbfAtnBkmk; quint32 fcUnused2; quint32 lcbUnused2; quint32 fcUnused3; quint32 lcbUnused3; quint32 fcPlcSpaMom; quint32 lcbPlcSpaMom; quint32 fcPlcSpaHdr; quint32 lcbPlcSpaHdr; quint32 fcPlcfAtnBkf; quint32 lcbPlcfAtnBkf; quint32 fcPlcfAtnBkl; quint32 lcbPlcfAtnBkl; quint32 fcPms; quint32 lcbPms; quint32 fcFormFldSttbs; quint32 lcbFormFldSttbs; quint32 fcPlcfendRef; quint32 lcbPlcfendRef; quint32 fcPlcfendTxt; quint32 lcbPlcfendTxt; quint32 fcPlcfFldEdn; quint32 lcbPlcfFldEdn; quint32 fcUnused4; quint32 lcbUnused4; quint32 fcDggInfo; quint32 lcbDggInfo; quint32 fcSttbfRMark; quint32 lcbSttbfRMark; quint32 fcSttbfCaption; quint32 lcbSttbfCaption; quint32 fcSttbfAutoCaption; quint32 lcbSttbfAutoCaption; quint32 fcPlcfWkb; quint32 lcbPlcfWkb; quint32 fcPlcfSpl; quint32 lcbPlcfSpl; quint32 fcPlcftxbxTxt; quint32 lcbPlcftxbxTxt; quint32 fcPlcfFldTxbx; quint32 lcbPlcfFldTxbx; quint32 fcPlcfHdrtxbxTxt; quint32 lcbPlcfHdrtxbxTxt; quint32 fcPlcffldHdrTxbx; quint32 lcbPlcffldHdrTxbx; quint32 fcStwUser; quint32 lcbStwUser; quint32 fcSttbTtmbd; quint32 lcbSttbTtmbd; quint32 fcCookieData; quint32 lcbCookieData; quint32 fcPgdMotherOldOld; quint32 lcbPgdMotherOldOld; quint32 fcBkdMotherOldOld; quint32 lcbBkdMotherOldOld; quint32 fcPgdFtnOldOld; quint32 lcbPgdFtnOldOld; quint32 fcBkdFtnOldOld; quint32 lcbBkdFtnOldOld; quint32 fcPgdEdnOldOld; quint32 lcbPgdEdnOldOld; quint32 fcBkdEdnOldOld; quint32 lcbBkdEdnOldOld; quint32 fcSttbfIntlFld; quint32 lcbSttbfIntlFld; quint32 fcRouteSlip; quint32 lcbRouteSlip; quint32 fcSttbSavedBy; quint32 lcbSttbSavedBy; quint32 fcSttbFnm; quint32 lcbSttbFnm; quint32 fcPlfLst; quint32 lcbPlfLst; quint32 fcPlfLfo; quint32 lcbPlfLfo; quint32 fcPlcfTxbxBkd; quint32 lcbPlcfTxbxBkd; quint32 fcPlcfTxbxHdrBkd; quint32 lcbPlcfTxbxHdrBkd; quint32 fcDocUndoWord9; quint32 lcbDocUndoWord9; quint32 fcRgbUse; quint32 lcbRgbUse; quint32 fcUsp; quint32 lcbUsp; quint32 fcUskf; quint32 lcbUskf; quint32 fcPlcupcRgbUse; quint32 lcbPlcupcRgbUse; quint32 fcPlcupcUsp; quint32 lcbPlcupcUsp; quint32 fcSttbGlsyStyle; quint32 lcbSttbGlsyStyle; quint32 fcPlgosl; quint32 lcbPlgosl; quint32 fcPlcocx; quint32 lcbPlcocx; quint32 fcPlcfBteLvc; quint32 lcbPlcfBteLvc; quint32 dwLowDateTime; quint32 dwHighDateTime; quint32 fcPlcfLvcPre10; quint32 lcbPlcfLvcPre10; quint32 fcPlcfAsumy; quint32 lcbPlcfAsumy; quint32 fcPlcfGram; quint32 lcbPlcfGram; quint32 fcSttbListNames; quint32 lcbSttbListNames; quint32 fcSttbfUssr; quint32 lcbSttbfUssr; FibRgFcLcb97(void* /*dummy*/ = 0) {} }; class FibRgFcLcb2000 : public StreamOffset { public: quint32 fcPlcfTch; quint32 lcbPlcfTch; quint32 fcRmdThreading; quint32 lcbRmdThreading; quint32 fcMid; quint32 lcbMid; quint32 fcSttbRgtplc; quint32 lcbSttbRgtplc; quint32 fcMsoEnvelope; quint32 lcbMsoEnvelope; quint32 fcPlcfLad; quint32 lcbPlcfLad; quint32 fcRgDofr; quint32 lcbRgDofr; quint32 fcPlcosl; quint32 lcbPlcosl; quint32 fcPlcfCookieOld; quint32 lcbPlcfCookieOld; quint32 fcPgdMotherOld; quint32 lcbPgdMotherOld; quint32 fcBkdMotherOld; quint32 lcbBkdMotherOld; quint32 fcPgdFtnOld; quint32 lcbPgdFtnOld; quint32 fcBkdFtnOld; quint32 lcbBkdFtnOld; quint32 fcPgdEdnOld; quint32 lcbPgdEdnOld; quint32 fcBkdEdnOld; quint32 lcbBkdEdnOld; FibRgFcLcb2000(void* /*dummy*/ = 0) {} }; class FibRgFcLcb2002 : public StreamOffset { public: quint32 fcUnused1; quint32 lcbUnused1; quint32 fcPlcfPgp; quint32 lcbPlcfPgp; quint32 fcPlcfuim; quint32 lcbPlcfuim; quint32 fcPlfguidUim; quint32 lcbPlfguidUim; quint32 fcAtrdExtra; quint32 lcbAtrdExtra; quint32 fcPlrsid; quint32 lcbPlrsid; quint32 fcSttbfBkmkFactoid; quint32 lcbSttbfBkmkFactoid; quint32 fcPlcfBkfFactoid; quint32 lcbPlcfBkfFactoid; quint32 fcPlcfcookie; quint32 lcbPlcfcookie; quint32 fcPlcfBklFactoid; quint32 lcbPlcfBklFactoid; quint32 fcFactoidData; quint32 lcbFactoidData; quint32 fcDocUndo; quint32 lcbDocUndo; quint32 fcSttbfBkmkFcc; quint32 lcbSttbfBkmkFcc; quint32 fcPlcfBkfFcc; quint32 lcbPlcfBkfFcc; quint32 fcPlcfBklFcc; quint32 lcbPlcfBklFcc; quint32 fcSttbfbkmkBPRepairs; quint32 lcbSttbfbkmkBPRepairs; quint32 fcPlcfbkfBPRepairs; quint32 lcbPlcfbkfBPRepairs; quint32 fcPlcfbklBPRepairs; quint32 lcbPlcfbklBPRepairs; quint32 fcPmsNew; quint32 lcbPmsNew; quint32 fcODSO; quint32 lcbODSO; quint32 fcPlcfpmiOldXP; quint32 lcbPlcfpmiOldXP; quint32 fcPlcfpmiNewXP; quint32 lcbPlcfpmiNewXP; quint32 fcPlcfpmiMixedXP; quint32 lcbPlcfpmiMixedXP; quint32 fcUnused2; quint32 lcbUnused2; quint32 fcPlcffactoid; quint32 lcbPlcffactoid; FibRgFcLcb2002(void* /*dummy*/ = 0) {} }; class LPStshi : public StreamOffset { public: quint16 cbSthi; QByteArray stshi; LPStshi(void* /*dummy*/ = 0) {} }; class LPStd : public StreamOffset { public: bool _has_padding; quint16 cbStd; QByteArray std; quint8 padding; LPStd(void* /*dummy*/ = 0) {} }; class PlcfSed : public StreamOffset { public: QVector aCP; QList aSed; PlcfSed(void* /*dummy*/ = 0) {} }; class Sed : public StreamOffset { public: quint16 fn; qint32 fcSepx; quint16 fnMpr; quint32 fcMpr; Sed(void* /*dummy*/ = 0) {} }; class Plcfhdd : public StreamOffset { public: QVector aCP; Plcfhdd(void* /*dummy*/ = 0) {} }; class PlcBteChpx : public StreamOffset { public: QVector aCP; QVector aPnBteChpx; PlcBteChpx(void* /*dummy*/ = 0) {} }; class PlcfBtePapx : public StreamOffset { public: QVector aCP; QVector aPnBteChpx; PlcfBtePapx(void* /*dummy*/ = 0) {} }; class Tcg : public StreamOffset { public: quint8 nTcgVer; QByteArray todo; Tcg(void* /*dummy*/ = 0) {} }; class PrcData : public StreamOffset { public: qint16 cbGrpprl; QList GrpPrl; PrcData(void* /*dummy*/ = 0) {} }; class Sprm : public StreamOffset { public: quint16 ispmd; bool fSpec; quint8 sgc; quint8 spra; Sprm(void* /*dummy*/ = 0) {} }; class Pcdt : public StreamOffset { public: quint8 clxt; quint32 lcb; QList PlcPcd; Pcdt(void* /*dummy*/ = 0) {} }; class FCompressed : public StreamOffset { public: quint32 fc; bool fCompressed; bool r1; FCompressed(void* /*dummy*/ = 0) {} }; class Prm0 : public StreamOffset { public: bool fComplex; quint8 isprm; quint8 val; Prm0(void* /*dummy*/ = 0) {} }; class Prm1 : public StreamOffset { public: bool fComplex; quint16 igrpprl; Prm1(void* /*dummy*/ = 0) {} }; class SttbfFfn : public StreamOffset { public: quint16 cData; quint16 cbExtra; QList data; SttbfFfn(void* /*dummy*/ = 0) {} }; class SttbfFfnEntry : public StreamOffset { public: quint8 cchData; QByteArray Data; SttbfFfnEntry(void* /*dummy*/ = 0) {} }; class CodePageString : public StreamOffset { public: quint32 size; QByteArray characters; CodePageString(void* /*dummy*/ = 0) {} }; class FILETIME : public StreamOffset { public: quint32 dwLowDateTime; quint32 dwHighDateTime; FILETIME(void* /*dummy*/ = 0) {} }; class ClipboardData : public StreamOffset { public: quint32 size; quint32 format; QByteArray data; ClipboardData(void* /*dummy*/ = 0) {} }; class PropertyIdentifierAndOffset : public StreamOffset { public: quint32 propertyIdentifier; quint32 offset; PropertyIdentifierAndOffset(void* /*dummy*/ = 0) {} }; class TypedPropertyValue : public StreamOffset { public: bool _has_vt_I2; bool _has_paddingI2; bool _has_vg_ERROR; quint16 type; quint16 padding; quint16 vt_I2; quint16 paddingI2; quint32 vg_ERROR; QSharedPointer vt_lpstr; QSharedPointer vg_FILETIME; QSharedPointer vg_CF; TypedPropertyValue(void* /*dummy*/ = 0) {} }; class PropertySet : public StreamOffset { public: quint32 size; quint32 numProperties; QList propertyIdentifierAndOffset; QList property; PropertySet(void* /*dummy*/ = 0) {} }; class PropertySetStream : public StreamOffset { public: bool _has_fmtID1; bool _has_offset1; quint16 byteOrder; quint16 version; quint32 systemIdentifier; QByteArray clsID; quint32 numPropertySets; QByteArray fmtID0; quint32 offset0; QByteArray fmtID1; quint32 offset1; PropertySet propertySet1; QSharedPointer propertySet2; QList padding; PropertySetStream(void* /*dummy*/ = 0) {} }; class SummaryInformationPropertySetStream : public StreamOffset { public: PropertySetStream propertySet; SummaryInformationPropertySetStream(void* /*dummy*/ = 0) {} }; class DocumentSummaryInformationPropertySetStream : public StreamOffset { public: PropertySetStream propertySet; DocumentSummaryInformationPropertySetStream(void* /*dummy*/ = 0) {} }; class PicturesStream : public StreamOffset { public: OfficeArtBStoreDelay anon1; QList trailing; PicturesStream(void* /*dummy*/ = 0) {} }; class OfficeArtMetafileHeader : public StreamOffset { public: quint32 cbSize; RECT rcBounds; POINT ptSize; quint32 cbsave; quint8 compression; quint8 filter; OfficeArtMetafileHeader(void* /*dummy*/ = 0) {} }; class SoundCollectionContainer : public StreamOffset { public: RecordHeader rh; SoundCollectionAtom soundCollectionAtom; QList rgSoundContainer; SoundCollectionContainer(void* /*dummy*/ = 0) {} }; class SlideHeadersFootersContainer : public StreamOffset { public: RecordHeader rh; HeadersFootersAtom hfAtom; QSharedPointer userDateAtom; QSharedPointer footerAtom; SlideHeadersFootersContainer(void* /*dummy*/ = 0) {} }; class NotesHeadersFootersContainer : public StreamOffset { public: RecordHeader rh; HeadersFootersAtom hfAtom; QSharedPointer userDateAtom; QSharedPointer headerAtom; QSharedPointer footerAtom; NotesHeadersFootersContainer(void* /*dummy*/ = 0) {} }; class ScalingStruct : public StreamOffset { public: RatioStruct x; RatioStruct y; ScalingStruct(void* /*dummy*/ = 0) {} }; class TextPFException9 : public StreamOffset { public: bool _has_bulletBlipRef; bool _has_fBulletHasAutoNumber; PFMasks masks; quint16 bulletBlipRef; quint16 fBulletHasAutoNumber; QSharedPointer bulletAutoNumberScheme; TextPFException9(void* /*dummy*/ = 0) {} }; class TextCFException9 : public StreamOffset { public: bool _has_pp10runid; bool _has_unuseda; bool _has_unusedb; CFMasks masks; quint8 pp10runid; quint32 unuseda; quint8 unusedb; TextCFException9(void* /*dummy*/ = 0) {} }; class TextDefaults9Atom : public StreamOffset { public: RecordHeader rh; TextCFException9 cf9; TextPFException9 pf9; TextDefaults9Atom(void* /*dummy*/ = 0) {} }; class Kinsoku9Container : public StreamOffset { public: RecordHeader rh; Kinsoku9Atom kinsoku9Atom; QSharedPointer kinsokuLeadingAtom; QSharedPointer kinsokuFollowingAtom; Kinsoku9Container(void* /*dummy*/ = 0) {} }; class OutlineTextProps9Entry : public StreamOffset { public: OutlineTextPropsHeaderExAtom outlineTextHeaderAtom; StyleTextProp9Atom styleTextProp9Atom; OutlineTextProps9Entry(void* /*dummy*/ = 0) {} }; class TextCFException10 : public StreamOffset { public: bool _has_newEAFontRef; bool _has_csFontRef; bool _has_pp11ext; CFMasks masks; quint16 newEAFontRef; quint16 csFontRef; quint32 pp11ext; TextCFException10(void* /*dummy*/ = 0) {} }; class TextDefaults10Atom : public StreamOffset { public: RecordHeader rh; TextCFException10 cf10; TextDefaults10Atom(void* /*dummy*/ = 0) {} }; class CommentIndex10Container : public StreamOffset { public: RecordHeader rh; QSharedPointer authorNameAtom; QSharedPointer authorIndexAtom; CommentIndex10Container(void* /*dummy*/ = 0) {} }; class OutlineTextProps10Entry : public StreamOffset { public: OutlineTextPropsHeaderExAtom outlineTextHeaderAtom; StyleTextProp10Atom styleTextProp10Atom; OutlineTextProps10Entry(void* /*dummy*/ = 0) {} }; class PP11DocBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QByteArray tagName; RecordHeader rhData; SmartTagStore11Container smartTagStore11; OutlineTextProps11Container outlineTextProps; PP11DocBinaryTagExtension(void* /*dummy*/ = 0) {} }; class UnknownBinaryTag : public StreamOffset { public: TagNameAtom tagNameAtom; BinaryTagDataBlob tagData; UnknownBinaryTag(void* /*dummy*/ = 0) {} }; class NoZoomViewInfoAtom : public StreamOffset { public: RecordHeader rh; ScalingStruct curScale; QByteArray unused1; PointStruct origin; quint8 unused2; quint8 fDraftMode; quint16 unused3; NoZoomViewInfoAtom(void* /*dummy*/ = 0) {} }; class VBAInfoContainer : public StreamOffset { public: RecordHeader rh; VBAInfoAtom vbaInfoAtom; VBAInfoContainer(void* /*dummy*/ = 0) {} }; class NormalViewSetInfoAtom : public StreamOffset { public: RecordHeader rh; RatioStruct leftPortion; RatioStruct topPortion; quint8 vertBarState; quint8 horizBarState; quint8 fPreferSingleSet; bool fHideThumbnails; bool fBarSnapped; quint8 reserved; NormalViewSetInfoAtom(void* /*dummy*/ = 0) {} }; class TextContainerMeta : public StreamOffset { public: class choice242357012 : public QSharedPointer { public: choice242357012() {} explicit choice242357012(SlideNumberMCAtom* a) :QSharedPointer(a) {} explicit choice242357012(DateTimeMCAtom* a) :QSharedPointer(a) {} explicit choice242357012(GenericDateMCAtom* a) :QSharedPointer(a) {} explicit choice242357012(HeaderMCAtom* a) :QSharedPointer(a) {} explicit choice242357012(FooterMCAtom* a) :QSharedPointer(a) {} explicit choice242357012(RTFDateTimeMCAtom* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice242357012 meta; TextContainerMeta(void* /*dummy*/ = 0) {} }; class SlidePersistAtom : public StreamOffset { public: RecordHeader rh; quint32 persistIdRef; bool reserved1; bool fShouldCollapse; bool fNonOutlineData; quint8 reserved2; quint8 reserved3; quint16 reserved4; qint32 cTexts; SlideId slideId; quint32 reserved5; SlidePersistAtom(void* /*dummy*/ = 0) {} }; class TextRuler : public StreamOffset { public: bool _has_cLevels; bool _has_defaultTabSize; bool _has_leftMargin1; bool _has_indent1; bool _has_leftMargin2; bool _has_indent2; bool _has_leftMargin3; bool _has_indent3; bool _has_leftMargin4; bool _has_indent4; bool _has_leftMargin5; bool _has_indent5; bool fDefaultTabSize; bool fCLevels; bool fTabStops; bool fLeftMargin1; bool fLeftMargin2; bool fLeftMargin3; bool fLeftMargin4; bool fLeftMargin5; bool fIndent1; bool fIndent2; bool fIndent3; bool fIndent4; bool fIndent5; quint8 reserved1; quint16 reserved2; qint16 cLevels; quint16 defaultTabSize; QSharedPointer tabs; quint16 leftMargin1; quint16 indent1; quint16 leftMargin2; quint16 indent2; quint16 leftMargin3; quint16 indent3; quint16 leftMargin4; quint16 indent4; quint16 leftMargin5; quint16 indent5; TextRuler(void* /*dummy*/ = 0) {} }; class TextPFException : public StreamOffset { public: bool _has_bulletChar; bool _has_bulletFontRef; bool _has_bulletSize; bool _has_textAlignment; bool _has_lineSpacing; bool _has_spaceBefore; bool _has_spaceAfter; bool _has_leftMargin; bool _has_indent; bool _has_defaultTabSize; bool _has_fontAlign; bool _has_textDirection; PFMasks masks; QSharedPointer bulletFlags; qint16 bulletChar; quint16 bulletFontRef; qint16 bulletSize; QSharedPointer bulletColor; quint16 textAlignment; qint16 lineSpacing; qint16 spaceBefore; qint16 spaceAfter; quint16 leftMargin; quint16 indent; quint16 defaultTabSize; QSharedPointer tabStops; quint16 fontAlign; QSharedPointer wrapFlags; quint16 textDirection; TextPFException(void* /*dummy*/ = 0) {} }; class TextCFException : public StreamOffset { public: bool _has_fontRef; bool _has_oldEAFontRef; bool _has_ansiFontRef; bool _has_symbolFontRef; bool _has_fontSize; bool _has_position; CFMasks masks; QSharedPointer fontStyle; quint16 fontRef; quint16 oldEAFontRef; quint16 ansiFontRef; quint16 symbolFontRef; quint16 fontSize; QSharedPointer color; qint16 position; TextCFException(void* /*dummy*/ = 0) {} }; class FontCollectionEntry : public StreamOffset { public: FontEntityAtom fontEntityAtom; QSharedPointer fontEmbedData1; QSharedPointer fontEmbedData2; QSharedPointer fontEmbedData3; QSharedPointer fontEmbedData4; FontCollectionEntry(void* /*dummy*/ = 0) {} }; class KinsokuContainer : public StreamOffset { public: RecordHeader rh; KinsokuAtom kinsokuAtom; QSharedPointer kinsokuLeadingAtom; QSharedPointer kinsokuFollowingAtom; KinsokuContainer(void* /*dummy*/ = 0) {} }; class TextSIException : public StreamOffset { public: bool _has_spellInfo; bool _has_lid; bool _has_altLid; bool _has_bidi; bool _has_pp10runid; bool _has_reserved3a; bool _has_reserved3b; bool _has_reserved3bc; bool _has_grammarError; bool spell; bool lang; bool altLang; bool unused1; bool unused2; bool fPp10ext; bool fBidi; bool unused3; bool reserved1; bool smartTag; quint8 reserved2a; quint32 reserved2b; quint16 spellInfo; quint16 lid; quint16 altLid; qint16 bidi; quint8 pp10runid; quint8 reserved3a; quint16 reserved3b; quint8 reserved3bc; bool grammarError; QSharedPointer smartTags; TextSIException(void* /*dummy*/ = 0) {} }; class TextMasterStyleLevel : public StreamOffset { public: TextPFException pf; TextCFException cf; TextMasterStyleLevel(void* /*dummy*/ = 0) {} }; class DocumentAtom : public StreamOffset { public: RecordHeader rh; PointStruct slideSize; PointStruct notesSize; RatioStruct serverZoom; quint32 notesMasterPersistIdRef; quint32 handoutMasterPersistIdRef; quint16 firstSlideNumber; quint16 slideSizeType; quint8 fSaveWithFonts; quint8 fOmitTitlePlace; quint8 fRightToLeft; quint8 fShowComments; DocumentAtom(void* /*dummy*/ = 0) {} }; class SlideTime10Atom : public StreamOffset { public: RecordHeader rh; FILETIME fileTime; SlideTime10Atom(void* /*dummy*/ = 0) {} }; class PP12SlideBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QVector tagName; RecordHeader rhData; QSharedPointer roundTripHeaderFooterDefaultsAtom; PP12SlideBinaryTagExtension(void* /*dummy*/ = 0) {} }; class ProgStringTagContainer : public StreamOffset { public: RecordHeader rh; TagNameAtom tagNameAtom; QSharedPointer tagValueAtom; ProgStringTagContainer(void* /*dummy*/ = 0) {} }; class NotesAtom : public StreamOffset { public: RecordHeader rh; quint32 slideIdRef; SlideFlags slideFlags; quint16 unused; NotesAtom(void* /*dummy*/ = 0) {} }; class ExObjListContainer : public StreamOffset { public: RecordHeader rh; ExObjListAtom exObjListAtom; QList rgChildRec; ExObjListContainer(void* /*dummy*/ = 0) {} }; class ExControlContainer : public StreamOffset { public: OfficeArtRecordHeader rh; ExControlAtom exControlAtom; ExOleObjAtom exOleObjAtom; QSharedPointer menuNameAtom; QSharedPointer progIdAtom; QSharedPointer clipboardNameAtom; QSharedPointer metafile; ExControlContainer(void* /*dummy*/ = 0) {} }; class ExHyperlinkContainer : public StreamOffset { public: OfficeArtRecordHeader rh; ExHyperlinkAtom exHyperlinkAtom; QSharedPointer friendlyNameAtom; QSharedPointer targetAtom; QSharedPointer locationAtom; ExHyperlinkContainer(void* /*dummy*/ = 0) {} }; class ExOleLinkContainer : public StreamOffset { public: RecordHeader rh; ExOleLinkAtom exOleLinkAtom; ExOleObjAtom exOleObjAtom; QSharedPointer menuNameAtom; QSharedPointer progIdAtom; QSharedPointer clipboardNameAtom; QSharedPointer metafile; ExOleLinkContainer(void* /*dummy*/ = 0) {} }; class ExOleEmbedContainer : public StreamOffset { public: RecordHeader rh; ExOleEmbedAtom exOleEmbedAtom; ExOleObjAtom exOleObjAtom; QSharedPointer menuNameAtom; QSharedPointer progIdAtom; QSharedPointer clipboardNameAtom; QSharedPointer metafile; ExOleEmbedContainer(void* /*dummy*/ = 0) {} }; class OfficeArtFDGGBlock : public StreamOffset { public: OfficeArtRecordHeader rh; OfficeArtFDGG head; QList Rgidcl; OfficeArtFDGGBlock(void* /*dummy*/ = 0) {} }; class OfficeArtSolverContainerFileBlock : public StreamOffset { public: class choice3062460075 : public QSharedPointer { public: choice3062460075() {} explicit choice3062460075(OfficeArtFConnectorRule* a) :QSharedPointer(a) {} explicit choice3062460075(OfficeArtFArcRule* a) :QSharedPointer(a) {} explicit choice3062460075(OfficeArtFCalloutRule* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice3062460075 anon; OfficeArtSolverContainerFileBlock(void* /*dummy*/ = 0) {} }; class Rotation : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint rotation; Rotation(void* /*dummy*/ = 0) {} }; class ProtectionBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fLockAgainstGrouping; bool fLockAdjustHandles; bool fLockText; bool fLockVertices; bool fLockCropping; bool fLockAgainstSelect; bool fLockPosition; bool fLockAspectRatio; bool fLockRotation; bool fLockAgainstUngrouping; quint8 unused6; bool fUsefLockAgainstGrouping; bool fUseLockAdjustHandles; bool fUseLockText; bool fUsefLockVertices; bool fUsefLockCropping; bool fUsefLockAgainstSelect; bool fUsefLockPosition; bool fUsefLockAspectRatio; bool fUsefLockRotation; bool fUsefLockAgainstUngrouping; quint8 unused2; ProtectionBooleanProperties(void* /*dummy*/ = 0) {} }; class ITxid : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 iTxid; ITxid(void* /*dummy*/ = 0) {} }; class DxTextLeft : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dxTextLeft; DxTextLeft(void* /*dummy*/ = 0) {} }; class DyTextTop : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dyTextTop; DyTextTop(void* /*dummy*/ = 0) {} }; class DxTextRight : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dxTextRight; DxTextRight(void* /*dummy*/ = 0) {} }; class DyTextBottom : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dyTextBottom; DyTextBottom(void* /*dummy*/ = 0) {} }; class WrapText : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 wrapText; WrapText(void* /*dummy*/ = 0) {} }; class AnchorText : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 anchorText; AnchorText(void* /*dummy*/ = 0) {} }; class TxflTextFlow : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 txflTextFlow; TxflTextFlow(void* /*dummy*/ = 0) {} }; class CdirFont : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 cdirFont; CdirFont(void* /*dummy*/ = 0) {} }; class HspNext : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 hspNext; HspNext(void* /*dummy*/ = 0) {} }; class Txdir : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 txdir; Txdir(void* /*dummy*/ = 0) {} }; class TextBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool unused1; bool fFitShapeToText; bool unused2; bool fAutoTextMargin; bool fSelectText; quint8 unused3a; quint8 unused3b; bool unused4; bool fUsefFitShapeToText; bool unused5; bool fUsefAutoTextMargin; bool fUsefSelectText; quint8 unused6a; quint8 unused6b; TextBooleanProperties(void* /*dummy*/ = 0) {} }; class CropFromTop : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint cropFromTop; CropFromTop(void* /*dummy*/ = 0) {} }; class CropFromBottom : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint cropFromBottom; CropFromBottom(void* /*dummy*/ = 0) {} }; class CropFromLeft : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint cropFromLeft; CropFromLeft(void* /*dummy*/ = 0) {} }; class CropFromRight : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint cropFromRight; CropFromRight(void* /*dummy*/ = 0) {} }; class Pib : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pib; Pib(void* /*dummy*/ = 0) {} }; class PibName : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pibName; PibName(void* /*dummy*/ = 0) {} }; class PibFlags : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pibFlags; PibFlags(void* /*dummy*/ = 0) {} }; class PictureTransparent : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF pictureTransparent; PictureTransparent(void* /*dummy*/ = 0) {} }; class PictureContrast : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 pictureContrast; PictureContrast(void* /*dummy*/ = 0) {} }; class PictureBrightness : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 pictureBrightness; PictureBrightness(void* /*dummy*/ = 0) {} }; class BlipBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fPictureActive; bool fPictureBiLevel; bool fPictureGray; bool fNoHitTestPicture; bool fLooping; bool fRewind; bool fPicturePreserveGrays; bool unused1a; quint8 unused1b; bool fUsefPictureActive; bool fUsefPictureBiLevel; bool fUsefPictureGray; bool fUsefNoHitTestPicture; bool fUsefLooping; bool fUsefRewind; bool fUsefPicturePreserveGrays; bool unused2a; quint8 unused2b; BlipBooleanProperties(void* /*dummy*/ = 0) {} }; class GeoLeft : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 geoLeft; GeoLeft(void* /*dummy*/ = 0) {} }; class GeoTop : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 geoTop; GeoTop(void* /*dummy*/ = 0) {} }; class GeoRight : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 geoRight; GeoRight(void* /*dummy*/ = 0) {} }; class GeoBottom : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 geoBottom; GeoBottom(void* /*dummy*/ = 0) {} }; class ShapePath : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 shapePath; ShapePath(void* /*dummy*/ = 0) {} }; class PVertices : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pVertices; PVertices(void* /*dummy*/ = 0) {} }; class PSegmentInfo : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pSegmentInfo; PSegmentInfo(void* /*dummy*/ = 0) {} }; class AdjustValue : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjustvalue; AdjustValue(void* /*dummy*/ = 0) {} }; class Adjust2Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust2value; Adjust2Value(void* /*dummy*/ = 0) {} }; class Adjust3Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust3value; Adjust3Value(void* /*dummy*/ = 0) {} }; class Adjust4Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust4value; Adjust4Value(void* /*dummy*/ = 0) {} }; class Adjust5Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust5value; Adjust5Value(void* /*dummy*/ = 0) {} }; class Adjust6Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust6value; Adjust6Value(void* /*dummy*/ = 0) {} }; class Adjust7Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust7value; Adjust7Value(void* /*dummy*/ = 0) {} }; class Adjust8Value : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 adjust8value; Adjust8Value(void* /*dummy*/ = 0) {} }; class GeometryBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fFillOk; bool fFillShadeShapeOK; bool fGtextOK; bool fLineOK; bool f3DOK; bool fShadowOK; bool unuseda; bool unusedb; quint8 unused2; bool fUsefFillOK; bool fUsefFillShadeShapeOK; bool fUsefGtextOK; bool fUsefLineOK; bool fUsef3DOK; bool fUsefShadowOK; bool unused3a; bool unused3b; quint8 unused4; GeometryBooleanProperties(void* /*dummy*/ = 0) {} }; class FillType : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 fillType; FillType(void* /*dummy*/ = 0) {} }; class FillColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF fillColor; FillColor(void* /*dummy*/ = 0) {} }; class FillOpacity : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillOpacity; FillOpacity(void* /*dummy*/ = 0) {} }; class FillBackColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF fillBackColor; FillBackColor(void* /*dummy*/ = 0) {} }; class FillBackOpacity : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillBackOpacity; FillBackOpacity(void* /*dummy*/ = 0) {} }; class FillCrMod : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF fillCrMod; FillCrMod(void* /*dummy*/ = 0) {} }; class FillBlip : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 fillBlip; FillBlip(void* /*dummy*/ = 0) {} }; class FillBlipName : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 fillBlipName; FillBlipName(void* /*dummy*/ = 0) {} }; class FillBlipFlags : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 fillBlipFlags; FillBlipFlags(void* /*dummy*/ = 0) {} }; class FillWidth : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillWidth; FillWidth(void* /*dummy*/ = 0) {} }; class FillHeight : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillHeight; FillHeight(void* /*dummy*/ = 0) {} }; class FillAngle : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillAngle; FillAngle(void* /*dummy*/ = 0) {} }; class FillFocus : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillFocus; FillFocus(void* /*dummy*/ = 0) {} }; class FillToLeft : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillToLeft; FillToLeft(void* /*dummy*/ = 0) {} }; class FillToTop : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillToTop; FillToTop(void* /*dummy*/ = 0) {} }; class FillToRight : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillToRight; FillToRight(void* /*dummy*/ = 0) {} }; class FillToBottom : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillToBottom; FillToBottom(void* /*dummy*/ = 0) {} }; class FillRectLeft : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillRectLeft; FillRectLeft(void* /*dummy*/ = 0) {} }; class FillRectTop : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillRectTop; FillRectTop(void* /*dummy*/ = 0) {} }; class FillRectRight : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillRectRight; FillRectRight(void* /*dummy*/ = 0) {} }; class FillRectBottom : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillRectBottom; FillRectBottom(void* /*dummy*/ = 0) {} }; class FillDztype : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillDztype; FillDztype(void* /*dummy*/ = 0) {} }; class FillShadePreset : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 fillShadePreset; FillShadePreset(void* /*dummy*/ = 0) {} }; class FillShadeColors : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 fillShadeColors; FillShadeColors(void* /*dummy*/ = 0) {} }; class FillOriginX : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillOriginX; FillOriginX(void* /*dummy*/ = 0) {} }; class FillOriginY : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillOriginY; FillOriginY(void* /*dummy*/ = 0) {} }; class FillShapeOriginX : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillShapeOriginX; FillShapeOriginX(void* /*dummy*/ = 0) {} }; class FillShapeOriginY : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint fillShapeOriginY; FillShapeOriginY(void* /*dummy*/ = 0) {} }; class FillColorExt : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF fillColorExt; FillColorExt(void* /*dummy*/ = 0) {} }; class FillBackColorExt : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF fillBackColorExt; FillBackColorExt(void* /*dummy*/ = 0) {} }; class FillStyleBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fNoFillHitTest; bool fillUseRect; bool fillShape; bool fHitTestFill; bool fFilled; bool fUseShapeAnchor; bool fRecolorFillAsPicture; bool unused1a; quint8 unused1b; bool fUseNoFillHitTest; bool fUseFillUseRect; bool fUseFillShape; bool fUseHitTestFill; bool fUseFilled; bool fUseUseShapeAnchor; bool fUsefRecolorFillAsPicture; bool unused2a; quint8 unused2b; FillStyleBooleanProperties(void* /*dummy*/ = 0) {} }; class LineColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF lineColor; LineColor(void* /*dummy*/ = 0) {} }; class LineOpacity : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 lineOpacity; LineOpacity(void* /*dummy*/ = 0) {} }; class LineBackColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF lineBackColor; LineBackColor(void* /*dummy*/ = 0) {} }; class LineFillBlip : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineFillBlip; LineFillBlip(void* /*dummy*/ = 0) {} }; class LineWidth : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineWidth; LineWidth(void* /*dummy*/ = 0) {} }; class LineStyle : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineStyle; LineStyle(void* /*dummy*/ = 0) {} }; class LineDashing : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineDashing; LineDashing(void* /*dummy*/ = 0) {} }; class LineStartArrowhead : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineStartArrowhead; LineStartArrowhead(void* /*dummy*/ = 0) {} }; class LineEndArrowhead : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineEndArrowhead; LineEndArrowhead(void* /*dummy*/ = 0) {} }; class LineStartArrowWidth : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineStartArrowWidth; LineStartArrowWidth(void* /*dummy*/ = 0) {} }; class LineStartArrowLength : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineStartArrowLength; LineStartArrowLength(void* /*dummy*/ = 0) {} }; class LineEndArrowWidth : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineEndArrowWidth; LineEndArrowWidth(void* /*dummy*/ = 0) {} }; class LineEndArrowLength : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineEndArrowLength; LineEndArrowLength(void* /*dummy*/ = 0) {} }; class LineJoinStyle : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineJoinStyle; LineJoinStyle(void* /*dummy*/ = 0) {} }; class LineEndCapStyle : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lineEndCapStyle; LineEndCapStyle(void* /*dummy*/ = 0) {} }; class LineStyleBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fNoLineDrawDash; bool fLineFillShape; bool fHitTestLine; bool fLine; bool fArrowHeadsOK; bool fInsetPenOK; bool fInsetPen; bool reserved1; bool reserved2; bool fLineOpaqueBackColor; quint8 unused1; bool fUseNoLineDrawDash; bool fUseLineFillShape; bool fUseHitTestLine; bool fUsefLine; bool fUsefArrowHeadsOK; bool fUseInsetPenOK; bool fUseInsetPen; bool unused2; bool unused3; bool fUsefLineOpaqueBackColor; quint8 unused4; LineStyleBooleanProperties(void* /*dummy*/ = 0) {} }; class ShadowType : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 shadowType; ShadowType(void* /*dummy*/ = 0) {} }; class ShadowColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF shadowColor; ShadowColor(void* /*dummy*/ = 0) {} }; class ShadowOpacity : public StreamOffset { public: OfficeArtFOPTEOPID opid; FixedPoint shadowOpacity; ShadowOpacity(void* /*dummy*/ = 0) {} }; class ShadowOffsetX : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 shadowOffsetX; ShadowOffsetX(void* /*dummy*/ = 0) {} }; class ShadowOffsetY : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 shadowOffsetY; ShadowOffsetY(void* /*dummy*/ = 0) {} }; class ShadowStyleBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fShadowObscured; bool fShadow; quint16 unused1; bool fUsefShadowObscured; bool fUsefShadow; quint16 unused2; ShadowStyleBooleanProperties(void* /*dummy*/ = 0) {} }; class HspMaster : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 hspMaster; HspMaster(void* /*dummy*/ = 0) {} }; class Cxstyle : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 cxstyle; Cxstyle(void* /*dummy*/ = 0) {} }; class BWMode : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 bWMode; BWMode(void* /*dummy*/ = 0) {} }; class ShapeBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fBackground; bool reserved1; bool fInitiator; bool fLockShapeType; bool fPreferRelativeResize; bool fOleIcon; bool fFlipVOverride; bool fFlipHOverride; bool fPolicyBarcode; bool fPolicyLabel; bool unused1; bool unused2; quint8 unused3; bool fUsefBackground; bool unused4; bool fUsefInitiator; bool fUsefLockShapeType; bool fusePreferrelativeResize; bool fUsefOleIcon; bool fUsefFlipVOverride; bool fUsefFlipHOverride; bool fUsefPolicyBarcode; bool fUsefPolicyLabel; bool unused5; bool unused6; quint8 unused7; ShapeBooleanProperties(void* /*dummy*/ = 0) {} }; class DxyCalloutGap : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 dxyCalloutGap; DxyCalloutGap(void* /*dummy*/ = 0) {} }; class Spcoa : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 spcoa; Spcoa(void* /*dummy*/ = 0) {} }; class Spcod : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 spcod; Spcod(void* /*dummy*/ = 0) {} }; class DxyCalloutDropSpecified : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 dxyCalloutDropSpecified; DxyCalloutDropSpecified(void* /*dummy*/ = 0) {} }; class DxyCalloutLengthSpecified : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 dxyCalloutLengthSpecified; DxyCalloutLengthSpecified(void* /*dummy*/ = 0) {} }; class CalloutBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fCalloutLengthSpecified; bool fCalloutDropAuto; bool fCalloutMinusY; bool fCalloutMinusX; bool fCalloutTextBorder; bool fCalloutAccentBar; bool fCallout; bool unused1a; quint8 unused1b; bool fUsefCalloutLengthSpecified; bool fUsefCalloutDropAuto; bool fUsefCalloutMinusY; bool fUsefCalloutMinusX; bool fUsefCalloutTextBorder; bool fUsefCalloutAccentBar; bool fUsefCallout; bool unused2a; quint8 unused2b; CalloutBooleanProperties(void* /*dummy*/ = 0) {} }; class PWrapPolygonVertices : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pWrapPolygonVertices; PWrapPolygonVertices(void* /*dummy*/ = 0) {} }; class DxWrapDistLeft : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dxWrapDistLeft; DxWrapDistLeft(void* /*dummy*/ = 0) {} }; class DyWrapDistTop : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dyWrapDistTop; DyWrapDistTop(void* /*dummy*/ = 0) {} }; class DxWrapDistRight : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dxWrapDistRight; DxWrapDistRight(void* /*dummy*/ = 0) {} }; class DyWrapDistBottom : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dyWrapDistBottom; DyWrapDistBottom(void* /*dummy*/ = 0) {} }; class LidRegroup : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 lidRegroup; LidRegroup(void* /*dummy*/ = 0) {} }; class PosH : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 posH; PosH(void* /*dummy*/ = 0) {} }; class PosRelH : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 posRelH; PosRelH(void* /*dummy*/ = 0) {} }; class PosV : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 posV; PosV(void* /*dummy*/ = 0) {} }; class PosRelV : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 posRelV; PosRelV(void* /*dummy*/ = 0) {} }; class PctHR : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 pctHR; PctHR(void* /*dummy*/ = 0) {} }; class AlignHR : public StreamOffset { public: OfficeArtFOPTEOPID opid; quint32 alignHR; AlignHR(void* /*dummy*/ = 0) {} }; class DxHeightHR : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dxHeightHR; DxHeightHR(void* /*dummy*/ = 0) {} }; class DxWidthHR : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 dxWidthHR; DxWidthHR(void* /*dummy*/ = 0) {} }; class BorderTopColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF borderTopColor; BorderTopColor(void* /*dummy*/ = 0) {} }; class BorderLeftColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF borderLeftColor; BorderLeftColor(void* /*dummy*/ = 0) {} }; class BorderBottomColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF borderBottomColor; BorderBottomColor(void* /*dummy*/ = 0) {} }; class BorderRightColor : public StreamOffset { public: OfficeArtFOPTEOPID opid; OfficeArtCOLORREF borderRightColor; BorderRightColor(void* /*dummy*/ = 0) {} }; class GroupShapeBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fPrint; bool fHidden; bool fOneD; bool fIsButton; bool fOnDblClickNotify; bool fBehindDocument; bool fEditedWrap; bool fScriptAnchor; bool fReallyHidden; bool fAllowOverlap; bool fUserDrawn; bool fHorizRule; bool fNoshadeHR; bool fStandardHR; bool fIsBullet; bool fLayoutInCell; bool fUsefPrint; bool fUsefHidden; bool fUsefOneD; bool fUsefIsButton; bool fUsefOnDblClickNotify; bool fUsefBehindDocument; bool fUsefEditedWrap; bool fUsefScriptAnchor; bool fUsefReallyHidden; bool fUsefAllowOverlap; bool fUsefUserDrawn; bool fUsefHorizRule; bool fUsefNoshadeHR; bool fUsefStandardHR; bool fUsefIsBullet; bool fUsefLayoutInCell; GroupShapeBooleanProperties(void* /*dummy*/ = 0) {} }; class WzFillId : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 wzFillId; WzFillId(void* /*dummy*/ = 0) {} }; class DiagramBooleanProperties : public StreamOffset { public: OfficeArtFOPTEOPID opid; bool fPseudoInline; bool fDoLayout; bool fReverse; bool fDoFormat; bool unused1; bool unused2; quint8 unused3a; quint8 unused3b; bool fUsefPseudoInline; bool fUsefDoLayout; bool fUsefReverse; bool fUsefDoFormat; bool unused4; bool unused5; quint8 unused6a; quint8 unused6b; DiagramBooleanProperties(void* /*dummy*/ = 0) {} }; class PptOfficeArtClientAnchor : public StreamOffset { public: OfficeArtRecordHeader rh; QSharedPointer rect1; QSharedPointer rect2; PptOfficeArtClientAnchor(void* /*dummy*/ = 0) {} }; class AnimationInfoContainer : public StreamOffset { public: OfficeArtRecordHeader rh; AnimationInfoAtom animationAtom; QSharedPointer animationSound; AnimationInfoContainer(void* /*dummy*/ = 0) {} }; class MouseClickInteractiveInfoContainer : public StreamOffset { public: RecordHeader rh; InteractiveInfoAtom interactiveInfoAtom; QSharedPointer macroNameAtom; MouseClickInteractiveInfoContainer(void* /*dummy*/ = 0) {} }; class MouseOverInteractiveInfoContainer : public StreamOffset { public: RecordHeader rh; InteractiveInfoAtom interactiveInfoAtom; QSharedPointer macroNameAtom; MouseOverInteractiveInfoContainer(void* /*dummy*/ = 0) {} }; class ShapeClientRoundtripDataSubcontainerOrAtom : public StreamOffset { public: class choice3146562028 : public QSharedPointer { public: choice3146562028() {} explicit choice3146562028(ShapeProgsTagContainer* a) :QSharedPointer(a) {} explicit choice3146562028(RoundTripNewPlaceHolderId12Atom* a) :QSharedPointer(a) {} explicit choice3146562028(RoundTripShapeId12Atom* a) :QSharedPointer(a) {} explicit choice3146562028(RoundTripHFPlaceholder12Atom* a) :QSharedPointer(a) {} explicit choice3146562028(RoundTripShapeCheckSumForCustomLayouts12Atom* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice3146562028 anon; ShapeClientRoundtripDataSubcontainerOrAtom(void* /*dummy*/ = 0) {} }; class ShapeProgBinaryTagSubContainerOrAtom : public StreamOffset { public: class choice2754406405 : public QSharedPointer { public: choice2754406405() {} explicit choice2754406405(PP9ShapeBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice2754406405(PP10ShapeBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice2754406405(PP11ShapeBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice2754406405(UnknownBinaryTag* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2754406405 anon; ShapeProgBinaryTagSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class OfficeArtClientTextBox : public StreamOffset { public: class choice2757443956 : public QSharedPointer { public: choice2757443956() {} explicit choice2757443956(XlsOfficeArtClientTextBox* a) :QSharedPointer(a) {} explicit choice2757443956(DocOfficeArtClientTextBox* a) :QSharedPointer(a) {} explicit choice2757443956(PptOfficeArtClientTextBox* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2757443956 anon; OfficeArtClientTextBox(void* /*dummy*/ = 0) {} }; class TextRulerAtom : public StreamOffset { public: RecordHeader rh; TextRuler textRuler; TextRulerAtom(void* /*dummy*/ = 0) {} }; class OfficeArtFOPTE : public StreamOffset { public: OfficeArtFOPTEOPID opid; qint32 op; OfficeArtFOPTE(void* /*dummy*/ = 0) {} }; class Fib : public StreamOffset { public: FibBase base; quint16 csw; FibRgW97 fibRgW; quint16 cslw; FibRgLw97 fibRgLw; quint16 cbRgFcLcb; FibRgFcLcb97 fibRgFcLcbBlob; QSharedPointer fibRgFcLcbBlob2; QSharedPointer fibRgFcLcbBlob3; quint16 cswNew; QByteArray fibRgCswNew; QByteArray trail; Fib(void* /*dummy*/ = 0) {} }; class STSH : public StreamOffset { public: LPStshi lpstshi; QList rglpstd; STSH(void* /*dummy*/ = 0) {} }; class Clx : public StreamOffset { public: QList RgPrc; Pcdt pcdt; Clx(void* /*dummy*/ = 0) {} }; class Pcr : public StreamOffset { public: quint8 clxt; PrcData prcData; Pcr(void* /*dummy*/ = 0) {} }; class Prm : public StreamOffset { public: class choice1129181155 : public QSharedPointer { public: choice1129181155() {} explicit choice1129181155(Prm0* a) :QSharedPointer(a) {} explicit choice1129181155(Prm1* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice1129181155 prm; Prm(void* /*dummy*/ = 0) {} }; class OfficeArtBlipEMF : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; OfficeArtMetafileHeader metafileHeader; QByteArray BLIPFileData; OfficeArtBlipEMF(void* /*dummy*/ = 0) {} }; class OfficeArtBlipWMF : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; OfficeArtMetafileHeader metafileHeader; QByteArray BLIPFileData; OfficeArtBlipWMF(void* /*dummy*/ = 0) {} }; class OfficeArtBlipPICT : public StreamOffset { public: bool _has_rgbUid2; OfficeArtRecordHeader rh; QByteArray rgbUid1; QByteArray rgbUid2; OfficeArtMetafileHeader metafileHeader; QByteArray BLIPFileData; OfficeArtBlipPICT(void* /*dummy*/ = 0) {} }; class OfficeArtBlip : public StreamOffset { public: class choice279968329 : public QSharedPointer { public: choice279968329() {} explicit choice279968329(OfficeArtBlipEMF* a) :QSharedPointer(a) {} explicit choice279968329(OfficeArtBlipWMF* a) :QSharedPointer(a) {} explicit choice279968329(OfficeArtBlipPICT* a) :QSharedPointer(a) {} explicit choice279968329(OfficeArtBlipJPEG* a) :QSharedPointer(a) {} explicit choice279968329(OfficeArtBlipPNG* a) :QSharedPointer(a) {} explicit choice279968329(OfficeArtBlipDIB* a) :QSharedPointer(a) {} explicit choice279968329(OfficeArtBlipTIFF* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice279968329 anon; OfficeArtBlip(void* /*dummy*/ = 0) {} }; class ZoomViewInfoAtom : public StreamOffset { public: RecordHeader rh; ScalingStruct curScale; QByteArray unused1; PointStruct origin; quint8 fUseVarScale; quint8 fDraftMode; quint16 unused2; ZoomViewInfoAtom(void* /*dummy*/ = 0) {} }; class PP9DocBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QByteArray tagName; RecordHeader rhData; QList rgTextMasterStyle9; QSharedPointer blipCollectionContainer; QSharedPointer textDefaultsAtom; QSharedPointer kinsokuContainer; QList rgExternalHyperlink9; QSharedPointer presAdvisorFlagsAtom; QSharedPointer envelopeDataAtom; QSharedPointer envelopeFlagsAtom; QSharedPointer htmlDocInfoAtom; QSharedPointer htmlPublishInfoAtom; QList rgBroadcastDocInfo9; QSharedPointer outlineTextPropsContainer; PP9DocBinaryTagExtension(void* /*dummy*/ = 0) {} }; class TextMasterStyle9Level : public StreamOffset { public: TextPFException9 pf9; TextCFException9 cf9; TextMasterStyle9Level(void* /*dummy*/ = 0) {} }; class StyleTextProp9 : public StreamOffset { public: TextPFException9 pf9; TextCFException9 cf9; TextSIException si; StyleTextProp9(void* /*dummy*/ = 0) {} }; class PP10DocBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QByteArray tagName; RecordHeader rhData; QSharedPointer fontCollectionContainer; QList rgTextMasterStyle10; QSharedPointer textDefaultsAtom; GridSpacing10Atom gridSpacingAtom; QList rgCommentIndex10; QSharedPointer fontEmbedFlagsAtom; QSharedPointer copyrightAtom; QSharedPointer keywordsAtom; QSharedPointer filterPrivacyFlagsAtom; QSharedPointer outlineTextPropsContainer; QSharedPointer docToolbarStatesAtom; QSharedPointer slideListTableContainer; QSharedPointer rgDiffTree10Container; QSharedPointer modifyPasswordAtom; QSharedPointer photoAlbumInfoAtom; PP10DocBinaryTagExtension(void* /*dummy*/ = 0) {} }; class TextMasterStyle10Level : public StreamOffset { public: TextCFException10 cf10; TextMasterStyle10Level(void* /*dummy*/ = 0) {} }; class NotesTextViewInfoContainer : public StreamOffset { public: RecordHeader rh; ZoomViewInfoAtom zoomViewInfo; NotesTextViewInfoContainer(void* /*dummy*/ = 0) {} }; class OutlineViewInfoContainer : public StreamOffset { public: RecordHeader rh; NoZoomViewInfoAtom noZoomViewInfo; OutlineViewInfoContainer(void* /*dummy*/ = 0) {} }; class NormalViewSetInfoContainer : public StreamOffset { public: RecordHeader rh; NormalViewSetInfoAtom normalViewSetInfoAtom; NormalViewSetInfoContainer(void* /*dummy*/ = 0) {} }; class SlideListWithTextSubContainerOrAtom : public StreamOffset { public: SlidePersistAtom slidePersistAtom; QList atoms; SlideListWithTextSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class OutlineAtom : public StreamOffset { public: OutlineTextRefAtom outlineTextRefAtom; QSharedPointer textRulerAtom; OutlineAtom(void* /*dummy*/ = 0) {} }; class TextContainer : public StreamOffset { public: TextHeaderAtom textHeaderAtom; class choice1060411409 : public QSharedPointer { public: choice1060411409() {} explicit choice1060411409(TextCharsAtom* a) :QSharedPointer(a) {} explicit choice1060411409(TextBytesAtom* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice1060411409 text; QSharedPointer style; QList meta; QSharedPointer master; QList bookmark; QSharedPointer unknown; QSharedPointer specialinfo; QList interactive; QSharedPointer specialinfo2; QSharedPointer textRulerAtom; QList interactive2; TextContainer(void* /*dummy*/ = 0) {} }; class MouseClickTextInfo : public StreamOffset { public: MouseClickInteractiveInfoContainer interactive; MouseClickTextInteractiveInfoAtom text; MouseClickTextInfo(void* /*dummy*/ = 0) {} }; class MouseOverTextInfo : public StreamOffset { public: MouseOverInteractiveInfoContainer interactive; MouseOverTextInteractiveInfoAtom text; MouseOverTextInfo(void* /*dummy*/ = 0) {} }; class TextPFRun : public StreamOffset { public: quint32 count; quint16 indentLevel; TextPFException pf; TextPFRun(void* /*dummy*/ = 0) {} }; class TextCFRun : public StreamOffset { public: quint32 count; TextCFException cf; TextCFRun(void* /*dummy*/ = 0) {} }; class TextCFExceptionAtom : public StreamOffset { public: RecordHeader rh; TextCFException cf; TextCFExceptionAtom(void* /*dummy*/ = 0) {} }; class DefaultRulerAtom : public StreamOffset { public: RecordHeader rh; TextRuler defaultTextRuler; DefaultRulerAtom(void* /*dummy*/ = 0) {} }; class TextPFExceptionAtom : public StreamOffset { public: RecordHeader rh; quint16 reserved; TextPFException pf; TextPFExceptionAtom(void* /*dummy*/ = 0) {} }; class TextSIRun : public StreamOffset { public: quint32 count; TextSIException si; TextSIRun(void* /*dummy*/ = 0) {} }; class TextSIExceptionAtom : public StreamOffset { public: RecordHeader rh; TextSIException textSIException; TextSIExceptionAtom(void* /*dummy*/ = 0) {} }; class TextMasterStyleAtom : public StreamOffset { public: bool _has_lstLvl1level; bool _has_lstLvl2level; bool _has_lstLvl3level; bool _has_lstLvl4level; bool _has_lstLvl5level; RecordHeader rh; quint16 cLevels; quint16 lstLvl1level; QSharedPointer lstLvl1; quint16 lstLvl2level; QSharedPointer lstLvl2; quint16 lstLvl3level; QSharedPointer lstLvl3; quint16 lstLvl4level; QSharedPointer lstLvl4; quint16 lstLvl5level; QSharedPointer lstLvl5; TextMasterStyleAtom(void* /*dummy*/ = 0) {} }; class PP10SlideBinaryTagExtension : public StreamOffset { public: RecordHeader rh; QVector tagName; RecordHeader rhData; QList rgTextMasterStyleAtom; QList rgComment10Container; QSharedPointer linkedSlideAtom; QList rgLinkedShape10Atom; QSharedPointer slideFlagsAtom; QSharedPointer slideTimeAtom; QSharedPointer unknown; QSharedPointer hashCodeAtom; QSharedPointer extTimeNodeContainer; QSharedPointer buildListContainer; PP10SlideBinaryTagExtension(void* /*dummy*/ = 0) {} }; class ExObjListSubContainer : public StreamOffset { public: class choice2338534801 : public QSharedPointer { public: choice2338534801() {} explicit choice2338534801(ExAviMovieContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExCDAudioContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExControlContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExHyperlinkContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExMCIMovieContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExMIDIAudioContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExOleEmbedContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExOleLinkContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExWAVAudioEmbeddedContainer* a) :QSharedPointer(a) {} explicit choice2338534801(ExWAVAudioLinkContainer* a) :QSharedPointer(a) {} explicit choice2338534801(UnknownExObjListSubContainerChild* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2338534801 anon; ExObjListSubContainer(void* /*dummy*/ = 0) {} }; class OfficeArtDggContainer : public StreamOffset { public: OfficeArtRecordHeader rh; OfficeArtFDGGBlock drawingGroup; QSharedPointer blipStore; QSharedPointer drawingPrimaryOptions; QSharedPointer drawingTertiaryOptions; QSharedPointer colorMRU; QSharedPointer splitColors; QSharedPointer blipStore2; QSharedPointer unknown; OfficeArtDggContainer(void* /*dummy*/ = 0) {} }; class OfficeArtFOPTEChoice : public StreamOffset { public: class choice3165202096 : public QSharedPointer { public: choice3165202096() {} explicit choice3165202096(Rotation* a) :QSharedPointer(a) {} explicit choice3165202096(ProtectionBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(ITxid* a) :QSharedPointer(a) {} explicit choice3165202096(DxTextLeft* a) :QSharedPointer(a) {} explicit choice3165202096(DyTextTop* a) :QSharedPointer(a) {} explicit choice3165202096(DxTextRight* a) :QSharedPointer(a) {} explicit choice3165202096(DyTextBottom* a) :QSharedPointer(a) {} explicit choice3165202096(WrapText* a) :QSharedPointer(a) {} explicit choice3165202096(AnchorText* a) :QSharedPointer(a) {} explicit choice3165202096(TxflTextFlow* a) :QSharedPointer(a) {} explicit choice3165202096(CdirFont* a) :QSharedPointer(a) {} explicit choice3165202096(HspNext* a) :QSharedPointer(a) {} explicit choice3165202096(Txdir* a) :QSharedPointer(a) {} explicit choice3165202096(TextBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(CropFromTop* a) :QSharedPointer(a) {} explicit choice3165202096(CropFromBottom* a) :QSharedPointer(a) {} explicit choice3165202096(CropFromLeft* a) :QSharedPointer(a) {} explicit choice3165202096(CropFromRight* a) :QSharedPointer(a) {} explicit choice3165202096(Pib* a) :QSharedPointer(a) {} explicit choice3165202096(PibName* a) :QSharedPointer(a) {} explicit choice3165202096(PibFlags* a) :QSharedPointer(a) {} explicit choice3165202096(PictureTransparent* a) :QSharedPointer(a) {} explicit choice3165202096(PictureContrast* a) :QSharedPointer(a) {} explicit choice3165202096(PictureBrightness* a) :QSharedPointer(a) {} explicit choice3165202096(BlipBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(GeoLeft* a) :QSharedPointer(a) {} explicit choice3165202096(GeoTop* a) :QSharedPointer(a) {} explicit choice3165202096(GeoRight* a) :QSharedPointer(a) {} explicit choice3165202096(GeoBottom* a) :QSharedPointer(a) {} explicit choice3165202096(ShapePath* a) :QSharedPointer(a) {} explicit choice3165202096(PVertices* a) :QSharedPointer(a) {} explicit choice3165202096(PSegmentInfo* a) :QSharedPointer(a) {} explicit choice3165202096(AdjustValue* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust2Value* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust3Value* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust4Value* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust5Value* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust6Value* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust7Value* a) :QSharedPointer(a) {} explicit choice3165202096(Adjust8Value* a) :QSharedPointer(a) {} explicit choice3165202096(GeometryBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(FillType* a) :QSharedPointer(a) {} explicit choice3165202096(FillColor* a) :QSharedPointer(a) {} explicit choice3165202096(FillOpacity* a) :QSharedPointer(a) {} explicit choice3165202096(FillBackColor* a) :QSharedPointer(a) {} explicit choice3165202096(FillBackOpacity* a) :QSharedPointer(a) {} explicit choice3165202096(FillCrMod* a) :QSharedPointer(a) {} explicit choice3165202096(FillBlip* a) :QSharedPointer(a) {} explicit choice3165202096(FillBlipName* a) :QSharedPointer(a) {} explicit choice3165202096(FillBlipFlags* a) :QSharedPointer(a) {} explicit choice3165202096(FillWidth* a) :QSharedPointer(a) {} explicit choice3165202096(FillHeight* a) :QSharedPointer(a) {} explicit choice3165202096(FillAngle* a) :QSharedPointer(a) {} explicit choice3165202096(FillFocus* a) :QSharedPointer(a) {} explicit choice3165202096(FillToLeft* a) :QSharedPointer(a) {} explicit choice3165202096(FillToTop* a) :QSharedPointer(a) {} explicit choice3165202096(FillToRight* a) :QSharedPointer(a) {} explicit choice3165202096(FillToBottom* a) :QSharedPointer(a) {} explicit choice3165202096(FillRectLeft* a) :QSharedPointer(a) {} explicit choice3165202096(FillRectTop* a) :QSharedPointer(a) {} explicit choice3165202096(FillRectRight* a) :QSharedPointer(a) {} explicit choice3165202096(FillRectBottom* a) :QSharedPointer(a) {} explicit choice3165202096(FillDztype* a) :QSharedPointer(a) {} explicit choice3165202096(FillShadePreset* a) :QSharedPointer(a) {} explicit choice3165202096(FillShadeColors* a) :QSharedPointer(a) {} explicit choice3165202096(FillOriginX* a) :QSharedPointer(a) {} explicit choice3165202096(FillOriginY* a) :QSharedPointer(a) {} explicit choice3165202096(FillShapeOriginX* a) :QSharedPointer(a) {} explicit choice3165202096(FillShapeOriginY* a) :QSharedPointer(a) {} explicit choice3165202096(FillColorExt* a) :QSharedPointer(a) {} explicit choice3165202096(FillBackColorExt* a) :QSharedPointer(a) {} explicit choice3165202096(FillStyleBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(LineColor* a) :QSharedPointer(a) {} explicit choice3165202096(LineOpacity* a) :QSharedPointer(a) {} explicit choice3165202096(LineBackColor* a) :QSharedPointer(a) {} explicit choice3165202096(LineFillBlip* a) :QSharedPointer(a) {} explicit choice3165202096(LineWidth* a) :QSharedPointer(a) {} explicit choice3165202096(LineStyle* a) :QSharedPointer(a) {} explicit choice3165202096(LineDashing* a) :QSharedPointer(a) {} explicit choice3165202096(LineStartArrowhead* a) :QSharedPointer(a) {} explicit choice3165202096(LineEndArrowhead* a) :QSharedPointer(a) {} explicit choice3165202096(LineStartArrowWidth* a) :QSharedPointer(a) {} explicit choice3165202096(LineStartArrowLength* a) :QSharedPointer(a) {} explicit choice3165202096(LineEndArrowWidth* a) :QSharedPointer(a) {} explicit choice3165202096(LineEndArrowLength* a) :QSharedPointer(a) {} explicit choice3165202096(LineJoinStyle* a) :QSharedPointer(a) {} explicit choice3165202096(LineEndCapStyle* a) :QSharedPointer(a) {} explicit choice3165202096(LineStyleBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(ShadowType* a) :QSharedPointer(a) {} explicit choice3165202096(ShadowColor* a) :QSharedPointer(a) {} explicit choice3165202096(ShadowOpacity* a) :QSharedPointer(a) {} explicit choice3165202096(ShadowOffsetX* a) :QSharedPointer(a) {} explicit choice3165202096(ShadowOffsetY* a) :QSharedPointer(a) {} explicit choice3165202096(ShadowStyleBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(HspMaster* a) :QSharedPointer(a) {} explicit choice3165202096(Cxstyle* a) :QSharedPointer(a) {} explicit choice3165202096(BWMode* a) :QSharedPointer(a) {} explicit choice3165202096(ShapeBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(DxyCalloutGap* a) :QSharedPointer(a) {} explicit choice3165202096(Spcoa* a) :QSharedPointer(a) {} explicit choice3165202096(Spcod* a) :QSharedPointer(a) {} explicit choice3165202096(DxyCalloutDropSpecified* a) :QSharedPointer(a) {} explicit choice3165202096(DxyCalloutLengthSpecified* a) :QSharedPointer(a) {} explicit choice3165202096(CalloutBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(PWrapPolygonVertices* a) :QSharedPointer(a) {} explicit choice3165202096(DxWrapDistLeft* a) :QSharedPointer(a) {} explicit choice3165202096(DyWrapDistTop* a) :QSharedPointer(a) {} explicit choice3165202096(DxWrapDistRight* a) :QSharedPointer(a) {} explicit choice3165202096(DyWrapDistBottom* a) :QSharedPointer(a) {} explicit choice3165202096(LidRegroup* a) :QSharedPointer(a) {} explicit choice3165202096(PosH* a) :QSharedPointer(a) {} explicit choice3165202096(PosRelH* a) :QSharedPointer(a) {} explicit choice3165202096(PosV* a) :QSharedPointer(a) {} explicit choice3165202096(PosRelV* a) :QSharedPointer(a) {} explicit choice3165202096(PctHR* a) :QSharedPointer(a) {} explicit choice3165202096(AlignHR* a) :QSharedPointer(a) {} explicit choice3165202096(DxHeightHR* a) :QSharedPointer(a) {} explicit choice3165202096(DxWidthHR* a) :QSharedPointer(a) {} explicit choice3165202096(BorderTopColor* a) :QSharedPointer(a) {} explicit choice3165202096(BorderLeftColor* a) :QSharedPointer(a) {} explicit choice3165202096(BorderBottomColor* a) :QSharedPointer(a) {} explicit choice3165202096(BorderRightColor* a) :QSharedPointer(a) {} explicit choice3165202096(GroupShapeBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(WzFillId* a) :QSharedPointer(a) {} explicit choice3165202096(DiagramBooleanProperties* a) :QSharedPointer(a) {} explicit choice3165202096(OfficeArtFOPTE* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice3165202096 anon; OfficeArtFOPTEChoice(void* /*dummy*/ = 0) {} }; class OfficeArtClientAnchor : public StreamOffset { public: class choice1726903461 : public QSharedPointer { public: choice1726903461() {} explicit choice1726903461(PptOfficeArtClientAnchor* a) :QSharedPointer(a) {} explicit choice1726903461(DocOfficeArtClientAnchor* a) :QSharedPointer(a) {} explicit choice1726903461(XlsOfficeArtClientAnchor* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice1726903461 anon; OfficeArtClientAnchor(void* /*dummy*/ = 0) {} }; class PptOfficeArtClientData : public StreamOffset { public: OfficeArtRecordHeader rh; QSharedPointer shapeFlagsAtom; QSharedPointer shapeFlags10Atom; QSharedPointer exObjRefAtom; QSharedPointer animationInfo; QSharedPointer mouseClickInteractiveInfo; QSharedPointer mouseOverInteractiveInfo; QList rgShapeClientRoundtripData0; QSharedPointer placeholderAtom; QSharedPointer recolorInfoAtom; QSharedPointer unknown1; QList rgShapeClientRoundtripData; QSharedPointer unknown2; PptOfficeArtClientData(void* /*dummy*/ = 0) {} }; class ShapeProgBinaryTagContainer : public StreamOffset { public: OfficeArtRecordHeader rh; ShapeProgBinaryTagSubContainerOrAtom rec; ShapeProgBinaryTagContainer(void* /*dummy*/ = 0) {} }; class WordDocument : public StreamOffset { public: Fib fib; WordDocument(void* /*dummy*/ = 0) {} }; class Table : public StreamOffset { public: STSH stsh; PlcfSed plcfSed; Plcfhdd plcfHdd; PlcBteChpx plcfBteChpx; PlcfBtePapx plcfBtePapx; Tcg cmds; Clx clx; SttbfFfn sttbfFfn; QByteArray dop; Table(void* /*dummy*/ = 0) {} }; class Pcd : public StreamOffset { public: bool fNoParaLast; bool fR1; bool fDirtly; bool fR2; quint16 fR3; FCompressed fc; Prm prm; Pcd(void* /*dummy*/ = 0) {} }; class OfficeArtFBSE : public StreamOffset { public: bool _has_nameData; OfficeArtRecordHeader rh; quint8 btWin32; quint8 btMacOS; QByteArray rgbUid; quint16 tag; quint32 size; quint32 cRef; quint32 foDelay; quint8 unused1; quint8 cbName; quint8 unused2; quint8 unused3; QByteArray nameData; QSharedPointer embeddedBlip; OfficeArtFBSE(void* /*dummy*/ = 0) {} }; class OfficeArtBStoreContainerFileBlock : public StreamOffset { public: class choice2043165903 : public QSharedPointer { public: choice2043165903() {} explicit choice2043165903(OfficeArtFBSE* a) :QSharedPointer(a) {} explicit choice2043165903(OfficeArtBlip* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2043165903 anon; OfficeArtBStoreContainerFileBlock(void* /*dummy*/ = 0) {} }; class SlideViewInfoInstance : public StreamOffset { public: RecordHeader rh; SlideViewInfoAtom slideViewInfoAtom; QSharedPointer zoomViewInfoAtom; QList rgGuideAtom; SlideViewInfoInstance(void* /*dummy*/ = 0) {} }; class DocProgBinaryTagSubContainerOrAtom : public StreamOffset { public: class choice214961565 : public QSharedPointer { public: choice214961565() {} explicit choice214961565(PP9DocBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice214961565(PP10DocBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice214961565(PP11DocBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice214961565(PP12DocBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice214961565(UnknownBinaryTag* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice214961565 anon; DocProgBinaryTagSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class TextMasterStyle9Atom : public StreamOffset { public: RecordHeader rh; quint16 cLevels; QSharedPointer lstLvl1; QSharedPointer lstLvl2; QSharedPointer lstLvl3; QSharedPointer lstLvl4; QSharedPointer lstLvl5; TextMasterStyle9Atom(void* /*dummy*/ = 0) {} }; class BlipEntityAtom : public StreamOffset { public: RecordHeader rh; quint8 winBlipType; quint8 unused; OfficeArtBStoreContainerFileBlock blip; BlipEntityAtom(void* /*dummy*/ = 0) {} }; class TextMasterStyle10Atom : public StreamOffset { public: bool _has_lstLvl1level; bool _has_lstLvl2level; bool _has_lstLvl3level; bool _has_lstLvl4level; bool _has_lstLvl5level; RecordHeader rh; quint16 cLevels; quint16 lstLvl1level; QSharedPointer lstLvl1; quint16 lstLvl2level; QSharedPointer lstLvl2; quint16 lstLvl3level; QSharedPointer lstLvl3; quint16 lstLvl4level; QSharedPointer lstLvl4; quint16 lstLvl5level; QSharedPointer lstLvl5; TextMasterStyle10Atom(void* /*dummy*/ = 0) {} }; class TextClientDataSubContainerOrAtom : public StreamOffset { public: class choice2925155378 : public QSharedPointer { public: choice2925155378() {} explicit choice2925155378(OutlineAtom* a) :QSharedPointer(a) {} explicit choice2925155378(TextContainer* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2925155378 anon; TextClientDataSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class TextContainerInteractiveInfo : public StreamOffset { public: class choice3752530176 : public QSharedPointer { public: choice3752530176() {} explicit choice3752530176(MouseClickTextInfo* a) :QSharedPointer(a) {} explicit choice3752530176(MouseOverTextInfo* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice3752530176 interactive; TextContainerInteractiveInfo(void* /*dummy*/ = 0) {} }; class DocumentTextInfoContainer : public StreamOffset { public: RecordHeader rh; QSharedPointer kinsoku; QSharedPointer fontCollection; QSharedPointer textCFDefaultsAtom; QSharedPointer textPFDefaultsAtom; QSharedPointer defaultRulerAtom; TextSIExceptionAtom textSIDefaultsAtom; TextMasterStyleAtom textMasterStyleAtom; QSharedPointer textMasterStyleAtom2; DocumentTextInfoContainer(void* /*dummy*/ = 0) {} }; class SlideProgBinaryTagSubContainerOrAtom : public StreamOffset { public: class choice4024872665 : public QSharedPointer { public: choice4024872665() {} explicit choice4024872665(PP9SlideBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice4024872665(PP12SlideBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice4024872665(PP10SlideBinaryTagExtension* a) :QSharedPointer(a) {} explicit choice4024872665(UnknownBinaryTag* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice4024872665 anon; SlideProgBinaryTagSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class DrawingGroupContainer : public StreamOffset { public: RecordHeader rh; OfficeArtDggContainer OfficeArtDgg; DrawingGroupContainer(void* /*dummy*/ = 0) {} }; class OfficeArtClientData : public StreamOffset { public: class choice2520977885 : public QSharedPointer { public: choice2520977885() {} explicit choice2520977885(DocOfficeArtClientData* a) :QSharedPointer(a) {} explicit choice2520977885(PptOfficeArtClientData* a) :QSharedPointer(a) {} explicit choice2520977885(XlsOfficeArtClientData* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2520977885 anon; OfficeArtClientData(void* /*dummy*/ = 0) {} }; class ShapeProgTagsSubContainerOrAtom : public StreamOffset { public: class choice42781012 : public QSharedPointer { public: choice42781012() {} explicit choice42781012(ProgStringTagContainer* a) :QSharedPointer(a) {} explicit choice42781012(ShapeProgBinaryTagContainer* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice42781012 anon; ShapeProgTagsSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class DocumentContainer : public StreamOffset { public: RecordHeader rh; DocumentAtom documentAtom; QSharedPointer exObjList; DocumentTextInfoContainer documentTextInfo; QSharedPointer soundCollection; DrawingGroupContainer drawingGroup; MasterListWithTextContainer masterList; QSharedPointer docInfoList; QSharedPointer slideHF; QSharedPointer notesHF; QSharedPointer slideList; QSharedPointer slideHF2; QSharedPointer notesList; QSharedPointer slideShowDocInfoAtom; QSharedPointer namedShows; QSharedPointer summary; QSharedPointer docRoutingSlipAtom; QSharedPointer printOptionsAtom; QList unknown0; QSharedPointer rtCustomTableStylesAtom1; QList unknown1; EndDocumentAtom endDocumentAtom; QList unknown2; QSharedPointer rtCustomTableStylesAtom2; QList unknown4; QSharedPointer unknown5; DocumentContainer(void* /*dummy*/ = 0) {} }; class DocInfoListSubContainerOrAtom : public StreamOffset { public: class choice2631814737 : public QSharedPointer { public: choice2631814737() {} explicit choice2631814737(DocProgTagsContainer* a) :QSharedPointer(a) {} explicit choice2631814737(NormalViewSetInfoContainer* a) :QSharedPointer(a) {} explicit choice2631814737(NotesTextViewInfoContainer* a) :QSharedPointer(a) {} explicit choice2631814737(OutlineViewInfoContainer* a) :QSharedPointer(a) {} explicit choice2631814737(SlideViewInfoInstance* a) :QSharedPointer(a) {} explicit choice2631814737(SorterViewInfoContainer* a) :QSharedPointer(a) {} explicit choice2631814737(VBAInfoContainer* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2631814737 anon; DocInfoListSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class DocProgBinaryTagContainer : public StreamOffset { public: RecordHeader rh; DocProgBinaryTagSubContainerOrAtom rec; DocProgBinaryTagContainer(void* /*dummy*/ = 0) {} }; class SlideProgBinaryTagContainer : public StreamOffset { public: RecordHeader rh; SlideProgBinaryTagSubContainerOrAtom rec; SlideProgBinaryTagContainer(void* /*dummy*/ = 0) {} }; class OfficeArtSpContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QSharedPointer shapeGroup; OfficeArtFSP shapeProp; QSharedPointer deletedshape; QSharedPointer shapePrimaryOptions; QSharedPointer shapeSecondaryOptions1; QSharedPointer shapeTertiaryOptions1; QSharedPointer childAnchor; QSharedPointer clientAnchor; QSharedPointer clientData; QSharedPointer clientTextbox; QSharedPointer shapePrimaryOptions2; QSharedPointer shapeSecondaryOptions2; QSharedPointer shapeTertiaryOptions2; QSharedPointer unknown; OfficeArtSpContainer(void* /*dummy*/ = 0) {} }; class OfficeArtInlineSpContainer : public StreamOffset { public: OfficeArtSpContainer shape; QList rgfb; OfficeArtInlineSpContainer(void* /*dummy*/ = 0) {} }; class DocProgTagsSubContainerOrAtom : public StreamOffset { public: class choice61655436 : public QSharedPointer { public: choice61655436() {} explicit choice61655436(ProgStringTagContainer* a) :QSharedPointer(a) {} explicit choice61655436(DocProgBinaryTagContainer* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice61655436 anon; DocProgTagsSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class SlideProgTagsSubContainerOrAtom : public StreamOffset { public: class choice310259039 : public QSharedPointer { public: choice310259039() {} explicit choice310259039(ProgStringTagContainer* a) :QSharedPointer(a) {} explicit choice310259039(SlideProgBinaryTagContainer* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice310259039 anon; SlideProgTagsSubContainerOrAtom(void* /*dummy*/ = 0) {} }; class OfficeArtDgContainer : public StreamOffset { public: OfficeArtRecordHeader rh; QSharedPointer drawingData; QSharedPointer regroupItems; QSharedPointer groupShape; QSharedPointer shape; QList deletedShapes; QSharedPointer solvers; OfficeArtDgContainer(void* /*dummy*/ = 0) {} }; class OfficeArtSpgrContainerFileBlock : public StreamOffset { public: class choice4117040 : public QSharedPointer { public: choice4117040() {} explicit choice4117040(OfficeArtSpContainer* a) :QSharedPointer(a) {} explicit choice4117040(OfficeArtSpgrContainer* a) :QSharedPointer(a) {} explicit choice4117040(OfficeArtFSP* a) :QSharedPointer(a) {} explicit choice4117040(OfficeArtFSPGR* a) :QSharedPointer(a) {} explicit choice4117040(OfficeArtClientAnchor* a) :QSharedPointer(a) {} explicit choice4117040(OfficeArtClientData* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice4117040 anon; OfficeArtSpgrContainerFileBlock(void* /*dummy*/ = 0) {} }; class DrawingContainer : public StreamOffset { public: RecordHeader rh; OfficeArtDgContainer OfficeArtDg; DrawingContainer(void* /*dummy*/ = 0) {} }; class MainMasterContainer : public StreamOffset { public: RecordHeader rh; SlideAtom slideAtom; QSharedPointer unknown; QList rgSchemeListElementColorScheme; QList rgTextMasterStyle; QSharedPointer roundTripOArtTextSTyles12Atom; QSharedPointer slideShowInfoAtom; QSharedPointer perSlideHeadersFootersContainer; DrawingContainer drawing; SlideSchemeColorSchemeAtom slideSchemeColorSchemeAtom; QSharedPointer slideNameAtom; QSharedPointer slideProgTagsContainer; QList rgRoundTripMainMaster; QSharedPointer templateNameAtom; QSharedPointer unknown3; MainMasterContainer(void* /*dummy*/ = 0) {} }; class SlideContainer : public StreamOffset { public: RecordHeader rh; SlideAtom slideAtom; QSharedPointer slideShowSlideInfoAtom; QSharedPointer perSlideHFContainer; QSharedPointer rtSlideSyncInfo12; DrawingContainer drawing; SlideSchemeColorSchemeAtom slideSchemeColorSchemeAtom; QSharedPointer slideNameAtom; QSharedPointer slideProgTagsContainer; QSharedPointer unknown; QList rgRoundTripSlide; QSharedPointer unknown2; SlideContainer(void* /*dummy*/ = 0) {} }; class NotesContainer : public StreamOffset { public: RecordHeader rh; NotesAtom notesAtom; QSharedPointer perSlideHFContainer; DrawingContainer drawing; SlideSchemeColorSchemeAtom slideSchemeColorSchemeAtom; QSharedPointer slideNameAtom; QSharedPointer slideProgTagsContainer; QSharedPointer perSlideHFContainer2; QList rgNotesRoundTripAtom; NotesContainer(void* /*dummy*/ = 0) {} }; class MasterOrSlideContainer : public StreamOffset { public: class choice2788643208 : public QSharedPointer { public: choice2788643208() {} explicit choice2788643208(MainMasterContainer* a) :QSharedPointer(a) {} explicit choice2788643208(SlideContainer* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice2788643208 anon; MasterOrSlideContainer(void* /*dummy*/ = 0) {} }; class PowerPointStruct : public StreamOffset { public: class choice394521820 : public QSharedPointer { public: choice394521820() {} explicit choice394521820(DocumentContainer* a) :QSharedPointer(a) {} explicit choice394521820(MasterOrSlideContainer* a) :QSharedPointer(a) {} explicit choice394521820(PersistDirectoryAtom* a) :QSharedPointer(a) {} explicit choice394521820(NotesContainer* a) :QSharedPointer(a) {} explicit choice394521820(HandoutContainer* a) :QSharedPointer(a) {} explicit choice394521820(SlideContainer* a) :QSharedPointer(a) {} explicit choice394521820(ExOleObjStg* a) :QSharedPointer(a) {} explicit choice394521820(ExControlStg* a) :QSharedPointer(a) {} explicit choice394521820(VbaProjectStg* a) :QSharedPointer(a) {} explicit choice394521820(UserEditAtom* a) :QSharedPointer(a) {} template T*get() { return dynamic_cast(this->data()); } template const T*get() const { return dynamic_cast(this->data()); } template bool is() const { return get(); } }; choice394521820 anon; PowerPointStruct(void* /*dummy*/ = 0) {} }; } // close namespace #endif