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

CRichElement Class Reference

#include <RichElement.h>

List of all members.

Public Member Functions

 CRichElement (int nType=0, LPCTSTR pszText=NULL, LPCTSTR pszLink=NULL, DWORD nFlags=0, int nGroup=0)
virtual ~CRichElement ()
void Show (BOOL bShow=TRUE)
void SetText (LPCTSTR pszText)
void SetFlags (DWORD nFlags, DWORD nMask=0xFFFFFFFF)
void Delete ()

Public Attributes

CRichDocumentm_pDocument
int m_nType
int m_nGroup
DWORD m_nFlags
CString m_sText
CString m_sLink
DWORD m_hImage
COLORREF m_cColour

Protected Member Functions

void PrePaint (CDC *pDC, BOOL bHover)
void PrePaintBitmap (CDC *pDC)
void PrePaintIcon (CDC *pDC)
CSize GetSize ()

Friends

class CRichFragment
class CRichViewCtrl


Constructor & Destructor Documentation

CRichElement::CRichElement int  nType = 0,
LPCTSTR  pszText = NULL,
LPCTSTR  pszLink = NULL,
DWORD  nFlags = 0,
int  nGroup = 0
 

Definition at line 42 of file RichElement.cpp.

References m_hImage, m_nFlags, m_nGroup, m_nType, m_pDocument, m_sLink, m_sText, NULL, retBitmap, retfHeading, retHeading, retIcon, and retText.

CRichElement::~CRichElement  )  [virtual]
 

Definition at line 71 of file RichElement.cpp.

References m_hImage, m_nType, NULL, retBitmap, and retIcon.


Member Function Documentation

void CRichElement::Delete  ) 
 

Definition at line 124 of file RichElement.cpp.

References m_pDocument, and CRichDocument::Remove().

Referenced by CBrowseProfileCtrl::UpdateDocument2().

CSize CRichElement::GetSize  )  [protected]
 

Definition at line 247 of file RichElement.cpp.

References m_hImage, m_nType, m_sText, NULL, retAnchor, retBitmap, retCmdIcon, retEmoticon, retGap, and retIcon.

Referenced by CRichFragment::CRichFragment().

void CRichElement::PrePaint CDC *  pDC,
BOOL  bHover
[protected]
 

Definition at line 133 of file RichElement.cpp.

References CoolInterface, CRichDocument::CreateFonts(), CCoolInterface::ImageForID(), m_cColour, CRichDocument::m_crHeading, CRichDocument::m_crHover, CRichDocument::m_crLink, CRichDocument::m_crText, CRichDocument::m_fntBold, CRichDocument::m_fntBoldUnder, CRichDocument::m_fntHeading, CRichDocument::m_fntItalic, CRichDocument::m_fntNormal, CRichDocument::m_fntUnder, m_hImage, m_nFlags, m_nType, m_pDocument, m_sText, CCoolInterface::NameToID(), NULL, PrePaintBitmap(), PrePaintIcon(), retBitmap, retCmdIcon, retEmoticon, retfBold, retfColour, retfHeading, retfItalic, retfUnderline, retIcon, retLink, and retText.

Referenced by CRichViewCtrl::Layout(), CRichViewCtrl::OnPaint(), CRichViewCtrl::PointToPosition(), and CRichViewCtrl::PositionToPoint().

void CRichElement::PrePaintBitmap CDC *  pDC  )  [protected]
 

Definition at line 200 of file RichElement.cpp.

References CreateMirroredBitmap(), CSettings::General, CImageServices::LoadBitmap(), CShareazaApp::m_bRTL, m_hImage, m_sText, NULL, CSettings::sGeneral::Path, Settings, and theApp.

Referenced by PrePaint().

void CRichElement::PrePaintIcon CDC *  pDC  )  [protected]
 

Definition at line 226 of file RichElement.cpp.

References CoolInterface, CreateMirroredIcon(), CCoolInterface::ExtractIcon(), CShareazaApp::m_bRTL, m_hImage, m_sText, NULL, and theApp.

Referenced by PrePaint().

