summaryrefslogtreecommitdiffstats
path: root/src/core/printing/print_view_manager_qt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/printing/print_view_manager_qt.h')
-rw-r--r--src/core/printing/print_view_manager_qt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/printing/print_view_manager_qt.h b/src/core/printing/print_view_manager_qt.h
index ecb3d6053..7405d95df 100644
--- a/src/core/printing/print_view_manager_qt.h
+++ b/src/core/printing/print_view_manager_qt.h
@@ -60,6 +60,7 @@
QT_BEGIN_NAMESPACE
class QPageLayout;
+class QPageRanges;
class QString;
QT_END_NAMESPACE
@@ -75,10 +76,12 @@ public:
// Method to print a page to a Pdf document with page size \a pageSize in location \a filePath.
void PrintToPDFFileWithCallback(const QPageLayout &pageLayout,
+ const QPageRanges &pageRanges,
bool printInColor,
const QString &filePath,
const PrintToPDFFileCallback& callback);
void PrintToPDFWithCallback(const QPageLayout &pageLayout,
+ const QPageRanges &pageRanges,
bool printInColor,
bool useCustomMargins,
const PrintToPDFCallback &callback);
@@ -110,7 +113,8 @@ protected:
const printing::mojom::PreviewIds& ids);
void OnShowScriptedPrintPreview(content::RenderFrameHost* rfh,
bool source_is_modifiable);
- bool PrintToPDFInternal(const QPageLayout &, bool printInColor, bool useCustomMargins = true);
+ bool PrintToPDFInternal(const QPageLayout &, const QPageRanges &,
+ bool printInColor, bool useCustomMargins = true);
private:
void resetPdfState();