Statistics
| Revision:

root / src / textview.h @ 1

History | View | Annotate | Download (2.49 KB)

1
/*
2
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3
 * Copyright (C) 1999-2004 Hiroyuki Yamamoto
4
 *
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.
9
 *
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.
14
 *
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.
18
 */
19

    
20
#ifndef __TEXTVIEW_H__
21
#define __TEXTVIEW_H__
22

    
23
#ifdef HAVE_CONFIG_H
24
#  include "config.h"
25
#endif
26

    
27
#include <glib.h>
28
#include <gtk/gtkwidget.h>
29

    
30
typedef struct _TextView        TextView;
31

    
32
#include "messageview.h"
33
#include "procmime.h"
34

    
35
struct _TextView
36
{
37
        GtkWidget *vbox;
38
        GtkWidget *scrolledwin;
39
        GtkWidget *text;
40

    
41
        GtkWidget *popup_menu;
42
        GtkItemFactory *popup_factory;
43

    
44
        GSList *uri_list;
45
        gint body_pos;
46
        //gint cur_pos;
47

    
48
        gboolean show_all_headers;
49

    
50
        MessageView *messageview;
51
};
52

    
53
TextView *textview_create        (void);
54
void textview_init                (TextView        *textview);
55
void textview_show_message        (TextView        *textview,
56
                                 MimeInfo        *mimeinfo,
57
                                 const gchar        *file);
58
void textview_show_part                (TextView        *textview,
59
                                 MimeInfo        *mimeinfo,
60
                                 FILE                *fp);
61
void textview_show_error        (TextView        *textview);
62
void textview_show_mime_part        (TextView        *textview,
63
                                 MimeInfo        *partinfo);
64
#if USE_GPGME
65
void textview_show_signature_part(TextView        *textview,
66
                                  MimeInfo         *partinfo);
67
#endif
68
void textview_clear                (TextView        *textview);
69
void textview_destroy                (TextView        *textview);
70
void textview_set_all_headers        (TextView        *textview,
71
                                 gboolean         all_headers);
72
void textview_set_font                (TextView        *textview,
73
                                 const gchar        *codeset);
74
void textview_set_position        (TextView        *textview,
75
                                 gint                 pos);
76
void textview_scroll_one_line        (TextView        *textview,
77
                                 gboolean         up);
78
gboolean textview_scroll_page        (TextView        *textview,
79
                                 gboolean         up);
80

    
81
void textview_update_message_colors        (void);
82

    
83
gboolean textview_search_string                        (TextView        *textview,
84
                                                 const gchar        *str,
85
                                                 gboolean         case_sens);
86
gboolean textview_search_string_backward        (TextView        *textview,
87
                                                 const gchar        *str,
88
                                                 gboolean         case_sens);
89

    
90
#endif /* __TEXTVIEW_H__ */