Files
core/HwpFile/HwpDoc/Paragraph/CtrlShapeRect.h
2025-01-15 01:28:37 +03:00

29 lines
899 B
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];
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, CXMLNode& oNode, int nVersion);
EShapeType GetShapeType() const override;
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