Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CManagerPrinterTXT.hpp
Go to the documentation of this file.
1#ifndef LIBS_DOCUMENTS_CMANAGERPRINTERTXT_HPP_
2#define LIBS_DOCUMENTS_CMANAGERPRINTERTXT_HPP_
3
6
7#include <bits/stdint-uintn.h>
8#include <string>
9
11{
12public:
16 ~CManagerPrinterTXT() override;
17
20
21protected:
22 void beginDocument(IManagerChangePage **managerChangePage, CStylePage *stylePage, std::string_view imageFooter,
23 bool withTitlePage) override;
24 void beginRow(double height, double heightFooter) override;
25 void beginRowFooter(double height) override;
26 void beginRowHeader(double height, double heightFooter) override;
27 void beginTable(IManagerChangePage **managerChangePage, double heightTableHeading,
28 double heightTableFooter) override;
29 void controlNumeration(uint64_t level) override;
30 void drawLinesForCell(double width, double height, bool isLineTop, bool isLineBottom, bool isLineRight,
31 bool isLineLeft, iv::types::color colorBackground, iv::types::color colorLines) override;
32 void endDocument() override;
33 void endRow() override;
34 void endRowFooter() override;
35 void endRowHeader() override;
36 void endPage() override;
37 void endTable() override;
38 void processCellImagePNG(std::string_view nameImage, double width, double height, uint64_t sizeImageX,
39 uint64_t sizeImageY) override;
40 void processCellText(std::string_view text, double width, double height, CStyleParagraph *styleCell) override;
41 void processChapter(std::string_view textChapter, bool isChapterNameInHeading) override;
42 void processImage(CGeoCanvas *geoCanvas, double sizeX, double sizeY, iv::types::color colorRGBBackground) override;
43 void processImagePNG(std::string_view nameImage, uint64_t sizeX, uint64_t sizeY) override;
44 void processNumeration(std::string_view textNumeration) override;
45 void processParagraph(std::string_view textParagraph) override;
46 void restartCountingParagraphOLD(uint64_t nextLevel) override;
47
48 double getHeightCellImage(uint64_t sizeImageY, uint64_t marginCellTop, uint64_t marginCellBottom) override;
49 double getHeightCellText(std::string_view text, CStyleParagraph *styleParagraph) override;
50 [[nodiscard]] std::string getNameChapter() const override;
51 [[nodiscard]] uint64_t getSizeXPageWithoutMargin() const override;
52 double getWidthCellImage(uint64_t sizeImageX, uint64_t marginCellRight, uint64_t marginCellLeft) override;
53 double getWidthCellText(std::string_view text, CStyleParagraph *styleParagraph) override;
54
55 void setNumChaptersOLD(uint64_t nextLevel) override;
56 void setNumTotalPages(uint64_t numTotalPages) override;
57 void setPage(CStylePage *stylePage) override;
58 void setPrinter(IPrinter *printerRef) override;
59 void setStyleImage(CStyleImage *styleImage) override;
60 void setStyleNumeration(CStyleNumeration *styleNumeration) override;
61 void setStyleTable(CStyleTable *styleTable) override;
62
63 void setSpecificBehaviourBecauseFirstIsCoverTittle(bool value) override;
64 void setOrientation(CStylePage::EOrientationPage orientation) override;
65
66private:
67 std::string m_titleDocument;
68
70
72 std::vector<uint64_t> m_numChapters;
73
75
76 std::vector<std::string> m_textRow;
77
79
80 void prvProcessParagraph(std::string_view textParagraph);
81};
82
83#endif /* LIBS_DOCUMENTS_CMANAGERPRINTERTXT_HPP_ */
Definition CGeoCanvas.hpp:13
Definition CManagerPrinterTXT.hpp:11
std::vector< uint64_t > m_numChapters
Definition CManagerPrinterTXT.hpp:72
void processChapter(std::string_view textChapter, bool isChapterNameInHeading) override
Definition CManagerPrinterTXT.cpp:192
CManagerPrinterTXT & operator=(CManagerPrinterTXT &&other)=delete
double getHeightCellText(std::string_view text, CStyleParagraph *styleParagraph) override
Definition CManagerPrinterTXT.cpp:273
void endTable() override
Definition CManagerPrinterTXT.cpp:175
void processImagePNG(std::string_view nameImage, uint64_t sizeX, uint64_t sizeY) override
Definition CManagerPrinterTXT.cpp:209
void endPage() override
Definition CManagerPrinterTXT.cpp:170
void endRow() override
Definition CManagerPrinterTXT.cpp:145
void beginRowHeader(double height, double heightFooter) override
Definition CManagerPrinterTXT.cpp:93
IPrinter * m_printerRef
Definition CManagerPrinterTXT.hpp:78
void setPrinter(IPrinter *printerRef) override
Definition CManagerPrinterTXT.cpp:348
void setNumChaptersOLD(uint64_t nextLevel) override
Definition CManagerPrinterTXT.cpp:303
void setSpecificBehaviourBecauseFirstIsCoverTittle(bool value) override
Definition CManagerPrinterTXT.cpp:372
double getHeightCellImage(uint64_t sizeImageY, uint64_t marginCellTop, uint64_t marginCellBottom) override
Definition CManagerPrinterTXT.cpp:267
void controlNumeration(uint64_t level) override
Definition CManagerPrinterTXT.cpp:104
CManagerPrinterTXT()
Definition CManagerPrinterTXT.cpp:38
void endRowHeader() override
Definition CManagerPrinterTXT.cpp:161
void endRowFooter() override
Definition CManagerPrinterTXT.cpp:153
void setStyleTable(CStyleTable *styleTable) override
Definition CManagerPrinterTXT.cpp:367
void processImage(CGeoCanvas *geoCanvas, double sizeX, double sizeY, iv::types::color colorRGBBackground) override
Definition CManagerPrinterTXT.cpp:203
void beginRow(double height, double heightFooter) override
Definition CManagerPrinterTXT.cpp:83
void drawLinesForCell(double width, double height, bool isLineTop, bool isLineBottom, bool isLineRight, bool isLineLeft, iv::types::color colorBackground, iv::types::color colorLines) override
Definition CManagerPrinterTXT.cpp:132
void restartCountingParagraphOLD(uint64_t nextLevel) override
Definition CManagerPrinterTXT.cpp:232
void prvProcessParagraph(std::string_view textParagraph)
Definition CManagerPrinterTXT.cpp:14
~CManagerPrinterTXT() override
Definition CManagerPrinterTXT.cpp:63
std::string getNameChapter() const override
Definition CManagerPrinterTXT.cpp:279
double getWidthCellText(std::string_view text, CStyleParagraph *styleParagraph) override
Definition CManagerPrinterTXT.cpp:297
std::string m_titleDocument
Definition CManagerPrinterTXT.hpp:67
void setOrientation(CStylePage::EOrientationPage orientation) override
Definition CManagerPrinterTXT.cpp:376
void setStyleImage(CStyleImage *styleImage) override
Definition CManagerPrinterTXT.cpp:353
void processParagraph(std::string_view textParagraph) override
Definition CManagerPrinterTXT.cpp:225
void beginTable(IManagerChangePage **managerChangePage, double heightTableHeading, double heightTableFooter) override
Definition CManagerPrinterTXT.cpp:98
double getWidthCellImage(uint64_t sizeImageX, uint64_t marginCellRight, uint64_t marginCellLeft) override
Definition CManagerPrinterTXT.cpp:291
void setNumTotalPages(uint64_t numTotalPages) override
Definition CManagerPrinterTXT.cpp:338
void beginRowFooter(double height) override
Definition CManagerPrinterTXT.cpp:88
void endDocument() override
Definition CManagerPrinterTXT.cpp:139
CManagerPrinterTXT(CManagerPrinterTXT &&other)=delete
void setPage(CStylePage *stylePage) override
Definition CManagerPrinterTXT.cpp:343
CStyleNumeration * m_styleNumerationRef
Definition CManagerPrinterTXT.hpp:69
void setStyleNumeration(CStyleNumeration *styleNumeration) override
Definition CManagerPrinterTXT.cpp:358
void beginDocument(IManagerChangePage **managerChangePage, CStylePage *stylePage, std::string_view imageFooter, bool withTitlePage) override
Definition CManagerPrinterTXT.cpp:68
CManagerPrinterTXT & operator=(const CManagerPrinterTXT &other)=delete
void processCellImagePNG(std::string_view nameImage, double width, double height, uint64_t sizeImageX, uint64_t sizeImageY) override
Definition CManagerPrinterTXT.cpp:181
bool m_isParagraphSet
Definition CManagerPrinterTXT.hpp:74
uint64_t getSizeXPageWithoutMargin() const override
Definition CManagerPrinterTXT.cpp:285
void processNumeration(std::string_view textNumeration) override
Definition CManagerPrinterTXT.cpp:214
uint64_t m_currentLevel
Definition CManagerPrinterTXT.hpp:71
std::vector< std::string > m_textRow
Definition CManagerPrinterTXT.hpp:76
void processCellText(std::string_view text, double width, double height, CStyleParagraph *styleCell) override
Definition CManagerPrinterTXT.cpp:187
Definition CStyleImage.hpp:7
Definition CStyleNumeration.hpp:10
Definition CStylePage.hpp:9
EOrientationPage
Definition CStylePage.hpp:12
Definition CStyleParagraph.hpp:10
Definition CStyleTable.hpp:7
Definition IManagerChangePage.hpp:7
Definition IManagerPrinter.hpp:19
Definition IPrinter.hpp:9
uint32_t color
Definition types.hpp:12