2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
2002-02-25 10:25:17 +01:00
|
|
|
* Copyright (C) 1999-2002 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 __MESSAGEVIEW_H__
|
|
|
|
#define __MESSAGEVIEW_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gtk/gtkwidget.h>
|
|
|
|
|
|
|
|
typedef struct _MessageView MessageView;
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "headerview.h"
|
|
|
|
#include "textview.h"
|
|
|
|
#include "imageview.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"
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
MVIEW_TEXT,
|
2002-06-23 09:49:25 +02:00
|
|
|
MVIEW_MIME
|
2001-04-19 14:21:46 +02:00
|
|
|
} MessageType;
|
|
|
|
|
|
|
|
struct _MessageView
|
|
|
|
{
|
|
|
|
GtkWidget *vbox;
|
|
|
|
|
|
|
|
MessageType type;
|
|
|
|
gboolean new_window;
|
|
|
|
GtkWidget *window;
|
|
|
|
|
|
|
|
HeaderView *headerview;
|
|
|
|
TextView *textview;
|
|
|
|
ImageView *imageview;
|
|
|
|
MimeView *mimeview;
|
2002-07-21 17:47:39 +02:00
|
|
|
NoticeView *noticeview;
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
MainWindow *mainwin;
|
2002-06-11 23:46:03 +02:00
|
|
|
|
|
|
|
gboolean visible;
|
2001-04-19 14:21:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
MessageView *messageview_create (void);
|
|
|
|
MessageView *messageview_create_with_new_window (void);
|
|
|
|
void messageview_init (MessageView *messageview);
|
|
|
|
void 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);
|
|
|
|
void messageview_quote_color_set (void);
|
|
|
|
void messageview_set_font (MessageView *messageview);
|
2002-06-22 19:49:39 +02:00
|
|
|
|
|
|
|
TextView *messageview_get_current_textview (MessageView *messageview);
|
|
|
|
|
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-01-21 11:54:32 +01:00
|
|
|
void messageview_toggle_view_real(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);
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
#endif /* __MESSAGEVIEW_H__ */
|