Files
DocumentServer-v-9.2.0/core/HwpFile/HwpDoc/Paragraph/CtrlShapeArc.h
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

40 lines
1.0 KiB
C++

#ifndef CTRLSHAPEARC_H
#define CTRLSHAPEARC_H
#include "CtrlShapeEllipse.h"
#include "Point.h"
namespace HWP
{
class CCtrlShapeArc : public CCtrlGeneralShape
{
EArcType m_eType;
int m_nCenterX;
int m_nCenterY;
int m_nAxixX1;
int m_nAxixY1;
int m_nAxixX2;
int m_nAxixY2;
void ReadFromHWPX(CXMLReader& oReader);
void ReadFromHWPML(CXMLReader& oReader);
public:
CCtrlShapeArc();
CCtrlShapeArc(const HWP_STRING& sCtrlID);
CCtrlShapeArc(const CCtrlGeneralShape& oShape);
CCtrlShapeArc(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlShapeArc(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
EShapeType GetShapeType() const override;
TPoint GetCenterPoint() const;
TPoint GetFirstPoint() const;
TPoint GetSecondPoint() const;
static int ParseElement(CCtrlShapeArc& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseCtrl(CCtrlShapeArc& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
};
}
#endif // CTRLSHAPEARC_H