LibreOffice Module sc (master) 1
|
This class represents an Excel stream position. More...
#include <xistream.hxx>
Public Member Functions | |
XclImpStreamPos () | |
Constructs an invalid stream position data object. More... | |
void | Set (const SvStream &rStrm, std::size_t nNextPos, std::size_t nCurrSize, sal_uInt16 nRawRecId, sal_uInt16 nRawRecSize, sal_uInt16 nRawRecLeft, bool bValid) |
Sets the stream position data to the passed values. More... | |
void | Get (SvStream &rStrm, std::size_t &rnNextPos, std::size_t &rnCurrSize, sal_uInt16 &rnRawRecId, sal_uInt16 &rnRawRecSize, sal_uInt16 &rnRawRecLeft, bool &rbValid) const |
Writes the contained stream position data to the given variables. More... | |
std::size_t | GetPos () const |
Returns the stored stream position. More... | |
Private Attributes | |
std::size_t | mnPos |
std::size_t | mnNextPos |
Absolute position of the stream. More... | |
std::size_t | mnCurrSize |
Absolute position of next record. More... | |
sal_uInt16 | mnRawRecId |
Current calculated size of the record. More... | |
sal_uInt16 | mnRawRecSize |
Current raw record ID (including CONTINUEs). More... | |
sal_uInt16 | mnRawRecLeft |
Current raw record size (without following CONTINUEs). More... | |
bool | mbValid |
Bytes left in current raw record (without following CONTINUEs). More... | |
This class represents an Excel stream position.
@descr It contains the relevant data for a stream position inside of a record (including CONTINUE records).
Definition at line 201 of file xistream.hxx.
|
explicit |
Constructs an invalid stream position data object.
Definition at line 348 of file xistream.cxx.
References STREAM_SEEK_TO_BEGIN.
void XclImpStreamPos::Get | ( | SvStream & | rStrm, |
std::size_t & | rnNextPos, | ||
std::size_t & | rnCurrSize, | ||
sal_uInt16 & | rnRawRecId, | ||
sal_uInt16 & | rnRawRecSize, | ||
sal_uInt16 & | rnRawRecLeft, | ||
bool & | rbValid | ||
) | const |
Writes the contained stream position data to the given variables.
Definition at line 373 of file xistream.cxx.
References mbValid, mnCurrSize, mnNextPos, mnPos, mnRawRecId, mnRawRecLeft, mnRawRecSize, rStrm, and SvStream::Seek().
Referenced by XclImpStream::RestorePosition().
|
inline |
Returns the stored stream position.
Definition at line 218 of file xistream.hxx.
References mnPos.
Referenced by XclImpStream::RewindRecord().
void XclImpStreamPos::Set | ( | const SvStream & | rStrm, |
std::size_t | nNextPos, | ||
std::size_t | nCurrSize, | ||
sal_uInt16 | nRawRecId, | ||
sal_uInt16 | nRawRecSize, | ||
sal_uInt16 | nRawRecLeft, | ||
bool | bValid | ||
) |
Sets the stream position data to the passed values.
Definition at line 359 of file xistream.cxx.
References mbValid, mnCurrSize, mnNextPos, mnPos, mnRawRecId, mnRawRecLeft, mnRawRecSize, rStrm, and SvStream::Tell().
Referenced by XclImpStream::StorePosition().
|
private |
Bytes left in current raw record (without following CONTINUEs).
Definition at line 227 of file xistream.hxx.
|
private |
Absolute position of next record.
Definition at line 223 of file xistream.hxx.
|
private |
Absolute position of the stream.
Definition at line 222 of file xistream.hxx.
|
private |
Definition at line 221 of file xistream.hxx.
|
private |
Current calculated size of the record.
Definition at line 224 of file xistream.hxx.
|
private |
Current raw record size (without following CONTINUEs).
Definition at line 226 of file xistream.hxx.
|
private |
Current raw record ID (including CONTINUEs).
Definition at line 225 of file xistream.hxx.