1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2 /* this file is part of evince, a gnome document viewer
4 * Copyright (C) 2004 Red Hat, Inc
6 * Evince is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * Evince is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef __EV_VIEW_PRIVATE_H__
22 #define __EV_VIEW_PRIVATE_H__
25 #include "ev-pixbuf-cache.h"
26 #include "ev-page-cache.h"
28 /* Information for middle clicking and moving around the doc */
36 /* Information for handling selection */
40 gboolean in_selection;
45 SCROLL_TO_KEEP_POSITION,
46 SCROLL_TO_PAGE_POSITION,
51 EV_VIEW_CURSOR_NORMAL,
55 EV_VIEW_CURSOR_HIDDEN,
60 GtkWidget parent_instance;
68 EvPageCache *page_cache;
69 EvPixbufCache *pixbuf_cache;
71 EvJobRender *current_job;
74 GtkAdjustment *hadjustment;
75 GtkAdjustment *vadjustment;
80 PendingScroll pending_scroll;
81 gboolean pending_resize;
82 EvPoint pending_point;
84 /* Current geometry */
98 gboolean presentation;
99 EvSizingMode sizing_mode;
101 /* Common for button press handling */
104 /* Information for middle clicking and dragging around. */
109 guint selection_update_id;
110 guint selection_scroll_id;
112 EvViewSelectionMode selection_mode;
113 SelectionInfo selection_info;
116 GtkWidget *link_tooltip;
117 EvLink *hovered_link;
120 struct _EvViewClass {
121 GtkWidgetClass parent_class;
123 void (*set_scroll_adjustments) (EvView *view,
124 GtkAdjustment *hadjustment,
125 GtkAdjustment *vadjustment);
126 void (*binding_activated) (EvView *view,
127 GtkScrollType scroll,
128 gboolean horizontal);
129 void (*zoom_invalid) (EvView *view);
130 void (*external_link) (EvView *view,
132 void (*popup_menu) (EvView *view,
136 #endif /* __EV_VIEW_PRIVATE_H__ */