2006-02-24 [wwp] 2.0.0cvs81
[claws.git] / src / compose.h
index d8b9ab28ba1d57116e864b43ec0d540572416311..0e434501c6b47c527bdade01b25c9c29cb2995a4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -35,6 +35,8 @@ typedef struct _AttachInfo    AttachInfo;
 #include "toolbar.h"
 #include "messageview.h"
 #include "codeconv.h"
+#include "template.h"
+#include "textview.h"
 
 #ifdef USE_ASPELL
 #include "gtkaspell.h"
@@ -186,6 +188,8 @@ struct _Compose
        
        gboolean return_receipt;
 
+       gboolean batch;
+       
        GSList *to_list;
        GSList *newsgroup_list;
 
@@ -216,8 +220,10 @@ struct _Compose
        guint draft_timeout_tag;
        
        GtkTextTag *no_wrap_tag;
+       GtkTextTag *no_join_tag;
        GMutex *mutex;
        gchar *orig_charset;
+       gint set_cursor_pos;
 };
 
 struct _AttachInfo
@@ -260,17 +266,21 @@ Compose *compose_forward          (PrefsAccount *account,
                                         MsgInfo        *msginfo,
                                         gboolean        as_attach,
                                         const gchar    *body,
-                                        gboolean        no_extedit);
+                                        gboolean        no_extedit,
+                                        gboolean        batch);
 Compose *compose_forward_multiple      (PrefsAccount   *account, 
                                         GSList         *msginfo_list);
 /* remove end */
 
 Compose *compose_redirect              (PrefsAccount   *account,
-                                        MsgInfo        *msginfo);
+                                        MsgInfo        *msginfo,
+                                        gboolean        batch);
 void compose_reedit                    (MsgInfo        *msginfo);
 
 GList *compose_get_compose_list                (void);
 
+void compose_template_apply_fields(Compose *compose, Template *tmpl);
+
 void compose_entry_append              (Compose          *compose,
                                         const gchar      *address,
                                         ComposeEntryType  type);
@@ -292,5 +302,15 @@ void compose_toolbar_cb                    (gint           action,
 void compose_reply_from_messageview    (MessageView    *msgview, 
                                         GSList         *msginfo_list, 
                                         guint           action);
+void compose_action_cb                 (void           *data);
+
+void compose_set_position                              (Compose        *compose,
+                                                gint            pos);
+gboolean compose_search_string                 (Compose        *compose,
+                                                const gchar    *str,
+                                                gboolean        case_sens);
+gboolean compose_search_string_backward        (Compose        *compose,
+                                                const gchar    *str,
+                                                gboolean        case_sens);
 
 #endif /* __COMPOSE_H__ */