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 77 of file xistring.hxx.

Constructor & Destructor Documentation

◆ XclImpStringIterator()

XclImpStringIterator::XclImpStringIterator ( const XclImpString rString)
explicit

Definition at line 164 of file xistring.cxx.

References mnFormatsEnd, mnTextEnd, mrFormats, and mrText.

Member Function Documentation

◆ GetPortionFont()

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.

◆ GetPortionIndex()

size_t XclImpStringIterator::GetPortionIndex ( ) const
inline

Returns the index of the current text portion.

Definition at line 85 of file xistring.hxx.

References mnPortion.

◆ GetPortionText()

OUString XclImpStringIterator::GetPortionText ( ) const

Returns the string of the current text portion.

Definition at line 181 of file xistring.cxx.

References mnTextBeg, mnTextEnd, and mrText.

◆ Is()

bool XclImpStringIterator::Is ( ) const
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++().

◆ 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.

Member Data Documentation

◆ mnFormatsBeg

size_t XclImpStringIterator::mnFormatsBeg
private

First character of next portion.

Definition at line 100 of file xistring.hxx.

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

◆ mnFormatsEnd

size_t XclImpStringIterator::mnFormatsEnd
private

Formatting run index for current portion.

Definition at line 101 of file xistring.hxx.

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

◆ mnPortion

size_t XclImpStringIterator::mnPortion
private

The vector of formatting runs.

Definition at line 97 of file xistring.hxx.

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

◆ mnTextBeg

sal_Int32 XclImpStringIterator::mnTextBeg
private

Current text portion.

Definition at line 98 of file xistring.hxx.

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

◆ mnTextEnd

sal_Int32 XclImpStringIterator::mnTextEnd
private

First character of current portion.

Definition at line 99 of file xistring.hxx.

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

◆ mrFormats

const XclFormatRunVec& XclImpStringIterator::mrFormats
private

The processed string.

Definition at line 96 of file xistring.hxx.

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

◆ mrText

const OUString& XclImpStringIterator::mrText
private

Definition at line 95 of file xistring.hxx.

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


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