1 #ifndef _BIBLIOTEQ_PDFREADER_H_
2 #define _BIBLIOTEQ_PDFREADER_H_
4 #include "ui_biblioteq_pdfreader.h"
6 #ifdef BIBLIOTEQ_LINKED_WITH_POPPLER
7 #include <poppler-qt5.h>
19 void load(
const QByteArray &data,
const QString &fileName);
20 void load(
const QString &fileName);
23 #ifdef BIBLIOTEQ_LINKED_WITH_POPPLER
24 Poppler::Document *m_document;
26 QRectF m_searchLocation;
29 bool event(QEvent *event);
30 void changeEvent(QEvent *event);
31 void closeEvent(QCloseEvent *event);
32 void keyPressEvent(QKeyEvent *event);
33 void prepareContents(
void);
34 void resizeEvent(QResizeEvent *event);
37 void setGlobalFonts(
const QFont &font);
38 void slotChangePageViewSize(
int value);
40 void slotContentsDoubleClicked(QListWidgetItem *item);
42 void slotPrintPreview(QPrinter *printer);
43 void slotPrintPreview(
void);
44 void slotSaveAs(
void);
45 void slotSearchNext(
void);
46 void slotSearchPrevious(
void);
47 void slotShowContents(
bool state);
48 void slotShowPage(
int value,
const QRectF &location = QRectF());
49 void slotSliderTriggerAction(
int action);
52 void showNormal(
void);