home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n04 / multilin.exe / GLOBADOC.CPP < prev    next >
C/C++ Source or Header  |  1995-04-01  |  2KB  |  82 lines

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