2011-10-25 00:55:52 +04:00
|
|
|
// mfc1Doc.cpp : implementation of the Cmfc1Doc class
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
2016-04-29 16:07:46 +03:00
|
|
|
|
2011-10-25 00:55:52 +04:00
|
|
|
#include "mfc1.h"
|
|
|
|
|
|
|
|
#include "mfc1Doc.h"
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Cmfc1Doc
|
|
|
|
|
|
|
|
IMPLEMENT_DYNCREATE(Cmfc1Doc, CDocument)
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(Cmfc1Doc, CDocument)
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
// Cmfc1Doc construction/destruction
|
|
|
|
|
|
|
|
Cmfc1Doc::Cmfc1Doc()
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
// TODO: add one-time construction code here
|
2011-10-25 00:55:52 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
Cmfc1Doc::~Cmfc1Doc()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL Cmfc1Doc::OnNewDocument()
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
if (!CDocument::OnNewDocument())
|
|
|
|
return FALSE;
|
2011-10-25 00:55:52 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
// TODO: add reinitialization code here
|
|
|
|
// (SDI documents will reuse this document)
|
2011-10-25 00:55:52 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
return TRUE;
|
2011-10-25 00:55:52 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Cmfc1Doc serialization
|
|
|
|
|
|
|
|
void Cmfc1Doc::Serialize(CArchive& ar)
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
if (ar.IsStoring()) {
|
|
|
|
// TODO: add storing code here
|
|
|
|
} else {
|
|
|
|
// TODO: add loading code here
|
|
|
|
}
|
2011-10-25 00:55:52 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Cmfc1Doc diagnostics
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
void Cmfc1Doc::AssertValid() const
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
CDocument::AssertValid();
|
2011-10-25 00:55:52 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void Cmfc1Doc::Dump(CDumpContext& dc) const
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
CDocument::Dump(dc);
|
2011-10-25 00:55:52 +04:00
|
|
|
}
|
|
|
|
#endif //_DEBUG
|
|
|
|
|
|
|
|
// Cmfc1Doc commands
|