home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / netsdoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 KB  |  103 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // implementation of the CNetscapeDoc class
  20. //
  21.  
  22. #include "stdafx.h"
  23.  
  24. #include "cntritem.h"
  25. #include "feembed.h"
  26. #include "netsdoc.h"
  27.  
  28. #ifdef _DEBUG
  29. #undef THIS_FILE
  30. static char BASED_CODE THIS_FILE[] = __FILE__;
  31. #endif
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CNetscapeDoc
  35.  
  36. #ifndef _AFXDLL
  37. #undef new
  38. #endif
  39. IMPLEMENT_DYNCREATE(CNetscapeDoc, CGenericDoc)
  40. #ifndef _AFXDLL
  41. #define new DEBUG_NEW
  42. #endif
  43.  
  44. BEGIN_MESSAGE_MAP(CNetscapeDoc, CGenericDoc)
  45.     //{{AFX_MSG_MAP(CNetscapeDoc)
  46.     //}}AFX_MSG_MAP
  47.     //    Enable default OLE container implementation
  48. END_MESSAGE_MAP()
  49.  
  50. #ifndef _AFXDLL
  51. #define new DEBUG_NEW  // MSVC Debugging new...goes to regular new in release mode
  52. #endif
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CNetscapeDoc construction/destruction
  56.  
  57. CNetscapeDoc::CNetscapeDoc()
  58. {
  59. }
  60.  
  61. CNetscapeDoc::~CNetscapeDoc()
  62. {
  63. }
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CNetscapeDoc serialization
  67.  
  68. void CNetscapeDoc::Serialize(CArchive& ar)
  69. {
  70.     if (ar.IsStoring())
  71.     {
  72.         // TODO: add storing code here
  73.     }
  74.     else
  75.     {
  76.         // TODO: add loading code here
  77.     }
  78.     
  79.     //    Calling the base class CGenericDoc enables serialization
  80.     //        of the conainer document's COleclientItem objects.
  81.     CGenericDoc::Serialize(ar);
  82. }
  83.  
  84.  
  85. /////////////////////////////////////////////////////////////////////////////
  86. // CNetscapeDoc diagnostics
  87.  
  88. #ifdef _DEBUG
  89. void CNetscapeDoc::AssertValid() const
  90. {
  91.     CGenericDoc::AssertValid();
  92. }
  93.  
  94. void CNetscapeDoc::Dump(CDumpContext& dc) const
  95. {
  96.     CGenericDoc::Dump(dc);
  97. }
  98.  
  99. #endif //_DEBUG
  100.  
  101. /////////////////////////////////////////////////////////////////////////////
  102. // CNetscapeDoc commands
  103.