LLEmbeddedItems Class Reference

Collaboration diagram for LLEmbeddedItems:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLEmbeddedItems (const LLViewerTextEditor *editor)
 ~LLEmbeddedItems ()
void clear ()
bool empty ()
void bindEmbeddedChars (LLFontGL *font) const
void unbindEmbeddedChars (LLFontGL *font) const
BOOL insertEmbeddedItem (LLInventoryItem *item, llwchar *value, bool is_new)
BOOL removeEmbeddedItem (llwchar ext_char)
BOOL hasEmbeddedItem (llwchar ext_char)
void getEmbeddedItemList (std::vector< LLPointer< LLInventoryItem > > &items)
void addItems (const std::vector< LLPointer< LLInventoryItem > > &items)
llwchar getEmbeddedCharFromIndex (S32 index)
void removeUnusedChars ()
void copyUsedCharsToIndexed ()
S32 getIndexFromEmbeddedChar (llwchar wch)
void markSaved ()

Static Public Member Functions

static LLInventoryItemgetEmbeddedItem (llwchar ext_char)
static BOOL getEmbeddedItemSaved (llwchar ext_char)

Private Types

typedef std::map< llwchar,
embedded_info_t
item_map_t

Private Attributes

std::set< llwcharmEmbeddedUsedChars
std::vector< llwcharmEmbeddedIndexedChars
const LLViewerTextEditormEditor

Static Private Attributes

static item_map_t sEntries
static std::stack< llwcharsFreeEntries

Classes

struct  embedded_info_t


Detailed Description

Definition at line 140 of file llviewertexteditor.cpp.


Member Typedef Documentation

typedef std::map<llwchar, embedded_info_t > LLEmbeddedItems::item_map_t [private]

Definition at line 179 of file llviewertexteditor.cpp.


Constructor & Destructor Documentation

LLEmbeddedItems::LLEmbeddedItems ( const LLViewerTextEditor editor  ) 

Definition at line 192 of file llviewertexteditor.cpp.

LLEmbeddedItems::~LLEmbeddedItems (  ) 

Definition at line 197 of file llviewertexteditor.cpp.

References clear().

Here is the call graph for this function:


Member Function Documentation

void LLEmbeddedItems::clear ( void   ) 

Definition at line 202 of file llviewertexteditor.cpp.

References mEmbeddedIndexedChars, mEmbeddedUsedChars, and removeEmbeddedItem().

Referenced by LLViewerTextEditor::importStream(), and ~LLEmbeddedItems().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLEmbeddedItems::empty ( void   ) 

Definition at line 215 of file llviewertexteditor.cpp.

References mEmbeddedUsedChars, and removeUnusedChars().

Referenced by LLViewerTextEditor::hasEmbeddedInventory().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLEmbeddedItems::bindEmbeddedChars ( LLFontGL font  )  const

void LLEmbeddedItems::unbindEmbeddedChars ( LLFontGL font  )  const

Definition at line 441 of file llviewertexteditor.cpp.

References mEmbeddedUsedChars, LLFontGL::removeEmbeddedChar(), and sEntries.

Referenced by LLViewerTextEditor::unbindEmbeddedChars().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLEmbeddedItems::insertEmbeddedItem ( LLInventoryItem item,
llwchar value,
bool  is_new 
)

BOOL LLEmbeddedItems::removeEmbeddedItem ( llwchar  ext_char  ) 

Definition at line 255 of file llviewertexteditor.cpp.

References FALSE, mEmbeddedUsedChars, sEntries, sFreeEntries, and TRUE.

Referenced by clear(), and removeUnusedChars().

Here is the caller graph for this function:

BOOL LLEmbeddedItems::hasEmbeddedItem ( llwchar  ext_char  ) 

Definition at line 361 of file llviewertexteditor.cpp.

References FALSE, mEmbeddedUsedChars, and TRUE.

Referenced by LLViewerTextEditor::pasteEmbeddedItem().

Here is the caller graph for this function:

void LLEmbeddedItems::getEmbeddedItemList ( std::vector< LLPointer< LLInventoryItem > > &  items  ) 

Definition at line 472 of file llviewertexteditor.cpp.

References getEmbeddedItem(), and mEmbeddedUsedChars.

Referenced by LLViewerTextEditor::exportBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLEmbeddedItems::addItems ( const std::vector< LLPointer< LLInventoryItem > > &  items  ) 

Definition at line 454 of file llviewertexteditor.cpp.

References insertEmbeddedItem(), and mEmbeddedIndexedChars.

Referenced by LLViewerTextEditor::importStream().

Here is the call graph for this function:

Here is the caller graph for this function:

llwchar LLEmbeddedItems::getEmbeddedCharFromIndex ( S32  index  ) 

Definition at line 296 of file llviewertexteditor.cpp.

References LL_UNKNOWN_CHAR, llendl, llwarns, mEmbeddedIndexedChars, and S32.

Referenced by LLViewerTextEditor::setASCIIEmbeddedText(), and LLViewerTextEditor::setEmbeddedText().

Here is the caller graph for this function:

void LLEmbeddedItems::removeUnusedChars (  ) 

Definition at line 306 of file llviewertexteditor.cpp.

References LLTextEditor::FIRST_EMBEDDED_CHAR, LLTextEditor::getWText(), i, LLTextEditor::LAST_EMBEDDED_CHAR, mEditor, mEmbeddedUsedChars, removeEmbeddedItem(), and S32.

Referenced by copyUsedCharsToIndexed(), empty(), and LLViewerTextEditor::LLTextCmdInsertEmbeddedItem::execute().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLEmbeddedItems::copyUsedCharsToIndexed (  ) 

Definition at line 326 of file llviewertexteditor.cpp.

References mEmbeddedIndexedChars, mEmbeddedUsedChars, and removeUnusedChars().

Referenced by LLViewerTextEditor::getEmbeddedText().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLEmbeddedItems::getIndexFromEmbeddedChar ( llwchar  wch  ) 

Definition at line 340 of file llviewertexteditor.cpp.

References llendl, llwarns, mEmbeddedIndexedChars, and S32.

Referenced by LLViewerTextEditor::getEmbeddedText().

Here is the caller graph for this function:

void LLEmbeddedItems::markSaved (  ) 

Definition at line 485 of file llviewertexteditor.cpp.

References mEmbeddedUsedChars, sEntries, and TRUE.

Referenced by LLViewerTextEditor::makePristine().

Here is the caller graph for this function:

LLInventoryItem * LLEmbeddedItems::getEmbeddedItem ( llwchar  ext_char  )  [static]

BOOL LLEmbeddedItems::getEmbeddedItemSaved ( llwchar  ext_char  )  [static]


Member Data Documentation

std::stack< llwchar > LLEmbeddedItems::sFreeEntries [static, private]

Definition at line 181 of file llviewertexteditor.cpp.

Referenced by insertEmbeddedItem(), and removeEmbeddedItem().

Definition at line 185 of file llviewertexteditor.cpp.

Referenced by removeUnusedChars().


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

Generated on Fri May 16 08:44:19 2008 for SecondLife by  doxygen 1.5.5