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;
101 GtkWidget *subject_entry;
105 GtkWidget *attach_scrwin;
106 GtkWidget *attach_clist;
109 GtkWidget *savemsg_checkbtn;
110 GtkWidget *savemsg_entry;
113 GtkWidget *edit_vbox;
114 GtkWidget *ruler_hbox;
116 GtkWidget *scrolledwin;
118 GtkWidget *from_name;
119 GtkTooltips *tooltips;
121 GtkWidget *focused_editable;
123 GtkWidget *popupmenu;
125 GtkItemFactory *popupfactory;
127 GtkWidget *tmpl_menu;
133 MsgInfo *autosaved_draft;
136 GtkWidget *header_table;
138 guint header_nextrow;
139 ComposeHeaderEntry *header_last;
159 gboolean use_replyto;
160 gboolean use_newsgroups;
161 gboolean use_followupto;
164 CharSet out_encoding;
166 /* privacy settings */
167 gboolean use_signing;
168 gboolean use_encryption;
169 gchar *privacy_system;
175 gboolean return_receipt;
180 GSList *newsgroup_list;
182 PrefsAccount *account;
184 UndoMain *undostruct;
188 /* external editor */
189 gchar *exteditor_file;
191 GIOChannel *exteditor_ch;
195 /* GNU/aspell spell checker */
196 GtkAspell *gtkaspell;
197 GtkWidget *aspell_options_menu;
203 gchar *redirect_filename;
205 gboolean remove_references;
207 guint draft_timeout_tag;
209 GtkTextTag *no_wrap_tag;
210 GtkTextTag *no_join_tag;
216 gboolean deferred_destroy;
223 EncodingType encoding;
228 /*#warning FIXME_GTK2 */
229 /* attache_files will be locale encode */
230 Compose *compose_new (PrefsAccount *account,
232 GPtrArray *attach_files);
234 Compose *compose_new_with_folderitem (PrefsAccount *account,
237 Compose *compose_new_with_list (PrefsAccount *account,
240 Compose *compose_reply_mode (ComposeMode mode,
241 GSList *msginfo_list,
244 Compose *compose_followup_and_reply_to (MsgInfo *msginfo,
249 Compose *compose_reply (MsgInfo *msginfo,
255 Compose *compose_forward (PrefsAccount *account,
261 Compose *compose_forward_multiple (PrefsAccount *account,
262 GSList *msginfo_list);
265 Compose *compose_redirect (PrefsAccount *account,
268 void compose_reedit (MsgInfo *msginfo);
270 GList *compose_get_compose_list (void);
272 void compose_template_apply_fields(Compose *compose, Template *tmpl);
274 void compose_entry_append (Compose *compose,
275 const gchar *address,
276 ComposeEntryType type);
278 void compose_entry_mark_default_to (Compose *compose,
279 const gchar *address);
281 gint compose_send (Compose *compose);
283 void compose_update_actions_menu (Compose *compose);
284 void compose_update_privacy_systems_menu(Compose *compose);
285 void compose_reflect_prefs_all (void);
286 void compose_reflect_prefs_pixmap_theme (void);
288 void compose_destroy_all (void);
289 void compose_draft (gpointer data);
290 void compose_toolbar_cb (gint action,
292 void compose_reply_from_messageview (MessageView *msgview,
293 GSList *msginfo_list,
295 void compose_action_cb (void *data);
297 void compose_set_position (Compose *compose,
299 gboolean compose_search_string (Compose *compose,
302 gboolean compose_search_string_backward (Compose *compose,
306 #endif /* __COMPOSE_H__ */