Annotation of OpenXM_contrib2/windows/asir32gui/asir32guiView.h, Revision 1.1.1.1
1.1 noro 1: // asir32guiView.h : CAsir32guiView クラスの宣言およびインターフェイスの定義をします。
2: //
3: /////////////////////////////////////////////////////////////////////////////
4:
5: class CAsir32guiView : public CEditView
6: {
7: public: // シリアライズ機能のみから作成します。
8: CAsir32guiView();
9: DECLARE_DYNCREATE(CAsir32guiView);
10:
11: // アトリビュート
12: public:
13: CAsir32guiDoc* GetDocument();
14:
15: // オペレーション
16: public:
17:
18: int DebugMode;
19: int DebugInMain;
20: int CurrentPos,EndPos;
21: int MaxLineLength;
22: int LogStart;
23: int Logging;
24: FILE *Logfp;
25: char Buffer[BUFSIZ*2];
26:
27: // オーバーライド
28: // ClassWizard は仮想関数を生成しオーバーライドします。
29: //{{AFX_VIRTUAL(CAsir32guiView)
30: public:
31: virtual void OnDraw(CDC* pDC); // このビューを描画する際にオーバーライドされます。
32: virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
33: protected:
34: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
35: virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
36: virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
37: //}}AFX_VIRTUAL
38:
39: // インプリメンテーション
40: public:
41: virtual ~CAsir32guiView();
42: #ifdef _DEBUG
43: virtual void AssertValid() const;
44: virtual void Dump(CDumpContext& dc) const;
45: #endif
46: void Paste(void);
47: void Insert(char *,BOOL wrap = TRUE);
48: void ResetIndex(void) {EndPos = CurrentPos = 0;}
49: void PutChar(int);
50: void DeleteChar(int);
51: void DeleteTop(void);
52: void UpdateCursor(int);
53: void Beep(void);
54: void ReplaceString(char *);
55: void UpdateLineLength(int);
56:
57: protected:
58:
59: // 生成されたメッセージ マップ関数
60: public:
61: //{{AFX_MSG(CAsir32guiView)
62: afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
63: afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
64: afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
65: afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
66: afx_msg void OnFileOpen();
67: afx_msg void OnFileLog();
68: afx_msg void OnAsirhelp();
69: afx_msg void OnUpdateFileLog(CCmdUI* pCmdUI);
70: afx_msg void OnEditPaste();
71: //}}AFX_MSG
72: DECLARE_MESSAGE_MAP()
73: };
74:
75: #ifndef _DEBUG // asir32guiView.cpp ファイルがデバッグ環境の時使用されます。
76: inline CAsir32guiDoc* CAsir32guiView::GetDocument()
77: { return (CAsir32guiDoc*)m_pDocument; }
78: #endif
79:
80: /////////////////////////////////////////////////////////////////////////////
81:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>