#include <RichViewCtrl.h>
Inheritance diagram for CRichViewCtrl:
Public Member Functions | |
CRichViewCtrl () | |
virtual | ~CRichViewCtrl () |
void | SetSyncObject (CSyncObject *pSyncRoot) |
void | SetSelectable (BOOL bSelectable) |
void | SetFollowBottom (BOOL bFollowBottom) |
void | SetDefaultLink (BOOL bDefaultLink) |
void | SetDocument (CRichDocument *pDocument) |
BOOL | IsModified () const |
void | InvalidateIfModified () |
int | FullHeightMove (int nX, int nY, int nWidth, BOOL bShow=FALSE) |
BOOL | GetElementRect (CRichElement *pElement, RECT *prc) |
virtual BOOL | Create (DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID) |
Protected Member Functions | |
void | ClearFragments () |
void | Layout (CDC *pDC, CRect *pRect) |
void | WrapLineHelper (CPtrList &pLine, CPoint &pt, int &nLineHeight, int nWidth, int nAlign) |
CRichFragment * | PointToFrag (CPoint &pt) |
RICHPOSITION | PointToPosition (CPoint &pt) |
CPoint | PositionToPoint (RICHPOSITION &pt) |
void | UpdateSelection () |
void | CopySelection () |
virtual void | OnLayoutComplete () |
virtual void | OnPaintBegin (CDC *pDC) |
virtual void | OnPaintComplete (CDC *pDC) |
virtual void | OnVScrolled () |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg void | OnDestroy () |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnPaint () |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg BOOL | OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnTimer (UINT nIDEvent) |
afx_msg BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
Protected Attributes | |
CSyncObject * | m_pSyncRoot |
BOOL | m_bSelectable |
BOOL | m_bFollowBottom |
BOOL | m_bDefaultLink |
CRichDocument * | m_pDocument |
DWORD | m_nCookie |
CPtrArray | m_pFragments |
int | m_nLength |
int | m_nScrollWheelLines |
CRichElement * | m_pHover |
BOOL | m_bSelecting |
RICHPOSITION | m_pSelStart |
RICHPOSITION | m_pSelEnd |
RICHPOSITION | m_pSelAbsStart |
RICHPOSITION | m_pSelAbsEnd |
HCURSOR | m_hcHand |
HCURSOR | m_hcText |
CBrush | m_pBrush |
Friends | |
class | CRichFragment |
|
Definition at line 58 of file RichViewCtrl.cpp. References NULL. |
|
Definition at line 76 of file RichViewCtrl.cpp. References ClearFragments(). |
|
Definition at line 481 of file RichViewCtrl.cpp. References m_bSelecting, m_nLength, m_pFragments, m_pSelAbsEnd, m_pSelAbsStart, m_pSelEnd, m_pSelStart, RICHPOSITION::nFragment, and RICHPOSITION::nOffset. Referenced by Layout(), SetDocument(), and ~CRichViewCtrl(). |
|
Definition at line 867 of file RichViewCtrl.cpp. References Emoticons, CRichDocument::Find(), CRichDocument::GetNext(), CEmoticons::GetText(), CShareazaApp::m_bNT, CRichFragment::m_nLength, CRichFragment::m_nOffset, CRichElement::m_nType, m_pDocument, CRichFragment::m_pElement, m_pFragments, m_pSelAbsEnd, m_pSelAbsStart, CRichElement::m_sText, RICHPOSITION::nFragment, RICHPOSITION::nOffset, retEmoticon, retNewline, retText, and theApp. Referenced by OnLButtonUp(). |
|
Definition at line 84 of file RichViewCtrl.cpp. References NULL. Referenced by CHomeViewCtrl::Create(), CSearchDetailPanel::Review::Layout(), CHelpWnd::OnCreate(), CRichTaskBox::OnCreate(), CChatFrame::OnCreate(), CBrowseProfileCtrl::OnCreate(), CRichSettingsPage::OnInitDialog(), and CHelpDlg::OnInitDialog(). |
|
Definition at line 126 of file RichViewCtrl.cpp. References Layout(), CShareazaApp::m_gdiFont, m_nLength, m_pDocument, NULL, and theApp. Referenced by CSearchDetailPanel::Review::Layout(), CRichTaskBox::OnSize(), CHomeLibraryBox::OnSize(), CHomeDownloadsBox::OnSize(), CRichTaskBox::Update(), CHomeLibraryBox::Update(), and CHomeDownloadsBox::Update(). |
|
Definition at line 142 of file RichViewCtrl.cpp. References CRichFragment::m_pElement, m_pFragments, CRichFragment::m_pt, and CRichFragment::m_sz. Referenced by CHomeViewCtrl::OnLayoutComplete(), and CHomeViewCtrl::OnPaintBegin(). |
|
Definition at line 121 of file RichViewCtrl.cpp. References m_nCookie, CRichDocument::m_nCookie, m_pDocument, and NULL. Referenced by CChatFrame::AddText(), CChatFrame::OnChatClear(), CChatFrame::OnStatusMessage(), CHomeViewCtrl::Update(), CBrowseProfileCtrl::UpdateDocument1(), and CBrowseProfileCtrl::UpdateDocument2(). |
|
Definition at line 116 of file RichViewCtrl.cpp. References m_nCookie, CRichDocument::m_nCookie, m_pDocument, and NULL. Referenced by CRichTaskBox::Update(). |
|
|
Reimplemented in CHomeViewCtrl. Definition at line 165 of file RichViewCtrl.cpp. References IDC_HAND, CShareazaApp::m_bRTL, m_hcHand, m_hcText, and theApp. Referenced by CHomeViewCtrl::OnCreate(). |
|
Reimplemented in CHomeViewCtrl. Definition at line 178 of file RichViewCtrl.cpp. Referenced by CHomeViewCtrl::OnDestroy(). |
|
Definition at line 190 of file RichViewCtrl.cpp. |
|
Reimplemented in CHomeViewCtrl. Definition at line 90 of file RichViewCtrl.h. Referenced by Layout(). |
|
Definition at line 280 of file RichViewCtrl.cpp. References m_bSelectable, m_bSelecting, m_pDocument, CRichDocument::m_pSection, m_pSelEnd, m_pSelStart, RICHPOSITION::nFragment, NULL, PointToPosition(), and UpdateSelection(). |
|
Definition at line 356 of file RichViewCtrl.cpp. References CopySelection(), RVN_ELEMENTEVENT::hdr, m_bDefaultLink, m_bSelecting, CRichElement::m_nType, m_pDocument, m_pHover, CRichDocument::m_pSection, m_pSelEnd, m_pSelStart, RICHPOSITION::nFragment, RICHPOSITION::nOffset, NULL, RVN_ELEMENTEVENT::pElement, PointToFrag(), retLink, RVN_CLICK, and UpdateSelection(). |
|
Definition at line 303 of file RichViewCtrl.cpp. References m_bSelecting, CRichElement::m_nType, m_pDocument, CRichFragment::m_pElement, m_pHover, CRichDocument::m_pSection, m_pSelEnd, m_pSelStart, RICHPOSITION::nFragment, NULL, PointToFrag(), PointToPosition(), retLink, and UpdateSelection(). |
|
Definition at line 472 of file RichViewCtrl.cpp. References m_nScrollWheelLines, NULL, and OnVScroll(). |
|
Definition at line 195 of file RichViewCtrl.cpp. References Layout(), CRichDocument::m_crBackground, CShareazaApp::m_gdiFont, m_nCookie, CRichDocument::m_nCookie, m_pBrush, m_pDocument, CRichFragment::m_pElement, m_pFragments, m_pHover, CRichDocument::m_pSection, NULL, OnPaintBegin(), OnPaintComplete(), CRichFragment::Paint(), CRichElement::PrePaint(), and theApp. |
|
Reimplemented in CHomeViewCtrl. Definition at line 91 of file RichViewCtrl.h. Referenced by OnPaint(). |
|
Definition at line 92 of file RichViewCtrl.h. Referenced by OnPaint(). |
|
Definition at line 250 of file RichViewCtrl.cpp. References m_bSelectable, m_bSelecting, m_hcHand, m_hcText, CRichFragment::m_nLength, m_pDocument, CRichFragment::m_pElement, CRichDocument::m_pSection, CRichElement::m_sLink, NULL, and PointToFrag(). |
|
Definition at line 183 of file RichViewCtrl.cpp. References m_nCookie. |
|
Definition at line 453 of file RichViewCtrl.cpp. |
|
Definition at line 410 of file RichViewCtrl.cpp. References OnVScrolled(). Referenced by OnMouseWheel(). |
|
Reimplemented in CHomeViewCtrl. Definition at line 93 of file RichViewCtrl.h. Referenced by OnVScroll(). |
|
Definition at line 723 of file RichViewCtrl.cpp. References m_nCookie, CRichDocument::m_nCookie, m_pDocument, m_pFragments, CRichFragment::m_pt, CRichFragment::m_sz, and NULL. Referenced by OnLButtonUp(), OnMouseMove(), and OnSetCursor(). |
|
Definition at line 747 of file RichViewCtrl.cpp. References m_nCookie, CRichDocument::m_nCookie, CRichFragment::m_nLength, CRichFragment::m_nOffset, m_pDocument, CRichFragment::m_pElement, m_pFragments, CRichFragment::m_pt, CRichElement::m_sText, CRichFragment::m_sz, RICHPOSITION::nFragment, RICHPOSITION::nOffset, NULL, and CRichElement::PrePaint(). Referenced by OnLButtonDown(), and OnMouseMove(). |
|
Definition at line 796 of file RichViewCtrl.cpp. References m_nCookie, CRichDocument::m_nCookie, CRichFragment::m_nLength, CRichFragment::m_nOffset, m_pDocument, CRichFragment::m_pElement, m_pFragments, CRichFragment::m_pt, CRichElement::m_sText, CRichFragment::m_sz, RICHPOSITION::nFragment, RICHPOSITION::nOffset, NULL, and CRichElement::PrePaint(). |
|
Definition at line 100 of file RichViewCtrl.cpp. References m_bDefaultLink. |
|
Definition at line 105 of file RichViewCtrl.cpp. References ClearFragments(), m_nCookie, m_pDocument, m_pHover, and NULL. Referenced by CSearchDetailPanel::Review::Layout(), CChatFrame::OnCreate(), CRichSettingsPage::OnInitDialog(), CHelpDlg::OnInitDialog(), CBrowseProfileCtrl::OnSkinChange(), CRichTaskBox::SetDocument(), and CHomeViewCtrl::Setup(). |
|
Definition at line 95 of file RichViewCtrl.cpp. References m_bFollowBottom. Referenced by CChatFrame::OnCreate(). |
|
Definition at line 90 of file RichViewCtrl.cpp. References m_bSelectable. Referenced by CSearchDetailPanel::Review::Layout(), CChatFrame::OnCreate(), CBrowseProfileCtrl::OnCreate(), and CHelpDlg::OnInitDialog(). |
|
|
|
Definition at line 839 of file RichViewCtrl.cpp. References m_pSelAbsEnd, m_pSelAbsStart, m_pSelEnd, m_pSelStart, RICHPOSITION::nFragment, and RICHPOSITION::nOffset. Referenced by OnLButtonDown(), OnLButtonUp(), and OnMouseMove(). |
|
Definition at line 681 of file RichViewCtrl.cpp. References CRichElement::m_nFlags, CRichFragment::m_pElement, CRichFragment::m_pt, CRichFragment::m_sz, reaCenter, reaRight, and retfMiddle. Referenced by Layout(). |
|
Definition at line 120 of file RichViewCtrl.h. Referenced by Layout(). |
|
Definition at line 50 of file RichViewCtrl.h. Referenced by OnLButtonUp(), and SetDefaultLink(). |
|
Definition at line 49 of file RichViewCtrl.h. Referenced by Layout(), and SetFollowBottom(). |
|
Definition at line 48 of file RichViewCtrl.h. Referenced by OnLButtonDown(), OnSetCursor(), and SetSelectable(). |
|
Definition at line 59 of file RichViewCtrl.h. Referenced by ClearFragments(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), and OnSetCursor(). |
|
Definition at line 65 of file RichViewCtrl.h. Referenced by OnCreate(), and OnSetCursor(). |
|
Definition at line 66 of file RichViewCtrl.h. Referenced by OnCreate(), and OnSetCursor(). |
|
Definition at line 53 of file RichViewCtrl.h. Referenced by InvalidateIfModified(), IsModified(), Layout(), OnPaint(), OnSize(), PointToFrag(), PointToPosition(), PositionToPoint(), and SetDocument(). |
|
Definition at line 55 of file RichViewCtrl.h. Referenced by ClearFragments(), FullHeightMove(), and Layout(). |
|
Definition at line 56 of file RichViewCtrl.h. Referenced by OnMouseWheel(). |
|
Definition at line 67 of file RichViewCtrl.h. Referenced by OnPaint(), and CRichFragment::Paint(). |
|
Reimplemented in CHomeViewCtrl. Definition at line 52 of file RichViewCtrl.h. Referenced by CopySelection(), FullHeightMove(), InvalidateIfModified(), IsModified(), Layout(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnPaint(), OnSetCursor(), PointToFrag(), PointToPosition(), PositionToPoint(), and SetDocument(). |
|
Definition at line 54 of file RichViewCtrl.h. Referenced by ClearFragments(), CopySelection(), GetElementRect(), Layout(), OnPaint(), PointToFrag(), PointToPosition(), and PositionToPoint(). |
|
Definition at line 58 of file RichViewCtrl.h. Referenced by OnLButtonUp(), OnMouseMove(), OnPaint(), OnTimer(), and SetDocument(). |
|
Definition at line 63 of file RichViewCtrl.h. Referenced by ClearFragments(), CopySelection(), CRichFragment::Paint(), and UpdateSelection(). |
|
Definition at line 62 of file RichViewCtrl.h. Referenced by ClearFragments(), CopySelection(), CRichFragment::Paint(), and UpdateSelection(). |
|
Definition at line 61 of file RichViewCtrl.h. Referenced by ClearFragments(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), and UpdateSelection(). |
|
Definition at line 60 of file RichViewCtrl.h. Referenced by ClearFragments(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), and UpdateSelection(). |
|
Definition at line 47 of file RichViewCtrl.h. |