claws-mail/src/textview.h

104 lines
2.7 KiB
C
Raw Normal View History

2001-04-19 14:21:46 +02:00
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
2003-04-05 10:58:21 +02:00
* Copyright (C) 1999-2003 Hiroyuki Yamamoto
2001-04-19 14:21:46 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __TEXTVIEW_H__
#define __TEXTVIEW_H__
2001-09-24 10:15:52 +02:00
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
2001-04-19 14:21:46 +02:00
#include <glib.h>
#include <gtk/gtkwidget.h>
typedef struct _TextView TextView;
#include "messageview.h"
#include "procmime.h"
struct _TextView
{
GtkWidget *vbox;
GtkWidget *scrolledwin;
GtkWidget *scrolledwin_sb;
GtkWidget *scrolledwin_mb;
GtkWidget *text;
GtkWidget *text_sb;
GtkWidget *text_mb;
2002-01-06 13:21:36 +01:00
GtkWidget *popup_menu;
GtkItemFactory *popup_factory;
2001-04-19 14:21:46 +02:00
gboolean text_is_mb;
gboolean default_text;
2002-09-03 16:45:07 +02:00
gboolean is_in_signature;
2001-04-19 14:21:46 +02:00
GSList *uri_list;
2001-09-24 10:15:52 +02:00
gint body_pos;
2001-09-30 13:07:34 +02:00
gint cur_pos;
2001-04-19 14:21:46 +02:00
GdkFont *msgfont;
GdkFont *boldfont;
2002-02-04 10:56:44 +01:00
gboolean show_all_headers;
2002-02-04 10:56:44 +01:00
MessageView *messageview;
gint last_buttonpress;
2002-05-08 08:27:40 +02:00
gint show_url_msgid;
gint show_url_timeout_tag;
2001-04-19 14:21:46 +02:00
};
TextView *textview_create (void);
void textview_init (TextView *textview);
void textview_show_message (TextView *textview,
MimeInfo *mimeinfo,
const gchar *file);
void textview_show_part (TextView *textview,
MimeInfo *mimeinfo,
FILE *fp);
void textview_show_mime_part (TextView *textview,
MimeInfo *partinfo);
#if USE_GPGME
void textview_show_signature_part(TextView *textview,
MimeInfo *partinfo);
#endif
void textview_clear (TextView *textview);
void textview_destroy (TextView *textview);
2002-02-04 10:56:44 +01:00
void textview_set_all_headers (TextView *textview,
gboolean all_headers);
2001-04-19 14:21:46 +02:00
void textview_set_font (TextView *textview,
const gchar *codeset);
2001-09-30 13:07:34 +02:00
void textview_set_position (TextView *textview,
gint pos);
2001-04-19 14:21:46 +02:00
void textview_scroll_one_line (TextView *textview,
gboolean up);
gboolean textview_scroll_page (TextView *textview,
gboolean up);
2001-09-24 10:15:52 +02:00
void textview_update_message_colors (void);
2001-09-30 13:07:34 +02:00
gboolean textview_search_string (TextView *textview,
const gchar *str,
gboolean case_sens);
gboolean textview_search_string_backward (TextView *textview,
const gchar *str,
gboolean case_sens);
2001-04-19 14:21:46 +02:00
#endif /* __TEXTVIEW_H__ */