Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CEmoticons Class Reference

#include <Emoticons.h>

List of all members.

Public Member Functions

 CEmoticons ()
virtual ~CEmoticons ()
LPCTSTR FindNext (LPCTSTR pszText, int *pnIndex)
int Lookup (LPCTSTR pszText, int nLen=-1) const
LPCTSTR GetText (int nIndex) const
void Draw (CDC *pDC, int nIndex, int nX, int nY, COLORREF crBack=CLR_NONE)
CMenu * CreateMenu ()
void FormatText (CRichDocument *pDocument, LPCTSTR pszBody, BOOL bNewlines=FALSE)
BOOL Load ()
void Clear ()

Public Attributes

CImageList m_pImage
CStringArray m_pIndex
LPTSTR m_pTokens
CUIntArray m_pButtons

Protected Member Functions

int AddEmoticon (LPCTSTR pszText, CImageFile *pImage, CRect *pRect, COLORREF crBack, BOOL bButton)
void BuildTokens ()
BOOL LoadTrillian (LPCTSTR pszFile)


Constructor & Destructor Documentation

CEmoticons::CEmoticons  ) 
 

Definition at line 45 of file Emoticons.cpp.

References m_pTokens, and NULL.

CEmoticons::~CEmoticons  )  [virtual]
 

Definition at line 50 of file Emoticons.cpp.

References Clear().


Member Function Documentation

int CEmoticons::AddEmoticon LPCTSTR  pszText,
CImageFile pImage,
CRect *  pRect,
COLORREF  crBack,
BOOL  bButton
[protected]
 

Definition at line 208 of file Emoticons.cpp.

References CImageFile::m_bLoaded, CImageFile::m_nComponents, CImageFile::m_nHeight, CImageFile::m_nWidth, m_pButtons, m_pImage, CImageFile::m_pImage, and m_pIndex.

Referenced by LoadTrillian().

void CEmoticons::BuildTokens  )  [protected]
 

Definition at line 256 of file Emoticons.cpp.

References m_pIndex, m_pTokens, and NULL.

Referenced by Load().

void CEmoticons::Clear  ) 
 

Definition at line 194 of file Emoticons.cpp.

References m_pButtons, m_pImage, m_pIndex, m_pTokens, and NULL.

Referenced by Load(), and ~CEmoticons().

CMenu * CEmoticons::CreateMenu  ) 
 

Definition at line 147 of file Emoticons.cpp.

References m_pButtons, and NULL.

Referenced by CChatFrame::OnChatEmoticons().

void CEmoticons::Draw CDC *  pDC,
int  nIndex,
int  nX,
int  nY,
COLORREF  crBack = CLR_NONE
 

Definition at line 136 of file Emoticons.cpp.

References m_pImage, m_pTokens, and NULL.

Referenced by CChatFrame::OnDrawItem(), and CRichFragment::Paint().

LPCTSTR CEmoticons::FindNext LPCTSTR  pszText,
int *  pnIndex
 

Definition at line 58 of file Emoticons.cpp.

References GetText(), m_pTokens, and NULL.

Referenced by FormatText().

void CEmoticons::FormatText CRichDocument pDocument,
LPCTSTR  pszBody,
BOOL  bNewlines = FALSE
 

Definition at line 349 of file Emoticons.cpp.

References _tcsistr(), CRichDocument::Add(), FindNext(), GetText(), NULL, retEmoticon, retfBold, retfColour, retfItalic, retfUnderline, retLink, retNewline, and retText.

Referenced by CChatFrame::AddText(), and CSearchDetailPanel::Review::Review().

LPCTSTR CEmoticons::GetText int  nIndex  )  const
 

Definition at line 119 of file Emoticons.cpp.

References m_pTokens, and NULL.

Referenced by CRichViewCtrl::CopySelection(), FindNext(), FormatText(), and CChatFrame::OnChatEmoticons().

BOOL CEmoticons::Load  ) 
 

Definition at line 176 of file Emoticons.cpp.

References BuildTokens(), Clear(), CSettings::General, LoadTrillian(), m_pImage, CSettings::sGeneral::Path, and Settings.

Referenced by CShareazaApp::InitInstance().

BOOL CEmoticons::LoadTrillian LPCTSTR  pszFile  )  [protected]
 

Definition at line 280 of file Emoticons.cpp.

References AddEmoticon(), CImageFile::EnsureRGB(), CXMLElement::FromFile(), CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), CImageFile::LoadFromFile(), CImageFile::m_pImage, NULL, and CImageFile::SwapRGB().

Referenced by Load().

int CEmoticons::Lookup LPCTSTR  pszText,
int  nLen = -1
const
 

Definition at line 87 of file Emoticons.cpp.

References m_pTokens, and NULL.


Member Data Documentation

CUIntArray CEmoticons::m_pButtons
 

Definition at line 43 of file Emoticons.h.

Referenced by AddEmoticon(), Clear(), and CreateMenu().

CImageList CEmoticons::m_pImage
 

Definition at line 40 of file Emoticons.h.

Referenced by AddEmoticon(), Clear(), Draw(), and Load().

CStringArray CEmoticons::m_pIndex
 

Definition at line 41 of file Emoticons.h.

Referenced by AddEmoticon(), BuildTokens(), and Clear().

LPTSTR CEmoticons::m_pTokens
 

Definition at line 42 of file Emoticons.h.

Referenced by BuildTokens(), CEmoticons(), Clear(), Draw(), FindNext(), GetText(), and Lookup().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:06 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2