78 void setVisible(
bool visible)
override;
79 void setPageRange(
const QVector<int> &rangePages);
80 void setPageRange(
int from,
int to);
81 void setPageRangeALL();
82#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
83 D_DECL_DEPRECATED
void setReGenerate(
bool generate);
85 void setPageRangeMode(PageRange mode);
86 PageRange pageRangeMode();
87#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
88 D_DECL_DEPRECATED
void reviewChange(
bool generate);
93 void setColorMode(
const DPrinter::ColorMode &colorMode);
94 void setOrientation(
const DPrinter::Orientation &pageOrientation);
95 DPrinter::ColorMode getColorMode();
96 void setScale(qreal scale);
97 qreal getScale()
const;
99 void updateWaterMark();
102 void setWaterMarkType(
int type);
103 void setWaterMargImage(
const QImage &image);
104 void setWaterMarkRotate(qreal rotate);
105 void setWaterMarkScale(qreal scale);
106 void setWaterMarkOpacity(qreal opacity);
107 void setConfidentialWaterMark();
108 void setDraftWaterMark();
109 void setSampleWaterMark();
110 void setCustomWaterMark(
const QString &text);
111 void setTextWaterMark(
const QString &text);
112 void setWaterMarkFont(
const QFont &font);
113 QColor waterMarkColor()
const;
114 void setWaterMarkColor(
const QColor &color);
115 void setWaterMarkLayout(
int layout);
116 void setImposition(Imposition im);
117 Imposition imposition()
const;
118 void setOrder(Order order);
119 DPrintPreviewWidget::Order order()
const;
120 void setPrintFromPath(
const QString &path);
121 QString printFromPath()
const;
122 void setPrintMode(PrintMode pt);
123 void setAsynPreview(
int totalPage);
124 bool isAsynPreview()
const;
125 void isPageByPage(
int pageCopy,
bool isFirst);
126 int targetPageCount(
int pageCount);
127 int originPageCount();
128 QByteArray printerColorModel()
const;
131 void updatePreview();
136 void setCurrentPage(
int page);
137 void print(
bool isSavedPicture =
false);
138 void themeTypeChanged(DGuiApplicationHelper::ColorType themeType);
141 void paintRequested(
DPrinter *printer);
142 void paintRequested(
DPrinter *printer,
const QVector<int> &pageRange);
143 void previewChanged();
144 void currentPageChanged(
int page);
145 void totalPages(
int);
146 void pagesCountChanged(
int pages);
149 void timerEvent(QTimerEvent *event)
override;
150 void setCurrentTargetPage(
int page);