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

#include <ImplLayoutRuns.hxx>

Public Member Functions

 ImplLayoutRuns ()
 
void Clear ()
 
void AddPos (int nCharPos, bool bRTL)
 
void AddRun (int nMinRunPos, int nEndRunPos, bool bRTL)
 
bool IsEmpty () const
 
void ResetPos ()
 
void NextRun ()
 
bool GetRun (int *nMinRunPos, int *nEndRunPos, bool *bRTL) const
 
bool GetNextPos (int *nCharPos, bool *bRTL)
 
bool PosIsInRun (int nCharPos) const
 
bool PosIsInAnyRun (int nCharPos) const
 

Private Attributes

int mnRunIndex
 
boost::container::small_vector< int, 8 > maRuns
 

Detailed Description

Definition at line 26 of file ImplLayoutRuns.hxx.

Constructor & Destructor Documentation

◆ ImplLayoutRuns()

ImplLayoutRuns::ImplLayoutRuns ( )
inline

Definition at line 33 of file ImplLayoutRuns.hxx.

References mnRunIndex.

Member Function Documentation

◆ AddPos()

void ImplLayoutRuns::AddPos ( int  nCharPos,
bool  bRTL 
)

Definition at line 23 of file ImplLayoutRuns.cxx.

References maRuns, and nIndex.

Referenced by vcl::text::ImplLayoutArgs::PrepareFallback().

◆ AddRun()

void ImplLayoutRuns::AddRun ( int  nMinRunPos,
int  nEndRunPos,
bool  bRTL 
)

◆ Clear()

void ImplLayoutRuns::Clear ( )
inline

Definition at line 35 of file ImplLayoutRuns.hxx.

Referenced by vcl::text::ImplLayoutArgs::PrepareFallback().

◆ GetNextPos()

bool ImplLayoutRuns::GetNextPos ( int nCharPos,
bool *  bRTL 
)

Definition at line 107 of file ImplLayoutRuns.cxx.

References maRuns, and mnRunIndex.

Referenced by vcl::text::ImplLayoutArgs::GetNextPos().

◆ GetRun()

bool ImplLayoutRuns::GetRun ( int nMinRunPos,
int nEndRunPos,
bool *  bRTL 
) const

◆ IsEmpty()

bool ImplLayoutRuns::IsEmpty ( ) const
inline

◆ NextRun()

void ImplLayoutRuns::NextRun ( )
inline

◆ PosIsInAnyRun()

bool ImplLayoutRuns::PosIsInAnyRun ( int  nCharPos) const

Definition at line 86 of file ImplLayoutRuns.cxx.

References i, maRuns, mnRunIndex, NextRun(), PosIsInRun(), and ResetPos().

Referenced by MultiSalLayout::ImplAdjustMultiLayout().

◆ PosIsInRun()

bool ImplLayoutRuns::PosIsInRun ( int  nCharPos) const

Definition at line 69 of file ImplLayoutRuns.cxx.

References maRuns, and mnRunIndex.

Referenced by MultiSalLayout::ImplAdjustMultiLayout(), and PosIsInAnyRun().

◆ ResetPos()

void ImplLayoutRuns::ResetPos ( )
inline

Member Data Documentation

◆ maRuns

boost::container::small_vector<int, 8> ImplLayoutRuns::maRuns
private

Definition at line 30 of file ImplLayoutRuns.hxx.

Referenced by AddPos(), AddRun(), GetNextPos(), GetRun(), PosIsInAnyRun(), and PosIsInRun().

◆ mnRunIndex

int ImplLayoutRuns::mnRunIndex
private

Definition at line 29 of file ImplLayoutRuns.hxx.

Referenced by GetNextPos(), GetRun(), PosIsInAnyRun(), and PosIsInRun().


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