| 1 |
// ePDFView - Dumb Test Page View. |
|---|
| 2 |
// Copyright (C) 2006 Emma's Software. |
|---|
| 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 of the License, or |
|---|
| 7 |
// (at your option) 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 17 |
|
|---|
| 18 |
#include <epdfview.h> |
|---|
| 19 |
#include "DumbPageView.h" |
|---|
| 20 |
|
|---|
| 21 |
using namespace ePDFView; |
|---|
| 22 |
|
|---|
| 23 |
DumbPageView::DumbPageView (): |
|---|
| 24 |
IPageView () |
|---|
| 25 |
{ |
|---|
| 26 |
m_HorizontalScroll = 0.0; |
|---|
| 27 |
m_VerticalScroll = 0.0; |
|---|
| 28 |
} |
|---|
| 29 |
|
|---|
| 30 |
DumbPageView::~DumbPageView () |
|---|
| 31 |
{ |
|---|
| 32 |
} |
|---|
| 33 |
|
|---|
| 34 |
gdouble |
|---|
| 35 |
DumbPageView::getHorizontalScroll () |
|---|
| 36 |
{ |
|---|
| 37 |
return m_HorizontalScroll; |
|---|
| 38 |
} |
|---|
| 39 |
|
|---|
| 40 |
void |
|---|
| 41 |
DumbPageView::getSize (gint *width, gint *height) |
|---|
| 42 |
{ |
|---|
| 43 |
*width = 75; |
|---|
| 44 |
*height = 50; |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
gdouble |
|---|
| 48 |
DumbPageView::getVerticalScroll () |
|---|
| 49 |
{ |
|---|
| 50 |
return m_VerticalScroll; |
|---|
| 51 |
} |
|---|
| 52 |
|
|---|
| 53 |
void |
|---|
| 54 |
DumbPageView::makeRectangleVisible (DocumentRectangle &rect, gdouble scale) |
|---|
| 55 |
{ |
|---|
| 56 |
} |
|---|
| 57 |
|
|---|
| 58 |
void |
|---|
| 59 |
DumbPageView::resizePage (gint width, gint height) |
|---|
| 60 |
{ |
|---|
| 61 |
} |
|---|
| 62 |
|
|---|
| 63 |
void |
|---|
| 64 |
DumbPageView::scrollPage (gdouble scrollX, gdouble scrollY, gint dx, gint dy) |
|---|
| 65 |
{ |
|---|
| 66 |
m_HorizontalScroll = (gdouble)dx; |
|---|
| 67 |
m_VerticalScroll = (gdouble)dy; |
|---|
| 68 |
} |
|---|
| 69 |
|
|---|
| 70 |
void |
|---|
| 71 |
DumbPageView::setCursor (PageCursor cursorType) |
|---|
| 72 |
{ |
|---|
| 73 |
} |
|---|
| 74 |
|
|---|
| 75 |
void |
|---|
| 76 |
DumbPageView::showPage (DocumentPage *page, PageScroll scroll) |
|---|
| 77 |
{ |
|---|
| 78 |
} |
|---|
| 79 |
|
|---|
| 80 |
void |
|---|
| 81 |
DumbPageView::showText (const gchar *text) |
|---|
| 82 |
{ |
|---|
| 83 |
} |
|---|