clamav-devel/contrib/Windows/clamadoc.cpp
6bc7cf0b
 // clamadoc.cpp : implementation of the CClamavDoc class
 //
 
 /*
  *  Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
48b7b4a7
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA 02110-1301, USA.
6bc7cf0b
  */
 
 #include "stdafx.h"
 #include "resource.h"
 #include "clamav.h"
 
 #include "clamadoc.h"
 
 #ifdef _DEBUG
 #undef THIS_FILE
 static char BASED_CODE THIS_FILE[] = __FILE__;
 #endif
 
 /////////////////////////////////////////////////////////////////////////////
 // CClamavDoc
 
 IMPLEMENT_DYNCREATE(CClamavDoc, CDocument)
 
 BEGIN_MESSAGE_MAP(CClamavDoc, CDocument)
 
 		// 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()
 
 /////////////////////////////////////////////////////////////////////////////
 // CClamavDoc construction/destruction
 
 CClamavDoc::CClamavDoc()
 {
 	// TODO: add one-time construction code here
 
 }
 
 CClamavDoc::~CClamavDoc()
 {
 }
 
 BOOL CClamavDoc::OnNewDocument()
 {
 	if (!CDocument::OnNewDocument())
 		return FALSE;
 
 	// TODO: add reinitialization code here
 	// (SDI documents will reuse this document)
 
 	return TRUE;
 }
 
 /////////////////////////////////////////////////////////////////////////////
 // CClamavDoc serialization
 
 void CClamavDoc::Serialize(CArchive& ar)
 {
 	if (ar.IsStoring())
 	{
 		// TODO: add storing code here
 	}
 	else
 	{
 		// TODO: add loading code here
 	}
 }
 
 /////////////////////////////////////////////////////////////////////////////
 // CClamavDoc diagnostics
 
 #ifdef _DEBUG
 void CClamavDoc::AssertValid() const
 {
 	CDocument::AssertValid();
 }
 
 void CClamavDoc::Dump(CDumpContext& dc) const
 {
 	CDocument::Dump(dc);
 }
 #endif //_DEBUG
 
 /////////////////////////////////////////////////////////////////////////////
 // CClamavDoc commands