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

46 lines
1.2 KiB
C++

#ifndef CTRLSHAPETEXTART_H
#define CTRLSHAPETEXTART_H
#include "CtrlGeneralShape.h"
#include "Point.h"
namespace HWP
{
class CCtrlShapeTextArt : public CCtrlGeneralShape
{
HWP_STRING m_sText;
TPoint m_oPt0;
TPoint m_oPt1;
TPoint m_oPt2;
TPoint m_oPt3;
HWP_STRING m_sFontName;
HWP_STRING m_sFontStyle;
HWP_STRING m_sFontType;
HWP_STRING m_sTextShape;
short m_shLineSpacing;
short m_shSpacing;
HWP_STRING m_sAlign;
std::vector<TPoint> m_arOutline;
void ReadFromHWPX(CXMLReader& oReader);
void ReadFromHWPML(CXMLReader& oReader);
void ReadTextArtShape(CXMLReader& oReader, EHanType eType);
void ReadOutlineData(CXMLReader& oReader, EHanType eType);
public:
CCtrlShapeTextArt();
CCtrlShapeTextArt(const HWP_STRING& sCtrlID);
CCtrlShapeTextArt(const CCtrlGeneralShape& oShape);
CCtrlShapeTextArt(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlShapeTextArt(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
EShapeType GetShapeType() const override;
static int ParseElement(CCtrlShapeTextArt& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseCtrl(CCtrlShapeTextArt& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
};
}
#endif // CTRLSHAPETEXTART_H