LibreOffice Module sw (master) 1
|
#include <layhelp.hxx>
Classes | |
struct | RecTypeSize |
Public Member Functions | |
SwLayCacheIoImpl (SvStream &rStrm, bool bWrtMd) | |
SvStream & | GetStream () const |
Get input or output stream. More... | |
void | OpenRec (sal_uInt8 nType) |
Open a record of type "nType". More... | |
void | CloseRec () |
Close a record. More... | |
sal_uInt32 | BytesLeft () |
Return the number of bytes contained in the current record that haven't been read by now. More... | |
sal_uInt8 | Peek () |
Return the current record's type. More... | |
void | SkipRec () |
Skip the current record. More... | |
sal_uInt8 | OpenFlagRec () |
Open a flag record for reading. More... | |
void | OpenFlagRec (sal_uInt8 nFlags, sal_uInt8 nLen) |
Open flag record for writing;. More... | |
void | CloseFlagRec () |
Close a flag record. Any bytes left are skipped. More... | |
bool | HasError () const |
sal_uInt16 | GetMajorVersion () const |
sal_uInt16 | GetMinorVersion () const |
Private Attributes | |
std::vector< RecTypeSize > | m_aRecords |
SvStream * | m_pStream |
sal_uLong | m_nFlagRecEnd |
sal_uInt16 | m_nMajorVersion |
sal_uInt16 | m_nMinorVersion |
bool | m_bWriteMode: 1 |
bool | m_bError: 1 |
Definition at line 149 of file layhelp.hxx.
SwLayCacheIoImpl::SwLayCacheIoImpl | ( | SvStream & | rStrm, |
bool | bWrtMd | ||
) |
Definition at line 1045 of file laycache.cxx.
References m_bError, m_bWriteMode, m_nMajorVersion, m_nMinorVersion, m_pStream, m_pStream, SvStream::ReadUInt16(), rStrm, and SvStream::WriteUInt16().
sal_uInt32 SwLayCacheIoImpl::BytesLeft | ( | ) |
Return the number of bytes contained in the current record that haven't been read by now.
Definition at line 1129 of file laycache.cxx.
References m_aRecords, m_bError, m_pStream, n, nPos, and SvStream::Tell().
Referenced by SwLayCacheImpl::Read().
void SwLayCacheIoImpl::CloseFlagRec | ( | ) |
Close a flag record. Any bytes left are skipped.
Definition at line 1186 of file laycache.cxx.
References m_bWriteMode, m_nFlagRecEnd, m_pStream, SvStream::Seek(), and SvStream::Tell().
Referenced by SwLayCacheImpl::Read(), and SwLayoutCache::Write().
void SwLayCacheIoImpl::CloseRec | ( | ) |
Close a record.
This skips any unread data that remains in the record.
Definition at line 1091 of file laycache.cxx.
References ERRCODE_NONE, SvStream::GetError(), SvStream::GetErrorCode(), m_aRecords, m_bError, m_bWriteMode, m_pStream, n, nPos, SvStream::Seek(), SvStream::Tell(), and SvStream::WriteUInt32().
Referenced by SwLayCacheImpl::Read(), SkipRec(), and SwLayoutCache::Write().
|
inline |
Definition at line 205 of file layhelp.hxx.
References m_nMajorVersion.
Referenced by SwLayCacheImpl::Read().
|
inline |
Definition at line 206 of file layhelp.hxx.
References m_nMinorVersion.
Referenced by SwLayCacheImpl::Read().
|
inline |
Get input or output stream.
Definition at line 173 of file layhelp.hxx.
References m_pStream.
Referenced by SwLayCacheImpl::Read(), and SwLayoutCache::Write().
|
inline |
Definition at line 203 of file layhelp.hxx.
References m_bError.
Referenced by SwLayCacheImpl::Read().
sal_uInt8 SwLayCacheIoImpl::OpenFlagRec | ( | ) |
Open a flag record for reading.
The uppermost four bits are flags, while the lowermost are the flag record's size. Flag records cannot be nested.
Definition at line 1167 of file laycache.cxx.
References m_bWriteMode, m_nFlagRecEnd, m_pStream, SvStream::ReadUChar(), and SvStream::Tell().
Referenced by SwLayCacheImpl::Read(), and SwLayoutCache::Write().
Open flag record for writing;.
Definition at line 1176 of file laycache.cxx.
References m_bWriteMode, m_nFlagRecEnd, m_pStream, SvStream::Tell(), and SvStream::WriteUChar().
void SwLayCacheIoImpl::OpenRec | ( | sal_uInt8 | nType | ) |
Open a record of type "nType".
Definition at line 1062 of file laycache.cxx.
References SvStream::good(), m_aRecords, m_bError, m_bWriteMode, m_pStream, nPos, SvStream::ReadUInt32(), SvStream::Tell(), and SvStream::WriteUInt32().
Referenced by SwLayCacheImpl::Read(), SkipRec(), and SwLayoutCache::Write().
sal_uInt8 SwLayCacheIoImpl::Peek | ( | ) |
Return the current record's type.
Definition at line 1142 of file laycache.cxx.
References ERRCODE_NONE, SvStream::GetErrorCode(), m_bError, m_pStream, nPos, SvStream::ReadUChar(), SvStream::Seek(), and SvStream::Tell().
Referenced by SwLayCacheImpl::Read(), and SkipRec().
void SwLayCacheIoImpl::SkipRec | ( | ) |
Skip the current record.
Definition at line 1159 of file laycache.cxx.
References CloseRec(), m_aRecords, m_pStream, OpenRec(), Peek(), and SvStream::Seek().
Referenced by SwLayCacheImpl::Read().
|
private |
Definition at line 157 of file layhelp.hxx.
Referenced by BytesLeft(), CloseRec(), OpenRec(), and SkipRec().
|
private |
Definition at line 167 of file layhelp.hxx.
Referenced by BytesLeft(), CloseRec(), HasError(), OpenRec(), and Peek().
|
private |
Definition at line 166 of file layhelp.hxx.
Referenced by CloseFlagRec(), CloseRec(), OpenFlagRec(), OpenRec(), and SwLayCacheIoImpl().
|
private |
Definition at line 161 of file layhelp.hxx.
Referenced by CloseFlagRec(), and OpenFlagRec().
|
private |
Definition at line 163 of file layhelp.hxx.
Referenced by GetMajorVersion(), and SwLayCacheIoImpl().
|
private |
Definition at line 164 of file layhelp.hxx.
Referenced by GetMinorVersion(), and SwLayCacheIoImpl().
|
private |
Definition at line 159 of file layhelp.hxx.
Referenced by BytesLeft(), CloseFlagRec(), CloseRec(), GetStream(), OpenFlagRec(), OpenRec(), Peek(), SkipRec(), and SwLayCacheIoImpl().