2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
9 // PofViewDoc.cpp : implementation of the CPofViewDoc class
15 #include "pofviewdoc.h"
22 static char THIS_FILE[] = __FILE__;
25 /////////////////////////////////////////////////////////////////////////////
28 IMPLEMENT_DYNCREATE(CPofViewDoc, CDocument)
30 BEGIN_MESSAGE_MAP(CPofViewDoc, CDocument)
31 //{{AFX_MSG_MAP(CPofViewDoc)
32 // NOTE - the ClassWizard will add and remove mapping macros here.
33 // DO NOT EDIT what you see in these blocks of generated code!
37 /////////////////////////////////////////////////////////////////////////////
38 // CPofViewDoc construction/destruction
40 CPofViewDoc::CPofViewDoc()
42 // TODO: add one-time construction code here
46 CPofViewDoc::~CPofViewDoc()
50 BOOL CPofViewDoc::OnNewDocument()
54 if (!CDocument::OnNewDocument())
57 // TODO: add reinitialization code here
58 // (SDI documents will reuse this document)
63 /////////////////////////////////////////////////////////////////////////////
64 // CPofViewDoc serialization
66 void CPofViewDoc::Serialize(CArchive& ar)
70 // TODO: add storing code here
74 // TODO: add loading code here
75 m_model_num = model_load((char *)LPCTSTR(ar.GetFile()->GetFilePath()), 0, NULL);
79 /////////////////////////////////////////////////////////////////////////////
80 // CPofViewDoc diagnostics
83 void CPofViewDoc::AssertValid() const
85 CDocument::AssertValid();
88 void CPofViewDoc::Dump(CDumpContext& dc) const
94 /////////////////////////////////////////////////////////////////////////////
95 // CPofViewDoc commands