diff options
Diffstat (limited to 'src/windows/leash/LeashDoc.cpp')
| -rw-r--r-- | src/windows/leash/LeashDoc.cpp | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/src/windows/leash/LeashDoc.cpp b/src/windows/leash/LeashDoc.cpp new file mode 100644 index 000000000000..af4a9b8f6215 --- /dev/null +++ b/src/windows/leash/LeashDoc.cpp @@ -0,0 +1,94 @@ +// ************************************************************************************** +// File: LeashDoc.cpp +// By: Arthur David Leather +// Created: 12/02/98 +// Copyright @1998 Massachusetts Institute of Technology - All rights reserved. +// Description: CPP file for LeashDoc.h. Contains variables and functions +// for Leash +// +// History: +// +// MM/DD/YY Inits Description of Change +// 12/02/98 ADL Original +// ************************************************************************************** + + +#include "stdafx.h" +#include "Leash.h" + +#include "LeashDoc.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// LeashDoc + +IMPLEMENT_DYNCREATE(LeashDoc, CDocument) + +BEGIN_MESSAGE_MAP(LeashDoc, CDocument) + //{{AFX_MSG_MAP(LeashDoc) + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// LeashDoc construction/destruction + +LeashDoc::LeashDoc() +{ + // TODO: add one-time construction code here + +} + +LeashDoc::~LeashDoc() +{ +} + +BOOL LeashDoc::OnNewDocument() +{ + if (!CDocument::OnNewDocument()) + return FALSE; + + // TODO: add reinitialization code here + // (SDI documents will reuse this document) + + return TRUE; +} + + + +///////////////////////////////////////////////////////////////////////////// +// LeashDoc serialization + +void LeashDoc::Serialize(CArchive& ar) +{ + if (ar.IsStoring()) + { + // TODO: add storing code here + } + else + { + // TODO: add loading code here + } +} + +///////////////////////////////////////////////////////////////////////////// +// LeashDoc diagnostics + +#ifdef _DEBUG +void LeashDoc::AssertValid() const +{ + CDocument::AssertValid(); +} + +void LeashDoc::Dump(CDumpContext& dc) const +{ + CDocument::Dump(dc); +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// LeashDoc commands |
