WebpagePrinterTool 2.0
Print a web page skip the browser's print preview
|
#include <Printer.h>
Public 成员函数 | |
Printer (QObject *parent=nullptr) | |
void | setDataPack (PrinterDataPack *data_pack) |
void | renderPng (CanExceptionCallback cb) |
void | toPrinter (CanExceptionCallback cb) |
静态 Public 成员函数 | |
static QList< QPrinterInfo > | getAvaliblePrinterInfo () |
Private 槽 | |
void | slotPdfdocumentStatusChanged (QPdfDocument::Status status) |
Private 成员函数 | |
void | toPrinterResult (bool success, const QString &message, CanExceptionCallback cb) |
bool | printImage (QPrinter *printer) |
Private 属性 | |
QPdfDocument | pdf_doc |
std::unique_ptr< QImage > | image {nullptr} |
PrinterDataPack * | data_pack {nullptr} |
int | current_page_id {0} |
记录打印内容是否发生改变 | |
QList< QPrinter * > | printers |
std::function< void(bool, const QString &)> | pdf_load_success_callback |
|
explicit |
|
static |
|
private |
void Printer::renderPng | ( | CanExceptionCallback | cb | ) |
void Printer::setDataPack | ( | PrinterDataPack * | data_pack | ) |
|
privateslot |
void Printer::toPrinter | ( | CanExceptionCallback | cb | ) |
|
private |
|
private |
记录打印内容是否发生改变
|
private |
|
private |
|
private |
|
private |
|
private |