1 /*
2 dspdfviewer - Dual Screen PDF Viewer for LaTeX-Beamer
3 Copyright (C) 2012 Danny Edel <mail@danny-edel.de>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20
21 #include "renderedpage.h"
22
23 #include "renderingidentifier.h"
24
getIdentifier() const25 RenderingIdentifier RenderedPage::getIdentifier() const
26 {
27 return theIdentifier;
28 }
29
getImage() const30 QImage RenderedPage::getImage() const
31 {
32 return theRenderedImage;
33 }
34
getLinks() const35 QList< AdjustedLink > RenderedPage::getLinks() const
36 {
37 return theLinks;
38 }
39
getPageNumber() const40 unsigned RenderedPage::getPageNumber() const
41 {
42 return getIdentifier().pageNumber();
43 }
44
45
getPart() const46 PagePart RenderedPage::getPart() const
47 {
48 return getIdentifier().pagePart();
49 }
50
RenderedPage(QImage img,QList<AdjustedLink> links,PagePart whichPart,unsigned pageNum)51 RenderedPage::RenderedPage(QImage img, QList< AdjustedLink > links, PagePart whichPart, unsigned pageNum)
52 : theRenderedImage(img), theLinks(links), theIdentifier(pageNum, whichPart, img.size())
53 {
54
55 }
56
RenderedPage(QImage img,QList<AdjustedLink> links,RenderingIdentifier identifier)57 RenderedPage::RenderedPage(QImage img, QList< AdjustedLink > links, RenderingIdentifier identifier)
58 : theRenderedImage(img), theLinks(links), theIdentifier(identifier)
59 {
60
61 }
62
63
64
65
66