You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.0 KiB
79 lines
2.0 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: EventPrinter.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of EventPrinter.h
|
|
//----------------------------------------------------------------------------
|
|
// EventPrinter.h: interface for the CEventPrinter class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_EVENTPRINTER_H__15636C24_889C_11D4_A1F0_0010B55CB330__INCLUDED_)
|
|
#define AFX_EVENTPRINTER_H__15636C24_889C_11D4_A1F0_0010B55CB330__INCLUDED_
|
|
|
|
#include "..\DLIB\SensorArray.h" // Added by ClassView
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class CEventPrinter
|
|
{
|
|
public:
|
|
BOOL PageEnd();
|
|
BOOL Create( CString Driver, CString Device );
|
|
void SetSensorArray( CSensorArray *pSensorArray );
|
|
BOOL PrintEvent(EVENT &event);
|
|
|
|
BOOL PrintFileStart( LPSTR pFileName, EVENTFILTER filter );
|
|
BOOL PrintFileAbort();
|
|
|
|
BOOL IsBusy();
|
|
BOOL IsPrintFile();
|
|
|
|
CEventPrinter();
|
|
virtual ~CEventPrinter();
|
|
|
|
private:
|
|
friend static DWORD CALLBACK ThreadProcEventPrinter( LPVOID lpvParam )
|
|
{ return ((CEventPrinter*)lpvParam)->ThreadProc(); }
|
|
DWORD ThreadProc();
|
|
|
|
private:
|
|
BOOL OutLine( LPEVENT pEvent );
|
|
CEventQueue m_EventQueue;
|
|
CEventQueue m_CommandQueue;
|
|
CDC m_PrintDC;
|
|
CSensorArray* m_pSensorArray;
|
|
HANDLE m_hEventQuit;
|
|
HANDLE m_hEventCommand;
|
|
HANDLE m_hEventBusy;
|
|
HANDLE m_hEventFile;
|
|
HANDLE m_hThread;
|
|
|
|
CString m_Driver;
|
|
CString m_Device;
|
|
|
|
// CHAR m_pFileName[MAX_PATH];
|
|
// CFile m_File;
|
|
HANDLE m_hFile;
|
|
// BOOL m_bFileInPrint;
|
|
// BOOL m_bFileSuspend;
|
|
// BOOL m_bFileAbort;
|
|
EVENTFILTER m_Filter;
|
|
|
|
BOOL m_bDocStart;
|
|
BOOL m_bPageStart;
|
|
int m_nLineCount;
|
|
int m_nFontHeight;
|
|
int m_nFontMargin;
|
|
};
|
|
|
|
#endif // !defined(AFX_EVENTPRINTER_H__15636C24_889C_11D4_A1F0_0010B55CB330__INCLUDED_)
|