describes itemization of text More...
#include <gr_RenderInfo.h>
Public Member Functions | |
GR_Itemization () | |
virtual | ~GR_Itemization () |
UT_sint32 | getItemCount () const |
UT_sint32 | getNthOffset (UT_sint32 i) const |
GR_ScriptType | getNthType (UT_sint32 i) const |
UT_uint32 | getNthLength (UT_sint32 i) |
GR_Item * | getNthItem (UT_sint32 i) const |
void | addItem (UT_sint32 offset, GR_Item *item) |
void | insertItem (UT_sint32 indx, UT_sint32 offset, GR_Item *item) |
void | clear () |
void | setEmbedingLevel (UT_uint32 l) |
UT_uint32 | getEmbedingLevel () const |
void | setDirOverride (UT_BidiCharType o) |
UT_BidiCharType | getDirOverride () const |
void | setShowControlChars (bool s) |
bool | getShowControlChars () const |
void | setLang (const char *l) |
const char * | getLang () const |
void | setFont (const GR_Font *pFont) |
const GR_Font * | getFont () const |
Private Attributes | |
UT_NumberVector | m_vOffsets |
UT_GenericVector< GR_Item * > | m_vItems |
UT_uint32 | m_iEmbedingLevel |
UT_BidiCharType | m_iDirOverride |
bool | m_bShowControlChars |
const char * | m_pLang |
const GR_Font * | m_pFont |
describes itemization of text
offset is where an item starts type is GR_ScriptType for the item
length of item is calculated as difference of offsets between neighbouring items
there is always to be one dummy item of type GRScriptType_Void after the last item with offset set so as to alow to calculate length of the last valid item
getItemCount() returns the count of all items, including the dummy GRScriptType_Void item.
GR_Itemization::GR_Itemization | ( | ) | [inline] |
virtual GR_Itemization::~GR_Itemization | ( | ) | [inline, virtual] |
Referenced by GR_Win32USPGraphics::itemize(), GR_Graphics::itemize(), and GR_CairoGraphics::itemize().
void GR_Itemization::clear | ( | void | ) |
References UT_GenericVector< T >::clear(), m_vItems, m_vOffsets, and UT_VECTOR_PURGEALL.
Referenced by GR_Graphics::itemize().
UT_BidiCharType GR_Itemization::getDirOverride | ( | ) | const [inline] |
Referenced by GR_Win32USPGraphics::itemize().
UT_uint32 GR_Itemization::getEmbedingLevel | ( | ) | const [inline] |
Referenced by GR_Win32USPGraphics::itemize().
const GR_Font* GR_Itemization::getFont | ( | ) | const [inline] |
Referenced by GR_CairoGraphics::itemize().
UT_sint32 GR_Itemization::getItemCount | ( | ) | const [inline] |
Referenced by fl_BlockLayout::_doInsertTextSpan(), and fp_TextRun::isOneItem().
const char* GR_Itemization::getLang | ( | ) | const [inline] |
Referenced by GR_Win32USPGraphics::itemize(), and GR_CairoGraphics::itemize().
Referenced by fl_BlockLayout::_doInsertTextSpan(), and fp_TextRun::itemize().
References UT_return_val_if_fail.
Referenced by fl_BlockLayout::_doInsertTextSpan().
Referenced by fl_BlockLayout::_doInsertTextSpan().
GR_ScriptType GR_Itemization::getNthType | ( | UT_sint32 | i | ) | const [inline] |
bool GR_Itemization::getShowControlChars | ( | ) | const [inline] |
Referenced by GR_Win32USPGraphics::itemize().
void GR_Itemization::setDirOverride | ( | UT_BidiCharType | o | ) | [inline] |
Referenced by fl_BlockLayout::itemizeSpan().
void GR_Itemization::setEmbedingLevel | ( | UT_uint32 | l | ) | [inline] |
Referenced by fl_BlockLayout::itemizeSpan().
void GR_Itemization::setFont | ( | const GR_Font * | pFont | ) | [inline] |
Referenced by fl_BlockLayout::itemizeSpan().
void GR_Itemization::setLang | ( | const char * | l | ) | [inline] |
Referenced by fl_BlockLayout::itemizeSpan().
void GR_Itemization::setShowControlChars | ( | bool | s | ) | [inline] |
Referenced by fl_BlockLayout::itemizeSpan().
bool GR_Itemization::m_bShowControlChars [private] |
UT_uint32 GR_Itemization::m_iEmbedingLevel [private] |
const GR_Font* GR_Itemization::m_pFont [private] |
const char* GR_Itemization::m_pLang [private] |
UT_GenericVector<GR_Item*> GR_Itemization::m_vItems [private] |
Referenced by clear().
UT_NumberVector GR_Itemization::m_vOffsets [private] |
Referenced by clear().