Files
core/HwpFile/HwpDoc/Paragraph/CtrlShapePolygon.h
2025-09-24 18:47:24 +03:00

31 lines
978 B
C++

#ifndef CTRLSHAPEPOLYGON_H
#define CTRLSHAPEPOLYGON_H
#include "CtrlGeneralShape.h"
#include "Point.h"
namespace HWP
{
class CCtrlShapePolygon : public CCtrlGeneralShape
{
int m_nPoints;
VECTOR<TPoint> m_arPoints;
public:
CCtrlShapePolygon();
CCtrlShapePolygon(const HWP_STRING& sCtrlID);
CCtrlShapePolygon(const CCtrlGeneralShape& oShape);
CCtrlShapePolygon(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlShapePolygon(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
EShapeType GetShapeType() const override;
VECTOR<TPoint> GetPoints() const;
static int ParseElement(CCtrlShapePolygon& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseCtrl(CCtrlShapePolygon& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseListHeaderAppend(CCtrlShapePolygon& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
};
}
#endif // CTRLSHAPEPOLYGON_H