// jclDoc.cpp : implementation of the CJclDoc class
//

#include "stdafx.h"
#include "jcl.h"

#include "jclDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CJclDoc

IMPLEMENT_DYNCREATE(CJclDoc, CDocument)

BEGIN_MESSAGE_MAP(CJclDoc, CDocument)
	//{{AFX_MSG_MAP(CJclDoc)
		// 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()

BEGIN_DISPATCH_MAP(CJclDoc, CDocument)
	//{{AFX_DISPATCH_MAP(CJclDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//      DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IJcl to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {0E68D4F2-C6FF-11CF-95EB-000000000000}
static const IID IID_IJcl =
{ 0xe68d4f2, 0xc6ff, 0x11cf, { 0x95, 0xeb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } };

BEGIN_INTERFACE_MAP(CJclDoc, CDocument)
	INTERFACE_PART(CJclDoc, IID_IJcl, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CJclDoc construction/destruction

CJclDoc::CJclDoc()
{
	// TODO: add one-time construction code here

	EnableAutomation();

	AfxOleLockApp();
}

CJclDoc::~CJclDoc()
{
	AfxOleUnlockApp();
}

BOOL CJclDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CJclDoc serialization

void CJclDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CJclDoc diagnostics

#ifdef _DEBUG
void CJclDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CJclDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CJclDoc commands
