LLKeywords Class Reference

#include <llkeywords.h>

List of all members.

Public Types

typedef std::map< LLWString,
LLKeywordToken * > 
word_token_map_t
typedef
word_token_map_t::const_iterator 
keyword_iterator_t

Public Member Functions

 LLKeywords ()
 ~LLKeywords ()
BOOL loadFromFile (const LLString &filename)
BOOL isLoaded () const
void findSegments (std::vector< LLTextSegment * > *seg_list, const LLWString &text, const LLColor4 &defaultColor)
void addToken (LLKeywordToken::TOKEN_TYPE type, const LLString &key, const LLColor3 &color, const LLString &tool_tip=LLString::null)
keyword_iterator_t begin () const
keyword_iterator_t end () const

Private Types

typedef std::deque
< LLKeywordToken * > 
token_list_t

Private Member Functions

LLColor3 readColor (const LLString &s)
void insertSegment (std::vector< LLTextSegment * > *seg_list, LLTextSegment *new_segment, S32 text_len, const LLColor4 &defaultColor)

Private Attributes

BOOL mLoaded
word_token_map_t mWordTokenMap
token_list_t mLineTokenList
token_list_t mDelimiterTokenList


Detailed Description

Definition at line 77 of file llkeywords.h.


Member Typedef Documentation

Definition at line 94 of file llkeywords.h.

typedef word_token_map_t::const_iterator LLKeywords::keyword_iterator_t

Definition at line 95 of file llkeywords.h.

typedef std::deque<LLKeywordToken*> LLKeywords::token_list_t [private]

Definition at line 109 of file llkeywords.h.


Constructor & Destructor Documentation

LLKeywords::LLKeywords (  ) 

Definition at line 61 of file llkeywords.cpp.

LLKeywords::~LLKeywords (  ) 

Definition at line 65 of file llkeywords.cpp.

References mDelimiterTokenList, mLineTokenList, and mWordTokenMap.


Member Function Documentation

BOOL LLKeywords::loadFromFile ( const LLString filename  ) 

BOOL LLKeywords::isLoaded (  )  const [inline]

Definition at line 84 of file llkeywords.h.

References mLoaded.

Referenced by LLTextEditor::updateSegments().

Here is the caller graph for this function:

void LLKeywords::findSegments ( std::vector< LLTextSegment * > *  seg_list,
const LLWString text,
const LLColor4 defaultColor 
)

void LLKeywords::addToken ( LLKeywordToken::TOKEN_TYPE  type,
const LLString key,
const LLColor3 color,
const LLString tool_tip = LLString::null 
)

Definition at line 195 of file llkeywords.cpp.

References LLKeywordToken::LINE, llassert, mDelimiterTokenList, mLineTokenList, mWordTokenMap, LLKeywordToken::ONE_SIDED_DELIMITER, LLKeywordToken::TWO_SIDED_DELIMITER, utf8str_to_wstring(), and LLKeywordToken::WORD.

Referenced by loadFromFile(), and LLTextEditor::loadKeywords().

Here is the call graph for this function:

Here is the caller graph for this function:

keyword_iterator_t LLKeywords::begin (  )  const [inline]

Definition at line 96 of file llkeywords.h.

References mWordTokenMap.

Referenced by LLTextEditor::keywordsBegin().

Here is the caller graph for this function:

keyword_iterator_t LLKeywords::end (  )  const [inline]

Definition at line 97 of file llkeywords.h.

References mWordTokenMap.

Referenced by LLTextEditor::keywordsEnd().

Here is the caller graph for this function:

LLColor3 LLKeywords::readColor ( const LLString s  )  [private]

Definition at line 222 of file llkeywords.cpp.

References llendl, llinfos, r, and S32.

Referenced by loadFromFile().

Here is the caller graph for this function:

void LLKeywords::insertSegment ( std::vector< LLTextSegment * > *  seg_list,
LLTextSegment new_segment,
S32  text_len,
const LLColor4 defaultColor 
) [private]

Definition at line 460 of file llkeywords.cpp.

References LLTextSegment::getEnd(), LLTextSegment::getStart(), S32, and LLTextSegment::setEnd().

Referenced by findSegments().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 107 of file llkeywords.h.

Referenced by isLoaded(), and loadFromFile().

Definition at line 108 of file llkeywords.h.

Referenced by addToken(), begin(), end(), findSegments(), and ~LLKeywords().

Definition at line 110 of file llkeywords.h.

Referenced by addToken(), findSegments(), and ~LLKeywords().

Definition at line 111 of file llkeywords.h.

Referenced by addToken(), findSegments(), and ~LLKeywords().


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

Generated on Fri May 16 08:51:15 2008 for SecondLife by  doxygen 1.5.5