Files
core/HwpFile/HwpDoc/Paragraph/CtrlShapeRect.h
2025-01-11 01:18:41 +03:00

28 lines
824 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);
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