22 #include <rtl/ustring.hxx>
void ReadFormats(XclImpStream &rStrm)
Reads and appends the formatting information (run count and runs) from stream.
sal_Int32 mnTextEnd
First character of current portion.
XclStrFlags
Flags used to specify import/export mode of strings.
sal_uInt16 GetPortionFont() const
Returns the font index of the current text portion.
void Read(XclImpStream &rStrm, XclStrFlags nFlags=XclStrFlags::NONE)
Reads a complete string from the passed stream.
OUString GetPortionText() const
Returns the string of the current text portion.
const XclFormatRunVec & GetFormats() const
Returns the formatting run vector.
bool IsRich() const
Returns true, if the string contains formatting information.
::std::vector< XclFormatRun > XclFormatRunVec
A vector with all formatting runs for a rich-string.
size_t GetPortionIndex() const
Returns the index of the current text portion.
void SetFormats(XclFormatRunVec &&rFormats)
Sets the passed formatting buffer.
void ReadObjFormats(XclImpStream &rStrm, sal_uInt16 nFormatSize)
Reads and appends formatting runs from an OBJ or TXO record.
bool Is() const
Returns true, if the iterator references a valid text portion.
size_t mnFormatsBeg
First character of next portion.
Iterates over formatted string portions.
const XclFormatRunVec & mrFormats
The processed string.
XclFormatRunVec maFormats
The text data of the string.
static void AppendFormat(XclFormatRunVec &rFormats, sal_uInt16 nChar, sal_uInt16 nFontIdx)
Insert a formatting run to the passed format buffer.
XclImpString()
Constructs an empty string.
XclImpStringIterator(const XclImpString &rString)
const OUString & GetText() const
Returns the pure text data of the string.
XclImpStringIterator & operator++()
Moves iterator to next text portion.
bool IsEmpty() const
Returns true, if the string is empty.
sal_Int32 mnTextBeg
Current text portion.
void SetText(const OUString &rText)
Sets the passed string data.
size_t mnFormatsEnd
Formatting run index for current portion.
This class is used to import record oriented streams.
This class represents an unformatted or formatted string and provides importing from stream...
size_t mnPortion
The vector of formatting runs.