Hits/True | False | Line | Source |
---|---|---|---|
1 | // cubedoc.cpp : implementation of the CCubeDoc class | ||
2 | // | ||
3 | // This is a part of the Microsoft Foundation Classes C++ library. | ||
4 | // Copyright (c) Microsoft Corporation. All rights reserved. | ||
5 | // | ||
6 | // This source code is only intended as a supplement to the | ||
7 | // Microsoft Foundation Classes Reference and related | ||
8 | // electronic documentation provided with the library. | ||
9 | // See these sources for detailed information regarding the | ||
10 | // Microsoft Foundation Classes product. | ||
11 | |||
12 | #include "stdafx.h" | ||
13 | #include "cube.h" | ||
14 | |||
15 | #include "cubedoc.h" | ||
16 | |||
17 | #ifdef _DEBUG | ||
18 | #undef THIS_FILE | ||
19 | static char BASED_CODE THIS_FILE[] = __FILE__; | ||
20 | #endif | ||
21 | |||
22 | ///////////////////////////////////////////////////////////////////////////// | ||
23 | // CCubeDoc | ||
24 | |||
Top | |||
1 | 25 | IMPLEMENT_DYNCREATE(CCubeDoc, CDocument) | |
1 | 25 | return new CCubeDoc | |
25 | } | ||
Top | |||
399 | 25 | FUNCTION CCubeDoc::_GetBaseClass() | |
399 | 25 | return ( CDocument::GetThisClass ( ) ) | |
25 | } | ||
Top | |||
2 | 25 | FUNCTION CCubeDoc::GetThisClass() | |
2 | 25 | return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) ) | |
25 | } | ||
Top | |||
4326 | 25 | FUNCTION CCubeDoc::GetRuntimeClass() | |
4326 | 25 | return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) ) | |
25 | } | ||
26 | |||
Top | |||
828 | 27 | BEGIN_MESSAGE_MAP(CCubeDoc, CDocument) | |
828 | 27 | return GetThisMessageMap ( ) | |
27 | } | ||
Top | |||
828 | 27 | FUNCTION CCubeDoc::GetThisMessageMap() | |
28 | //{{AFX_MSG_MAP(CCubeDoc) | ||
29 | // NOTE - the ClassWizard will add and remove mapping macros here. | ||
30 | // DO NOT EDIT what you see in these blocks of generated code! | ||
31 | //}}AFX_MSG_MAP | ||
828 | 32 | END_MESSAGE_MAP() | |
32 | } | ||
33 | |||
34 | ///////////////////////////////////////////////////////////////////////////// | ||
35 | // CCubeDoc construction/destruction | ||
36 | |||
Top | |||
1 | 37 | CCubeDoc::CCubeDoc() | |
38 | { | ||
39 | // TODO: add one-time construction code here | ||
40 | |||
1 | 41 | } | |
42 | |||
Top | |||
1 | 43 | CCubeDoc::~CCubeDoc() | |
44 | { | ||
1 | 45 | } | |
46 | |||
Top | |||
1 | 47 | BOOL CCubeDoc::OnNewDocument() | |
48 | { | ||
0 | 1 | 49 | if (!CDocument::OnNewDocument()) |
0 | 50 | return FALSE; | |
51 | |||
52 | // TODO: add reinitialization code here | ||
53 | // (SDI documents will reuse this document) | ||
54 | |||
1 | 55 | return TRUE; | |
56 | } | ||
57 | |||
58 | ///////////////////////////////////////////////////////////////////////////// | ||
59 | // CCubeDoc serialization | ||
60 | |||
Top | |||
0 | 61 | void CCubeDoc::Serialize(CArchive& ar) | |
62 | { | ||
0 | 0 | 63 | if (ar.IsStoring()) |
64 | { | ||
65 | // TODO: add storing code here | ||
66 | } | ||
67 | else | ||
68 | { | ||
69 | // TODO: add loading code here | ||
70 | } | ||
0 | 71 | } | |
72 | |||
73 | ///////////////////////////////////////////////////////////////////////////// | ||
74 | // CCubeDoc diagnostics | ||
75 | |||
76 | #ifdef _DEBUG | ||
Top | |||
3927 | 77 | void CCubeDoc::AssertValid() const | |
78 | { | ||
79 | CDocument::AssertValid(); | ||
3927 | 80 | } | |
81 | |||
Top | |||
0 | 82 | void CCubeDoc::Dump(CDumpContext& dc) const | |
83 | { | ||
84 | CDocument::Dump(dc); | ||
0 | 85 | } | |
86 | #endif //_DEBUG | ||
87 | |||
88 | ///////////////////////////////////////////////////////////////////////////// | ||
89 | // CCubeDoc commands |