////////////////////////////////////////////////////////////////////////////////
//
// ApplicationEvent  -    
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _APPLICATIONEVENT_H
#define _APPLICATIONEVENT_H

#include "ABaseEvent.h"


////////////////////////////////////////////////////////////////////////////////
//
// ApplicationEvent  -    
//
////////////////////////////////////////////////////////////////////////////////
class ApplicationEvent : public ABaseEvent
{
public:
	ApplicationEvent( LPUNKNOWN pObject );           
  virtual ~ApplicationEvent();

protected:
  // koCreateDocument -  
  afx_msg BOOL CreateDocument       ( LPDISPATCH newDoc, long docType );
  // koOpenDocumenBegin -   
  afx_msg BOOL BeginOpenDocumen     ( LPCTSTR fileName );
  // koOpenDocumen -  
  afx_msg BOOL OpenDocumen          ( LPDISPATCH newDoc, long docType );
  // koActiveDocument -     
  afx_msg BOOL ChangeActiveDocument ( LPDISPATCH newDoc, long docType );
  // koApplicatinDestroy -  
  afx_msg BOOL ApplicationDestroy   ();
  // koBeginCreate -   (   )
  afx_msg BOOL BeginCreate          ( long docType );
  // koBeginOpenFile -   (   )
  afx_msg BOOL BeginOpenFile        ();
  // koBeginCloseAllDocument -     
  afx_msg BOOL BeginCloseAllDocument();
  // koKeyDown -  
  afx_msg BOOL KeyDown              ( long * key, long flags, BOOL systemKey );
  // koKeyUp -  
  afx_msg BOOL KeyUp                ( long * key, long flags, BOOL systemKey );
	// koKeyPress -    
  afx_msg BOOL KeyPress             ( long * key, BOOL systemKey );
	DECLARE_EVENTSINK_MAP()
};

ABaseEvent * NewApplicationEvent();
/////////////////////////////////////////////////////////////////////////////

#endif 
