… | |
… | |
23 | #include <stdio.h> |
23 | #include <stdio.h> |
24 | #include <string.h> |
24 | #include <string.h> |
25 | #include "data.h" |
25 | #include "data.h" |
26 | #include "list.h" |
26 | #include "list.h" |
27 | #include "gen.h" |
27 | #include "gen.h" |
|
|
28 | #include "psiconv.h" |
28 | |
29 | |
29 | |
30 | |
30 | /* |
31 | /* |
31 | * Various string tables for RTF settings |
32 | * Various string tables for RTF settings |
32 | */ |
33 | */ |
… | |
… | |
519 | |
520 | |
520 | psiconv_list_free(fonts); |
521 | psiconv_list_free(fonts); |
521 | psiconv_list_free(colors); |
522 | psiconv_list_free(colors); |
522 | } |
523 | } |
523 | |
524 | |
524 | void psiconv_gen_rtf(FILE * of, psiconv_file file) |
525 | static int psiconv_gen_rtf(FILE * of, const psiconv_file file, const char *dest) |
525 | { |
526 | { |
526 | if (file->type == psiconv_word_file) |
527 | if (file->type == psiconv_word_file) { |
527 | psiconv_gen_rtf_word(of,(psiconv_word_f) file->file); |
528 | psiconv_gen_rtf_word(of,(psiconv_word_f) file->file); |
|
|
529 | return 0; |
528 | else if (file->type == psiconv_texted_file) |
530 | } else if (file->type == psiconv_texted_file) { |
529 | psiconv_gen_rtf_texted(of,(psiconv_texted_f) file->file); |
531 | psiconv_gen_rtf_texted(of,(psiconv_texted_f) file->file); |
530 | else |
|
|
531 | return; |
532 | return 0; |
|
|
533 | } else |
|
|
534 | return -1; |
532 | } |
535 | } |
533 | |
536 | |
|
|
537 | static struct psiconv_fileformat ff = |
|
|
538 | { |
|
|
539 | "RTF", |
|
|
540 | "Rich Text Format (not functional yet!)", |
|
|
541 | psiconv_gen_rtf |
|
|
542 | }; |
|
|
543 | |
|
|
544 | void init_rtf(void) |
|
|
545 | { |
|
|
546 | /* psiconv_list_add(fileformat_list,&ff); */ |
|
|
547 | } |
|
|
548 | |