2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 2002 Match Grun
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * Definitions for an E-Mail address harvester.
24 #ifndef __EXPORT_HTML_H__
25 #define __EXPORT_HTML_H__
29 #include "addrcache.h"
32 #define EXPORT_HTML_ID_NONE 0
33 #define EXPORT_HTML_ID_DEFAULT 1
34 #define EXPORT_HTML_ID_FULL 2
35 #define EXPORT_HTML_ID_CUSTOM 3
36 #define EXPORT_HTML_ID_CUSTOM2 4
37 #define EXPORT_HTML_ID_CUSTOM3 5
38 #define EXPORT_HTML_ID_CUSTOM4 6
40 #define EXPORT_HTML_FIRST_LAST 0
41 #define EXPORT_HTML_LAST_FIRST 1
43 /* Export HTML control data */
44 typedef struct _ExportHtmlCtl ExportHtmlCtl
;
45 struct _ExportHtmlCtl
{
61 /* Function prototypes */
62 ExportHtmlCtl
*exporthtml_create( void );
63 void exporthtml_free ( ExportHtmlCtl
*ctl
);
64 void exporthtml_set_path ( ExportHtmlCtl
*ctl
,
66 void exporthtml_set_file_html ( ExportHtmlCtl
*ctl
,
68 void exporthtml_set_encoding ( ExportHtmlCtl
*ctl
,
70 void exporthtml_set_stylesheet ( ExportHtmlCtl
*ctl
,
72 void exporthtml_set_name_format ( ExportHtmlCtl
*ctl
,
74 void exporthtml_set_banding ( ExportHtmlCtl
*ctl
,
75 const gboolean value
);
76 void exporthtml_set_link_email ( ExportHtmlCtl
*ctl
,
77 const gboolean value
);
78 void exporthtml_set_attributes ( ExportHtmlCtl
*ctl
,
79 const gboolean value
);
80 void exporthtml_process ( ExportHtmlCtl
*ctl
,
81 AddressCache
*cache
);
82 gboolean
exporthtml_test_dir ( ExportHtmlCtl
*ctl
);
83 gboolean
exporthtml_create_dir ( ExportHtmlCtl
*ctl
);
84 gchar
*exporthtml_get_create_msg( ExportHtmlCtl
*ctl
);
86 void exporthtml_parse_filespec ( ExportHtmlCtl
*ctl
,
88 void exporthtml_load_settings ( ExportHtmlCtl
*ctl
);
89 void exporthtml_save_settings ( ExportHtmlCtl
*ctl
);
91 #endif /* __EXPORT_HTML_H__ */