blob: 03d33b54f63b12fee6cb5f50c9a2e7a2da6a992b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
/*
* Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "poppler-page-transition.h"
#include "PageTransition.h"
using namespace poppler;
class poppler::page_transition_private
{
public:
page_transition_private(Object *trans)
: pt(trans)
{
}
PageTransition pt;
};
/**
\class poppler::page_transition poppler-page-transition.h "poppler/cpp/poppler-page-transition.h"
A transition between two pages in a PDF %document.
Usually shown in a presentation mode of a PDF viewer.
*/
/**
\enum poppler::page_transition::type_enum
The possibe types of a %page transition.
*/
/**
\enum poppler::page_transition::alignment_enum
The alignment of a %page transition.
*/
/**
\enum poppler::page_transition::direction_enum
The direction of an animation in a %page transition.
*/
page_transition::page_transition(Object *params)
: d(new page_transition_private(params))
{
}
/**
Copy constructor.
*/
page_transition::page_transition(const page_transition &pt)
: d(new page_transition_private(*pt.d))
{
}
/**
Destructor.
*/
page_transition::~page_transition()
{
delete d;
}
page_transition::type_enum page_transition::type() const
{
return (page_transition::type_enum)d->pt.getType();
}
int page_transition::duration() const
{
return d->pt.getDuration();
}
page_transition::alignment_enum page_transition::alignment() const
{
return (page_transition::alignment_enum)d->pt.getAlignment();
}
page_transition::direction_enum page_transition::direction() const
{
return (page_transition::direction_enum)d->pt.getDirection();
}
int page_transition::angle() const
{
return d->pt.getAngle();
}
double page_transition::scale() const
{
return d->pt.getScale();
}
bool page_transition::is_rectangular() const
{
return d->pt.isRectangular();
}
page_transition& page_transition::operator=(const page_transition &pt)
{
if (&pt != this) {
page_transition_private *new_d = new page_transition_private(*pt.d);
delete d;
new_d = d;
}
return *this;
}
|