KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIPLATFORM::PRINTING::WIN_PDF_PRINTER Class Reference

Public Member Functions

 WIN_PDF_PRINTER (HWND hwndOwner, winrt::Windows::Data::Pdf::PdfDocument const &pdf)
 
PRINT_RESULT Run ()
 

Private Member Functions

void cleanup ()
 

Private Attributes

HWND m_hwnd {}
 
winrt::Windows::Data::Pdf::PdfDocument m_pdf { nullptr }
 
winrt::Windows::UI::Xaml::Hosting::DesktopWindowXamlSource m_xamlSource { nullptr }
 
winrt::Windows::UI::Xaml::Controls::Grid m_root { nullptr }
 
winrt::Windows::UI::Xaml::Printing::PrintDocument m_printDoc { nullptr }
 
winrt::Windows::Graphics::Printing::IPrintDocumentSource m_docSrc { nullptr }
 
uint32_t m_pageCount { 0 }
 
winrt::Windows::Graphics::Printing::PrintManager m_rtPM { nullptr }
 
winrt::event_token m_taskRequestedToken {}
 
winrt::event_token m_paginateToken {}
 
winrt::event_token m_getPreviewToken {}
 
winrt::event_token m_addPagesToken {}
 
HWND m_host { nullptr }
 
std::map< uint32_t, ManagedImagem_previewImages
 
std::map< uint32_t, ManagedImagem_printImages
 

Detailed Description

Definition at line 181 of file windows/printing.cpp.

Constructor & Destructor Documentation

◆ WIN_PDF_PRINTER()

KIPLATFORM::PRINTING::WIN_PDF_PRINTER::WIN_PDF_PRINTER ( HWND hwndOwner,
winrt::Windows::Data::Pdf::PdfDocument const & pdf )
inline

Definition at line 184 of file windows/printing.cpp.

References m_hwnd, and m_pdf.

Member Function Documentation

◆ cleanup()

void KIPLATFORM::PRINTING::WIN_PDF_PRINTER::cleanup ( )
inlineprivate

◆ Run()

Member Data Documentation

◆ m_addPagesToken

winrt::event_token KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_addPagesToken {}
private

Definition at line 376 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_docSrc

winrt::Windows::Graphics::Printing::IPrintDocumentSource KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_docSrc { nullptr }
private

Definition at line 368 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_getPreviewToken

winrt::event_token KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_getPreviewToken {}
private

Definition at line 375 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_host

HWND KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_host { nullptr }
private

Definition at line 378 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_hwnd

HWND KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_hwnd {}
private

Definition at line 362 of file windows/printing.cpp.

Referenced by Run(), and WIN_PDF_PRINTER().

◆ m_pageCount

uint32_t KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_pageCount { 0 }
private

Definition at line 370 of file windows/printing.cpp.

Referenced by Run().

◆ m_paginateToken

winrt::event_token KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_paginateToken {}
private

Definition at line 374 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_pdf

winrt::Windows::Data::Pdf::PdfDocument KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_pdf { nullptr }
private

Definition at line 363 of file windows/printing.cpp.

Referenced by Run(), and WIN_PDF_PRINTER().

◆ m_previewImages

std::map<uint32_t, ManagedImage> KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_previewImages
private

Definition at line 381 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_printDoc

winrt::Windows::UI::Xaml::Printing::PrintDocument KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_printDoc { nullptr }
private

Definition at line 367 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_printImages

std::map<uint32_t, ManagedImage> KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_printImages
private

Definition at line 382 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_root

winrt::Windows::UI::Xaml::Controls::Grid KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_root { nullptr }
private

Definition at line 366 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_rtPM

winrt::Windows::Graphics::Printing::PrintManager KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_rtPM { nullptr }
private

Definition at line 371 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_taskRequestedToken

winrt::event_token KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_taskRequestedToken {}
private

Definition at line 372 of file windows/printing.cpp.

Referenced by cleanup(), and Run().

◆ m_xamlSource

winrt::Windows::UI::Xaml::Hosting::DesktopWindowXamlSource KIPLATFORM::PRINTING::WIN_PDF_PRINTER::m_xamlSource { nullptr }
private

Definition at line 365 of file windows/printing.cpp.

Referenced by cleanup(), and Run().


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