/[public]/psiconv/trunk/lib/psiconv/data.h
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/data.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 158 Revision 159
31 to structs */ 31 to structs */
32 32
33#ifdef __cplusplus 33#ifdef __cplusplus
34extern "C" { 34extern "C" {
35#endif /* __cplusplus */ 35#endif /* __cplusplus */
36
37/* Forward declaration (for psiconv_object) */
38typedef struct psiconv_file_s *psiconv_file;
36 39
37typedef double psiconv_float_t; 40typedef double psiconv_float_t;
38 41
39typedef enum psiconv_file_type { 42typedef 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
233typedef 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
240typedef 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
247typedef 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
230typedef struct psiconv_in_line_layout_s 254typedef 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
236typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */ 264typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */
237 265
238typedef enum psiconv_replacement_type 266typedef 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 */
796typedef struct psiconv_file_s 825struct 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
907extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); 936extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry);
908extern void psiconv_free_section_table_section 937extern void psiconv_free_section_table_section
909 (psiconv_section_table_section section); 938 (psiconv_section_table_section section);
910extern void psiconv_free_application_id_section 939extern void psiconv_free_application_id_section
911 (psiconv_application_id_section section); 940 (psiconv_application_id_section section);
941extern void psiconv_free_object_display_section
942 (psiconv_object_display_section section);
943extern void psiconv_free_object_icon_section
944 (psiconv_object_icon_section section);
945extern void psiconv_free_object(psiconv_object object);
912extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout); 946extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout);
913extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts); 947extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts);
914extern void psiconv_free_replacement(psiconv_replacement replacement); 948extern void psiconv_free_replacement(psiconv_replacement replacement);
915extern void psiconv_free_replacements(psiconv_replacements replacements); 949extern void psiconv_free_replacements(psiconv_replacements replacements);
916extern void psiconv_free_paragraph(psiconv_paragraph paragraph); 950extern void psiconv_free_paragraph(psiconv_paragraph paragraph);

Legend:
Removed from v.158  
changed lines
  Added in v.159

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26