home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c07 / lab03 / ex02 / textdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.1 KB  |  49 lines

  1. // TextDoc.h : interface of the CTextDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CTextDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CTextDoc();
  9.     DECLARE_DYNCREATE(CTextDoc)
  10.  
  11. // Attributes
  12. public:
  13.     CStringList*    GetLineList() { return &m_LineList; }
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CTextDoc)
  21.     public:
  22.     virtual BOOL OnNewDocument();
  23.     virtual void Serialize(CArchive& ar);
  24.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  25.     //}}AFX_VIRTUAL
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~CTextDoc();
  30. #ifdef _DEBUG
  31.     virtual void AssertValid() const;
  32.     virtual void Dump(CDumpContext& dc) const;
  33. #endif
  34.  
  35. protected:
  36.     CStringList    m_LineList;
  37.  
  38.  
  39. // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CTextDoc)
  42.         // NOTE - the ClassWizard will add and remove member functions here.
  43.         //    DO NOT EDIT what you see in these blocks of generated code !
  44.     //}}AFX_MSG
  45.     DECLARE_MESSAGE_MAP()
  46. };
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49.