// OptimaDoc.cpp : implementation of the COptimaDoc class
//

#include "stdafx.h"
#include "Optima.h"

#include "OptimaDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// COptimaDoc

IMPLEMENT_DYNCREATE(COptimaDoc, CDocument)

BEGIN_MESSAGE_MAP(COptimaDoc, CDocument)
	//{{AFX_MSG_MAP(COptimaDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COptimaDoc construction/destruction

COptimaDoc::COptimaDoc()
{
	// TODO: add one-time construction code here

}

COptimaDoc::~COptimaDoc()
{
}

BOOL COptimaDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// COptimaDoc serialization

void COptimaDoc::Serialize(CArchive& ar)
{
	// CEditView contains an edit control which handles all serialization
	((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
}

/////////////////////////////////////////////////////////////////////////////
// COptimaDoc diagnostics

#ifdef _DEBUG
void COptimaDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void COptimaDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// COptimaDoc commands
