RadiantDoc.cpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. // RadiantDoc.cpp : implementation of the CRadiantDoc class
  19. //
  20. #include "stdafx.h"
  21. #include "Radiant.h"
  22. #include "RadiantDoc.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CRadiantDoc
  30. IMPLEMENT_DYNCREATE(CRadiantDoc, CDocument)
  31. BEGIN_MESSAGE_MAP(CRadiantDoc, CDocument)
  32. //{{AFX_MSG_MAP(CRadiantDoc)
  33. // NOTE - the ClassWizard will add and remove mapping macros here.
  34. // DO NOT EDIT what you see in these blocks of generated code!
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CRadiantDoc construction/destruction
  39. CRadiantDoc::CRadiantDoc()
  40. {
  41. // TODO: add one-time construction code here
  42. }
  43. CRadiantDoc::~CRadiantDoc()
  44. {
  45. }
  46. BOOL CRadiantDoc::OnNewDocument()
  47. {
  48. if (!CDocument::OnNewDocument())
  49. return FALSE;
  50. // TODO: add reinitialization code here
  51. // (SDI documents will reuse this document)
  52. return TRUE;
  53. }
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CRadiantDoc serialization
  56. void CRadiantDoc::Serialize(CArchive& ar)
  57. {
  58. if (ar.IsStoring())
  59. {
  60. // TODO: add storing code here
  61. }
  62. else
  63. {
  64. // TODO: add loading code here
  65. }
  66. }
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CRadiantDoc diagnostics
  69. #ifdef _DEBUG
  70. void CRadiantDoc::AssertValid() const
  71. {
  72. CDocument::AssertValid();
  73. }
  74. void CRadiantDoc::Dump(CDumpContext& dc) const
  75. {
  76. CDocument::Dump(dc);
  77. }
  78. #endif //_DEBUG
  79. /////////////////////////////////////////////////////////////////////////////
  80. // CRadiantDoc commands