Leaked source code of windows server 2003
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.

71 lines
1.9 KiB

  1. // SimpDoc.h : interface of the CSimpsonsDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SIMPDOC_H__7CA4916C_71B3_11D1_AA67_00600814AAE9__INCLUDED_)
  5. #define AFX_SIMPDOC_H__7CA4916C_71B3_11D1_AA67_00600814AAE9__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include "parse.h"
  10. class CSimpsonsDoc : public CDocument
  11. {
  12. protected: // create from serialization only
  13. CSimpsonsDoc();
  14. DECLARE_DYNCREATE(CSimpsonsDoc)
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CSimpsonsDoc)
  22. public:
  23. virtual BOOL OnNewDocument();
  24. virtual void Serialize(CArchive& ar);
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. public:
  28. virtual ~CSimpsonsDoc();
  29. #ifdef _DEBUG
  30. virtual void AssertValid() const;
  31. virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33. protected:
  34. private:
  35. RenderCmd * m_pCmds;
  36. bool m_bNoRenderFile;
  37. bool m_bNeverRendered;
  38. char m_szFileName[256];
  39. public:
  40. const RenderCmd * GetRenderCommands() const { return m_pCmds; }
  41. void MarkRendered() { m_bNeverRendered = false; }
  42. bool HasNeverRendered() const { return m_bNeverRendered; }
  43. const char * GetFileName() const { return m_szFileName; }
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(CSimpsonsDoc)
  47. // NOTE - the ClassWizard will add and remove member functions here.
  48. // DO NOT EDIT what you see in these blocks of generated code !
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_SIMPDOC_H__7CA4916C_71B3_11D1_AA67_00600814AAE9__INCLUDED_)