1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2014 Hiroyuki Yamamoto and the Claws Mail team
4  *
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 3 of the License, or
8  * (at your option) any later version.
9  *
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.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef __QUOTE_FMT_H__
21 
22 #define __QUOTE_FMT_H__
23 
24 #ifdef USE_ENCHANT
25 #include "gtkaspell.h"
26 #endif
27 
28 #define quote_fmt_parse	quote_fmtparse
29 
30 void quote_fmt_quote_description(GtkWidget *widget, GtkWidget *pref_window);
31 
32 gchar *quote_fmt_get_buffer(void);
33 GList *quote_fmt_get_attachments_list(void);
34 gint quote_fmt_get_line(void);
35 #ifdef USE_ENCHANT
36 void quote_fmt_init(MsgInfo *info, const gchar *my_quote_str,
37 		    const gchar *my_body, gboolean my_dry_run,
38 			PrefsAccount *account,
39 			gboolean escaped_string,
40 			GtkAspell *gtkaspell);
41 #else
42 void quote_fmt_init(MsgInfo *info, const gchar *my_quote_str,
43 		    const gchar *my_body, gboolean my_dry_run,
44 			PrefsAccount *account,
45 			gboolean escaped_string);
46 #endif
47 gint quote_fmtparse(void);
48 int quote_fmtlex_destroy(void);
49 void quote_fmt_scan_string(const gchar *str);
50 void quote_fmt_reset_vartable(void);
51 gint quote_fmt_get_cursor_pos(void);
52 
53 void quotefmt_create_new_msg_fmt_widgets(GtkWindow *parent_window,
54 						GtkWidget *parent_box,
55 						GtkWidget **checkbtn_compose_with_format,
56 						GtkWidget **override_from_format,
57 						GtkWidget **edit_subject_format,
58 						GtkWidget **edit_body_format,
59 						gboolean add_info_button,
60 						void(*set_defaults_func)(void));
61 void quotefmt_create_reply_fmt_widgets(GtkWindow *parent_window,
62 						GtkWidget *parent_box,
63 						GtkWidget **checkbtn_reply_with_format,
64 						GtkWidget **override_from_format,
65 						GtkWidget **edit_reply_quotemark,
66 						GtkWidget **edit_reply_format,
67 						gboolean add_info_button,
68 						void(*set_defaults_func)(void));
69 void quotefmt_create_forward_fmt_widgets(GtkWindow *parent_window,
70 						GtkWidget *parent_box,
71 						GtkWidget **checkbtn_forward_with_format,
72 						GtkWidget **override_from_format,
73 						GtkWidget **edit_fw_quotemark,
74 						GtkWidget **edit_fw_format,
75 						gboolean add_info_button,
76 						void(*set_defaults_func)(void));
77 void quotefmt_add_info_button(GtkWindow *parent_window, GtkWidget *parent_box);
78 void quotefmt_add_defaults_button(GtkWindow *parent_window,
79 								  GtkWidget *parent_box,
80 								  void(*set_defaults_func)(void));
81 
82 void quotefmt_check_new_msg_formats(gboolean use_format,
83 									gchar *override_from_fmt,
84 									gchar *subject_fmt,
85 									gchar *body_fmt);
86 void quotefmt_check_reply_formats(gboolean use_format,
87 									gchar *override_from_fmt,
88 									gchar *quotation_mark,
89 									gchar *body_fmt);
90 void quotefmt_check_forward_formats(gboolean use_format,
91 									gchar *override_from_fmt,
92 									gchar *quotation_mark,
93 									gchar *body_fmt);
94 
95 #endif /* __QUOTE_FMT_H__ */
96