Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CManagerPrinterPDF Class Reference

#include <CManagerPrinterPDF.hpp>

Inheritance diagram for CManagerPrinterPDF:
[legend]
Collaboration diagram for CManagerPrinterPDF:
[legend]

Public Member Functions

 CManagerPrinterPDF ()
 
 CManagerPrinterPDF (const std::string &nameDocument, const std::string &imageFooter, bool hasTitlePage=true)
 
 CManagerPrinterPDF (const std::string &nameDocument, const std::string &imageFooter, iv::types::color colorBackground)
 
 CManagerPrinterPDF (const CManagerPrinterPDF &other)
 
 CManagerPrinterPDF (CManagerPrinterPDF &&other)=delete
 
 ~CManagerPrinterPDF () override
 
CManagerPrinterPDFoperator= (const CManagerPrinterPDF &other)=delete
 
CManagerPrinterPDFoperator= (CManagerPrinterPDF &&other)=delete
 

Protected Member Functions

void beginDocument (IManagerChangePage **managerChangePage, CStylePage *stylePage, std::string_view imageFooter, bool withTitlePage) override
 
void beginRow (double height, double heightFooter) override
 
void beginRowFooter (double height) override
 
void beginRowHeader (double height, double heightFooter) override
 
void beginTable (IManagerChangePage **managerChangePage, double heightTableHeading, double heightTableFooter) override
 
void controlNumeration (uint64_t level) override
 
void drawLinesForCell (double width, double height, bool isLineTop, bool isLineBottom, bool isLineRight, bool isLineLeft, iv::types::color colorBackground, iv::types::color colorLines) override
 
void endDocument () override
 
void endRow () override
 
void endRowFooter () override
 
void endRowHeader () override
 
void endPage () override
 
void endTable () override
 
void processCellImagePNG (std::string_view nameImage, double width, double height, uint64_t sizeImageX, uint64_t sizeImageY) override
 
void processCellText (std::string_view text, double width, double height, CStyleParagraph *styleCell) override
 
void processChapter (std::string_view textChapter, bool isChapterNameInHeading) override
 
void processImage (CGeoCanvas *geoCanvas, double sizeX, double sizeY, iv::types::color colorRGBBackground) override
 
void processImagePNG (std::string_view nameImage, uint64_t sizeX, uint64_t sizeY) override
 
void processNumeration (std::string_view textNumeration) override
 
void processParagraph (std::string_view textParagraph) override
 
void restartCountingParagraphOLD (uint64_t nextLevel) override
 
double getHeightCellImage (uint64_t sizeImageY, uint64_t marginCellTop, uint64_t marginCellBottom) override
 
double getHeightCellText (std::string_view text, CStyleParagraph *styleParagraph) override
 
std::string getNameChapter () const override
 
uint64_t getSizeXPageWithoutMargin () const override
 
double getWidthCellImage (uint64_t sizeImageX, uint64_t marginCellRight, uint64_t marginCellLeft) override
 
double getWidthCellText (std::string_view text, CStyleParagraph *styleParagraph) override
 
void setNumChaptersOLD (uint64_t nextLevel) override
 
void setNumTotalPages (uint64_t numTotalPages) override
 
void setPage (CStylePage *stylePage) override
 
void setPrinter (IPrinter *printerRef) override
 
void setStyleImage (CStyleImage *styleImage) override
 
void setStyleNumeration (CStyleNumeration *styleNumeration) override
 
void setStyleTable (CStyleTable *styleTable) override
 
void setSpecificBehaviourBecauseFirstIsCoverTittle (bool value) override
 
void setOrientation (CStylePage::EOrientationPage orientation) override
 

Private Member Functions

void prvBeginPage ()
 
void prvEndPage ()
 
void prvBeginRow (double height, double heightFooter)
 
void prvEndTable ()
 
void prvProcessParagraph (std::string_view textParagraph)
 

Private Attributes

std::string m_titleDocument
 
std::string m_nameImageFooterOpt
 
uint64_t m_posCursorX
 
uint64_t m_posCursorY
 
CStylePagem_stylePageRef
 
CStyleNumerationm_styleNumerationRef
 
CStyleTablem_styleTableRef
 
CStyleImagem_styleImageRef
 
uint64_t m_currentLevel
 
std::vector< uint64_t > m_numChapters
 
uint64_t m_currentPage
 
uint64_t m_numPagesTotal
 
std::string m_chapterNameForHead
 
bool m_isPageSet
 
bool m_isParagraphSet
 
IPrinterm_printerRef
 
IManagerChangePagem_managerChangePageOpt
 
IManagerChangePagem_managerChangePageForTableOpt
 
double m_heightRow
 
double m_heightRowHeader
 
double m_heightRowFooter
 
bool m_specificBehaviourBecauseFirstIsCoverTittle {false}
 
