2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
2007-01-03 06:42:43 +01:00
|
|
|
* Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
|
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
|
2007-07-11 18:38:12 +02:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-04-19 14:21:46 +02:00
|
|
|
* (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
|
2007-07-11 18:38:12 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2001-04-19 14:21:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MESSAGEVIEW_H__
|
|
|
|
#define __MESSAGEVIEW_H__
|
|
|
|
|
2006-09-13 19:25:48 +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>
|
|
|
|
|
2004-01-12 22:28:31 +01:00
|
|
|
typedef struct _MessageView MessageView;
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "headerview.h"
|
|
|
|
#include "textview.h"
|
|
|
|
#include "mimeview.h"
|
2002-07-21 17:47:39 +02:00
|
|
|
#include "noticeview.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
#include "procmsg.h"
|
2003-04-22 15:53:19 +02:00
|
|
|
#include "procmime.h"
|
2002-11-28 23:53:24 +01:00
|
|
|
#include "toolbar.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
struct _MessageView
|
|
|
|
{
|
|
|
|
GtkWidget *vbox;
|
|
|
|
|
|
|
|
gboolean new_window;
|
|
|
|
GtkWidget *window;
|
|
|
|
|
2002-11-28 23:53:24 +01:00
|
|
|
/* Toolbar handlebox */
|
|
|
|
GtkWidget *handlebox;
|
|
|
|
Toolbar *toolbar;
|
2002-12-24 15:38:23 +01:00
|
|
|
GtkWidget *menubar;
|
2002-11-28 23:53:24 +01:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
HeaderView *headerview;
|
|
|
|
MimeView *mimeview;
|
2002-07-21 17:47:39 +02:00
|
|
|
NoticeView *noticeview;
|
2004-05-10 12:22:28 +02:00
|
|
|
GtkWidget *statusbar;
|
|
|
|
gint statusbar_cid;
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
MainWindow *mainwin;
|
2002-06-11 23:46:03 +02:00
|
|
|
|
2003-04-05 10:58:21 +02:00
|
|
|
MsgInfo *msginfo;
|
|
|
|
|
|
|
|
gchar *forced_charset;
|
2004-10-04 12:22:00 +02:00
|
|
|
EncodingType forced_encoding;
|
2003-04-05 10:58:21 +02:00
|
|
|
|
2002-06-11 23:46:03 +02:00
|
|
|
gboolean visible;
|
2002-11-28 23:53:24 +01:00
|
|
|
|
2003-06-14 15:36:28 +02:00
|
|
|
/* this message was filtered by an action */
|
|
|
|
gboolean filtered;
|
|
|
|
|
2002-11-28 23:53:24 +01:00
|
|
|
/* From messageview_show */
|
|
|
|
gboolean all_headers;
|
2006-07-31 19:17:32 +02:00
|
|
|
|
2003-09-05 23:07:17 +02:00
|
|
|
gint msginfo_update_callback_id;
|
2006-03-16 19:13:25 +01:00
|
|
|
gboolean updating;
|
|
|
|
gboolean deferred_destroy;
|
2008-03-20 18:44:55 +01:00
|
|
|
|
|
|
|
gboolean show_full_text;
|
2008-08-13 18:03:12 +02:00
|
|
|
gboolean partial_display_shown;
|
2008-07-29 07:39:21 +02:00
|
|
|
GtkUIManager *ui_manager;
|
2001-04-19 14:21:46 +02:00
|
|
|
};
|
|
|
|
|
2002-08-23 08:52:15 +02:00
|
|
|
MessageView *messageview_create (MainWindow *mainwin);
|
|
|
|
MessageView *messageview_create_with_new_window (MainWindow *mainwin);
|
2002-11-28 23:53:24 +01:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
void messageview_init (MessageView *messageview);
|
2004-01-12 22:28:31 +01:00
|
|
|
gint messageview_show (MessageView *messageview,
|
2002-02-04 10:56:44 +01:00
|
|
|
MsgInfo *msginfo,
|
|
|
|
gboolean all_headers);
|
2001-04-19 14:21:46 +02:00
|
|
|
void messageview_clear (MessageView *messageview);
|
|
|
|
void messageview_destroy (MessageView *messageview);
|
2003-04-22 15:53:19 +02:00
|
|
|
|
2002-06-22 19:49:39 +02:00
|
|
|
TextView *messageview_get_current_textview (MessageView *messageview);
|
2003-04-22 15:53:19 +02:00
|
|
|
MimeInfo *messageview_get_selected_mime_part (MessageView *messageview);
|
2002-06-22 19:49:39 +02:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
void messageview_copy_clipboard (MessageView *messageview);
|
|
|
|
void messageview_select_all (MessageView *messageview);
|
2001-09-30 13:07:34 +02:00
|
|
|
void messageview_set_position (MessageView *messageview,
|
|
|
|
gint pos);
|
2002-12-24 15:38:23 +01:00
|
|
|
GList *messageview_get_msgview_list (void);
|
2003-03-03 20:03:23 +01:00
|
|
|
void messageview_delete (MessageView *messageview);
|
2001-09-24 10:15:52 +02:00
|
|
|
gboolean messageview_search_string (MessageView *messageview,
|
|
|
|
const gchar *str,
|
|
|
|
gboolean case_sens);
|
2001-09-30 13:07:34 +02:00
|
|
|
gboolean messageview_search_string_backward (MessageView *messageview,
|
|
|
|
const gchar *str,
|
|
|
|
gboolean case_sens);
|
2001-09-24 10:15:52 +02:00
|
|
|
|
2002-06-11 23:46:03 +02:00
|
|
|
gboolean messageview_is_visible (MessageView *messageview);
|
|
|
|
|
2004-02-21 12:01:01 +01:00
|
|
|
void messageview_update_actions_menu (MessageView *msgview);
|
2002-12-24 15:38:23 +01:00
|
|
|
void messageview_reflect_prefs_pixmap_theme (void);
|
2003-03-03 20:03:23 +01:00
|
|
|
gchar *messageview_get_selection (MessageView *msgview);
|
2004-05-10 12:22:28 +02:00
|
|
|
|
|
|
|
void messageview_set_menu_sensitive (MessageView *msgview);
|
2006-02-27 18:47:53 +01:00
|
|
|
void messageview_learn (MessageView *msgview,
|
|
|
|
gboolean is_spam);
|
2007-09-18 08:58:04 +02:00
|
|
|
#if defined(USE_GNOMEPRINT) || GTK_CHECK_VERSION(2,10,0)
|
2006-09-13 19:25:48 +02:00
|
|
|
void messageview_print (MsgInfo *msginfo,
|
2006-12-14 10:49:25 +01:00
|
|
|
gboolean all_headers,
|
|
|
|
gint sel_start,
|
|
|
|
gint sel_end,
|
|
|
|
gint partnum);
|
2006-09-13 19:25:48 +02:00
|
|
|
#endif
|
2007-02-02 18:48:17 +01:00
|
|
|
void messageview_list_urls (MessageView *msgview);
|
2008-03-20 18:44:55 +01:00
|
|
|
void messageview_show_partial_display (MessageView *msgview,
|
|
|
|
MsgInfo *msginfo,
|
|
|
|
size_t length);
|
2001-04-19 14:21:46 +02:00
|
|
|
#endif /* __MESSAGEVIEW_H__ */
|