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

31 lines
630 B
C++

#ifndef PARATEXT_H
#define PARATEXT_H
#include "Ctrl.h"
namespace HWP
{
class CParaText : public CCtrl
{
HWP_STRING m_sText;
int m_nStartIDx;
int m_nCharShapeID;
public:
CParaText(const HWP_STRING& sCtrlID, const HWP_STRING& sText, int nStartIDx);
CParaText(const HWP_STRING& sCtrlID, const HWP_STRING& sText, int nStartIDx, int nCharShapeID);
ECtrlObjectType GetCtrlType() const override;
unsigned int GetTextLength() const;
int GetStartIDx() const;
int GetCharShapeID() const;
HWP_STRING GetText() const;
void SetCharShapeID(int nCharShapeID);
void SetText(const HWP_STRING& sText);
};
}
#endif // PARATEXT_H