LibreOffice Module sot (master) 1
|
#include <stgio.hxx>
Public Member Functions | |
StgIo () | |
~StgIo () | |
short | GetDataPageSize () const |
bool | Load () |
bool | Init () |
bool | CommitAll () |
FatError | ValidateFATs () |
Public Member Functions inherited from StgCache | |
StgCache () | |
~StgCache () | |
void | IncRef () |
sal_uInt16 | DecRef () |
void | SetPhysPageSize (short) |
sal_Int32 | GetPhysPages () const |
short | GetPhysPageSize () const |
SvStream * | GetStrm () |
void | SetStrm (SvStream *, bool) |
void | SetStrm (UCBStorageStream *) |
bool | Good () const |
ErrCode const & | GetError () const |
void | MoveError (StorageBase const &) |
void | SetError (ErrCode) |
void | ResetError () |
bool | Open (const OUString &rName, StreamMode) |
void | Close () |
bool | Read (sal_Int32 nPage, void *pBuf) |
bool | Write (sal_Int32 nPage, void const *pBuf) |
void | SetToPage (const rtl::Reference< StgPage > &rPage, short nOff, sal_Int32 nVal) |
void | SetDirty (const rtl::Reference< StgPage > &rPage) |
bool | SetSize (sal_Int32 nPages) |
rtl::Reference< StgPage > | Find (sal_Int32) |
rtl::Reference< StgPage > | Get (sal_Int32, bool) |
rtl::Reference< StgPage > | Copy (sal_Int32, sal_Int32=STG_FREE) |
bool | Commit () |
void | Clear () |
Public Attributes | |
StgHeader | m_aHdr |
StgFATStrm * | m_pFAT |
StgDirStrm * | m_pTOC |
StgDataStrm * | m_pDataFAT |
StgDataStrm * | m_pDataStrm |
Private Member Functions | |
void | SetupStreams () |
Private Attributes | |
bool | m_bCopied |
Additional Inherited Members | |
Static Public Member Functions inherited from StgCache | |
static sal_Int32 | GetFromPage (const rtl::Reference< StgPage > &rPage, short nOff) |
Protected Member Functions inherited from StgCache | |
sal_Int32 | Page2Pos (sal_Int32) const |
Protected Attributes inherited from StgCache | |
bool | m_bFile |
StgIo::StgIo | ( | ) |
Definition at line 36 of file stgio.cxx.
References m_bCopied, m_pDataFAT, m_pDataStrm, m_pFAT, and m_pTOC.
StgIo::~StgIo | ( | ) |
Definition at line 45 of file stgio.cxx.
References m_pDataFAT, m_pDataStrm, m_pFAT, and m_pTOC.
bool StgIo::CommitAll | ( | ) |
Definition at line 132 of file stgio.cxx.
References StgCache::Commit(), ERRCODE_NONE, SvStream::Flush(), SvStream::GetError(), StgStrm::GetPages(), StgStrm::GetStart(), StgCache::GetStrm(), m_aHdr, m_pDataFAT, m_pTOC, n, StgHeader::SetDataFATSize(), StgHeader::SetDataFATStart(), StgCache::SetError(), StgHeader::SetTOCStart(), StgDirStrm::Store(), StgHeader::Store(), SVSTREAM_WRITE_ERROR, and ValidateFATs().
Referenced by Init().
short StgIo::GetDataPageSize | ( | ) | const |
Definition at line 125 of file stgio.cxx.
References StgHeader::GetDataPageSize(), and m_aHdr.
Referenced by StgSmallStrm::Init(), and SetupStreams().
bool StgIo::Init | ( | void | ) |
Definition at line 74 of file stgio.cxx.
References CommitAll(), StgHeader::Init(), m_aHdr, and SetupStreams().
bool StgIo::Load | ( | ) |
Definition at line 55 of file stgio.cxx.
References StgHeader::Check(), StgCache::GetStrm(), StgCache::Good(), StgHeader::Load(), m_aHdr, and SetupStreams().
Referenced by ValidateFATs().
|
private |
Definition at line 81 of file stgio.cxx.
References StgHeader::GetDataFATStart(), GetDataPageSize(), StgCache::GetError(), StgHeader::GetFATSize(), StgHeader::GetPageSize(), StgDirStrm::GetRoot(), m_aHdr, m_pDataFAT, m_pDataStrm, m_pFAT, m_pTOC, StgCache::ResetError(), SAL_WARN, StgStrm::SetEntry(), StgCache::SetError(), StgDataStrm::SetIncrement(), StgCache::SetPhysPageSize(), and SVSTREAM_FILEFORMAT_ERROR.
FatError StgIo::ValidateFATs | ( | ) |
Definition at line 363 of file stgio.cxx.
References BothError, SvFileStream::GetFileName(), StgCache::GetStrm(), InMemoryError, Load(), m_bCopied, StgCache::m_bFile, Ok, OnFileError, and StgCache::Open().
Referenced by CommitAll().
StgHeader StgIo::m_aHdr |
Definition at line 48 of file stgio.hxx.
Referenced by CommitAll(), GetDataPageSize(), StgFATStrm::GetPage(), Init(), Load(), StgDirEntry::OpenStream(), StgFATStrm::SetPage(), StgDirEntry::SetSize(), StgFATStrm::SetSize(), SetupStreams(), StgDirStrm::Store(), and StgDirEntry::Tmp2Strm().
|
private |
Definition at line 44 of file stgio.hxx.
Referenced by StgIo(), and ValidateFATs().
StgDataStrm* StgIo::m_pDataFAT |
Definition at line 51 of file stgio.hxx.
Referenced by CommitAll(), StgSmallStrm::Init(), SetupStreams(), StgIo(), and ~StgIo().
StgDataStrm* StgIo::m_pDataStrm |
Definition at line 52 of file stgio.hxx.
Referenced by StgSmallStrm::Init(), SetupStreams(), StgIo(), and ~StgIo().
StgFATStrm* StgIo::m_pFAT |
Definition at line 49 of file stgio.hxx.
Referenced by StgDataStrm::Init(), SetupStreams(), StgIo(), and ~StgIo().
StgDirStrm* StgIo::m_pTOC |
Definition at line 50 of file stgio.hxx.
Referenced by CommitAll(), SetupStreams(), StgIo(), OLEStorageBase::Validate_Impl(), and ~StgIo().