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;
192 GSList *newsgroup_list;
194 PrefsAccount *account;
196 UndoMain *undostruct;
200 /* external editor */
201 gchar *exteditor_file;
203 GIOChannel *exteditor_ch;
207 /* GNU/aspell spell checker */
208 GtkAspell *gtkaspell;
214 gchar *redirect_filename;
216 gboolean remove_references;
218 guint draft_timeout_tag;
220 GtkTextTag *no_wrap_tag;
221 GtkTextTag *no_join_tag;
231 EncodingType encoding;
236 /*#warning FIXME_GTK2 */
237 /* attache_files will be locale encode */
238 Compose *compose_new (PrefsAccount *account,
240 GPtrArray *attach_files);
242 Compose *compose_new_with_folderitem (PrefsAccount *account,
245 Compose *compose_new_with_list (PrefsAccount *account,
248 Compose *compose_reply_mode (ComposeMode mode,
249 GSList *msginfo_list,
252 Compose *compose_followup_and_reply_to (MsgInfo *msginfo,
257 Compose *compose_reply (MsgInfo *msginfo,
263 Compose *compose_forward (PrefsAccount *account,
267 gboolean no_extedit);
268 Compose *compose_forward_multiple (PrefsAccount *account,
269 GSList *msginfo_list);
272 Compose *compose_redirect (PrefsAccount *account,
274 void compose_reedit (MsgInfo *msginfo);
276 GList *compose_get_compose_list (void);
278 void compose_template_apply_fields(Compose *compose, Template *tmpl);
280 void compose_entry_append (Compose *compose,
281 const gchar *address,
282 ComposeEntryType type);
284 void compose_entry_mark_default_to (Compose *compose,
285 const gchar *address);
287 gint compose_send (Compose *compose);
289 void compose_update_actions_menu (Compose *compose);
290 void compose_update_privacy_systems_menu(Compose *compose);
291 void compose_reflect_prefs_all (void);
292 void compose_reflect_prefs_pixmap_theme (void);
294 void compose_destroy_all (void);
295 void compose_draft (gpointer data);
296 void compose_toolbar_cb (gint action,
298 void compose_reply_from_messageview (MessageView *msgview,
299 GSList *msginfo_list,
301 void compose_action_cb (void *data);
303 void compose_set_position (Compose *compose,
305 gboolean compose_search_string (Compose *compose,
308 gboolean compose_search_string_backward (Compose *compose,
312 #endif /* __COMPOSE_H__ */