Public Member Functions | Private Attributes

GR_Itemization Class Reference

describes itemization of text More...

#include <gr_RenderInfo.h>

List of all members.

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_ItemgetNthItem (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_FontgetFont () 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_Fontm_pFont

Detailed Description

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.

Constructor & Destructor Documentation

GR_Itemization::GR_Itemization (  )  [inline]
virtual GR_Itemization::~GR_Itemization (  )  [inline, virtual]

Member Function Documentation

void GR_Itemization::addItem ( UT_sint32  offset,
GR_Item item 
) [inline]
void GR_Itemization::clear ( void   ) 
UT_BidiCharType GR_Itemization::getDirOverride (  )  const [inline]
UT_uint32 GR_Itemization::getEmbedingLevel (  )  const [inline]
const GR_Font* GR_Itemization::getFont (  )  const [inline]
UT_sint32 GR_Itemization::getItemCount (  )  const [inline]
const char* GR_Itemization::getLang (  )  const [inline]
GR_Item* GR_Itemization::getNthItem ( UT_sint32  i  )  const [inline]
UT_uint32 GR_Itemization::getNthLength ( UT_sint32  i  )  [inline]
UT_sint32 GR_Itemization::getNthOffset ( UT_sint32  i  )  const [inline]
GR_ScriptType GR_Itemization::getNthType ( UT_sint32  i  )  const [inline]
bool GR_Itemization::getShowControlChars (  )  const [inline]
void GR_Itemization::insertItem ( UT_sint32  indx,
UT_sint32  offset,
GR_Item item 
) [inline]
void GR_Itemization::setDirOverride ( UT_BidiCharType  o  )  [inline]
void GR_Itemization::setEmbedingLevel ( UT_uint32  l  )  [inline]
void GR_Itemization::setFont ( const GR_Font pFont  )  [inline]
void GR_Itemization::setLang ( const char *  l  )  [inline]
void GR_Itemization::setShowControlChars ( bool  s  )  [inline]

Member Data Documentation

const GR_Font* GR_Itemization::m_pFont [private]
const char* GR_Itemization::m_pLang [private]

Referenced by clear().

Referenced by clear().

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