LibreOffice Module sc (master)  1
Public Member Functions | Private Attributes | List of all members
XclImpStringIterator Class Reference

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...
 
XclImpStringIteratoroperator++ ()
 Moves iterator to next text portion. More...
 

Private Attributes

const OUString & mrText
 
const XclFormatRunVecmrFormats
 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...
 

Detailed Description

Iterates over formatted string portions.

Definition at line 78 of file xistring.hxx.

Constructor & Destructor Documentation

XclImpStringIterator::XclImpStringIterator ( const XclImpString rString)
explicit

Definition at line 163 of file xistring.cxx.

References mnFormatsEnd, mnTextEnd, mrFormats, and mrText.

Member Function Documentation

sal_uInt16 XclImpStringIterator::GetPortionFont ( ) const

Returns the font index of the current text portion.

Definition at line 185 of file xistring.cxx.

References EXC_FONT_NOTFOUND, mnFormatsBeg, mnFormatsEnd, and mrFormats.

size_t XclImpStringIterator::GetPortionIndex ( ) const
inline

Returns the index of the current text portion.

Definition at line 86 of file xistring.hxx.

References mnPortion.

OUString XclImpStringIterator::GetPortionText ( ) const

Returns the string of the current text portion.

Definition at line 180 of file xistring.cxx.

References mnTextBeg, mnTextEnd, and mrText.

bool XclImpStringIterator::Is ( ) const
inline

Returns true, if the iterator references a valid text portion.

Definition at line 84 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 190 of file xistring.cxx.

References Is(), mnFormatsBeg, mnFormatsEnd, mnPortion, mnTextBeg, mnTextEnd, mrFormats, and mrText.

Member Data Documentation

size_t XclImpStringIterator::mnFormatsBeg
private

First character of next portion.

Definition at line 101 of file xistring.hxx.

Referenced by GetPortionFont(), and operator++().

size_t XclImpStringIterator::mnFormatsEnd
private

Formatting run index for current portion.

Definition at line 102 of file xistring.hxx.

Referenced by GetPortionFont(), operator++(), and XclImpStringIterator().

size_t XclImpStringIterator::mnPortion
private

The vector of formatting runs.

Definition at line 98 of file xistring.hxx.

Referenced by GetPortionIndex(), and operator++().

sal_Int32 XclImpStringIterator::mnTextBeg
private

Current text portion.

Definition at line 99 of file xistring.hxx.

Referenced by GetPortionText(), Is(), and operator++().

sal_Int32 XclImpStringIterator::mnTextEnd
private

First character of current portion.

Definition at line 100 of file xistring.hxx.

Referenced by GetPortionText(), operator++(), and XclImpStringIterator().

const XclFormatRunVec& XclImpStringIterator::mrFormats
private

The processed string.

Definition at line 97 of file xistring.hxx.

Referenced by GetPortionFont(), operator++(), and XclImpStringIterator().

const OUString& XclImpStringIterator::mrText
private

Definition at line 96 of file xistring.hxx.

Referenced by GetPortionText(), Is(), operator++(), and XclImpStringIterator().


The documentation for this class was generated from the following files: