File indexing completed on 2024-05-12 04:33:56

0001 /*
0002     SPDX-FileCopyrightText: 2006 Luigi Toscano <luigi.toscano@tiscali.it>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef _dvipageinfo_h_
0008 #define _dvipageinfo_h_
0009 
0010 #include "hyperlink.h"
0011 #include "pageNumber.h"
0012 #include "textBox.h"
0013 #include <QPixmap>
0014 #include <QVector>
0015 
0016 class dviPageInfo
0017 {
0018 public:
0019     QImage img;
0020     int width, height;
0021     double resolution;
0022     PageNumber pageNumber;
0023 
0024     dviPageInfo();
0025 
0026     virtual ~dviPageInfo();
0027 
0028     dviPageInfo(const dviPageInfo &) = delete;
0029     dviPageInfo &operator=(const dviPageInfo &) = delete;
0030 
0031     virtual void clear();
0032 
0033     /** \brief List of source hyperlinks
0034      */
0035     QVector<Hyperlink> sourceHyperLinkList;
0036 
0037     /** \brief Hyperlinks on the document page
0038      */
0039     QVector<Hyperlink> hyperLinkList;
0040     QVector<TextBox> textBoxList;
0041 };
0042 
0043 /* quick&dirty hack to cheat the dviRenderer class... */
0044 #define RenderedDviPagePixmap dviPageInfo
0045 #define RenderedDocumentPagePixmap dviPageInfo
0046 #endif