LibreOffice Module lotuswordpro (master) 1
|
#include <tocread.hxx>
Public Member Functions | |
CBenTOCReader (LtcBenContainer *pContainer) | |
BenError | ReadLabelAndTOC () |
Private Member Functions | |
BenError | ReadLabel (tools::ULong *pTOCOffset, tools::ULong *pTOCSize) |
BenError | SearchForLabel (BenByte *pLabel) |
BenError | ReadTOC () |
BenError | ReadSegments (CBenValue *pValue, BenByte *pLookAhead) |
BenError | ReadSegment (CBenValue *pValue, BenByte *pLookAhead) |
bool | CanGetData (tools::ULong Amt) |
BenError | GetByte (BenByte *pByte) |
BenError | GetDWord (BenDWord *pDWord) |
BenByte | GetCode () |
BenError | GetData (void *pBuffer, tools::ULong Amt) |
Private Attributes | |
LtcBenContainer * | cpContainer |
std::unique_ptr< BenByte[]> | cpTOC |
tools::ULong | cBlockSize |
tools::ULong | cCurr |
tools::ULong | cTOCSize |
Definition at line 65 of file tocread.hxx.
|
inlineexplicit |
Definition at line 68 of file tocread.hxx.
|
private |
Definition at line 460 of file tocread.cxx.
References cCurr, and cTOCSize.
Referenced by GetByte(), GetData(), and GetDWord().
Definition at line 466 of file tocread.cxx.
References OpenStormBento::BenErr_OK, OpenStormBento::BenErr_ReadPastEndOfTOC, CanGetData(), cCurr, cpTOC, and OpenStormBento::UtGetIntelByte().
Referenced by GetCode().
|
private |
Definition at line 488 of file tocread.cxx.
References BEN_END_OF_BUFFER, BEN_NOOP, BEN_READ_PAST_END_OF_TOC, OpenStormBento::BenErr_OK, cBlockSize, cCurr, and GetByte().
Referenced by ReadSegment(), and ReadTOC().
|
private |
Definition at line 509 of file tocread.cxx.
References OpenStormBento::BenErr_OK, OpenStormBento::BenErr_ReadPastEndOfTOC, CanGetData(), cCurr, and cpTOC.
Referenced by ReadSegment().
Definition at line 477 of file tocread.cxx.
References OpenStormBento::BenErr_OK, OpenStormBento::BenErr_ReadPastEndOfTOC, CanGetData(), cCurr, cpTOC, and OpenStormBento::UtGetIntelDWord().
Referenced by ReadSegment(), and ReadTOC().
|
private |
Definition at line 100 of file tocread.cxx.
References BEN_CURR_MAJOR_VERSION, BEN_LABEL_SIZE, BEN_MAGIC_BYTES_SIZE, OpenStormBento::BenErr_NotBentoContainer, OpenStormBento::BenErr_OK, OpenStormBento::BenErr_UnknownBentoFormatVersion, cBlockSize, cpContainer, Flags, OpenStormBento::gsBenMagicBytes, Label, OpenStormBento::LtcBenContainer::ReadKnownSize(), SearchForLabel(), OpenStormBento::LtcBenContainer::SeekFromEnd(), OpenStormBento::UtGetIntelDWord(), and OpenStormBento::UtGetIntelWord().
Referenced by ReadLabelAndTOC().
BenError OpenStormBento::CBenTOCReader::ReadLabelAndTOC | ( | ) |
Definition at line 71 of file tocread.cxx.
References OpenStormBento::BenErr_OK, OpenStormBento::BenErr_ReadPastEndOfTOC, cpContainer, cpTOC, cTOCSize, OpenStormBento::LtcBenContainer::GetSize(), nLength, OpenStormBento::LtcBenContainer::ReadKnownSize(), ReadLabel(), ReadTOC(), and OpenStormBento::LtcBenContainer::SeekToPosition().
Referenced by OpenStormBento::LtcBenContainer::Open().
|
private |
Definition at line 387 of file tocread.cxx.
References BEN_CONT_IMMEDIATE4, BEN_CONT_OFFSET4_LEN4, BEN_CONT_OFFSET8_LEN4, BEN_IMMEDIATE0, BEN_IMMEDIATE1, BEN_IMMEDIATE2, BEN_IMMEDIATE3, BEN_IMMEDIATE4, BEN_OFFSET4_LEN4, BEN_OFFSET8_LEN4, OpenStormBento::BenErr_64BitOffsetNotSupported, OpenStormBento::BenErr_OK, GetCode(), GetData(), GetDWord(), and Offset.
Referenced by ReadSegments().
|
private |
Definition at line 371 of file tocread.cxx.
References BEN_SEGMENT_CODE_END, BEN_SEGMENT_CODE_START, OpenStormBento::BenErr_OK, and ReadSegment().
Referenced by ReadTOC().
|
private |
Definition at line 202 of file tocread.cxx.
References BEN_EXPLICIT_GEN, BEN_IMMEDIATE4, BEN_NEW_OBJECT, BEN_NEW_PROPERTY, BEN_NEW_TYPE, BEN_OBJID_TOC, BEN_OFFSET4_LEN4, BEN_PROPID_GLOBAL_PROPERTY_NAME, BEN_PROPID_GLOBAL_TYPE_NAME, BEN_PROPID_OBJ_REFERENCES, BEN_PROPID_TOC_SEED, BEN_READ_PAST_END_OF_TOC, BEN_REFERENCE_LIST_ID, BEN_TYPEID_7_BIT_ASCII, BEN_TYPEID_TOC_TYPE, OpenStormBento::BenErr_DuplicateName, OpenStormBento::BenErr_InvalidTOC, OpenStormBento::BenErr_NamedObjectError, OpenStormBento::BenErr_OK, OpenStormBento::BenErr_PropertyWithMoreThanOneValue, OpenStormBento::BenErr_TOCSeedError, cpContainer, Data, OpenStormBento::FindNamedObject(), GetCode(), GetDWord(), OpenStormBento::CUtList::GetLast(), OpenStormBento::LtcBenContainer::GetNamedObjects(), OpenStormBento::LtcBenContainer::GetObjects(), pObject, Pos, OpenStormBento::LtcBenContainer::ReadKnownSize(), ReadSegments(), OpenStormBento::LtcBenContainer::remainingSize(), SAL_WARN, OpenStormBento::LtcBenContainer::SeekToPosition(), OpenStormBento::LtcBenContainer::SetNextAvailObjectID(), sName, STACK_BUFFER_SIZE, and OpenStormBento::CBenProperty::UseValue().
Referenced by ReadLabelAndTOC().
Definition at line 148 of file tocread.cxx.
References BEN_LABEL_SIZE, BEN_MAGIC_BYTES_SIZE, OpenStormBento::BenErr_NotBentoContainer, OpenStormBento::BenErr_OK, cpContainer, OpenStormBento::LtcBenContainer::GetSize(), OpenStormBento::gsBenMagicBytes, LABEL_READ_BUFFER_SIZE, MAX_SEARCH_AMOUNT, OpenStormBento::LtcBenContainer::ReadKnownSize(), and OpenStormBento::LtcBenContainer::SeekToPosition().
Referenced by ReadLabel().
|
private |
Definition at line 92 of file tocread.hxx.
Referenced by GetCode(), and ReadLabel().
|
private |
Definition at line 93 of file tocread.hxx.
Referenced by CanGetData(), GetByte(), GetCode(), GetData(), and GetDWord().
|
private |
Definition at line 90 of file tocread.hxx.
Referenced by ReadLabel(), ReadLabelAndTOC(), ReadTOC(), and SearchForLabel().
|
private |
Definition at line 91 of file tocread.hxx.
Referenced by GetByte(), GetData(), GetDWord(), and ReadLabelAndTOC().
|
private |
Definition at line 94 of file tocread.hxx.
Referenced by CanGetData(), and ReadLabelAndTOC().