1 /*---------------------------------------------------------------------------*
2   Project:  HIO2 demos - dual
3   File:     dualDoc.cpp
4 
5   (C)2005 HUDSON SOFT
6 
7   $Header: /home/cvsroot/SDK/build/demos/hio2demo/vc++/dual/dualDoc.cpp,v 1.3 2006/03/15 06:31:26 mitu Exp $
8 
9   $NoKeywords: $
10  *---------------------------------------------------------------------------*/
11 
12 // dualDoc.cpp : implementation of the CDualDoc class
13 //
14 
15 #include "stdafx.h"
16 #include "dual.h"
17 
18 #include "dualDoc.h"
19 
20 #ifdef _DEBUG
21 #define new DEBUG_NEW
22 #endif
23 
24 
25 // CDualDoc
26 
IMPLEMENT_DYNCREATE(CDualDoc,CDocument)27 IMPLEMENT_DYNCREATE(CDualDoc, CDocument)
28 
29 BEGIN_MESSAGE_MAP(CDualDoc, CDocument)
30 END_MESSAGE_MAP()
31 
32 
33 // CDualDoc construction/destruction
34 
35 CDualDoc::CDualDoc()
36 {
37 	// TODO : add one-time construction code here
38 
39 }
40 
~CDualDoc()41 CDualDoc::~CDualDoc()
42 {
43 }
44 
OnNewDocument()45 BOOL CDualDoc::OnNewDocument()
46 {
47 	if (!CDocument::OnNewDocument())
48 		return FALSE;
49 
50 	// TODO : add reinitialization code here
51 	// (SDI documents will reuse this document)
52 
53 	return TRUE;
54 }
55 
56 
57 
58 
59 // CDualDoc serialization
60 
Serialize(CArchive & ar)61 void CDualDoc::Serialize(CArchive& ar)
62 {
63 	if (ar.IsStoring())
64 	{
65 		// TODO : add storing code here
66 	}
67 	else
68 	{
69 		// TODO : add loading code here
70 	}
71 }
72 
73 
74 // CDualDoc diagnostics
75 
76 #ifdef _DEBUG
AssertValid() const77 void CDualDoc::AssertValid() const
78 {
79 	CDocument::AssertValid();
80 }
81 
Dump(CDumpContext & dc) const82 void CDualDoc::Dump(CDumpContext& dc) const
83 {
84 	CDocument::Dump(dc);
85 }
86 #endif //_DEBUG
87 
88 
89 // CDualDoc commands
90