SERWEDOC.H
上传用户:areilwang
上传日期:2007-01-04
资源大小:375k
文件大小:1k
源码类别:

Web服务器

开发平台:

WINDOWS

  1. // serwedoc.h : interface of the CSerwebDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. const MAX_LINES = 100;                        //How many lines to allow
  5. class CSerwebDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8. CSerwebDoc();
  9. DECLARE_DYNCREATE(CSerwebDoc)
  10.     CSize m_sizeDoc;
  11.  
  12. // Attributes
  13. public:
  14.   CSize GetDocSize() {return m_sizeDoc;}  
  15.   void  SetDocSize(int xval, int yval) {m_sizeDoc.cx = xval; m_sizeDoc.cy = yval;}
  16.  
  17. // Operations
  18. public:
  19.   CString data_string[MAX_LINES];
  20.   long line_number, column_number;
  21. // Implementation
  22. public:
  23. virtual ~CSerwebDoc();
  24. virtual void Serialize(CArchive& ar); // overridden for document i/o
  25. #ifdef _DEBUG
  26. virtual void AssertValid() const;
  27. virtual void Dump(CDumpContext& dc) const;
  28. #endif
  29. protected:
  30. virtual BOOL OnNewDocument();
  31. // Generated message map functions
  32. protected:
  33. //{{AFX_MSG(CSerwebDoc)
  34. // NOTE - the ClassWizard will add and remove member functions here.
  35. //    DO NOT EDIT what you see in these blocks of generated code !
  36. //}}AFX_MSG
  37. DECLARE_MESSAGE_MAP()
  38. };
  39. /////////////////////////////////////////////////////////////////////////////