LibreOffice Module sot (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
StgHeader Class Reference

#include <stgelem.hxx>

Collaboration diagram for StgHeader:
[legend]

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
 

Detailed Description

Definition at line 34 of file stgelem.hxx.

Constructor & Destructor Documentation

◆ StgHeader()

StgHeader::StgHeader ( )

Definition at line 71 of file stgelem.cxx.

References m_nPageSize, and m_nThreshold.

Member Function Documentation

◆ Check()

bool StgHeader::Check ( )

◆ GetDataFATSize()

sal_Int32 StgHeader::GetDataFATSize ( ) const
inline

Definition at line 69 of file stgelem.hxx.

References m_nDataFATSize.

◆ GetDataFATStart()

sal_Int32 StgHeader::GetDataFATStart ( ) const
inline

Definition at line 67 of file stgelem.hxx.

References m_nDataFAT.

Referenced by StgIo::SetupStreams().

◆ GetDataPageSize()

short StgHeader::GetDataPageSize ( ) const
inline

Definition at line 73 of file stgelem.hxx.

References m_nDataPageSize.

Referenced by StgIo::GetDataPageSize().

◆ GetFAT1Size()

static short StgHeader::GetFAT1Size ( )
inlinestatic

Definition at line 80 of file stgelem.hxx.

References cFATPagesInHeader.

Referenced by StgFATStrm::GetPage(), and StgFATStrm::SetPage().

◆ GetFATChain()

sal_Int32 StgHeader::GetFATChain ( ) const
inline

Definition at line 76 of file stgelem.hxx.

References m_nMasterChain.

Referenced by StgFATStrm::GetPage(), StgFATStrm::SetPage(), and StgFATStrm::SetSize().

◆ GetFATPage()

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().

◆ GetFATSize()

sal_Int32 StgHeader::GetFATSize ( ) const
inline

Definition at line 74 of file stgelem.hxx.

References m_nFATSize.

Referenced by StgIo::SetupStreams().

◆ GetMasters()

sal_Int32 StgHeader::GetMasters ( ) const
inline

Definition at line 78 of file stgelem.hxx.

References m_nMaster.

Referenced by StgFATStrm::SetSize().

◆ GetPageSize()

short StgHeader::GetPageSize ( ) const
inline

Definition at line 72 of file stgelem.hxx.

References m_nPageSize.

Referenced by StgIo::SetupStreams().

◆ GetThreshold()

sal_Int32 StgHeader::GetThreshold ( ) const
inline

Definition at line 71 of file stgelem.hxx.

References m_nThreshold.

Referenced by StgDirEntry::OpenStream(), StgDirEntry::SetSize(), and StgDirEntry::Tmp2Strm().

◆ GetTOCStart()

sal_Int32 StgHeader::GetTOCStart ( ) const
inline

Definition at line 65 of file stgelem.hxx.

References m_nTOCstrm.

◆ Init()

void StgHeader::Init ( void  )

◆ Load() [1/2]

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().

◆ Load() [2/2]

bool StgHeader::Load ( SvStream r)

◆ SetDataFATSize()

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().

◆ SetDataFATStart()

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().

◆ SetFATChain()

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().

◆ SetFATPage()

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().

◆ SetFATSize()

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().

◆ SetMasters()

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().

◆ SetTOCStart()

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().

◆ Store()

bool StgHeader::Store ( StgIo rIo)

Member Data Documentation

◆ cFATPagesInHeader

const sal_uInt8 StgHeader::cFATPagesInHeader = 109
staticprivate

Definition at line 36 of file stgelem.hxx.

Referenced by GetFAT1Size(), GetFATPage(), Init(), and SetFATPage().

◆ m_aClsId

ClsId StgHeader::m_aClsId = {}
private

Definition at line 39 of file stgelem.hxx.

Referenced by Init(), Load(), and Store().

◆ m_bDirty

sal_uInt8 StgHeader::m_bDirty
private

◆ m_cReserved

sal_uInt8 StgHeader::m_cReserved[9] = {}
private

Definition at line 47 of file stgelem.hxx.

Referenced by Init().

◆ m_cSignature

sal_uInt8 StgHeader::m_cSignature[8] = {}
private

Definition at line 38 of file stgelem.hxx.

Referenced by Check(), Init(), Load(), and Store().

◆ m_nByteOrder

sal_uInt16 StgHeader::m_nByteOrder
private

Definition at line 41 of file stgelem.hxx.

Referenced by Init(), Load(), and Store().

◆ m_nDataFAT

sal_Int32 StgHeader::m_nDataFAT
private

Definition at line 52 of file stgelem.hxx.

Referenced by Check(), GetDataFATStart(), Init(), Load(), SetDataFATStart(), and Store().

◆ m_nDataFATSize

sal_Int32 StgHeader::m_nDataFATSize
private

Definition at line 53 of file stgelem.hxx.

Referenced by Check(), GetDataFATSize(), Init(), Load(), SetDataFATSize(), and Store().

◆ m_nDataPageSize

sal_Int16 StgHeader::m_nDataPageSize
private

Definition at line 43 of file stgelem.hxx.

Referenced by Check(), GetDataPageSize(), Init(), Load(), and Store().

◆ m_nFATSize

sal_Int32 StgHeader::m_nFATSize
private

Definition at line 48 of file stgelem.hxx.

Referenced by Check(), GetFATSize(), Init(), Load(), SetFATSize(), and Store().

◆ m_nMaster

sal_Int32 StgHeader::m_nMaster
private

Definition at line 55 of file stgelem.hxx.

Referenced by Check(), GetMasters(), Load(), SetMasters(), and Store().

◆ m_nMasterChain

sal_Int32 StgHeader::m_nMasterChain
private

Definition at line 54 of file stgelem.hxx.

Referenced by Check(), GetFATChain(), Init(), Load(), SetFATChain(), and Store().

◆ m_nMasterFAT

sal_Int32 StgHeader::m_nMasterFAT[cFATPagesInHeader] = {}
private

Definition at line 56 of file stgelem.hxx.

Referenced by GetFATPage(), Load(), SetFATPage(), and Store().

◆ m_nPageSize

sal_Int16 StgHeader::m_nPageSize
private

Definition at line 42 of file stgelem.hxx.

Referenced by Check(), GetPageSize(), Init(), Load(), and Store().

◆ m_nReserved

sal_Int32 StgHeader::m_nReserved
private

Definition at line 50 of file stgelem.hxx.

Referenced by Init(), Load(), and Store().

◆ m_nThreshold

sal_Int32 StgHeader::m_nThreshold
private

Definition at line 51 of file stgelem.hxx.

Referenced by Check(), GetThreshold(), Init(), Load(), and Store().

◆ m_nTOCstrm

sal_Int32 StgHeader::m_nTOCstrm
private

Definition at line 49 of file stgelem.hxx.

Referenced by Check(), GetTOCStart(), Init(), Load(), SetTOCStart(), and Store().

◆ m_nVersion

sal_Int32 StgHeader::m_nVersion
private

Definition at line 40 of file stgelem.hxx.

Referenced by Check(), Init(), Load(), and Store().


The documentation for this class was generated from the following files: