Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-page-view.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-02-02 13:22:53 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-02-02 13:22:53 (GMT)
commitbebd9ceae1ec88ddee03bda8c7572c9cb06f6b77 (patch)
tree473a80dc33f128ab0c24e3322002d2066f0fe293 /shell/ev-page-view.h
parente6bb7c7e25b848008409db982bbac260fa97f73c (diff)
New file with some random thoughts.
Wed Feb 2 21:13:11 2005 Jonathan Blandford <jrb@redhat.com> * NOTES: New file with some random thoughts. * TODO: Update. * backend/ev-document-misc.c: (ev_document_misc_get_page_border_size): New function to canonicalize shadow drawing sizes. Possibly goofy. * shell/ev-view.c: (ev_view_size_request), (set_document_page), (ev_view_best_fit), (ev_view_fit_width): * pdf/xpdf/pdf-document.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size): * ps/ps-document.c: (ps_document_get_page_size): * backend/ev-document-misc.h: * backend/ev-document.c: (ev_document_get_page_size): * backend/ev-document.h: get_page_size now takes a page number parameter. Made all the backends/frontends honor it. * data/evince-ui.xml: Added a multiple-page mode. Uncomment to see. Doesn't work yet. * shell/Makefile.am: * shell/ev-page-view.[ch]: New multi-page view. Really rough. Doesn't do anything yet. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): [1..n_pages] instead of [0..n_pages-1] * shell/ev-window.c: (update_action_sensitivity), (ev_window_setup_document), (ev_window_set_page_mode), (ev_window_page_mode_cb), (ev_window_init): Clean up the view-swapping code a bit so we can have multiple views on a document. Add the multi-page view, though it can't be turned on yet.
Diffstat (limited to 'shell/ev-page-view.h')
-rw-r--r--shell/ev-page-view.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/shell/ev-page-view.h b/shell/ev-page-view.h
new file mode 100644
index 0000000..24b1930
--- /dev/null
+++ b/shell/ev-page-view.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (C) 2004 Jonathan Blandforde
+ *
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef EV_PAGE_VIEW_H
+#define EV_PAGE_VIEW_H
+
+#include <gtk/gtk.h>
+#include "ev-document.h"
+
+G_BEGIN_DECLS
+
+#define EV_TYPE_PAGE_VIEW (ev_page_view_get_type ())
+#define EV_PAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_VIEW, EvPageView))
+#define EV_PAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PAGE_VIEW, EvPageViewClass))
+#define EV_IS_PAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_VIEW))
+#define EV_IS_PAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_PAGE_VIEW))
+#define EV_PAGE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_PAGE_VIEW, EvPageViewClass))
+
+typedef struct _EvPageView EvPageView;
+typedef struct _EvPageViewPrivate EvPageViewPrivate;
+typedef struct _EvPageViewClass EvPageViewClass;
+
+struct _EvPageView
+{
+ GtkWidget parent;
+
+ /*< private >*/
+ EvPageViewPrivate *priv;
+};
+
+struct _EvPageViewClass
+{
+ GtkWidgetClass parent_class;
+
+ void (* set_scroll_adjustments) (EvPageView *page_view,
+ GtkAdjustment *hadjustment,
+ GtkAdjustment *vadjustment);
+};
+
+GType ev_page_view_get_type (void);
+GtkWidget *ev_page_view_new (void);
+void ev_page_view_set_document (EvPageView *page_view,
+ EvDocument *document);
+
+
+G_END_DECLS
+
+#endif