Updated Traditional Chinese translation(Hong Kong). Updated Traditional
[evolution.git] / mail / em-format-html-display.h
blobbe84decc11a97b7bb12f18cc7d706a0b504a573b
2 /*
3 Concrete class for formatting mails to displayed html
4 */
6 #ifndef _EM_FORMAT_HTML_DISPLAY_H
7 #define _EM_FORMAT_HTML_DISPLAY_H
9 #include "mail/em-format-html.h"
10 #include "widgets/misc/e-attachment-bar.h"
12 typedef struct _EMFormatHTMLDisplay EMFormatHTMLDisplay;
13 typedef struct _EMFormatHTMLDisplayClass EMFormatHTMLDisplayClass;
15 struct _CamelMimePart;
17 struct _EMFormatHTMLDisplay {
18 EMFormatHTML formathtml;
20 struct _EMFormatHTMLDisplayPrivate *priv;
22 struct _ESearchingTokenizer *search_tok;
24 unsigned int animate:1;
25 unsigned int caret_mode:1;
26 unsigned int nobar:1;
29 #define EM_FORMAT_HTML_DISPLAY_SEARCH_PRIMARY (0)
30 #define EM_FORMAT_HTML_DISPLAY_SEARCH_SECONDARY (1)
31 #define EM_FORMAT_HTML_DISPLAY_SEARCH_ICASE (1<<8)
33 struct _EMFormatHTMLDisplayClass {
34 EMFormatHTMLClass formathtml_class;
36 /* a link clicked normally */
37 void (*link_clicked)(EMFormatHTMLDisplay *efhd, const char *uri);
38 /* a part or a link button pressed event */
39 int (*popup_event)(EMFormatHTMLDisplay *efhd, GdkEventButton *event, const char *uri, struct _CamelMimePart *part);
40 /* the mouse is over a link */
41 void (*on_url)(EMFormatHTMLDisplay *efhd, const char *uri);
44 GType em_format_html_display_get_type(void);
45 EMFormatHTMLDisplay *em_format_html_display_new(void);
47 void em_format_html_display_goto_anchor(EMFormatHTMLDisplay *efhd, const char *name);
49 void em_format_html_display_set_animate(EMFormatHTMLDisplay *efhd, gboolean state);
50 void em_format_html_display_set_caret_mode(EMFormatHTMLDisplay *efhd, gboolean state);
52 void em_format_html_display_set_search(EMFormatHTMLDisplay *efhd, int type, GSList *strings);
53 void em_format_html_display_search(EMFormatHTMLDisplay *efhd);
54 void em_format_html_display_search_with (EMFormatHTMLDisplay *efhd, char *word);
55 void em_format_html_display_search_close (EMFormatHTMLDisplay *efhd);
57 GtkWidget *em_format_html_get_search_dialog (EMFormatHTMLDisplay *efhd);
59 void em_format_html_display_cut (EMFormatHTMLDisplay *efhd);
60 void em_format_html_display_copy (EMFormatHTMLDisplay *efhd);
61 void em_format_html_display_paste (EMFormatHTMLDisplay *efhd);
63 void em_format_html_display_zoom_in (EMFormatHTMLDisplay *efhd);
64 void em_format_html_display_zoom_out (EMFormatHTMLDisplay *efhd);
65 void em_format_html_display_zoom_reset (EMFormatHTMLDisplay *efhd);
66 EAttachmentBar *em_format_html_display_get_bar (EMFormatHTMLDisplay *efhd);
68 gboolean em_format_html_display_popup_menu (EMFormatHTMLDisplay *efhd);
70 /* experimental */
71 struct _EPopupExtension;
72 void em_format_html_display_set_popup(EMFormatHTMLDisplay *, struct _EPopupExtension *);
74 #endif /* !_EM_FORMAT_HTML_DISPLAY_H */