#ifndef CTRLSHAPERECT_H #define CTRLSHAPERECT_H #include "CtrlGeneralShape.h" #include "Point.h" namespace HWP { class CCtrlShapeRect : public CCtrlGeneralShape { HWP_BYTE m_chCurv; TPoint m_arPoints[4]; void ReadFromHWPX(CXMLReader& oReader); void ReadFromHWPML(CXMLReader& oReader); public: CCtrlShapeRect(); CCtrlShapeRect(const HWP_STRING& sCtrlID); CCtrlShapeRect(const CCtrlGeneralShape& oShape); CCtrlShapeRect(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion); CCtrlShapeRect(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType); EShapeType GetShapeType() const override; void GetPoints(TPoint (&arPoints)[4]) const; static int ParseElement(CCtrlShapeRect& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion); static int ParseCtrl(CCtrlShapeRect& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion); static int ParseListHeaderAppend(CCtrlShapeRect& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion); }; } #endif // CTRLSHAPERECT_H