… | |
… | |
31 | to structs */ |
31 | to structs */ |
32 | |
32 | |
33 | #ifdef __cplusplus |
33 | #ifdef __cplusplus |
34 | extern "C" { |
34 | extern "C" { |
35 | #endif /* __cplusplus */ |
35 | #endif /* __cplusplus */ |
|
|
36 | |
|
|
37 | /* Forward declaration (for psiconv_object) */ |
|
|
38 | typedef struct psiconv_file_s *psiconv_file; |
36 | |
39 | |
37 | typedef double psiconv_float_t; |
40 | typedef double psiconv_float_t; |
38 | |
41 | |
39 | typedef enum psiconv_file_type { |
42 | typedef enum psiconv_file_type { |
40 | psiconv_unknown_file, |
43 | psiconv_unknown_file, |
… | |
… | |
225 | { |
228 | { |
226 | psiconv_u32 id; |
229 | psiconv_u32 id; |
227 | psiconv_string_t name; |
230 | psiconv_string_t name; |
228 | } *psiconv_application_id_section; |
231 | } *psiconv_application_id_section; |
229 | |
232 | |
|
|
233 | typedef struct psiconv_object_icon_section_s |
|
|
234 | { |
|
|
235 | psiconv_length_t icon_width; |
|
|
236 | psiconv_length_t icon_height; |
|
|
237 | psiconv_string_t icon_name; |
|
|
238 | } *psiconv_object_icon_section; |
|
|
239 | |
|
|
240 | typedef struct psiconv_object_display_section_s |
|
|
241 | { |
|
|
242 | psiconv_bool_t show_icon; |
|
|
243 | psiconv_length_t width; |
|
|
244 | psiconv_length_t height; |
|
|
245 | } *psiconv_object_display_section; |
|
|
246 | |
|
|
247 | typedef struct psiconv_object_s |
|
|
248 | { |
|
|
249 | psiconv_object_icon_section icon; |
|
|
250 | psiconv_object_display_section display; |
|
|
251 | psiconv_file object; |
|
|
252 | } *psiconv_object; |
|
|
253 | |
230 | typedef struct psiconv_in_line_layout_s |
254 | typedef struct psiconv_in_line_layout_s |
231 | { |
255 | { |
232 | psiconv_character_layout layout; |
256 | psiconv_character_layout layout; |
233 | int length; |
257 | int length; |
|
|
258 | /* If object is NULL, this does not apply to an object */ |
|
|
259 | psiconv_object object; |
|
|
260 | psiconv_length_t object_width; |
|
|
261 | psiconv_length_t object_height; |
234 | } *psiconv_in_line_layout; |
262 | } *psiconv_in_line_layout; |
235 | |
263 | |
236 | typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */ |
264 | typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */ |
237 | |
265 | |
238 | typedef enum psiconv_replacement_type |
266 | typedef enum psiconv_replacement_type |
… | |
… | |
791 | psiconv_page_layout_section page_sec; |
819 | psiconv_page_layout_section page_sec; |
792 | psiconv_sheet_status_section status_sec; |
820 | psiconv_sheet_status_section status_sec; |
793 | psiconv_sheet_workbook_section workbook_sec; |
821 | psiconv_sheet_workbook_section workbook_sec; |
794 | } *psiconv_sheet_f; |
822 | } *psiconv_sheet_f; |
795 | |
823 | |
|
|
824 | /* NB: psiconv_file is already defined above */ |
796 | typedef struct psiconv_file_s |
825 | struct psiconv_file_s |
797 | { |
826 | { |
798 | psiconv_file_type_t type; |
827 | psiconv_file_type_t type; |
799 | void *file; |
828 | void *file; |
800 | } *psiconv_file; |
829 | }; |
801 | |
830 | |
802 | |
831 | |
803 | /* UID1 */ |
832 | /* UID1 */ |
804 | #define PSICONV_ID_PSION5 0x10000037 |
833 | #define PSICONV_ID_PSION5 0x10000037 |
805 | #define PSICONV_ID_CLIPART 0x10000041 |
834 | #define PSICONV_ID_CLIPART 0x10000041 |
… | |
… | |
907 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
936 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
908 | extern void psiconv_free_section_table_section |
937 | extern void psiconv_free_section_table_section |
909 | (psiconv_section_table_section section); |
938 | (psiconv_section_table_section section); |
910 | extern void psiconv_free_application_id_section |
939 | extern void psiconv_free_application_id_section |
911 | (psiconv_application_id_section section); |
940 | (psiconv_application_id_section section); |
|
|
941 | extern void psiconv_free_object_display_section |
|
|
942 | (psiconv_object_display_section section); |
|
|
943 | extern void psiconv_free_object_icon_section |
|
|
944 | (psiconv_object_icon_section section); |
|
|
945 | extern void psiconv_free_object(psiconv_object object); |
912 | extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout); |
946 | extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout); |
913 | extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts); |
947 | extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts); |
914 | extern void psiconv_free_replacement(psiconv_replacement replacement); |
948 | extern void psiconv_free_replacement(psiconv_replacement replacement); |
915 | extern void psiconv_free_replacements(psiconv_replacements replacements); |
949 | extern void psiconv_free_replacements(psiconv_replacements replacements); |
916 | extern void psiconv_free_paragraph(psiconv_paragraph paragraph); |
950 | extern void psiconv_free_paragraph(psiconv_paragraph paragraph); |