Annotation of win32/gnome/gmime-x.x.x/gmime-filter-html.h, revision 1.1

1.1     ! paf         1: /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
        !             2: /*
        !             3:  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
        !             4:  *
        !             5:  *  Copyright 2001 Ximian, Inc. (www.ximian.com)
        !             6:  *
        !             7:  *  This program is free software; you can redistribute it and/or modify
        !             8:  *  it under the terms of the GNU General Public License as published by
        !             9:  *  the Free Software Foundation; either version 2 of the License, or
        !            10:  *  (at your option) any later version.
        !            11:  *
        !            12:  *  This program is distributed in the hope that it will be useful,
        !            13:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            14:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            15:  *  GNU General Public License for more details.
        !            16:  *
        !            17:  *  You should have received a copy of the GNU General Public License
        !            18:  *  along with this program; if not, write to the Free Software
        !            19:  *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
        !            20:  *
        !            21:  */
        !            22: 
        !            23: 
        !            24: #ifndef __G_MIME_FILTER_HTML_H__
        !            25: #define __G_MIME_FILTER_HTML_H__
        !            26: 
        !            27: #ifdef __cplusplus
        !            28: extern "C" {
        !            29: //#pragma }
        !            30: #endif /* __cplusplus */
        !            31: 
        !            32: #include "gmime-filter.h"
        !            33: 
        !            34: 
        !            35: /**
        !            36:  * GMIME_FILTER_HTML_PRE:
        !            37:  *
        !            38:  * Wrap stream in <pre> tags.
        !            39:  **/
        !            40: #define GMIME_FILTER_HTML_PRE               (1 << 0)
        !            41: 
        !            42: 
        !            43: /**
        !            44:  * GMIME_FILTER_HTML_CONVERT_NL:
        !            45:  *
        !            46:  * Convert new-lines ('\n') into <br> tags.
        !            47:  **/
        !            48: #define GMIME_FILTER_HTML_CONVERT_NL        (1 << 1)
        !            49: 
        !            50: 
        !            51: /**
        !            52:  * GMIME_FILTER_HTML_CONVERT_SPACES:
        !            53:  *
        !            54:  * Preserve whitespace by converting spaces into their appropriate
        !            55:  * html entities.
        !            56:  **/
        !            57: #define GMIME_FILTER_HTML_CONVERT_SPACES    (1 << 2)
        !            58: 
        !            59: 
        !            60: /**
        !            61:  * GMIME_FILTER_HTML_CONVERT_URLS:
        !            62:  *
        !            63:  * Wrap detected URLs in <a href=...> tags.
        !            64:  **/
        !            65: #define GMIME_FILTER_HTML_CONVERT_URLS      (1 << 3)
        !            66: 
        !            67: 
        !            68: /**
        !            69:  * GMIME_FILTER_HTML_MARK_CITATION:
        !            70:  *
        !            71:  * Change the colour of citation text.
        !            72:  **/
        !            73: #define GMIME_FILTER_HTML_MARK_CITATION     (1 << 4)
        !            74: 
        !            75: 
        !            76: /**
        !            77:  * GMIME_FILTER_HTML_CONVERT_ADDRESSES:
        !            78:  *
        !            79:  * Wrap email addresses in "mailto:" href tags.
        !            80:  **/
        !            81: #define GMIME_FILTER_HTML_CONVERT_ADDRESSES (1 << 5)
        !            82: 
        !            83: 
        !            84: /**
        !            85:  * GMIME_FILTER_HTML_ESCAPE_8BIT:
        !            86:  *
        !            87:  * Converts 8bit characters to '?'.
        !            88:  **/
        !            89: #define GMIME_FILTER_HTML_ESCAPE_8BIT       (1 << 6)
        !            90: 
        !            91: 
        !            92: /**
        !            93:  * GMIME_FILTER_HTML_CITE:
        !            94:  *
        !            95:  * Cites text by prepending "> " to each cited line.
        !            96:  **/
        !            97: #define GMIME_FILTER_HTML_CITE              (1 << 7)
        !            98: 
        !            99: 
        !           100: typedef struct _GMimeFilterHTML {
        !           101:        GMimeFilter parent;
        !           102:        
        !           103:        guint32 flags;
        !           104:        guint32 colour;
        !           105:        
        !           106:        guint32 column       : 29;
        !           107:        guint32 pre_open     : 1;
        !           108:        guint32 saw_citation : 1;
        !           109:        guint32 coloured     : 1;
        !           110: } GMimeFilterHTML;
        !           111: 
        !           112: GMimeFilter *g_mime_filter_html_new (guint32 flags, guint32 colour);
        !           113: 
        !           114: #ifdef __cplusplus
        !           115: }
        !           116: #endif /* __cplusplus */
        !           117: 
        !           118: #endif /* __GMIME_FILTER_HTML_H__ */

E-mail: