Files
core/HwpFile/HwpDoc/Paragraph/CtrlCharacter.h
2025-06-25 17:38:26 +03:00

34 lines
650 B
C++

#ifndef CTRLCHARACTER_H
#define CTRLCHARACTER_H
#include "Ctrl.h"
namespace HWP
{
enum class ECtrlCharType
{
LINE_BREAK = 0x1,
PARAGRAPH_BREAK = 0x2,
HARD_HYPHEN = 0x3,
HARD_SPACE = 0x04,
TABULATION = 0x05
};
class CCtrlCharacter : public CCtrl
{
ECtrlCharType m_eCtrlChar;
int m_nCharShapeID;
public:
CCtrlCharacter(const HWP_STRING& sCtrlID, ECtrlCharType eCtrlChar);
CCtrlCharacter(const HWP_STRING& sCtrlID, ECtrlCharType eCtrlChar, int nCharShapeID);
ECtrlObjectType GetCtrlType() const override;
int GetCharShapeId() const;
ECtrlCharType GetType() const;
void SetCharShapeID(int nCharShapeID);
};
}
#endif // CTRLCHARACTER_H