LibreOffice Module sc (master) 1
|
This class represents an unformatted or formatted string and provides importing from stream. More...
#include <xistring.hxx>
Public Member Functions | |
XclImpString () | |
Constructs an empty string. More... | |
XclImpString (OUString aString) | |
Constructs an unformatted string. More... | |
void | Read (XclImpStream &rStrm, XclStrFlags nFlags=XclStrFlags::NONE) |
Reads a complete string from the passed stream. More... | |
void | SetText (const OUString &rText) |
Sets the passed string data. More... | |
void | SetFormats (XclFormatRunVec &&rFormats) |
Sets the passed formatting buffer. More... | |
void | ReadFormats (XclImpStream &rStrm) |
Reads and appends the formatting information (run count and runs) from stream. More... | |
void | ReadObjFormats (XclImpStream &rStrm, sal_uInt16 nFormatSize) |
Reads and appends formatting runs from an OBJ or TXO record. More... | |
bool | IsEmpty () const |
Returns true, if the string is empty. More... | |
const OUString & | GetText () const |
Returns the pure text data of the string. More... | |
bool | IsRich () const |
Returns true, if the string contains formatting information. More... | |
const XclFormatRunVec & | GetFormats () const |
Returns the formatting run vector. More... | |
Static Public Member Functions | |
static void | AppendFormat (XclFormatRunVec &rFormats, sal_uInt16 nChar, sal_uInt16 nFontIdx) |
Insert a formatting run to the passed format buffer. More... | |
static void | ReadFormats (XclImpStream &rStrm, XclFormatRunVec &rFormats) |
Reads and appends the formatting information (run count and runs) from stream. More... | |
static void | ReadFormats (XclImpStream &rStrm, XclFormatRunVec &rFormats, sal_uInt16 nRunCount) |
Reads and appends nRunCount formatting runs from stream. More... | |
static void | ReadObjFormats (XclImpStream &rStrm, XclFormatRunVec &rFormats, sal_uInt16 nFormatSize) |
Reads and appends formatting runs from an OBJ or TXO record. More... | |
Private Attributes | |
OUString | maString |
XclFormatRunVec | maFormats |
The text data of the string. More... | |
This class represents an unformatted or formatted string and provides importing from stream.
Definition at line 30 of file xistring.hxx.
|
explicit |
Constructs an empty string.
Definition at line 33 of file xistring.cxx.
|
explicit |
|
static |
Insert a formatting run to the passed format buffer.
Definition at line 93 of file xistring.cxx.
Referenced by ReadFormats(), and ReadObjFormats().
|
inline |
Returns the formatting run vector.
Definition at line 58 of file xistring.hxx.
References maFormats.
|
inline |
Returns the pure text data of the string.
Definition at line 53 of file xistring.hxx.
References maString.
Referenced by XclImpStringHelper::SetToDocument().
|
inline |
Returns true, if the string is empty.
Definition at line 51 of file xistring.hxx.
References maString.
|
inline |
Returns true, if the string contains formatting information.
Definition at line 56 of file xistring.hxx.
References maFormats.
Referenced by ImportExcel::Rstring().
void XclImpString::Read | ( | XclImpStream & | rStrm, |
XclStrFlags | nFlags = XclStrFlags::NONE |
||
) |
Reads a complete string from the passed stream.
Definition at line 42 of file xistring.cxx.
References DBG_ERROR_BIFF, EightBitLength, EXC_BIFF2, EXC_BIFF3, EXC_BIFF4, EXC_BIFF5, EXC_BIFF8, maFormats, maString, nAllowedFlags, ReadFormats(), rStrm, SAL_WARN_IF, SeparateFormats, and SmartFlags.
Referenced by ImportExcel::ReadLabel(), XclImpSst::ReadSst(), and ImportExcel::Rstring().
|
inline |
Reads and appends the formatting information (run count and runs) from stream.
Definition at line 46 of file xistring.hxx.
References maFormats, ReadFormats(), and rStrm.
Referenced by Read(), ReadFormats(), XclImpChText::ReadSubRecord(), and ImportExcel::Rstring().
|
static |
Reads and appends the formatting information (run count and runs) from stream.
Definition at line 103 of file xistring.cxx.
References EXC_BIFF8, ReadFormats(), and rStrm.
|
static |
Reads and appends nRunCount formatting runs from stream.
Definition at line 110 of file xistring.cxx.
References AppendFormat(), EXC_BIFF8, rStrm, SAL_WARN, and SVSTREAM_FILEFORMAT_ERROR.
|
inline |
Reads and appends formatting runs from an OBJ or TXO record.
Definition at line 48 of file xistring.hxx.
References maFormats, ReadObjFormats(), and rStrm.
Referenced by ReadObjFormats().
|
static |
Reads and appends formatting runs from an OBJ or TXO record.
Definition at line 147 of file xistring.cxx.
References AppendFormat(), and rStrm.
|
inline |
Sets the passed formatting buffer.
Definition at line 44 of file xistring.hxx.
References maFormats.
|
inline |
|
private |
The text data of the string.
Definition at line 71 of file xistring.hxx.
Referenced by GetFormats(), IsRich(), Read(), ReadFormats(), ReadObjFormats(), and SetFormats().
|
private |