bool m_hasTitlePage {true}
 
CStylePage::EOrientationPage m_orientation {CStylePage::EOrientationPage::Portrait}
 

Constructor & Destructor Documentation

◆ CManagerPrinterPDF() [1/5]

CManagerPrinterPDF::CManagerPrinterPDF ( )

◆ CManagerPrinterPDF() [2/5]

CManagerPrinterPDF::CManagerPrinterPDF ( const std::string & nameDocument,
const std::string & imageFooter,
bool hasTitlePage = true )

◆ CManagerPrinterPDF() [3/5]

CManagerPrinterPDF::CManagerPrinterPDF ( const std::string & nameDocument,
const std::string & imageFooter,
iv::types::color colorBackground )

◆ CManagerPrinterPDF() [4/5]

CManagerPrinterPDF::CManagerPrinterPDF ( const CManagerPrinterPDF & other)

◆ CManagerPrinterPDF() [5/5]

CManagerPrinterPDF::CManagerPrinterPDF ( CManagerPrinterPDF && other)
delete

◆ ~CManagerPrinterPDF()

CManagerPrinterPDF::~CManagerPrinterPDF ( )
override

Member Function Documentation

◆ beginDocument()

void CManagerPrinterPDF::beginDocument ( IManagerChangePage ** managerChangePage,
CStylePage * stylePage,
std::string_view imageFooter,
bool withTitlePage )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ beginRow()

void CManagerPrinterPDF::beginRow ( double height,
double heightFooter )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ beginRowFooter()

void CManagerPrinterPDF::beginRowFooter ( double height)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ beginRowHeader()

void CManagerPrinterPDF::beginRowHeader ( double height,
double heightFooter )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ beginTable()

void CManagerPrinterPDF::beginTable ( IManagerChangePage ** managerChangePage,
double heightTableHeading,
double heightTableFooter )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ controlNumeration()

void CManagerPrinterPDF::controlNumeration ( uint64_t level)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ drawLinesForCell()

void CManagerPrinterPDF::drawLinesForCell ( double width,
double height,
bool isLineTop,
bool isLineBottom,
bool isLineRight,
bool isLineLeft,
iv::types::color colorBackground,
iv::types::color colorLines )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ endDocument()

void CManagerPrinterPDF::endDocument ( )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ endPage()

void CManagerPrinterPDF::endPage ( )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ endRow()

void CManagerPrinterPDF::endRow ( )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ endRowFooter()

void CManagerPrinterPDF::endRowFooter ( )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ endRowHeader()

void CManagerPrinterPDF::endRowHeader ( )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ endTable()

void CManagerPrinterPDF::endTable ( )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ getHeightCellImage()

double CManagerPrinterPDF::getHeightCellImage ( uint64_t sizeImageY,
uint64_t marginCellTop,
uint64_t marginCellBottom )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ getHeightCellText()

double CManagerPrinterPDF::getHeightCellText ( std::string_view text,
CStyleParagraph * styleParagraph )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ getNameChapter()

std::string CManagerPrinterPDF::getNameChapter ( ) const
nodiscardoverrideprotectedvirtual

Implements IManagerPrinter.

◆ getSizeXPageWithoutMargin()

uint64_t CManagerPrinterPDF::getSizeXPageWithoutMargin ( ) const
nodiscardoverrideprotectedvirtual

Implements IManagerPrinter.

◆ getWidthCellImage()

double CManagerPrinterPDF::getWidthCellImage ( uint64_t sizeImageX,
uint64_t marginCellRight,
uint64_t marginCellLeft )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ getWidthCellText()

double CManagerPrinterPDF::getWidthCellText ( std::string_view text,
CStyleParagraph * styleParagraph )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ operator=() [1/2]

CManagerPrinterPDF & CManagerPrinterPDF::operator= ( CManagerPrinterPDF && other)
delete

◆ operator=() [2/2]

CManagerPrinterPDF & CManagerPrinterPDF::operator= ( const CManagerPrinterPDF & other)
delete

◆ processCellImagePNG()

void CManagerPrinterPDF::processCellImagePNG ( std::string_view nameImage,
double width,
double height,
uint64_t sizeImageX,
uint64_t sizeImageY )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ processCellText()

void CManagerPrinterPDF::processCellText ( std::string_view text,
double width,
double height,
CStyleParagraph * styleCell )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ processChapter()

void CManagerPrinterPDF::processChapter ( std::string_view textChapter,
bool isChapterNameInHeading )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ processImage()

void CManagerPrinterPDF::processImage ( CGeoCanvas * geoCanvas,
double sizeX,
double sizeY,
iv::types::color colorRGBBackground )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ processImagePNG()

void CManagerPrinterPDF::processImagePNG ( std::string_view nameImage,
uint64_t sizeX,
uint64_t sizeY )
overrideprotectedvirtual

