LibreOffice Module sot (master) 1
|
#include <stgelem.hxx>
Public Member Functions | |
StgHeader () | |
void | Init () |
bool | Load (StgIo &) |
bool | Load (SvStream &) |
bool | Store (StgIo &) |
bool | Check () |
sal_Int32 | GetTOCStart () const |
void | SetTOCStart (sal_Int32 n) |
sal_Int32 | GetDataFATStart () const |
void | SetDataFATStart (sal_Int32 n) |
sal_Int32 | GetDataFATSize () const |
void | SetDataFATSize (sal_Int32 n) |
sal_Int32 | GetThreshold () const |
short | GetPageSize () const |
short | GetDataPageSize () const |
sal_Int32 | GetFATSize () const |
void | SetFATSize (sal_Int32 n) |
sal_Int32 | GetFATChain () const |
void | SetFATChain (sal_Int32 n) |
sal_Int32 | GetMasters () const |
void | SetMasters (sal_Int32 n) |
sal_Int32 | GetFATPage (short) const |
void | SetFATPage (short, sal_Int32) |
Static Public Member Functions | |
static short | GetFAT1Size () |
Private Attributes | |
sal_uInt8 | m_cSignature [8] = {} |
ClsId | m_aClsId = {} |
sal_Int32 | m_nVersion |
sal_uInt16 | m_nByteOrder |
sal_Int16 | m_nPageSize |
sal_Int16 | m_nDataPageSize |
sal_uInt8 | m_bDirty |
sal_uInt8 | m_cReserved [9] = {} |
sal_Int32 | m_nFATSize |
sal_Int32 | m_nTOCstrm |
sal_Int32 | m_nReserved |
sal_Int32 | m_nThreshold |
sal_Int32 | m_nDataFAT |
sal_Int32 | m_nDataFATSize |
sal_Int32 | m_nMasterChain |
sal_Int32 | m_nMaster |
sal_Int32 | m_nMasterFAT [cFATPagesInHeader] = {} |
Static Private Attributes | |
static const sal_uInt8 | cFATPagesInHeader = 109 |
Definition at line 34 of file stgelem.hxx.
StgHeader::StgHeader | ( | ) |
Definition at line 71 of file stgelem.cxx.
References m_nPageSize, and m_nThreshold.
bool StgHeader::Check | ( | ) |
Definition at line 194 of file stgelem.cxx.
References cStgSignature, isKnownSpecial(), lcl_wontoverflow(), m_cSignature, m_nDataFAT, m_nDataFATSize, m_nDataPageSize, m_nFATSize, m_nMaster, m_nMasterChain, m_nPageSize, m_nThreshold, m_nTOCstrm, and m_nVersion.
Referenced by StgIo::Load(), and Load().
|
inline |
Definition at line 69 of file stgelem.hxx.
References m_nDataFATSize.
|
inline |
Definition at line 67 of file stgelem.hxx.
References m_nDataFAT.
Referenced by StgIo::SetupStreams().
|
inline |
Definition at line 73 of file stgelem.hxx.
References m_nDataPageSize.
Referenced by StgIo::GetDataPageSize().
|
inlinestatic |
Definition at line 80 of file stgelem.hxx.
References cFATPagesInHeader.
Referenced by StgFATStrm::GetPage(), and StgFATStrm::SetPage().
|
inline |
Definition at line 76 of file stgelem.hxx.
References m_nMasterChain.
Referenced by StgFATStrm::GetPage(), StgFATStrm::SetPage(), and StgFATStrm::SetSize().
sal_Int32 StgHeader::GetFATPage | ( | short | n | ) | const |
Definition at line 209 of file stgelem.cxx.
References cFATPagesInHeader, m_nMasterFAT, n, and STG_EOF.
Referenced by StgFATStrm::GetPage().
|
inline |
Definition at line 74 of file stgelem.hxx.
References m_nFATSize.
Referenced by StgIo::SetupStreams().
|
inline |
Definition at line 78 of file stgelem.hxx.
References m_nMaster.
Referenced by StgFATStrm::SetSize().
|
inline |
Definition at line 72 of file stgelem.hxx.
References m_nPageSize.
Referenced by StgIo::SetupStreams().
|
inline |
Definition at line 71 of file stgelem.hxx.
References m_nThreshold.
Referenced by StgDirEntry::OpenStream(), StgDirEntry::SetSize(), and StgDirEntry::Tmp2Strm().
|
inline |
Definition at line 65 of file stgelem.hxx.
References m_nTOCstrm.
void StgHeader::Init | ( | void | ) |
Definition at line 88 of file stgelem.cxx.
References cFATPagesInHeader, cStgSignature, i, m_aClsId, m_bDirty, m_cReserved, m_cSignature, m_nByteOrder, m_nDataFAT, m_nDataFATSize, m_nDataPageSize, m_nFATSize, m_nMasterChain, m_nPageSize, m_nReserved, m_nThreshold, m_nTOCstrm, m_nVersion, SetDataFATStart(), SetFATPage(), SetTOCStart(), STG_EOF, and STG_FREE.
Referenced by StgIo::Init().
bool StgHeader::Load | ( | StgIo & | rIo | ) |
Definition at line 112 of file stgelem.cxx.
References StgCache::GetStrm(), StgCache::Good(), and Load().
Referenced by StgIo::Load(), and Load().
bool StgHeader::Load | ( | SvStream & | r | ) |
Definition at line 125 of file stgelem.cxx.
References Check(), checkSeek(), SvStream::good(), i, m_aClsId, m_cSignature, m_nByteOrder, m_nDataFAT, m_nDataFATSize, m_nDataPageSize, m_nFATSize, m_nMaster, m_nMasterChain, m_nMasterFAT, m_nPageSize, m_nReserved, m_nThreshold, m_nTOCstrm, m_nVersion, SvStream::ReadBytes(), ReadClsId(), SvStream::ReadInt16(), SvStream::ReadInt32(), SvStream::ReadUInt16(), SvStream::Seek(), and SvStream::Tell().
void StgHeader::SetDataFATSize | ( | sal_Int32 | n | ) |
Definition at line 247 of file stgelem.cxx.
References m_bDirty, m_nDataFATSize, and n.
Referenced by StgIo::CommitAll().
void StgHeader::SetDataFATStart | ( | sal_Int32 | n | ) |
Definition at line 238 of file stgelem.cxx.
References m_bDirty, m_nDataFAT, and n.
Referenced by StgIo::CommitAll(), and Init().
void StgHeader::SetFATChain | ( | sal_Int32 | n | ) |
Definition at line 265 of file stgelem.cxx.
References m_bDirty, m_nMasterChain, and n.
Referenced by StgFATStrm::GetPage().
void StgHeader::SetFATPage | ( | short | n, |
sal_Int32 | nb | ||
) |
Definition at line 217 of file stgelem.cxx.
References cFATPagesInHeader, m_bDirty, m_nMasterFAT, and n.
Referenced by Init(), and StgFATStrm::SetPage().
void StgHeader::SetFATSize | ( | sal_Int32 | n | ) |
Definition at line 256 of file stgelem.cxx.
References m_bDirty, m_nFATSize, and n.
Referenced by StgFATStrm::SetSize().
void StgHeader::SetMasters | ( | sal_Int32 | n | ) |
Definition at line 274 of file stgelem.cxx.
References m_bDirty, m_nMaster, and n.
Referenced by StgFATStrm::GetPage().
void StgHeader::SetTOCStart | ( | sal_Int32 | n | ) |
Definition at line 229 of file stgelem.cxx.
References m_bDirty, m_nTOCstrm, and n.
Referenced by StgIo::CommitAll(), Init(), and StgDirStrm::Store().
bool StgHeader::Store | ( | StgIo & | rIo | ) |
Definition at line 152 of file stgelem.cxx.
References StgCache::GetStrm(), StgCache::Good(), i, m_aClsId, m_bDirty, m_cSignature, m_nByteOrder, m_nDataFAT, m_nDataFATSize, m_nDataPageSize, m_nFATSize, m_nMaster, m_nMasterChain, m_nMasterFAT, m_nPageSize, m_nReserved, m_nThreshold, m_nTOCstrm, m_nVersion, SvStream::Seek(), SvStream::WriteBytes(), WriteClsId(), SvStream::WriteInt16(), SvStream::WriteInt32(), and SvStream::WriteUInt16().
Referenced by StgIo::CommitAll().
|
staticprivate |
Definition at line 36 of file stgelem.hxx.
Referenced by GetFAT1Size(), GetFATPage(), Init(), and SetFATPage().
|
private |
Definition at line 39 of file stgelem.hxx.
|
private |
Definition at line 44 of file stgelem.hxx.
Referenced by Init(), SetDataFATSize(), SetDataFATStart(), SetFATChain(), SetFATPage(), SetFATSize(), SetMasters(), SetTOCStart(), and Store().
|
private |
Definition at line 47 of file stgelem.hxx.
Referenced by Init().
|
private |
|
private |
Definition at line 41 of file stgelem.hxx.
|
private |
Definition at line 52 of file stgelem.hxx.
Referenced by Check(), GetDataFATStart(), Init(), Load(), SetDataFATStart(), and Store().
|
private |
Definition at line 53 of file stgelem.hxx.
Referenced by Check(), GetDataFATSize(), Init(), Load(), SetDataFATSize(), and Store().
|
private |
Definition at line 43 of file stgelem.hxx.
Referenced by Check(), GetDataPageSize(), Init(), Load(), and Store().
|
private |
Definition at line 48 of file stgelem.hxx.
Referenced by Check(), GetFATSize(), Init(), Load(), SetFATSize(), and Store().
|
private |
Definition at line 55 of file stgelem.hxx.
Referenced by Check(), GetMasters(), Load(), SetMasters(), and Store().
|
private |
Definition at line 54 of file stgelem.hxx.
Referenced by Check(), GetFATChain(), Init(), Load(), SetFATChain(), and Store().
|
private |
Definition at line 56 of file stgelem.hxx.
Referenced by GetFATPage(), Load(), SetFATPage(), and Store().
|
private |
Definition at line 42 of file stgelem.hxx.
Referenced by Check(), GetPageSize(), Init(), Load(), and Store().
|
private |
Definition at line 50 of file stgelem.hxx.
|
private |
Definition at line 51 of file stgelem.hxx.
Referenced by Check(), GetThreshold(), Init(), Load(), and Store().
|
private |
Definition at line 49 of file stgelem.hxx.
Referenced by Check(), GetTOCStart(), Init(), Load(), SetTOCStart(), and Store().
|
private |