Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.3 KiB

4 years ago
  1. #ifndef __LOGVIEW_H__
  2. #define __LOGVIEW_H__
  3. #include <afxdlgs.h>
  4. class CLogView : public CEditView
  5. {
  6. DECLARE_DYNCREATE(CLogView)
  7. CLogView();
  8. virtual ~CLogView();
  9. BOOL PreCreateWindow(CREATESTRUCT& cs);
  10. public:
  11. // static init/term...
  12. static void Initialize();
  13. static void Terminate();
  14. public:
  15. // Word wrap...
  16. BOOL IsWordWrap() const;
  17. BOOL SetWordWrap(BOOL bWordWrap);
  18. void RemoveAllText(void);
  19. void STDCALL SetModifiedFlag(BOOL fModified = FALSE)
  20. { GetDocument()->SetModifiedFlag(fModified); };
  21. LRESULT OnHcRtfMsg(WPARAM wParam, LPARAM lParam);
  22. virtual void OnPrint(CDC* pDC, CPrintInfo *pInfo);
  23. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  24. virtual void OnScrollTo(CDC* pDC, CPrintInfo* pInfo, POINT point);
  25. virtual void Serialize(CArchive& ar);
  26. virtual void SerializeRaw(CArchive& ar);
  27. public:
  28. #ifdef _DEBUG
  29. virtual void AssertValid() const;
  30. virtual void Dump(CDumpContext& dc) const;
  31. #endif
  32. protected:
  33. virtual void PostNcDestroy();
  34. protected:
  35. BOOL m_bRecreating; // ==TRUE during recreation of the window
  36. BOOL m_fOverflow;
  37. static LOGFONT m_lfDefFont;
  38. static LOGFONT m_lfDefFontOld;
  39. CFont m_font;
  40. static LOGFONT m_lfDefPrintFont;
  41. static LOGFONT m_lfDefPrintFontOld;
  42. CFont m_fontPrint;
  43. static UINT m_nDefTabStops;
  44. static UINT m_nDefTabStopsOld;
  45. static BOOL m_bDefWordWrap;
  46. static BOOL m_bDefWordWrapOld;
  47. UINT m_nPreviewPage;
  48. CTime m_timeHeader;
  49. CTime m_timeFooter;
  50. BOOL IsReadOnly() {
  51. return GetWindowLong(GetEditCtrl().m_hWnd, GWL_STYLE) & ES_READONLY;
  52. }
  53. //{{AFX_MSG(CLogView)
  54. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  55. afx_msg void OnSetTabStops();
  56. afx_msg void OnChooseFont();
  57. afx_msg void OnWordWrap();
  58. afx_msg void OnUpdateWordWrap(CCmdUI* pCmdUI);
  59. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  60. afx_msg void OnChoosePrintFont();
  61. afx_msg void OnMirrorDisplayFont();
  62. afx_msg void OnUpdateMirrorDisplayFont(CCmdUI* pCmdUI);
  63. afx_msg void OnUpdateChoosePrintFont(CCmdUI* pCmdUI);
  64. afx_msg void OnSize(UINT nType, int cx, int cy);
  65. afx_msg void OnGeneratePhrases();
  66. afx_msg void OnUpdateGeneratePhrases(CCmdUI* pCmdUI);
  67. afx_msg void OnEditHpj();
  68. afx_msg void OnUpdateEditHpj(CCmdUI* pCmdUI);
  69. //}}AFX_MSG
  70. void OnUpdateCut(CCmdUI* pCmdUI);
  71. void OnUpdatePaste(CCmdUI* pCmdUI);
  72. void OnUpdateClear(CCmdUI* pCmdUI);
  73. DECLARE_MESSAGE_MAP()
  74. };
  75. #endif // __LOGVIEW_H__