Implements IManagerPrinter.

◆ processNumeration()

void CManagerPrinterPDF::processNumeration ( std::string_view textNumeration)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ processParagraph()

void CManagerPrinterPDF::processParagraph ( std::string_view textParagraph)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ prvBeginPage()

void CManagerPrinterPDF::prvBeginPage ( )
private

◆ prvBeginRow()

void CManagerPrinterPDF::prvBeginRow ( double height,
double heightFooter )
private

◆ prvEndPage()

void CManagerPrinterPDF::prvEndPage ( )
private

◆ prvEndTable()

void CManagerPrinterPDF::prvEndTable ( )
private

◆ prvProcessParagraph()

void CManagerPrinterPDF::prvProcessParagraph ( std::string_view textParagraph)
private

◆ restartCountingParagraphOLD()

void CManagerPrinterPDF::restartCountingParagraphOLD ( uint64_t nextLevel)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setNumChaptersOLD()

void CManagerPrinterPDF::setNumChaptersOLD ( uint64_t nextLevel)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setNumTotalPages()

void CManagerPrinterPDF::setNumTotalPages ( uint64_t numTotalPages)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setOrientation()

void CManagerPrinterPDF::setOrientation ( CStylePage::EOrientationPage orientation)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setPage()

void CManagerPrinterPDF::setPage ( CStylePage * stylePage)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setPrinter()

void CManagerPrinterPDF::setPrinter ( IPrinter * printerRef)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setSpecificBehaviourBecauseFirstIsCoverTittle()

void CManagerPrinterPDF::setSpecificBehaviourBecauseFirstIsCoverTittle ( bool value)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setStyleImage()

void CManagerPrinterPDF::setStyleImage ( CStyleImage * styleImage)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setStyleNumeration()

void CManagerPrinterPDF::setStyleNumeration ( CStyleNumeration * styleNumeration)
overrideprotectedvirtual

Implements IManagerPrinter.

◆ setStyleTable()

void CManagerPrinterPDF::setStyleTable ( CStyleTable * styleTable)
overrideprotectedvirtual

Implements IManagerPrinter.

Member Data Documentation

◆ m_chapterNameForHead

std::string CManagerPrinterPDF::m_chapterNameForHead
private

◆ m_currentLevel

uint64_t CManagerPrinterPDF::m_currentLevel
private

◆ m_currentPage

uint64_t CManagerPrinterPDF::m_currentPage
private

◆ m_hasTitlePage

bool CManagerPrinterPDF::m_hasTitlePage {true}
private

◆ m_heightRow

double CManagerPrinterPDF::m_heightRow
private

◆ m_heightRowFooter

double CManagerPrinterPDF::m_heightRowFooter
private

◆ m_heightRowHeader

double CManagerPrinterPDF::m_heightRowHeader
private

◆ m_isPageSet

bool CManagerPrinterPDF::m_isPageSet
private

◆ m_isParagraphSet

bool CManagerPrinterPDF::m_isParagraphSet
private

◆ m_managerChangePageForTableOpt

IManagerChangePage* CManagerPrinterPDF::m_managerChangePageForTableOpt
private

◆ m_managerChangePageOpt

IManagerChangePage* CManagerPrinterPDF::m_managerChangePageOpt
private

◆ m_nameImageFooterOpt

std::string CManagerPrinterPDF::m_nameImageFooterOpt
private

◆ m_numChapters

std::vector<uint64_t> CManagerPrinterPDF::m_numChapters
private

◆ m_numPagesTotal

uint64_t CManagerPrinterPDF::m_numPagesTotal
private

◆ m_orientation

CStylePage::EOrientationPage CManagerPrinterPDF::m_orientation {CStylePage::EOrientationPage::Portrait}
private

◆ m_posCursorX

uint64_t CManagerPrinterPDF::m_posCursorX
private

◆ m_posCursorY

uint64_t CManagerPrinterPDF::m_posCursorY
private

◆ m_printerRef

IPrinter* CManagerPrinterPDF::m_printerRef
private

◆ m_specificBehaviourBecauseFirstIsCoverTittle

bool CManagerPrinterPDF::m_specificBehaviourBecauseFirstIsCoverTittle {false}
private

◆ m_styleImageRef

CStyleImage* CManagerPrinterPDF::m_styleImageRef
private

◆ m_styleNumerationRef

CStyleNumeration* CManagerPrinterPDF::m_styleNumerationRef
private

◆ m_stylePageRef

CStylePage* CManagerPrinterPDF::m_stylePageRef
private

◆ m_styleTableRef

CStyleTable* CManagerPrinterPDF::m_styleTableRef
private

◆ m_titleDocument

std::string CManagerPrinterPDF::m_titleDocument
private

The documentation for this class was generated from the following files: