// clamavw.cpp : implementation of the CClamavView class // /* * Copyright (C) 2004 Nigel Horne * * 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 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #include "stdafx.h" #include "clamav.h" #include "clamadoc.h" #include "clamavw.h" #ifdef _DEBUG #undef THIS_FILE static char BASED_CODE THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CClamavView IMPLEMENT_DYNCREATE(CClamavView, CView) BEGIN_MESSAGE_MAP(CClamavView, CView) //{{AFX_MSG_MAP(CClamavView) //}}AFX_MSG_MAP // Standard printing commands ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CClamavView construction/destruction CClamavView::CClamavView() { // TODO: add construction code here } CClamavView::~CClamavView() { } ///////////////////////////////////////////////////////////////////////////// // CClamavView drawing void CClamavView::OnDraw(CDC* pDC) { CClamavDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CClamavView printing BOOL CClamavView::OnPreparePrinting(CPrintInfo* pInfo) { // default preparation return DoPreparePrinting(pInfo); } void CClamavView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add extra initialization before printing } void CClamavView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add cleanup after printing } ///////////////////////////////////////////////////////////////////////////// // CClamavView diagnostics #ifdef _DEBUG void CClamavView::AssertValid() const { CView::AssertValid(); } void CClamavView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CClamavDoc* CClamavView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CClamavDoc))); return (CClamavDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CClamavView message handlers