2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2006 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 typedef struct _Compose Compose;
24 typedef struct _AttachInfo AttachInfo;
27 #include <gtk/gtkwidget.h>
28 #include <gtk/gtkitemfactory.h>
32 #include "addressbook.h"
33 #include "prefs_account.h"
36 #include "messageview.h"
42 #include "gtkaspell.h"
58 COMPOSE_REPLY_WITH_QUOTE,
59 COMPOSE_REPLY_WITHOUT_QUOTE,
60 COMPOSE_REPLY_TO_SENDER,
61 COMPOSE_FOLLOWUP_AND_REPLY_TO,
62 COMPOSE_REPLY_TO_SENDER_WITH_QUOTE,
63 COMPOSE_REPLY_TO_SENDER_WITHOUT_QUOTE,
65 COMPOSE_REPLY_TO_ALL_WITH_QUOTE,
66 COMPOSE_REPLY_TO_ALL_WITHOUT_QUOTE,
67 COMPOSE_REPLY_TO_LIST,
68 COMPOSE_REPLY_TO_LIST_WITH_QUOTE,
69 COMPOSE_REPLY_TO_LIST_WITHOUT_QUOTE,
71 COMPOSE_FORWARD_AS_ATTACH,
72 COMPOSE_FORWARD_INLINE,
87 /* start with window widget don`t change order */
92 /* Toolbar handlebox */
99 GtkWidget *table_vbox;
104 GtkWidget *newsgroups_hbox;
105 GtkWidget *newsgroups_entry;
107 GtkWidget *subject_entry;
112 GtkWidget *bcc_entry;
113 GtkWidget *reply_hbox;
114 GtkWidget *reply_entry;
115 GtkWidget *followup_hbox;
116 GtkWidget *followup_entry;
121 GtkWidget *attach_scrwin;
122 GtkWidget *attach_clist;
125 GtkWidget *savemsg_checkbtn;
126 GtkWidget *savemsg_entry;
129 GtkWidget *edit_vbox;
130 GtkWidget *ruler_hbox;
132 GtkWidget *scrolledwin;
135 GtkWidget *focused_editable;
137 GtkWidget *popupmenu;
139 GtkItemFactory *popupfactory;
141 GtkWidget *tmpl_menu;
147 MsgInfo *autosaved_draft;
150 GtkWidget *header_table;
152 guint header_nextrow;
153 ComposeHeaderEntry *header_last;
173 gboolean use_replyto;
174 gboolean use_newsgroups;
175 gboolean use_followupto;
178 CharSet out_encoding;
180 /* privacy settings */
181 gboolean use_signing;
182 gboolean use_encryption;
183 gchar *privacy_system;
189 gboolean return_receipt;
194 GSList *newsgroup_list;
196 PrefsAccount *account;
198 UndoMain *undostruct;
202 /* external editor */
203 gchar *exteditor_file;
205 GIOChannel *exteditor_ch;
209 /* GNU/aspell spell checker */
210 GtkAspell *gtkaspell;
216 gchar *redirect_filename;
218 gboolean remove_references;
220 guint draft_timeout_tag;
222 GtkTextTag *no_wrap_tag;
223 GtkTextTag *no_join_tag;
229 gboolean deferred_destroy;
236 EncodingType encoding;
241 /*#warning FIXME_GTK2 */
242 /* attache_files will be locale encode */
243 Compose *compose_new (PrefsAccount *account,
245 GPtrArray *attach_files);
247 Compose *compose_new_with_folderitem (PrefsAccount *account,
250 Compose *compose_new_with_list (PrefsAccount *account,
253 Compose *compose_reply_mode (ComposeMode mode,
254 GSList *msginfo_list,
257 Compose *compose_followup_and_reply_to (MsgInfo *msginfo,
262 Compose *compose_reply (MsgInfo *msginfo,
268 Compose *compose_forward (PrefsAccount *account,
274 Compose *compose_forward_multiple (PrefsAccount *account,
275 GSList *msginfo_list);
278 Compose *compose_redirect (PrefsAccount *account,
281 void compose_reedit (MsgInfo *msginfo);
283 GList *compose_get_compose_list (void);
285 void compose_template_apply_fields(Compose *compose, Template *tmpl);
287 void compose_entry_append (Compose *compose,
288 const gchar *address,
289 ComposeEntryType type);
291 void compose_entry_mark_default_to (Compose *compose,
292 const gchar *address);
294 gint compose_send (Compose *compose);
296 void compose_update_actions_menu (Compose *compose);
297 void compose_update_privacy_systems_menu(Compose *compose);
298 void compose_reflect_prefs_all (void);
299 void compose_reflect_prefs_pixmap_theme (void);
301 void compose_destroy_all (void);
302 void compose_draft (gpointer data);
303 void compose_toolbar_cb (gint action,
305 void compose_reply_from_messageview (MessageView *msgview,
306 GSList *msginfo_list,
308 void compose_action_cb (void *data);
310 void compose_set_position (Compose *compose,
312 gboolean compose_search_string (Compose *compose,
315 gboolean compose_search_string_backward (Compose *compose,
319 #endif /* __COMPOSE_H__ */