52d9a5cf87d8a93d3c98e9fe146c6d4de914b334
[claws.git] / src / quote_fmt.h
1 #ifndef __QUOTE_FMT_H__
2
3 #define __QUOTE_FMT_H__
4
5 #ifdef USE_ASPELL
6 #include "gtkaspell.h"
7 #endif
8
9 #define quote_fmt_parse quote_fmtparse
10
11 void quote_fmt_quote_description(GtkWidget *widget, GtkWidget *pref_window);
12
13 gchar *quote_fmt_get_buffer(void);
14 GList *quote_fmt_get_attachments_list(void);
15 gint quote_fmt_get_line(void);
16 #ifdef USE_ASPELL
17 void quote_fmt_init(MsgInfo *info, const gchar *my_quote_str,
18                     const gchar *my_body, gboolean my_dry_run,
19                         PrefsAccount *account,
20                         gboolean escaped_string,
21                         GtkAspell *gtkaspell);
22 #else
23 void quote_fmt_init(MsgInfo *info, const gchar *my_quote_str,
24                     const gchar *my_body, gboolean my_dry_run,
25                         PrefsAccount *account,
26                         gboolean escaped_string);
27 #endif
28 gint quote_fmtparse(void);
29 void quote_fmt_scan_string(const gchar *str);
30 void quote_fmt_reset_vartable(void);
31 gint quote_fmt_get_cursor_pos(void);
32
33 void quotefmt_create_new_msg_fmt_widgets(GtkWindow *parent_window,
34                                                 GtkWidget *parent_box,
35                                                 GtkWidget **checkbtn_compose_with_format,
36                                                 GtkWidget **override_from_format,
37                                                 GtkWidget **edit_subject_format,
38                                                 GtkWidget **edit_body_format,
39                                                 gboolean add_info_button,
40                                                 void(*set_defaults_func)(void));
41 void quotefmt_create_reply_fmt_widgets(GtkWindow *parent_window,
42                                                 GtkWidget *parent_box,
43                                                 GtkWidget **checkbtn_reply_with_format,
44                                                 GtkWidget **override_from_format,
45                                                 GtkWidget **edit_reply_quotemark,
46                                                 GtkWidget **edit_reply_format,
47                                                 gboolean add_info_button,
48                                                 void(*set_defaults_func)(void));
49 void quotefmt_create_forward_fmt_widgets(GtkWindow *parent_window,
50                                                 GtkWidget *parent_box,
51                                                 GtkWidget **checkbtn_forward_with_format,
52                                                 GtkWidget **override_from_format,
53                                                 GtkWidget **edit_fw_quotemark,
54                                                 GtkWidget **edit_fw_format,
55                                                 gboolean add_info_button,
56                                                 void(*set_defaults_func)(void));
57 void quotefmt_add_info_button(GtkWindow *parent_window, GtkWidget *parent_box);
58 void quotefmt_add_defaults_button(GtkWindow *parent_window,
59                                                                   GtkWidget *parent_box,
60                                                                   void(*set_defaults_func)(void));
61
62 void quotefmt_check_new_msg_formats(gboolean use_format,
63                                                                         gchar *override_from_fmt,
64                                                                         gchar *subject_fmt,
65                                                                         gchar *body_fmt);
66 void quotefmt_check_reply_formats(gboolean use_format,
67                                                                         gchar *override_from_fmt,
68                                                                         gchar *quotation_mark,
69                                                                         gchar *body_fmt);
70 void quotefmt_check_forward_formats(gboolean use_format,
71                                                                         gchar *override_from_fmt,
72                                                                         gchar *quotation_mark,
73                                                                         gchar *body_fmt);
74
75 #endif /* __QUOTE_FMT_H__ */