/* -*- c++ -*- FILE: MagicCube4dDoc.cpp RCS REVISION: $Revision: 1.8 $ COPYRIGHT: (c) 1999 -- 2003 Melinda Green, Don Hatch, and Jay Berkenbilt - Superliminal Software LICENSE: Free to use and modify for non-commercial purposes as long as the following conditions are adhered to: 1) Obvious credit for the source of this code and the designs it embodies are clearly made, and 2) Ports and derived versions of 4D Magic Cube programs are not distributed without the express written permission of the authors. DESCRIPTION: MagicCube4dDoc.cpp : implementation of the CMagicCube4dDoc class */ #include "Stdafx.h" #include "MagicCube4d.h" #include "MagicCube4dDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMagicCube4dDoc IMPLEMENT_DYNCREATE(CMagicCube4dDoc, CDocument) BEGIN_MESSAGE_MAP(CMagicCube4dDoc, CDocument) //{{AFX_MSG_MAP(CMagicCube4dDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMagicCube4dDoc construction/destruction CMagicCube4dDoc::CMagicCube4dDoc() { // TODO: add one-time construction code here // InitEventHandling(0, NULL); } CMagicCube4dDoc::~CMagicCube4dDoc() { } BOOL CMagicCube4dDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CMagicCube4dDoc serialization void CMagicCube4dDoc::Serialize(CArchive & ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CMagicCube4dDoc diagnostics #ifdef _DEBUG void CMagicCube4dDoc::AssertValid() const { CDocument::AssertValid(); } void CMagicCube4dDoc::Dump(CDumpContext & dc) const { CDocument::Dump(dc); } #endif // _DEBUG ///////////////////////////////////////////////////////////////////////////// // CMagicCube4dDoc commands // Local Variables: // c-basic-offset: 4 // c-comment-only-line-offset: 0 // 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)) // indent-tabs-mode: nil // End: