LibreOffice Module sc (master) 1
|
Binary representation of an Excel token array. More...
#include <xlformula.hxx>
Public Member Functions | |
XclTokenArray (bool bVolatile=false) | |
Creates an empty token array. More... | |
XclTokenArray (ScfUInt8Vec &rTokVec, ScfUInt8Vec &rExtDataVec, bool bVolatile=false) | |
Creates a token array, swaps passed token vectors into own data. More... | |
bool | Empty () const |
Returns true, if the token array is empty. More... | |
sal_uInt16 | GetSize () const |
Returns the size of the token array in bytes. More... | |
const sal_uInt8 * | GetData () const |
Returns read-only access to the byte vector storing token data. More... | |
bool | IsVolatile () const |
Returns true, if the formula contains a volatile function. More... | |
void | ReadArray (sal_uInt16 nSize, XclImpStream &rStrm) |
Reads the tokens of the token array (without size field). More... | |
void | Read (XclImpStream &rStrm) |
Reads size field and the tokens. More... | |
void | WriteSize (XclExpStream &rStrm) const |
Writes the size field of the token array. More... | |
void | WriteArray (XclExpStream &rStrm) const |
Writes the tokens of the token array (without size field). More... | |
void | Write (XclExpStream &rStrm) const |
Writes size field and the tokens. More... | |
bool | operator== (const XclTokenArray &rTokArr) const |
Compares this token array with the passed. More... | |
Static Public Member Functions | |
static sal_uInt16 | ReadSize (XclImpStream &rStrm) |
Reads the size field of the token array. More... | |
Private Attributes | |
ScfUInt8Vec | maTokVec |
ScfUInt8Vec | maExtDataVec |
Byte vector containing token data. More... | |
bool | mbVolatile |
Byte vector containing extended data (arrays, stacked NLRs). More... | |
Binary representation of an Excel token array.
Definition at line 376 of file xlformula.hxx.
|
explicit |
Creates an empty token array.
Definition at line 723 of file xlformula.cxx.
|
explicit |
Creates a token array, swaps passed token vectors into own data.
Definition at line 728 of file xlformula.cxx.
References maExtDataVec, and maTokVec.
|
inline |
Returns true, if the token array is empty.
Definition at line 385 of file xlformula.hxx.
References maTokVec.
Referenced by XclImpFmlaCompImpl::CreateFormula(), and XclImpFmlaCompImpl::CreateRangeList().
|
inline |
Returns read-only access to the byte vector storing token data.
Definition at line 389 of file xlformula.hxx.
References maTokVec.
Referenced by XclImpFmlaCompImpl::CreateFormula(), and XclImpFmlaCompImpl::CreateRangeList().
sal_uInt16 XclTokenArray::GetSize | ( | ) | const |
Returns the size of the token array in bytes.
Definition at line 735 of file xlformula.cxx.
References maTokVec.
Referenced by XclImpFmlaCompImpl::CreateFormula(), XclImpFmlaCompImpl::CreateRangeList(), WriteArray(), XclExpControlHelper::WriteFormula(), XclExpControlHelper::WriteFormulaSubRec(), WriteSize(), and XclExpOcxControlObj::WriteSubRecs().
|
inline |
Returns true, if the formula contains a volatile function.
Definition at line 391 of file xlformula.hxx.
References mbVolatile.
bool XclTokenArray::operator== | ( | const XclTokenArray & | rTokArr | ) | const |
Compares this token array with the passed.
Definition at line 795 of file xlformula.cxx.
References maExtDataVec, maTokVec, and mbVolatile.
void XclTokenArray::Read | ( | XclImpStream & | rStrm | ) |
Reads size field and the tokens.
Definition at line 771 of file xlformula.cxx.
References ReadArray(), ReadSize(), and rStrm.
Referenced by operator>>().
void XclTokenArray::ReadArray | ( | sal_uInt16 | nSize, |
XclImpStream & | rStrm | ||
) |
Reads the tokens of the token array (without size field).
Definition at line 746 of file xlformula.cxx.
References maTokVec, rStrm, and o3tl::sanitizing_min().
Referenced by Read(), and XclImpControlHelper::ReadRangeList().
|
static |
Reads the size field of the token array.
Definition at line 741 of file xlformula.cxx.
References rStrm.
Referenced by Read(), and XclImpControlHelper::ReadRangeList().
void XclTokenArray::Write | ( | XclExpStream & | rStrm | ) | const |
Writes size field and the tokens.
Definition at line 789 of file xlformula.cxx.
References rStrm, WriteArray(), and WriteSize().
Referenced by operator<<().
void XclTokenArray::WriteArray | ( | XclExpStream & | rStrm | ) | const |
Writes the tokens of the token array (without size field).
Definition at line 781 of file xlformula.cxx.
References GetSize(), maExtDataVec, maTokVec, and rStrm.
Referenced by Write(), and XclExpControlHelper::WriteFormula().
void XclTokenArray::WriteSize | ( | XclExpStream & | rStrm | ) | const |
Writes the size field of the token array.
Definition at line 776 of file xlformula.cxx.
References GetSize(), and rStrm.
Referenced by Write().
|
private |
Byte vector containing token data.
Definition at line 412 of file xlformula.hxx.
Referenced by operator==(), WriteArray(), and XclTokenArray().
|
private |
Definition at line 411 of file xlformula.hxx.
Referenced by Empty(), GetData(), GetSize(), operator==(), ReadArray(), WriteArray(), and XclTokenArray().
|
private |
Byte vector containing extended data (arrays, stacked NLRs).
Definition at line 413 of file xlformula.hxx.
Referenced by IsVolatile(), and operator==().