LibreOffice Module sc (master) 1
|
Iterates over formatted string portions. More...
#include <xistring.hxx>
Public Member Functions | |
XclImpStringIterator (const XclImpString &rString) | |
bool | Is () const |
Returns true, if the iterator references a valid text portion. More... | |
size_t | GetPortionIndex () const |
Returns the index of the current text portion. More... | |
OUString | GetPortionText () const |
Returns the string of the current text portion. More... | |
sal_uInt16 | GetPortionFont () const |
Returns the font index of the current text portion. More... | |
XclImpStringIterator & | operator++ () |
Moves iterator to next text portion. More... | |
Private Attributes | |
const OUString & | mrText |
const XclFormatRunVec & | mrFormats |
The processed string. More... | |
size_t | mnPortion |
The vector of formatting runs. More... | |
sal_Int32 | mnTextBeg |
Current text portion. More... | |
sal_Int32 | mnTextEnd |
First character of current portion. More... | |
size_t | mnFormatsBeg |
First character of next portion. More... | |
size_t | mnFormatsEnd |
Formatting run index for current portion. More... | |
Iterates over formatted string portions.
Definition at line 77 of file xistring.hxx.
|
explicit |
Definition at line 164 of file xistring.cxx.
References mnFormatsEnd, mnTextEnd, mrFormats, and mrText.
sal_uInt16 XclImpStringIterator::GetPortionFont | ( | ) | const |
Returns the font index of the current text portion.
Definition at line 186 of file xistring.cxx.
References EXC_FONT_NOTFOUND, mnFormatsBeg, mnFormatsEnd, and mrFormats.
|
inline |
Returns the index of the current text portion.
Definition at line 85 of file xistring.hxx.
References mnPortion.
OUString XclImpStringIterator::GetPortionText | ( | ) | const |
Returns the string of the current text portion.
Definition at line 181 of file xistring.cxx.
|
inline |
Returns true, if the iterator references a valid text portion.
Definition at line 83 of file xistring.hxx.
References mnTextBeg, and mrText.
Referenced by XclImpChSourceLink::CreateStringSequence(), and operator++().
XclImpStringIterator & XclImpStringIterator::operator++ | ( | void | ) |
Moves iterator to next text portion.
Definition at line 191 of file xistring.cxx.
References Is(), mnFormatsBeg, mnFormatsEnd, mnPortion, mnTextBeg, mnTextEnd, mrFormats, and mrText.
|
private |
First character of next portion.
Definition at line 100 of file xistring.hxx.
Referenced by GetPortionFont(), and operator++().
|
private |
Formatting run index for current portion.
Definition at line 101 of file xistring.hxx.
Referenced by GetPortionFont(), operator++(), and XclImpStringIterator().
|
private |
The vector of formatting runs.
Definition at line 97 of file xistring.hxx.
Referenced by GetPortionIndex(), and operator++().
|
private |
Current text portion.
Definition at line 98 of file xistring.hxx.
Referenced by GetPortionText(), Is(), and operator++().
|
private |
First character of current portion.
Definition at line 99 of file xistring.hxx.
Referenced by GetPortionText(), operator++(), and XclImpStringIterator().
|
private |
The processed string.
Definition at line 96 of file xistring.hxx.
Referenced by GetPortionFont(), operator++(), and XclImpStringIterator().
|
private |
Definition at line 95 of file xistring.hxx.
Referenced by GetPortionText(), Is(), operator++(), and XclImpStringIterator().