xref: /freebsd/crypto/krb5/src/windows/leash/LeashDoc.cpp (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1 //	**************************************************************************************
2 //	File:			LeashDoc.cpp
3 //	By:				Arthur David Leather
4 //	Created:		12/02/98
5 //	Copyright		@1998 Massachusetts Institute of Technology - All rights reserved.
6 //	Description:    CPP file for LeashDoc.h. Contains variables and functions
7 //					for Leash
8 //
9 //	History:
10 //
11 //	MM/DD/YY	Inits	Description of Change
12 //	12/02/98	ADL		Original
13 //	**************************************************************************************
14 
15 
16 #include "stdafx.h"
17 #include "Leash.h"
18 
19 #include "LeashDoc.h"
20 
21 #ifdef _DEBUG
22 #define new DEBUG_NEW
23 #undef THIS_FILE
24 static char THIS_FILE[] = __FILE__;
25 #endif
26 
27 /////////////////////////////////////////////////////////////////////////////
28 // LeashDoc
29 
IMPLEMENT_DYNCREATE(LeashDoc,CDocument)30 IMPLEMENT_DYNCREATE(LeashDoc, CDocument)
31 
32 BEGIN_MESSAGE_MAP(LeashDoc, CDocument)
33 	//{{AFX_MSG_MAP(LeashDoc)
34 	//}}AFX_MSG_MAP
35 END_MESSAGE_MAP()
36 
37 /////////////////////////////////////////////////////////////////////////////
38 // LeashDoc construction/destruction
39 
40 LeashDoc::LeashDoc()
41 {
42 	// TODO: add one-time construction code here
43 
44 }
45 
~LeashDoc()46 LeashDoc::~LeashDoc()
47 {
48 }
49 
OnNewDocument()50 BOOL LeashDoc::OnNewDocument()
51 {
52 	if (!CDocument::OnNewDocument())
53 		return FALSE;
54 
55 	// TODO: add reinitialization code here
56 	// (SDI documents will reuse this document)
57 
58 	return TRUE;
59 }
60 
61 
62 
63 /////////////////////////////////////////////////////////////////////////////
64 // LeashDoc serialization
65 
Serialize(CArchive & ar)66 void LeashDoc::Serialize(CArchive& ar)
67 {
68 	if (ar.IsStoring())
69 	{
70 		// TODO: add storing code here
71 	}
72 	else
73 	{
74 		// TODO: add loading code here
75 	}
76 }
77 
78 /////////////////////////////////////////////////////////////////////////////
79 // LeashDoc diagnostics
80 
81 #ifdef _DEBUG
AssertValid() const82 void LeashDoc::AssertValid() const
83 {
84 	CDocument::AssertValid();
85 }
86 
Dump(CDumpContext & dc) const87 void LeashDoc::Dump(CDumpContext& dc) const
88 {
89 	CDocument::Dump(dc);
90 }
91 #endif //_DEBUG
92 
93 /////////////////////////////////////////////////////////////////////////////
94 // LeashDoc commands
95