1/*
2 * Copyright (C) 2019, Masamichi Hosoda <trueroad@trueroad.jp>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef POPPLER_DESTINATION_PRIVATE_H
20#define POPPLER_DESTINATION_PRIVATE_H
21
22#include "poppler-global.h"
23#include "poppler-destination.h"
24
25#include "Object.h"
26
27class PDFDoc;
28class LinkDest;
29
30namespace poppler {
31
32class destination_private
33{
34public:
35 destination_private(const LinkDest *ld, PDFDoc *doc);
36
37 destination::type_enum type;
38 bool page_number_unresolved;
39 union {
40 Ref page_ref;
41 int page_number;
42 };
43 double left, bottom;
44 double right, top;
45 double zoom;
46 bool change_left : 1, change_top : 1;
47 bool change_zoom : 1;
48
49 PDFDoc *pdf_doc;
50};
51
52}
53
54#endif
55

source code of poppler/cpp/poppler-destination-private.h