Files
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

43 lines
862 B
C++

#ifndef CTRLAUTONUMBER_H
#define CTRLAUTONUMBER_H
#include "Ctrl.h"
#include "../HWPStream.h"
#include "../HWPElements/HwpRecordTypes.h"
#include "../Common/Common.h"
#include "../Common/XMLReader.h"
namespace HWP
{
enum class ENumType
{
PAGE,
FOOTNOTE,
ENDNOTE,
FIGURE,
TABLE,
EQUATION,
TOTAL_PAGE
};
ENumType GetNumType(int nValue);
ENumType GetNumType(std::string sValue, EHanType eType);
class CCtrlAutoNumber : public CCtrl
{
ENumType m_eNumType;
ENumberShape2 m_eNumShape;
bool m_bSuperscript;
public:
CCtrlAutoNumber(const HWP_STRING& sCtrlID);
CCtrlAutoNumber(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlAutoNumber(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
ECtrlObjectType GetCtrlType() const override;
ENumType GetNumType() const;
};
}
#endif // CTRLAUTONUMBER_H