| 1 |
// mfc1Doc.cpp : implementation of the Cmfc1Doc class |
| 2 |
// |
| 3 |
|
| 4 |
// clang-format off |
| 5 |
#include "stdafx.h" |
| 6 |
|
| 7 |
#include "mfc1.h" |
| 8 |
|
| 9 |
#include "mfc1Doc.h" |
| 10 |
// clang-format on |
| 11 |
|
| 12 |
#ifdef _DEBUG |
| 13 |
# define new DEBUG_NEW |
| 14 |
#endif |
| 15 |
|
| 16 |
// Cmfc1Doc |
| 17 |
|
| 18 |
IMPLEMENT_DYNCREATE(Cmfc1Doc, CDocument) |
| 19 |
|
| 20 |
BEGIN_MESSAGE_MAP(Cmfc1Doc, CDocument) |
| 21 |
END_MESSAGE_MAP() |
| 22 |
|
| 23 |
// Cmfc1Doc construction/destruction |
| 24 |
|
| 25 |
Cmfc1Doc::Cmfc1Doc() |
| 26 |
{ |
| 27 |
// TODO: add one-time construction code here |
| 28 |
} |
| 29 |
|
| 30 |
Cmfc1Doc::~Cmfc1Doc() |
| 31 |
{ |
| 32 |
} |
| 33 |
|
| 34 |
BOOL Cmfc1Doc::OnNewDocument() |
| 35 |
{ |
| 36 |
if (!CDocument::OnNewDocument()) |
| 37 |
return FALSE; |
| 38 |
|
| 39 |
// TODO: add reinitialization code here |
| 40 |
// (SDI documents will reuse this document) |
| 41 |
|
| 42 |
return TRUE; |
| 43 |
} |
| 44 |
|
| 45 |
// Cmfc1Doc serialization |
| 46 |
|
| 47 |
void Cmfc1Doc::Serialize(CArchive& ar) |
| 48 |
{ |
| 49 |
if (ar.IsStoring()) { |
| 50 |
// TODO: add storing code here |
| 51 |
} else { |
| 52 |
// TODO: add loading code here |
| 53 |
} |
| 54 |
} |
| 55 |
|
| 56 |
// Cmfc1Doc diagnostics |
| 57 |
|
| 58 |
#ifdef _DEBUG |
| 59 |
void Cmfc1Doc::AssertValid() const |
| 60 |
{ |
| 61 |
CDocument::AssertValid(); |
| 62 |
} |
| 63 |
|
| 64 |
void Cmfc1Doc::Dump(CDumpContext& dc) const |
| 65 |
{ |
| 66 |
CDocument::Dump(dc); |
| 67 |
} |
| 68 |
#endif //_DEBUG |
| 69 |
|
| 70 |
// Cmfc1Doc commands |