LibreOffice Module lotuswordpro (master) 1
|
encapsulate XInputStream to provide SvStream like interfaces More...
#include <lwpsvstream.hxx>
Public Member Functions | |
LwpSvStream (SvStream *pStream, LwpSvStream *pCompressed=nullptr) | |
size_t | Read (void *bytes, size_t nBytesToRead) |
@descr read nBytesToRead bytes to buf More... | |
void | SeekRel (sal_Int64 pos) |
@descr SeekRel in stream More... | |
sal_Int64 | Tell () |
@descr Get the current position in stream More... | |
sal_uInt64 | remainingSize () |
sal_Int64 | Seek (sal_Int64 pos) |
@descr Seek to pos More... | |
bool | CheckSeek (sal_Int64 pos) |
bool | good () const |
LwpSvStream & | ReadUInt8 (sal_uInt8 &rUInt8) |
LwpSvStream & | ReadUInt16 (sal_uInt16 &rUInt16) |
LwpSvStream & | ReadUInt32 (sal_uInt32 &rUInt32) |
LwpSvStream * | GetCompressedStream () |
SvStream * | GetStream () |
Static Public Attributes | |
static const sal_uInt32 | LWP_STREAM_BASE = 0x0010 |
Private Attributes | |
SvStream * | m_pStream |
LwpSvStream * | m_pCompressedStream |
encapsulate XInputStream to provide SvStream like interfaces
Definition at line 68 of file lwpsvstream.hxx.
LwpSvStream::LwpSvStream | ( | SvStream * | pStream, |
LwpSvStream * | pCompressed = nullptr |
||
) |
Definition at line 61 of file lwpsvstream.cxx.
References m_pStream.
bool LwpSvStream::CheckSeek | ( | sal_Int64 | pos | ) |
Definition at line 110 of file lwpsvstream.cxx.
References checkSeek(), m_pStream, and pos.
Referenced by LwpIndexManager::Read(), and Lwp9Reader::ReadFileHeader().
|
inline |
Definition at line 86 of file lwpsvstream.hxx.
References m_pCompressedStream.
Referenced by LwpGraphicObject::CreateDrawObjects(), LwpGraphicObject::GetGrafData(), LwpGraphicObject::GetRawGrafData(), and ReadWordproFile().
|
inline |
Definition at line 87 of file lwpsvstream.hxx.
References m_pStream.
Referenced by ReadWordproFile().
bool LwpSvStream::good | ( | ) | const |
Definition at line 93 of file lwpsvstream.cxx.
References SvStream::good(), and m_pStream.
size_t LwpSvStream::Read | ( | void * | bytes, |
size_t | nBytesToRead | ||
) |
@descr read nBytesToRead bytes to buf
Definition at line 70 of file lwpsvstream.cxx.
References m_pStream, and SvStream::ReadBytes().
Referenced by OpenStormBento::LtcBenContainer::Read(), LwpObjectStream::Read2Buffer(), and OpenStormBento::LtcBenContainer::ReadKnownSize().
LwpSvStream & LwpSvStream::ReadUInt16 | ( | sal_uInt16 & | rUInt16 | ) |
Definition at line 81 of file lwpsvstream.cxx.
References m_pStream, and SvStream::ReadUInt16().
Referenced by LwpFileHeader::Read(), LwpObjectID::Read(), and LwpObjectID::ReadIndexed().
LwpSvStream & LwpSvStream::ReadUInt32 | ( | sal_uInt32 & | rUInt32 | ) |
Definition at line 87 of file lwpsvstream.cxx.
References m_pStream, and SvStream::ReadUInt32().
Referenced by LwpFileHeader::Read(), LwpObjectID::Read(), and LwpObjectID::ReadIndexed().
LwpSvStream & LwpSvStream::ReadUInt8 | ( | sal_uInt8 & | rUInt8 | ) |
Definition at line 75 of file lwpsvstream.cxx.
References m_pStream, and SvStream::ReadUChar().
Referenced by LwpObjectID::ReadIndexed().
sal_uInt64 LwpSvStream::remainingSize | ( | ) |
Definition at line 104 of file lwpsvstream.cxx.
References m_pStream, and SvStream::remainingSize().
sal_Int64 LwpSvStream::Seek | ( | sal_Int64 | pos | ) |
@descr Seek to pos
Definition at line 108 of file lwpsvstream.cxx.
References m_pStream, pos, and SvStream::Seek().
Referenced by OpenStormBento::LtcBenContainer::LtcBenContainer(), LwpObjectFactory::QueryObject(), Lwp9Reader::ReadIndex(), LwpIndexManager::ReadObjIndexData(), OpenStormBento::LtcBenContainer::SeekFromEnd(), and OpenStormBento::LtcBenContainer::SeekToPosition().
void LwpSvStream::SeekRel | ( | sal_Int64 | pos | ) |
@descr SeekRel in stream
Definition at line 98 of file lwpsvstream.cxx.
References m_pStream, pos, and SvStream::SeekRel().
Referenced by OpenStormBento::LtcBenContainer::SeekFromEnd().
sal_Int64 LwpSvStream::Tell | ( | ) |
@descr Get the current position in stream
Definition at line 102 of file lwpsvstream.cxx.
References m_pStream, and SvStream::Tell().
Referenced by OpenStormBento::LtcBenContainer::LtcBenContainer(), Lwp9Reader::ReadFileHeader(), Lwp9Reader::ReadIndex(), and OpenStormBento::LtcBenContainer::remainingSize().
|
static |
Definition at line 84 of file lwpsvstream.hxx.
Referenced by LwpObjectFactory::QueryObject(), LwpIndexManager::Read(), Lwp9Reader::ReadFileHeader(), Lwp9Reader::ReadIndex(), and LwpIndexManager::ReadObjIndexData().
|
private |
Definition at line 96 of file lwpsvstream.hxx.
Referenced by GetCompressedStream().
|
private |
Definition at line 92 of file lwpsvstream.hxx.
Referenced by CheckSeek(), GetStream(), good(), Read(), ReadUInt16(), ReadUInt32(), ReadUInt8(), remainingSize(), Seek(), SeekRel(), and Tell().