aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-print.h
blob: 78e3139e0fdb155ff797a9ceb619a71a92e4899d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

/*
  Concrete class for formatting mails to displayed html
*/

#ifndef _EM_FORMAT_HTML_PRINT_H
#define _EM_FORMAT_HTML_PRINT_H

#include "em-format-html.h"

struct _GnomePrintConfig;

typedef struct _EMFormatHTMLPrint EMFormatHTMLPrint;
typedef struct _EMFormatHTMLPrintClass EMFormatHTMLPrintClass;

struct _CamelMimePart;

struct _EMFormatHTMLPrint {
    EMFormatHTML formathtml;

    struct _GtkWidget *window;  /* used to realise the gtkhtml in a toplevel, i dont know why */
    struct _GnomePrintConfig *config;

    int preview:1;
};

struct _EMFormatHTMLPrintClass {
    EMFormatHTMLClass formathtml_class;
};

GType em_format_html_print_get_type(void);

EMFormatHTMLPrint *em_format_html_print_new(void);

int em_format_html_print_print(EMFormatHTMLPrint *efhp, struct _CamelMedium *msg, EMFormatHTML *source, struct _GnomePrintConfig *print_config, int preview);

#endif /* ! _EM_FORMAT_HTML_PRINT_H */