Do not try to handle quotes in text attachments.
[claws.git] / src / textview.h
index 9778dca6c0fd1562b471680995bd428cc91cb17b..35393a28b6c8d529e0c2c9d6f4927c9ff25df1ff 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team
  *
  * 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
  *
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * 
  */
 
 #ifndef __TEXTVIEW_H__
 #define __TEXTVIEW_H__
 
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#include "claws-features.h"
 #endif
 
 #include <glib.h>
 #include <gtk/gtk.h>
 
-typedef struct _TextView       TextView;
 typedef struct _ClickableText  ClickableText;
 struct _ClickableText
 {
@@ -36,6 +34,7 @@ struct _ClickableText
        gchar *filename;
 
        gpointer data;
+       gint data_len;
 
        guint start;
        guint end;
@@ -47,7 +46,7 @@ struct _ClickableText
 };
 
 
-#include "messageview.h"
+#include "viewtypes.h"
 #include "procmime.h"
 
 struct _TextView
@@ -66,12 +65,12 @@ struct _TextView
 
        gboolean default_text;
        gboolean is_in_signature;
+       gboolean is_diff;
+       gboolean is_attachment;
        
        GSList *uri_list;
        gint body_pos;
 
-       gboolean show_all_headers;
-
        MessageView *messageview;
        gint last_buttonpress;
 
@@ -79,6 +78,7 @@ struct _TextView
        GtkTextIter uri_hover_start_iter;
        GtkTextIter uri_hover_end_iter;
        GtkWidget *image;
+       gint avatar_type;
        gboolean loading;
        gboolean stop_loading;
        gint prev_quote_level;
@@ -92,12 +92,12 @@ void textview_show_part             (TextView       *textview,
                                 MimeInfo       *mimeinfo,
                                 FILE           *fp);
 void textview_show_error       (TextView       *textview);
+void textview_show_info                (TextView       *textview,
+                                const gchar    *info_str);
 void textview_show_mime_part   (TextView       *textview,
                                 MimeInfo       *partinfo);
 void textview_clear            (TextView       *textview);
 void textview_destroy          (TextView       *textview);
-void textview_set_all_headers  (TextView       *textview,
-                                gboolean        all_headers);
 void textview_set_font         (TextView       *textview,
                                 const gchar    *codeset);
 void textview_set_text         (TextView       *textview,
@@ -108,6 +108,8 @@ void textview_scroll_one_line       (TextView       *textview,
                                 gboolean        up);
 gboolean textview_scroll_page  (TextView       *textview,
                                 gboolean        up);
+void textview_scroll_max       (TextView       *textview,
+                                gboolean        up);
 
 gboolean textview_search_string                        (TextView       *textview,
                                                 const gchar    *str,