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

38 lines
1015 B
C++

#ifndef FOOTNOTECONVERTER_H
#define FOOTNOTECONVERTER_H
#include "../../../DesktopEditor/common/StringBuilder.h"
#include "../Paragraph/CtrlNote.h"
#include "../Paragraph/CtrlHeadFoot.h"
#include "../Paragraph/CtrlPageNumPos.h"
namespace HWP
{
class CConverter2OOXML;
class CFootnoteConverter
{
unsigned short m_ushCountFootnotes;
unsigned short m_ushCountEndnotes;
unsigned short m_ushHeaderCount;
unsigned short m_ushFooterCount;
NSStringUtils::CStringBuilder m_oFootnoteXml;
NSStringUtils::CStringBuilder m_oEndnoteXml;
public:
CFootnoteConverter();
std::wstring CreateNote(const CCtrlNote* pNote, CConverter2OOXML& oConverter);
std::wstring CreateHeadOrFoot(const CCtrlHeadFoot* pCtrlHeadFoot, CConverter2OOXML& oConverter);
std::wstring CreatePageNum(const CCtrlPageNumPos* pCtrlPageNumPos, CConverter2OOXML& oConverter);
bool SaveToFile(const std::wstring& wsDirectory);
unsigned short GetFootnoteCount() const;
unsigned short GetEndnoteCount() const;
};
}
#endif // FOOTNOTECONVERTER_H