2 * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2016 Salvatore De Paolis & the Claws Mail Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef POPPLER_VIEWER_H
20 #define POPPLER_VIEWER_H
30 #include <gdk/gdkkeysyms.h>
34 #include <messageview.h>
36 #include <alertpanel.h>
43 #define ZOOM_FACTOR 0.25
45 #define ALPHA_CHANNEL 60
46 #define SELECTION_COLOR 0xFF00FF
48 static gchar *msg = NULL;
56 typedef struct _PageResult PageResult;
60 MimeViewer mimeviewer;
61 GtkWidget *widgets_table;
64 GtkWidget *frame_index;
67 GtkWidget *scrollwin_index;
68 GtkWidget *pdf_view_ebox;
69 GtkWidget *icon_type_ebox;
71 GdkPixbuf *icon_pixbuf;
74 GtkWidget *doc_index_pane;
75 GtkWidget *index_list;
76 /* begin GtkButtons */
77 GtkWidget *first_page;
83 GtkWidget *zoom_scroll;
85 GtkWidget *zoom_width;
86 GtkWidget *rotate_left;
87 GtkWidget *rotate_right;
91 GtkTable *table_doc_info;
93 PopplerDocument *pdf_doc;
94 PopplerPage *pdf_page;
95 PopplerIndexIter *pdf_index;
96 PopplerRectangle *last_rect;
97 PopplerAction *link_action;
98 PageResult *last_page_result;
99 GtkAdjustment *pdf_view_vadj;
100 GtkAdjustment *pdf_view_hadj;
101 GtkTreeModel *index_model;
105 GList *text_found; /* GList of PageResults */
110 gchar *target_filename;
113 gchar *doc_info_text;
125 gboolean pdf_view_scroll;
131 static gchar *content_types[] =
133 "application/postscript",
148 typedef struct _PdfViewer PdfViewer;
150 #endif /* POPPLER_VIEWER_H */