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

56 lines
784 B
C++

#ifndef CTRL_H
#define CTRL_H
#include "../HanType.h"
#include "../Common/Common.h"
#include "../Common/XMLReader.h"
namespace HWP
{
enum class ECtrlObjectType
{
AutoNumber,
Character,
Click,
ColumnDef,
Form,
HeadFoot,
NewNumber,
Note,
PageNumPos,
SectionDef,
Shape,
Table,
ParaText,
Common,
Field,
Empty
};
class CCtrl
{
HWP_STRING m_sCtrlID;
protected:
bool m_bFullFilled;
public:
CCtrl();
CCtrl(const HWP_STRING& sCtrlID);
virtual ~CCtrl();
virtual ECtrlObjectType GetCtrlType() const = 0;
void SetID(const HWP_STRING& sCtrlID);
HWP_STRING GetID() const;
bool FullFilled() const;
void SetFullFilled();
static bool Equals(CCtrl* pFirstCtrl, CCtrl* pSecondCtrl);
static CCtrl* GetCtrl(CXMLReader& oReader, EHanType eType);
};
}
#endif // CTRL_H