1 /* -*- c++ -*-
2 FILE: MagicCube4dDoc.cpp
3 RCS REVISION: $Revision: 1.8 $
4 
5 COPYRIGHT: (c) 1999 -- 2003 Melinda Green, Don Hatch, and Jay Berkenbilt - Superliminal Software
6 
7 LICENSE: Free to use and modify for non-commercial purposes as long as the
8     following conditions are adhered to:
9     1) Obvious credit for the source of this code and the designs it embodies
10        are clearly made, and
11     2) Ports and derived versions of 4D Magic Cube programs are not distributed
12        without the express written permission of the authors.
13 
14 DESCRIPTION:
15     MagicCube4dDoc.cpp : implementation of the CMagicCube4dDoc class
16 */
17 
18 #include "Stdafx.h"
19 #include "MagicCube4d.h"
20 
21 #include "MagicCube4dDoc.h"
22 
23 #ifdef _DEBUG
24 #define new DEBUG_NEW
25 #undef THIS_FILE
26 static char THIS_FILE[] = __FILE__;
27 #endif
28 
29 /////////////////////////////////////////////////////////////////////////////
30 // CMagicCube4dDoc
31 
IMPLEMENT_DYNCREATE(CMagicCube4dDoc,CDocument)32 IMPLEMENT_DYNCREATE(CMagicCube4dDoc, CDocument)
33 BEGIN_MESSAGE_MAP(CMagicCube4dDoc, CDocument)
34     //{{AFX_MSG_MAP(CMagicCube4dDoc)
35         // NOTE - the ClassWizard will add and remove mapping macros here.
36         //    DO NOT EDIT what you see in these blocks of generated code!
37     //}}AFX_MSG_MAP
38 END_MESSAGE_MAP()
39 
40 /////////////////////////////////////////////////////////////////////////////
41 // CMagicCube4dDoc construction/destruction
42     CMagicCube4dDoc::CMagicCube4dDoc()
43 {
44     // TODO: add one-time construction code here
45     // InitEventHandling(0, NULL);
46 }
47 
~CMagicCube4dDoc()48 CMagicCube4dDoc::~CMagicCube4dDoc()
49 {
50 }
51 
52 BOOL
OnNewDocument()53 CMagicCube4dDoc::OnNewDocument()
54 {
55     if (!CDocument::OnNewDocument())
56         return FALSE;
57 
58     // TODO: add reinitialization code here
59     // (SDI documents will reuse this document)
60 
61     return TRUE;
62 }
63 
64 /////////////////////////////////////////////////////////////////////////////
65 // CMagicCube4dDoc serialization
66 
67 void
Serialize(CArchive & ar)68 CMagicCube4dDoc::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 
80 /////////////////////////////////////////////////////////////////////////////
81 // CMagicCube4dDoc diagnostics
82 
83 #ifdef _DEBUG
84 void
AssertValid() const85 CMagicCube4dDoc::AssertValid() const
86 {
87     CDocument::AssertValid();
88 }
89 
90 void
Dump(CDumpContext & dc) const91 CMagicCube4dDoc::Dump(CDumpContext & dc) const
92 {
93     CDocument::Dump(dc);
94 }
95 #endif // _DEBUG
96 
97 /////////////////////////////////////////////////////////////////////////////
98 // CMagicCube4dDoc commands
99 
100 // Local Variables:
101 // c-basic-offset: 4
102 // c-comment-only-line-offset: 0
103 // c-file-offsets: ((defun-block-intro . +) (block-open . 0) (substatement-open . 0) (statement-cont . +) (statement-case-open . +4) (arglist-intro . +) (arglist-close . +) (inline-open . 0))
104 // indent-tabs-mode: nil
105 // End:
106