Path: blob/main/crypto/krb5/src/windows/leash/LeashDoc.cpp
34889 views
// **************************************************************************************1// File: LeashDoc.cpp2// By: Arthur David Leather3// Created: 12/02/984// Copyright @1998 Massachusetts Institute of Technology - All rights reserved.5// Description: CPP file for LeashDoc.h. Contains variables and functions6// for Leash7//8// History:9//10// MM/DD/YY Inits Description of Change11// 12/02/98 ADL Original12// **************************************************************************************131415#include "stdafx.h"16#include "Leash.h"1718#include "LeashDoc.h"1920#ifdef _DEBUG21#define new DEBUG_NEW22#undef THIS_FILE23static char THIS_FILE[] = __FILE__;24#endif2526/////////////////////////////////////////////////////////////////////////////27// LeashDoc2829IMPLEMENT_DYNCREATE(LeashDoc, CDocument)3031BEGIN_MESSAGE_MAP(LeashDoc, CDocument)32//{{AFX_MSG_MAP(LeashDoc)33//}}AFX_MSG_MAP34END_MESSAGE_MAP()3536/////////////////////////////////////////////////////////////////////////////37// LeashDoc construction/destruction3839LeashDoc::LeashDoc()40{41// TODO: add one-time construction code here4243}4445LeashDoc::~LeashDoc()46{47}4849BOOL LeashDoc::OnNewDocument()50{51if (!CDocument::OnNewDocument())52return FALSE;5354// TODO: add reinitialization code here55// (SDI documents will reuse this document)5657return TRUE;58}59606162/////////////////////////////////////////////////////////////////////////////63// LeashDoc serialization6465void LeashDoc::Serialize(CArchive& ar)66{67if (ar.IsStoring())68{69// TODO: add storing code here70}71else72{73// TODO: add loading code here74}75}7677/////////////////////////////////////////////////////////////////////////////78// LeashDoc diagnostics7980#ifdef _DEBUG81void LeashDoc::AssertValid() const82{83CDocument::AssertValid();84}8586void LeashDoc::Dump(CDumpContext& dc) const87{88CDocument::Dump(dc);89}90#endif //_DEBUG9192/////////////////////////////////////////////////////////////////////////////93// LeashDoc commands949596