www.pudn.com > editor.rar > zucc_editerDoc.cpp


// zucc_editerDoc.cpp : implementation of the CZucc_editerDoc class 
// 
 
#include "stdafx.h" 
#include "zucc_editer.h" 
 
#include "zucc_editerDoc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CZucc_editerDoc 
 
IMPLEMENT_DYNCREATE(CZucc_editerDoc, CDocument) 
 
BEGIN_MESSAGE_MAP(CZucc_editerDoc, CDocument) 
	//{{AFX_MSG_MAP(CZucc_editerDoc) 
		// 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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CZucc_editerDoc construction/destruction 
 
CZucc_editerDoc::CZucc_editerDoc() 
{ 
	// TODO: add one-time construction code here 
 
} 
 
CZucc_editerDoc::~CZucc_editerDoc() 
{ 
} 
 
BOOL CZucc_editerDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CZucc_editerDoc serialization 
 
void CZucc_editerDoc::Serialize(CArchive& ar) 
{ 
	CString str; 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
		int nLines = (int)m_strContent.GetSize(); 
		 for ( int i=0; i