Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

34 lines
1.0 KiB
C++

#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