… | |
… | |
392 | typedef struct psiconv_mbm_f_s |
392 | typedef struct psiconv_mbm_f_s |
393 | { |
393 | { |
394 | psiconv_pictures sections; |
394 | psiconv_pictures sections; |
395 | } *psiconv_mbm_f; |
395 | } *psiconv_mbm_f; |
396 | |
396 | |
397 | /* This is a little intricated. A picture may be embedded in a larger form. |
397 | /* Read the Psiconv file format documentation for a complete discription. |
398 | A form is empty, except for the picture. The form has size form_{x,y}size, |
398 | Basic idea: a picture has a certain display size. Within it, the pixel |
399 | and the picture is at offset picture_{x,y}_offset within the form. The |
399 | data begins at a certain offset. Around it, there is an empty form. |
400 | picture itself has size picture_{x,y}size. |
400 | The first eight values are before magnification and cuts. |
401 | Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0 |
401 | Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0 |
402 | cuts everything away. */ |
402 | cuts everything away. */ |
403 | typedef struct psiconv_sketch_section_s |
403 | typedef struct psiconv_sketch_section_s |
404 | { |
404 | { |
|
|
405 | psiconv_u16 displayed_xsize; |
|
|
406 | psiconv_u16 displayed_ysize; |
|
|
407 | psiconv_u16 picture_data_x_offset; |
|
|
408 | psiconv_u16 picture_data_y_offset; |
405 | psiconv_u16 form_xsize; |
409 | psiconv_u16 form_xsize; |
406 | psiconv_u16 form_ysize; |
410 | psiconv_u16 form_ysize; |
407 | psiconv_u16 picture_x_offset; |
411 | psiconv_u16 displayed_size_x_offset; |
408 | psiconv_u16 picture_y_offset; |
412 | psiconv_u16 displayed_size_y_offset; |
409 | psiconv_u16 picture_xsize; |
|
|
410 | psiconv_u16 picture_ysize; |
|
|
411 | float magnification_x; /* computed relative to first six values */ |
413 | float magnification_x; /* computed relative to first eight values */ |
412 | float magnification_y; /* computed relative to first six values */ |
414 | float magnification_y; /* computed relative to first eight values */ |
413 | float cut_left; /* computed relative to first six values */ |
415 | float cut_left; /* computed relative to first eight values */ |
414 | float cut_right; /* computed relative to first six values */ |
416 | float cut_right; /* computed relative to first eight values */ |
415 | float cut_top; /* computed relative to first six values */ |
417 | float cut_top; /* computed relative to first eight values */ |
416 | float cut_bottom; /* computed relative to first six values */ |
418 | float cut_bottom; /* computed relative to first eight values */ |
417 | psiconv_paint_data_section picture; |
419 | psiconv_paint_data_section picture; |
418 | } *psiconv_sketch_section; |
420 | } *psiconv_sketch_section; |
419 | |
421 | |
420 | typedef struct psiconv_sketch_f_s |
422 | typedef struct psiconv_sketch_f_s |
421 | { |
423 | { |
… | |
… | |
863 | #define PSICONV_ID_TEXTED_LAYOUT 0x10000066 |
865 | #define PSICONV_ID_TEXTED_LAYOUT 0x10000066 |
864 | #define PSICONV_ID_TEXTED_TEXT 0x10000064 |
866 | #define PSICONV_ID_TEXTED_TEXT 0x10000064 |
865 | #define PSICONV_ID_STYLE_REMOVABLE 0x1000004F |
867 | #define PSICONV_ID_STYLE_REMOVABLE 0x1000004F |
866 | #define PSICONV_ID_STYLE_BUILT_IN 0x1000004C |
868 | #define PSICONV_ID_STYLE_BUILT_IN 0x1000004C |
867 | #define PSICONV_ID_CLIPART_ITEM 0x10000040 |
869 | #define PSICONV_ID_CLIPART_ITEM 0x10000040 |
|
|
870 | #define PSICONV_ID_OBJECT 0x10000051 |
|
|
871 | #define PSICONV_ID_OBJECT_DISPLAY_SECTION 0x10000146 |
|
|
872 | #define PSICONV_ID_OBJECT_ICON_SECTION 0x1000012A |
|
|
873 | #define PSICONV_ID_OBJECT_SECTION_TABLE_SECTION 0x10000144 |
868 | |
874 | |
869 | |
875 | |
870 | /* Return a clean layout_status. You can modify it at will. Returns NULL |
876 | /* Return a clean layout_status. You can modify it at will. Returns NULL |
871 | if there is not enough memory. */ |
877 | if there is not enough memory. */ |
872 | extern psiconv_character_layout psiconv_basic_character_layout(void); |
878 | extern psiconv_character_layout psiconv_basic_character_layout(void); |