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

Web服务器

开发平台:

WINDOWS

  1. // serwedoc.cpp : implementation of the CSerwebDoc class
  2. //
  3. #include "stdafx.h"
  4. #include "serweb.h"
  5. #include "serwedoc.h"
  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char BASED_CODE THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CSerwebDoc
  12. IMPLEMENT_DYNCREATE(CSerwebDoc, CDocument)
  13. BEGIN_MESSAGE_MAP(CSerwebDoc, CDocument)
  14. //{{AFX_MSG_MAP(CSerwebDoc)
  15. // NOTE - the ClassWizard will add and remove mapping macros here.
  16. //    DO NOT EDIT what you see in these blocks of generated code !
  17. //}}AFX_MSG_MAP
  18. END_MESSAGE_MAP()
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CSerwebDoc construction/destruction
  21. CSerwebDoc::CSerwebDoc()
  22. {
  23. line_number   = 0;  
  24.     column_number = 0;
  25. m_sizeDoc = CSize(0, 1000);  
  26. }
  27. CSerwebDoc::~CSerwebDoc()
  28. {
  29. }
  30. BOOL CSerwebDoc::OnNewDocument()
  31. {
  32. if (!CDocument::OnNewDocument())
  33. return FALSE;
  34. // TODO: add reinitialization code here
  35. // (SDI documents will reuse this document)
  36. return TRUE;
  37. }
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CSerwebDoc serialization
  40. void CSerwebDoc::Serialize(CArchive& ar)
  41. {
  42. if (ar.IsStoring())
  43. {
  44. // TODO: add storing code here
  45. }
  46. else
  47. {
  48. // TODO: add loading code here
  49. }
  50. }
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CSerwebDoc diagnostics
  53. #ifdef _DEBUG
  54. void CSerwebDoc::AssertValid() const
  55. {
  56. CDocument::AssertValid();
  57. }
  58. void CSerwebDoc::Dump(CDumpContext& dc) const
  59. {
  60. CDocument::Dump(dc);
  61. }
  62. #endif //_DEBUG
  63. /////////////////////////////////////////////////////////////////////////////
  64. // CSerwebDoc commands