void CRichElement::SetFlags DWORD  nFlags,
DWORD  nMask = 0xFFFFFFFF
 

Definition at line 110 of file RichElement.cpp.

References CRichDocument::m_nCookie, m_nFlags, and m_pDocument.

void CRichElement::SetText LPCTSTR  pszText  ) 
 

Definition at line 101 of file RichElement.cpp.

References CRichDocument::m_nCookie, m_pDocument, and m_sText.

Referenced by CHomeViewCtrl::Update(), CHomeTorrentsBox::Update(), CHomeConnectionBox::Update(), CHomeUploadsBox::Update(), CHomeDownloadsBox::Update(), and CBrowseProfileCtrl::UpdateDocument1().

void CRichElement::Show BOOL  bShow = TRUE  ) 
 

Definition at line 91 of file RichElement.cpp.

References CRichDocument::m_nCookie, m_nFlags, m_pDocument, and retfHidden.

Referenced by CRichDocument::ShowGroup(), CRichDocument::ShowGroupRange(), CHomeTorrentsBox::Update(), CHomeUploadsBox::Update(), CHomeDownloadsBox::Update(), and CBrowseProfileCtrl::UpdateDocument1().


Friends And Related Function Documentation

friend class CRichFragment [friend]
 

Definition at line 62 of file RichElement.h.

friend class CRichViewCtrl [friend]
 

Definition at line 63 of file RichElement.h.


Member Data Documentation

COLORREF CRichElement::m_cColour
 

Definition at line 48 of file RichElement.h.

Referenced by CRichDocument::LoadXML(), and PrePaint().

DWORD CRichElement::m_hImage
 

Definition at line 47 of file RichElement.h.

Referenced by CRichElement(), GetSize(), CRichFragment::Paint(), PrePaint(), PrePaintBitmap(), PrePaintIcon(), and ~CRichElement().

DWORD CRichElement::m_nFlags
 

Definition at line 44 of file RichElement.h.

Referenced by CRichElement(), CRichViewCtrl::Layout(), CRichDocument::LoadXML(), CHomeViewCtrl::OnLayoutComplete(), CHomeViewCtrl::OnPaintBegin(), PrePaint(), SetFlags(), Show(), and CRichViewCtrl::WrapLineHelper().

int CRichElement::m_nGroup
 

Definition at line 43 of file RichElement.h.

Referenced by CRichElement(), CRichDocument::LoadXML(), CRichDocument::ShowGroup(), CRichDocument::ShowGroupRange(), and CBrowseProfileCtrl::UpdateDocument2().

int CRichElement::m_nType
 

Definition at line 42 of file RichElement.h.

Referenced by CRichFragment::Add(), CRichViewCtrl::CopySelection(), CRichElement(), GetSize(), CRichViewCtrl::Layout(), CRichDocument::LoadXML(), CRichViewCtrl::OnLButtonUp(), CRichViewCtrl::OnMouseMove(), CRichFragment::Paint(), PrePaint(), and ~CRichElement().

CRichDocument* CRichElement::m_pDocument
 

Definition at line 41 of file RichElement.h.

Referenced by CRichElement(), Delete(), PrePaint(), CRichDocument::Remove(), SetFlags(), SetText(), and Show().

CString CRichElement::m_sLink
 

Definition at line 46 of file RichElement.h.

Referenced by CRichElement(), CRichDocument::LoadXML(), CRichSettingsPage::OnClickView(), CRichViewCtrl::OnSetCursor(), CHomeViewCtrl::Update(), and CBrowseProfileCtrl::UpdateDocument1().

CString CRichElement::m_sText
 

Definition at line 45 of file RichElement.h.

Referenced by CRichViewCtrl::CopySelection(), CRichElement(), GetSize(), CRichViewCtrl::Layout(), CRichDocument::LoadXML(), CRichFragment::Paint(), CRichViewCtrl::PointToPosition(), CRichViewCtrl::PositionToPoint(), PrePaint(), PrePaintBitmap(), PrePaintIcon(), SetText(), and CHomeConnectionBox::Setup().


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