/[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 97 Revision 101
32 32
33#ifdef __cplusplus 33#ifdef __cplusplus
34extern "C" { 34extern "C" {
35#endif /* __cplusplus */ 35#endif /* __cplusplus */
36 36
37typedef double psiconv_float_t;
37 38
38typedef enum psiconv_file_type { 39typedef enum psiconv_file_type {
39 psiconv_unknown_file, 40 psiconv_unknown_file,
40 psiconv_word_file, 41 psiconv_word_file,
41 psiconv_texted_file, 42 psiconv_texted_file,
418 psiconv_u32 graph_display_size; 419 psiconv_u32 graph_display_size;
419 psiconv_triple_t show_horizontal_scrollbar; 420 psiconv_triple_t show_horizontal_scrollbar;
420 psiconv_triple_t show_vertical_scrollbar; 421 psiconv_triple_t show_vertical_scrollbar;
421} *psiconv_sheet_status_section; 422} *psiconv_sheet_status_section;
422 423
424typedef enum psiconv_formula_type
425{
426 psiconv_formula_unknown,
427 psiconv_formula_op_lt,
428 psiconv_formula_op_le,
429 psiconv_formula_op_gt,
430 psiconv_formula_op_ge,
431 psiconv_formula_op_ne,
432 psiconv_formula_op_eq,
433 psiconv_formula_op_add,
434 psiconv_formula_op_sub,
435 psiconv_formula_op_mul,
436 psiconv_formula_op_div,
437 psiconv_formula_op_pow,
438 psiconv_formula_op_pos,
439 psiconv_formula_op_neg,
440 psiconv_formula_op_con,
441 psiconv_formula_op_bra,
442 psiconv_formula_mark_eof,
443 psiconv_formula_dat_float,
444 psiconv_formula_dat_int,
445 psiconv_formula_dat_var,
446 psiconv_formula_dat_string,
447 psiconv_formula_dat_cellref,
448 psiconv_formula_dat_cellblock,
449 psiconv_formula_dat_vcellblock,
450 psiconv_formula_mark_opsep,
451 psiconv_formula_mark_opend,
452 psiconv_formula_fun_false,
453 psiconv_formula_fun_if,
454 psiconv_formula_fun_true,
455 psiconv_formula_fun_cell,
456 psiconv_formula_fun_errortype,
457 psiconv_formula_fun_isblank,
458 psiconv_formula_fun_iserr,
459 psiconv_formula_fun_iserror,
460 psiconv_formula_fun_islogical,
461 psiconv_formula_fun_isna,
462 psiconv_formula_fun_isnontext,
463 psiconv_formula_fun_isnumber,
464 psiconv_formula_fun_istext,
465 psiconv_formula_fun_n,
466 psiconv_formula_fun_type,
467 psiconv_formula_fun_address,
468 psiconv_formula_fun_column,
469 psiconv_formula_fun_columns,
470 psiconv_formula_fun_hlookup,
471 psiconv_formula_fun_index,
472 psiconv_formula_fun_indirect,
473 psiconv_formula_fun_lookup,
474 psiconv_formula_fun_offset,
475 psiconv_formula_fun_row,
476 psiconv_formula_fun_rows,
477 psiconv_formula_fun_vlookup,
478 psiconv_formula_fun_char,
479 psiconv_formula_fun_code,
480 psiconv_formula_fun_exact,
481 psiconv_formula_fun_find,
482 psiconv_formula_fun_left,
483 psiconv_formula_fun_len,
484 psiconv_formula_fun_lower,
485 psiconv_formula_fun_mid,
486 psiconv_formula_fun_proper,
487 psiconv_formula_fun_replace,
488 psiconv_formula_fun_rept,
489 psiconv_formula_fun_right,
490 psiconv_formula_fun_string,
491 psiconv_formula_fun_t,
492 psiconv_formula_fun_trim,
493 psiconv_formula_fun_upper,
494 psiconv_formula_fun_value,
495 psiconv_formula_fun_date,
496 psiconv_formula_fun_datevalue,
497 psiconv_formula_fun_day,
498 psiconv_formula_fun_hour,
499 psiconv_formula_fun_minute,
500 psiconv_formula_fun_month,
501 psiconv_formula_fun_now,
502 psiconv_formula_fun_second,
503 psiconv_formula_fun_today,
504 psiconv_formula_fun_time,
505 psiconv_formula_fun_timevalue,
506 psiconv_formula_fun_year,
507 psiconv_formula_fun_abs,
508 psiconv_formula_fun_acos,
509 psiconv_formula_fun_asin,
510 psiconv_formula_fun_atan,
511 psiconv_formula_fun_atan2,
512 psiconv_formula_fun_cos,
513 psiconv_formula_fun_degrees,
514 psiconv_formula_fun_exp,
515 psiconv_formula_fun_fact,
516 psiconv_formula_fun_int,
517 psiconv_formula_fun_ln,
518 psiconv_formula_fun_log10,
519 psiconv_formula_fun_mod,
520 psiconv_formula_fun_pi,
521 psiconv_formula_fun_radians,
522 psiconv_formula_fun_rand,
523 psiconv_formula_fun_round,
524 psiconv_formula_fun_sign,
525 psiconv_formula_fun_sin,
526 psiconv_formula_fun_sqrt,
527 psiconv_formula_fun_sumproduct,
528 psiconv_formula_fun_tan,
529 psiconv_formula_fun_trunc,
530 psiconv_formula_fun_cterm,
531 psiconv_formula_fun_ddb,
532 psiconv_formula_fun_fv,
533 psiconv_formula_fun_irr,
534 psiconv_formula_fun_npv,
535 psiconv_formula_fun_pmt,
536 psiconv_formula_fun_pv,
537 psiconv_formula_fun_rate,
538 psiconv_formula_fun_sln,
539 psiconv_formula_fun_syd,
540 psiconv_formula_fun_term,
541 psiconv_formula_fun_combin,
542 psiconv_formula_fun_permut,
543 psiconv_formula_vfn_average,
544 psiconv_formula_vfn_choose,
545 psiconv_formula_vfn_count,
546 psiconv_formula_vfn_counta,
547 psiconv_formula_vfn_countblank,
548 psiconv_formula_vfn_max,
549 psiconv_formula_vfn_min,
550 psiconv_formula_vfn_product,
551 psiconv_formula_vfn_stdevp,
552 psiconv_formula_vfn_stdev,
553 psiconv_formula_vfn_sum,
554 psiconv_formula_vfn_sumsq,
555 psiconv_formula_vfn_varp,
556 psiconv_formula_vfn_var
557} psiconv_formula_type_t;
558
559typedef psiconv_list psiconv_formula_list; /* Of struct psiconv_formula_s */
560
423typedef struct psiconv_sheet_formula_s 561typedef struct psiconv_formula_s
424{ 562{
425 int dummy; 563 psiconv_formula_type_t type;
564 union {
565 psiconv_u32 dat_int;
566 double dat_float;
567 char *dat_string;
568 psiconv_formula_list fun_operands;
569 } data;
426} *psiconv_sheet_formula; 570} *psiconv_formula;
427
428typedef psiconv_list psiconv_sheet_formula_list; /* Of struct psiconv_formula */
429 571
430typedef struct psiconv_sheet_workbook_section_s 572typedef struct psiconv_sheet_workbook_section_s
431{ 573{
432 psiconv_sheet_formula_list formulas; 574 psiconv_formula_list formulas;
433} *psiconv_sheet_workbook_section; 575} *psiconv_sheet_workbook_section;
434 576
435typedef struct psiconv_sheet_f_s 577typedef struct psiconv_sheet_f_s
436{ 578{
437 psiconv_page_layout_section page_sec; 579 psiconv_page_layout_section page_sec;
511extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); 653extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout);
512extern void psiconv_free_character_layout(psiconv_character_layout layout); 654extern void psiconv_free_character_layout(psiconv_character_layout layout);
513extern void psiconv_free_word_style(psiconv_word_style style); 655extern void psiconv_free_word_style(psiconv_word_style style);
514extern void psiconv_free_word_styles_section 656extern void psiconv_free_word_styles_section
515 (psiconv_word_styles_section styles); 657 (psiconv_word_styles_section styles);
516extern void psiconv_free_sheet_formula(psiconv_sheet_formula formula); 658extern void psiconv_free_formula(psiconv_formula formula);
517extern void psiconv_free_sheet_formula_list(psiconv_sheet_formula_list list); 659extern void psiconv_free_formula_list(psiconv_formula_list list);
518extern void psiconv_free_sheet_status_section 660extern void psiconv_free_sheet_status_section
519 (psiconv_sheet_status_section section); 661 (psiconv_sheet_status_section section);
520extern void psiconv_free_sheet_f(psiconv_sheet_f file); 662extern void psiconv_free_sheet_f(psiconv_sheet_f file);
521extern void psiconv_free_header_section(psiconv_header_section header); 663extern void psiconv_free_header_section(psiconv_header_section header);
522extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); 664extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry);

Legend:
Removed from v.97  
changed lines
  Added in v.101

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