Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-12-22 04:14:06 (GMT)
committer Owen Taylor <otaylor@src.gnome.org>2004-12-22 04:14:06 (GMT)
commit694748d4887f8ffd866ae30c1660e86af2ceafed (patch)
tree699b42d76bf7f36c7be539c67bc162bb5bd0bc0d /backend/ev-document.c
parent484bd6fc379965a3ad83e758135691d84d595f87 (diff)
Redo size handling.
Tue Dec 21 23:05:51 2004 Owen Taylor <otaylor@redhat.com> * backend/ev-document.{h,cc} pdf/xpdf/pdf-document.cc: Redo size handling. * shell/ev-view.c: Track the size from the document.
Diffstat (limited to 'backend/ev-document.c')
-rw-r--r--backend/ev-document.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/backend/ev-document.c b/backend/ev-document.c
index 5886e3f..3ed1181 100644
--- a/backend/ev-document.c
+++ b/backend/ev-document.c
@@ -83,14 +83,29 @@ ev_document_set_target (EvDocument *document,
}
void
-ev_document_set_page_rect (EvDocument *document,
- int x,
- int y,
- int width,
- int height)
+ev_document_set_scale (EvDocument *document,
+ double scale)
{
EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document);
- iface->set_page_rect (document, x, y, width, height);
+ iface->set_scale (document, scale);
+}
+
+void
+ev_document_set_page_offset (EvDocument *document,
+ int x,
+ int y)
+{
+ EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document);
+ iface->set_page_offset (document, x, y);
+}
+
+void
+ev_document_get_page_size (EvDocument *document,
+ int *width,
+ int *height)
+{
+ EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document);
+ iface->get_page_size (document, width, height);
}
void