1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of the GNU Lesser General Public License as published by
4  * the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful, but
7  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9  * for more details.
10  *
11  * You should have received a copy of the GNU Lesser General Public License
12  * along with this program; if not, see <http://www.gnu.org/licenses/>.
13  *
14  *
15  * Authors:
16  *		Dan Winship <danw@ximian.com>
17  *
18  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
19  *
20  */
21 
22 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
23 #error "Only <e-util/e-util.h> should be included directly."
24 #endif
25 
26 #ifndef __E_HTML_UTILS__
27 #define __E_HTML_UTILS__
28 
29 #include <glib.h>
30 
31 #define E_TEXT_TO_HTML_PRE                (1 << 0)
32 #define E_TEXT_TO_HTML_CONVERT_NL         (1 << 1)
33 #define E_TEXT_TO_HTML_CONVERT_SPACES     (1 << 2)
34 #define E_TEXT_TO_HTML_CONVERT_URLS       (1 << 3)
35 #define E_TEXT_TO_HTML_MARK_CITATION      (1 << 4)
36 #define E_TEXT_TO_HTML_CONVERT_ADDRESSES  (1 << 5)
37 #define E_TEXT_TO_HTML_ESCAPE_8BIT        (1 << 6)
38 #define E_TEXT_TO_HTML_CITE               (1 << 7)
39 #define E_TEXT_TO_HTML_HIDE_URL_SCHEME    (1 << 8)
40 #define E_TEXT_TO_HTML_URL_IS_WHOLE_TEXT  (1 << 9)
41 #define E_TEXT_TO_HTML_CONVERT_ALL_SPACES (1 << 10)
42 #define E_TEXT_TO_HTML_LAST_FLAG          (1 << 11)
43 
44 gchar *e_text_to_html_full (const gchar *input, guint flags, guint32 color);
45 gchar *e_text_to_html      (const gchar *input, guint flags);
46 
47 #endif /* __E_HTML_UTILS__ */
48