////////////////////////////////////////////////////////////////////////////////
//
// Document2DEvent  -    
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _DOCUMENT2DEVENT_H
#define _DOCUMENT2DEVENT_H

#ifndef _BASEEVENT_H
#include "baseEvent.h"
#endif

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000 

/*
enum ksDocument2DNotifyEnum
{
  d2BeginRebuild        = 1, 
  d2Rebuild             = 2, 
  d2BeginChoiceMaterial = 3, 
  d2hoiceMaterial      = 4,  
  d2BeginInsertFragment = 5
};
*/    

////////////////////////////////////////////////////////////////////////////////
//
// Document2DEvent  -    2D 
//
////////////////////////////////////////////////////////////////////////////////
class Document2DEvent : public BaseEvent
{
public:
	Document2DEvent( LPUNKNOWN pObject, 
                   LPDISPATCH doc,
                   bool m_selfAdvise = true );           
  virtual ~Document2DEvent();

protected:
  // d3BeginRebuild -   
  afx_msg VARIANT_BOOL BeginRebuild();
  // d3Rebuild -  
  afx_msg VARIANT_BOOL Rebuild();
  // d3BeginChoiceMaterial -   
  afx_msg VARIANT_BOOL BeginChoiceMaterial();
  // d3hoiceMaterial -   
  afx_msg VARIANT_BOOL ChoiceMaterial( LPCTSTR material, double density );
  // d2BeginInsertFragment -    (   )
  afx_msg VARIANT_BOOL BeginInsertFragment();
	DECLARE_EVENTSINK_MAP()
};

/////////////////////////////////////////////////////////////////////////////

#endif 
