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

28 lines
861 B
C++

#ifndef CTRLSHAPEPOLYGON_H
#define CTRLSHAPEPOLYGON_H
#include "CtrlGeneralShape.h"
#include "Point.h"
namespace HWP
{
class CCtrlShapePolygon : public CCtrlGeneralShape
{
int m_nPoints;
std::list<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);
EShapeType GetShapeType() const override;
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