| 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 |
| 2 | | | 25 | IMPLEMENT_DYNCREATE(CCubeDoc, CDocument) |
| 2 | | | 25 | return new CCubeDoc |
| | | | 25 | } |
| Top |
| 6322 | | | 25 | FUNCTION CCubeDoc::_GetBaseClass() |
| 6322 | | | 25 | return ( CDocument::GetThisClass ( ) ) |
| | | | 25 | } |
| Top |
| 276 | | | 25 | FUNCTION CCubeDoc::GetThisClass() |
| 276 | | | 25 | return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) ) |
| | | | 25 | } |
| Top |
| 67380 | | | 25 | FUNCTION CCubeDoc::GetRuntimeClass() |
| 67380 | | | 25 | return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) ) |
| | | | 25 | } |
| | 26 | |
| Top |
| 12670 | | | 27 | BEGIN_MESSAGE_MAP(CCubeDoc, CDocument) |
| 12670 | | | 27 | return GetThisMessageMap ( ) |
| | | | 27 | } |
| Top |
| 12670 | | | 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 |
| 12670 | | | 32 | END_MESSAGE_MAP() |
| | | | 32 | } |
| | 33 | |
| | 34 | ///////////////////////////////////////////////////////////////////////////// |
| | 35 | // CCubeDoc construction/destruction |
| | 36 | |
| Top |
| 2 | | | 37 | CCubeDoc::CCubeDoc() |
| | 38 | { |
| | 39 | // TODO: add one-time construction code here |
| | 40 | |
| 2 | | | 41 | } |
| | 42 | |
| Top |
| 2 | | | 43 | CCubeDoc::~CCubeDoc() |
| | 44 | { |
| 2 | | | 45 | } |
| | 46 | |
| Top |
| 2 | | | 47 | BOOL CCubeDoc::OnNewDocument() |
| | 48 | { |
| 0 | 2 | - | 49 | if (!CDocument::OnNewDocument()) |
| 0 | | - | 50 | return FALSE; |
| | 51 | |
| | 52 | // TODO: add reinitialization code here |
| | 53 | // (SDI documents will reuse this document) |
| | 54 | |
| 2 | | | 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 |
| 60786 | | | 77 | void CCubeDoc::AssertValid() const |
| | 78 | { |
| | 79 | CDocument::AssertValid(); |
| 60786 | | | 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 |
| ***TER 72 | % (21/29) of SOURCE FILE cubedoc.cpp |
| 75 | % (15/20) statement |