… | |
… | |
21 | #define PSICONV_H |
21 | #define PSICONV_H |
22 | |
22 | |
23 | #include <psiconv/data.h> |
23 | #include <psiconv/data.h> |
24 | #include <psiconv/configuration.h> |
24 | #include <psiconv/configuration.h> |
25 | |
25 | |
|
|
26 | #define FORMAT_WORD 0x01 |
|
|
27 | #define FORMAT_TEXTED 0x02 |
|
|
28 | #define FORMAT_CLIPART_SINGLE 0x04 |
|
|
29 | #define FORMAT_CLIPART_MULTIPLE 0x08 |
|
|
30 | #define FORMAT_MBM_SINGLE 0x10 |
|
|
31 | #define FORMAT_MBM_MULTIPLE 0x20 |
|
|
32 | #define FORMAT_SKETCH 0x40 |
|
|
33 | |
26 | typedef enum |
34 | typedef enum |
27 | { |
35 | { |
28 | ENCODING_UTF8, |
36 | ENCODING_UTF8, |
29 | ENCODING_UCS2, |
37 | ENCODING_UCS2, |
30 | ENCODING_PSION, |
38 | ENCODING_PSION, |
31 | ENCODING_ASCII |
39 | ENCODING_ASCII, |
|
|
40 | ENCODING_ASCII_HTML |
32 | } encoding; |
41 | } encoding; |
33 | |
42 | |
34 | typedef int output_function(const psiconv_config config, |
43 | typedef int output_function(const psiconv_config config, |
35 | psiconv_list list, const psiconv_file file, |
44 | psiconv_list list, const psiconv_file file, |
36 | const char *type, |
45 | const char *type, |
37 | const encoding encoding_type); |
46 | const encoding encoding_type); |
38 | |
47 | |
39 | typedef struct fileformat_s { |
48 | typedef struct fileformat_s { |
40 | const char *name; |
49 | const char *name; |
41 | const char *description; |
50 | const char *description; |
|
|
51 | int supported_format; |
42 | output_function *output; |
52 | output_function *output; |
43 | } *fileformat; |
53 | } *fileformat; |
44 | |
54 | |
45 | psiconv_list fileformat_list; /* of struct psiconv_fileformat */ |
55 | psiconv_list fileformat_list; /* of struct psiconv_fileformat */ |
46 | |
56 | |