2 * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2007 the Claws Mail Team
4 * This file Copyright (C) 2007 Salvatore De Paolis
5 * <iwkse@claws-mail.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef POPPLER_VIEWER_H
22 #define POPPLER_VIEWER_H
32 #include <gdk/gdkkeysyms.h>
36 #include <messageview.h>
38 #include <alertpanel.h>
45 #define ZOOM_FACTOR 0.25
47 #define ALPHA_CHANNEL 60
48 #define SELECTION_COLOR 0xFF00FF
50 static gchar *msg = NULL;
58 typedef struct _PageResult PageResult;
62 MimeViewer mimeviewer;
63 GtkWidget *widgets_table;
66 GtkWidget *frame_index;
69 GtkWidget *scrollwin_index;
70 GtkWidget *pdf_view_ebox;
71 GtkWidget *icon_type_ebox;
73 GdkPixbuf *icon_pixbuf;
76 GtkWidget *doc_index_pane;
77 GtkWidget *index_list;
78 /* begin GtkButtons */
79 GtkWidget *first_page;
85 GtkWidget *zoom_scroll;
87 GtkWidget *zoom_width;
88 GtkWidget *rotate_left;
89 GtkWidget *rotate_right;
93 GtkTable *table_doc_info;
94 #if !GTK_CHECK_VERSION(2,12,0)
95 GtkTooltips *button_bar_tips;
97 PopplerDocument *pdf_doc;
98 PopplerPage *pdf_page;
99 PopplerIndexIter *pdf_index;
100 PopplerRectangle *last_rect;
101 PopplerAction *link_action;
102 PageResult *last_page_result;
103 GtkAdjustment *pdf_view_vadj;
104 GtkAdjustment *pdf_view_hadj;
105 GtkTreeModel *index_model;
109 GList *text_found; /* GList of PageResults */
114 gchar *target_filename;
117 gchar *doc_info_text;
129 gboolean pdf_view_scroll;
135 static gchar *content_types[] =
137 "application/postscript",
152 typedef struct _PdfViewer PdfViewer;
154 #endif /* POPPLER_VIEWER_H */