2
* Copyright (C) 2005, Net Integration Technologies, Inc.
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)
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.
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.
19
#include "PageTransition.h"
20
#include "poppler-page-transition.h"
21
#include "poppler-page-transition-private.h"
25
class PageTransitionData
28
PageTransitionData(Object *trans)
30
pt = new ::PageTransition(trans);
33
PageTransitionData(const PageTransitionData &ptd)
35
pt = new ::PageTransition(*ptd.pt);
46
PageTransition::PageTransition(const PageTransitionParams ¶ms)
48
data = new PageTransitionData(params.dictObj);
51
PageTransition::PageTransition(const PageTransition &pt)
53
data = new PageTransitionData(*pt.data);
56
PageTransition::~PageTransition()
61
PageTransition::Type PageTransition::type() const
63
return (Poppler::PageTransition::Type)data->pt->getType();
66
int PageTransition::duration() const
68
return data->pt->getDuration();
71
PageTransition::Alignment PageTransition::alignment() const
73
return (Poppler::PageTransition::Alignment)data->pt->getAlignment();
76
PageTransition::Direction PageTransition::direction() const
78
return (Poppler::PageTransition::Direction)data->pt->getDirection();
81
int PageTransition::angle() const
83
return data->pt->getAngle();
86
double PageTransition::scale() const
88
return data->pt->getScale();
90
bool PageTransition::isRectangular() const
92
return data->pt->isRectangular();