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

51 lines
984 B
C++

#ifndef CTRLPAGENUMPOS_H
#define CTRLPAGENUMPOS_H
#include "Ctrl.h"
#include "../HWPStream.h"
#include "../HWPElements/HwpRecordTypes.h"
#include "../Common/XMLReader.h"
namespace HWP
{
enum class ENumPos
{
NONE,
TOP_LEFT,
TOP_CENTER,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_CENTER,
BOTTOM_RIGHT,
TOP_OUTER,
BOTTOM_OUTER,
TOP_INNER,
BOTTOM_INNER
};
class CCtrlPageNumPos : public CCtrl
{
ENumPos m_ePos;
ENumberShape2 m_eNumShape;
HWP_STRING m_sUserDef;
HWP_STRING m_sPrefix;
HWP_STRING m_sPostfix;
HWP_STRING m_sConstantDash;
public:
CCtrlPageNumPos(const HWP_STRING& sCtrlID);
CCtrlPageNumPos(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlPageNumPos(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
ENumPos GetPos() const;
HWP_STRING GetPrefix() const;
HWP_STRING GetPostfix() const;
ENumberShape2 GetFormatType() const;
ECtrlObjectType GetCtrlType() const override;
};
}
#endif // CTRLPAGENUMPOS_H