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
28 #include <gdk/gdkkeysyms.h>
32 #include <messageview.h>
34 #include <alertpanel.h>
40 #define ZOOM_FACTOR 0.25
42 #define ALPHA_CHANNEL 60
43 #define SELECTION_COLOR 0xFF00FF
45 static gchar
*msg
= NULL
;
53 typedef struct _PageResult PageResult
;
57 MimeViewer mimeviewer
;
58 GtkWidget
*widgets_table
;
61 GtkWidget
*frame_index
;
64 GtkWidget
*scrollwin_index
;
65 GtkWidget
*pdf_view_ebox
;
66 GtkWidget
*icon_type_ebox
;
68 GdkPixbuf
*icon_pixbuf
;
71 GtkWidget
*doc_index_pane
;
72 GtkWidget
*index_list
;
73 /* begin GtkButtons */
74 GtkWidget
*first_page
;
80 GtkWidget
*zoom_scroll
;
82 GtkWidget
*zoom_width
;
83 GtkWidget
*rotate_left
;
84 GtkWidget
*rotate_right
;
89 GtkWidget
*table_doc_info
;
91 PopplerDocument
*pdf_doc
;
92 PopplerPage
*pdf_page
;
93 PopplerIndexIter
*pdf_index
;
94 PopplerRectangle
*last_rect
;
95 PopplerAction
*link_action
;
96 PageResult
*last_page_result
;
97 GtkAdjustment
*pdf_view_vadj
;
98 GtkAdjustment
*pdf_view_hadj
;
99 GtkTreeModel
*index_model
;
103 GList
*text_found
; /* GList of PageResults */
108 gchar
*target_filename
;
111 gchar
*doc_info_text
;
123 gboolean pdf_view_scroll
;
129 static gchar
*content_types
[] =
131 "application/postscript",
146 typedef struct _PdfViewer PdfViewer
;
148 #endif /* POPPLER_VIEWER_H */