… | |
… | |
94 | static void psiconv_gen_txt_texted(FILE * of, psiconv_texted_f tf) |
94 | static void psiconv_gen_txt_texted(FILE * of, psiconv_texted_f tf) |
95 | { |
95 | { |
96 | int i; |
96 | int i; |
97 | psiconv_paragraph para; |
97 | psiconv_paragraph para; |
98 | |
98 | |
|
|
99 | if (tf->page_sec->header->text) { |
99 | if (tf->page_sec->header->on_first_page) { |
100 | if (tf->page_sec->header->on_first_page) { |
100 | for (i=0; i < psiconv_list_length(tf->page_sec->header->text->paragraphs); i++) { |
101 | for (i=0; i < psiconv_list_length(tf->page_sec->header->text->paragraphs); i++) { |
101 | para = psiconv_list_get(tf->page_sec->header->text->paragraphs, i); |
102 | para = psiconv_list_get(tf->page_sec->header->text->paragraphs, i); |
102 | fput_text(of, para->text, strlen(para->text)); |
103 | fput_text(of, para->text, strlen(para->text)); |
103 | fputs("\n", of); |
104 | fputs("\n", of); |
|
|
105 | } |
104 | } |
106 | } |
105 | } |
107 | } |
106 | fputs("\n",of); |
108 | fputs("\n",of); |
107 | |
109 | |
108 | for (i=0; i < psiconv_list_length(tf->texted_sec->paragraphs); i++) { |
110 | for (i=0; i < psiconv_list_length(tf->texted_sec->paragraphs); i++) { |
109 | para = psiconv_list_get(tf->texted_sec->paragraphs, i); |
111 | para = psiconv_list_get(tf->texted_sec->paragraphs, i); |
110 | fput_para(of, para,0); |
112 | fput_para(of, para,0); |
111 | } |
113 | } |
112 | |
114 | |
113 | fputs("\n",of); |
115 | fputs("\n",of); |
|
|
116 | if (tf->page_sec->header->text) { |
114 | for (i=0; i < psiconv_list_length(tf->page_sec->footer->text->paragraphs); i++) { |
117 | for (i=0; i < psiconv_list_length(tf->page_sec->footer->text->paragraphs); i++) { |
115 | para = psiconv_list_get(tf->page_sec->footer->text->paragraphs, i); |
118 | para = psiconv_list_get(tf->page_sec->footer->text->paragraphs, i); |
116 | fput_text(of, para->text, strlen(para->text)); |
119 | fput_text(of, para->text, strlen(para->text)); |
117 | fputs("\n", of); |
120 | fputs("\n", of); |
|
|
121 | } |
118 | } |
122 | } |
119 | } |
123 | } |
120 | |
124 | |
121 | static void psiconv_gen_txt_word(FILE * of, psiconv_word_f wf) |
125 | static void psiconv_gen_txt_word(FILE * of, psiconv_word_f wf) |
122 | { |
126 | { |