Files
CMake/Tests/MFC/mfc1/mfc1Doc.cpp
Marc Chevrier 185fe49f29 clang-format: Normalize headers presentation
By using clang-format directives 'IncludeBlocks' and 'IncludeCategories'
headers are regrouped by categories:
1. "cmConfigure.h" which must be first
2. header matching current implementation file
3. standard language headers
4. CMake replacement ones
5. external  headers (i.e. #include directive with '<' and '>')
6. Qt headers
7. cmsys/* headers
8. cm_* headers
9. CMake headers (i.e. starting with 'cm[A-Z]')
10. all other headers

Fixes: #19674
2019-10-01 12:25:48 -04:00

71 lines
1.0 KiB
C++

// mfc1Doc.cpp : implementation of the Cmfc1Doc class
//
// clang-format off
#include "stdafx.h"
#include "mfc1.h"
#include "mfc1Doc.h"
// clang-format on
#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()
{
// TODO: add one-time construction code here
}
Cmfc1Doc::~Cmfc1Doc()
{
}
BOOL Cmfc1Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
// Cmfc1Doc serialization
void Cmfc1Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring()) {
// TODO: add storing code here
} else {
// TODO: add loading code here
}
}
// Cmfc1Doc diagnostics
#ifdef _DEBUG
void Cmfc1Doc::AssertValid() const
{
CDocument::AssertValid();
}
void Cmfc1Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// Cmfc1Doc commands