File: pdfpagereference.h

package info (click to toggle)
dspdfviewer 1.15-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 756 kB
  • sloc: cpp: 2,293; makefile: 12
file content (22 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PDFPAGEREFERENCE_H
#define PDFPAGEREFERENCE_H

#include <QSharedPointer>
#include "poppler-qt.h"
#include "pdfdocumentreference.h"

/** This holds a reference to a page in a certain document
 * WARNING: This also contains a shared pointer to the Poppler::Document,
 * so if you delete this object, using the returned page() is undefined
 * behaviour.
 */
struct PDFPageReference
{
  const QSharedPointer<const Poppler::Document> document;
  const QSharedPointer<const Poppler::Page> page;


  PDFPageReference( const PDFDocumentReference& documentReference, const unsigned int& pageNumber );
};

#endif // PDFPAGEREFERENCE_H