// LeaderEdjig.h: interface for the CLeaderEdjig class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_LEADEREDJIG_H__F0977AC8_E2C8_42F2_9A7C_162CF2CEFCA9__INCLUDED_) #define AFX_LEADEREDJIG_H__F0977AC8_E2C8_42F2_9A7C_162CF2CEFCA9__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "EdJigEx.h" class TLeaderEdJig : public TSymbEdJig { public: enum TLeaderOper { kNone=0, kLeader=1, kTextLine=2, kVertex=3, }; protected: //输入 TLeaderEdJig::TLeaderOper m_nOperCode; // I/O TDbSymbMultiLeader *m_pDrawEnt; public: TLeaderEdJig(TDbSymbMultiLeader *); int DoIt(int *pKeyIndex = NULL); virtual DragStatus GetPoint(XPoint &pt); virtual Adesk::Boolean update(); virtual AcDbEntity* entity() const; XPoint GetDragPoint() const; XPoint GetBasePoint() const; public: void SetOperCode(TLeaderEdJig::TLeaderOper nCode) { m_nOperCode = nCode; } }; #endif // !defined(AFX_LEADEREDJIG_H__F0977AC8_E2C8_42F2_9A7C_162CF2CEFCA9__INCLUDED_)