-
Notifications
You must be signed in to change notification settings - Fork 0
/
IRCVIEW.H
108 lines (89 loc) · 2.87 KB
/
IRCVIEW.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// ircview.h : interface of the CIRClientView class
//
#ifndef __IRCVIEW_H__
#define __IRCVIEW_H__
#include "ircdoc.h"
/////////////////////////////////////////////////////////////////////////////
class CIRClientView : public CEditView
{
friend class CIRClientWnd;
protected: // create from serialization only
CIRClientView();
BOOL PreCreateWindow(CREATESTRUCT& cs);
DECLARE_DYNCREATE(CIRClientView)
// Attributes
public:
// static init/term...
static void Initialize();
static void Terminate();
CIRClientDoc* GetDocument();
CInternetNavApp* m_pApp;
// Operations
public:
// Chat transcript printing
void OnPrintTranscript();
// Word wrap...
BOOL IsWordWrap() const;
BOOL SetWordWrap(BOOL bWordWrap);
// Buffer access...
LPCSTR LockBuffer() const
{ return CEditView::LockBuffer(); }
void UnlockBuffer() const
{ CEditView::UnlockBuffer(); }
// Implementation
public:
BOOL IsUpdatePending() {return (m_uTimerID != NULL);}
virtual ~CIRClientView();
virtual void OnDraw(CDC* pDC); // overridden to draw this view
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
UINT m_uTimerID; // ==0 when no outstanding
static LOGFONT NEAR m_lfDefFont;
static LOGFONT NEAR m_lfDefFontOld;
CFont m_font;
static LOGFONT NEAR m_lfDefPrintFont;
static LOGFONT NEAR m_lfDefPrintFontOld;
CFont m_fontPrint;
static UINT m_nDefTabStops;
static UINT m_nDefTabStopsOld;
static BOOL m_bDefWordWrap;
static BOOL m_bDefWordWrapOld;
int m_nHeaderTime;
int m_nFooterTime;
UINT m_nPreviewPage;
CTime m_timeHeader;
CTime m_timeFooter;
// Printing support
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnScrollTo(CDC* pDC, CPrintInfo* pInfo, POINT point);
// Generated message map functions
protected:
//{{AFX_MSG(CIRClientView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMirrorDisplayFont();
afx_msg void OnWordWrap();
afx_msg void OnUpdateWordWrap(CCmdUI* pCmdUI);
afx_msg void OnChoosePrintFont();
afx_msg void OnUpdateChoosePrintFont(CCmdUI* pCmdUI);
afx_msg void OnChooseFont();
afx_msg void OnPageSetup();
afx_msg void OnUpdateMirrorDisplayFont(CCmdUI* pCmdUI);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnFilePrint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in textview.cpp
inline CIRClientDoc* CIRClientView::GetDocument()
{ return (CIRClientDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
#endif //__IRCVIEW_H__