2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 Hiroyuki Yamamoto
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 2 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, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __TEXTVIEW_H__
21 #define __TEXTVIEW_H__
28 #include <gtk/gtkwidget.h>
30 typedef struct _TextView TextView;
32 #include "messageview.h"
38 GtkWidget *scrolledwin;
39 GtkWidget *scrolledwin_sb;
40 GtkWidget *scrolledwin_mb;
45 GtkWidget *popup_menu;
46 GtkItemFactory *popup_factory;
49 gboolean default_text;
50 gboolean is_in_signature;
59 gboolean show_all_headers;
61 MessageView *messageview;
62 gint last_buttonpress;
64 gint show_url_timeout_tag;
67 TextView *textview_create (void);
68 void textview_init (TextView *textview);
69 void textview_show_message (TextView *textview,
72 void textview_show_part (TextView *textview,
75 void textview_show_mime_part (TextView *textview,
78 void textview_show_signature_part(TextView *textview,
81 void textview_clear (TextView *textview);
82 void textview_destroy (TextView *textview);
83 void textview_set_all_headers (TextView *textview,
84 gboolean all_headers);
85 void textview_set_font (TextView *textview,
86 const gchar *codeset);
87 void textview_set_position (TextView *textview,
89 void textview_scroll_one_line (TextView *textview,
91 gboolean textview_scroll_page (TextView *textview,
94 void textview_update_message_colors (void);
96 gboolean textview_search_string (TextView *textview,
99 gboolean textview_search_string_backward (TextView *textview,
103 #endif /* __TEXTVIEW_H__ */