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

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

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

Revision 99 Revision 110
151 0.0, /* space_below */ 151 0.0, /* space_below */
152 psiconv_bool_false, /* keep_together */ 152 psiconv_bool_false, /* keep_together */
153 psiconv_bool_false, /* keep_with_next */ 153 psiconv_bool_false, /* keep_with_next */
154 psiconv_bool_false, /* on_next_page */ 154 psiconv_bool_false, /* on_next_page */
155 psiconv_bool_false, /* no_widow_protection */ 155 psiconv_bool_false, /* no_widow_protection */
156 psiconv_bool_false, /* wrap_to_fit_cell */
156 0.0, /* left_margin */ 157 0.0, /* left_margin */
157 &bullet, /* bullet */ 158 &bullet, /* bullet */
158 &no_border, /* left_border */ 159 &no_border, /* left_border */
159 &no_border, /* right_border */ 160 &no_border, /* right_border */
160 &no_border, /* top_border */ 161 &no_border, /* top_border */
546{ 547{
547 if (section) 548 if (section)
548 free(section); 549 free(section);
549} 550}
550 551
552void psiconv_free_numberformat(psiconv_numberformat numberformat)
553{
554 if (numberformat)
555 free(numberformat);
556}
557
558void psiconv_free_sheet_cell(psiconv_sheet_cell cell)
559{
560 if (cell) {
561 psiconv_free_paragraph_layout(cell->paragraph);
562 psiconv_free_character_layout(cell->character);
563 psiconv_free_numberformat(cell->numberformat);
564
565 if ((cell->type == psiconv_cell_string) && (cell->data.dat_string))
566 free(cell->data.dat_string);
567
568 free(cell);
569 }
570}
571
572void psiconv_free_sheet_cell_aux(void *data)
573{
574 psiconv_sheet_cell cell;
575 cell = data;
576 psiconv_free_sheet_cell(cell);
577}
578
579void psiconv_free_sheet_cell_list(psiconv_sheet_cell_list list)
580{
581 if (list)
582 psiconv_list_free_el(list,psiconv_free_sheet_cell_aux);
583}
584
585void psiconv_free_sheet_worksheet_section(
586 psiconv_sheet_worksheet_section section)
587{
588 if (section) {
589 psiconv_free_paragraph_layout(section->paragraph);
590 psiconv_free_character_layout(section->character);
591 psiconv_free_numberformat(section->numberformat);
592 psiconv_free_sheet_cell_list(section->cells);
593 free(section);
594 }
595}
596
551void psiconv_free_formula_aux(void *data) 597void psiconv_free_formula_aux(void *data)
552{ 598{
553 psiconv_formula formula; 599 psiconv_formula formula;
554 formula = data; 600 formula = data;
555 if (formula->type == psiconv_formula_dat_string) 601 if (formula->type == psiconv_formula_dat_string)
583 629
584void psiconv_free_sheet_workbook_section(psiconv_sheet_workbook_section section) 630void psiconv_free_sheet_workbook_section(psiconv_sheet_workbook_section section)
585{ 631{
586 if (section) { 632 if (section) {
587 psiconv_free_formula_list(section->formulas); 633 psiconv_free_formula_list(section->formulas);
634 psiconv_free_sheet_worksheet_section(section->worksheet);
588 free(section); 635 free(section);
589 } 636 }
590} 637}
591 638
592void psiconv_free_sheet_f(psiconv_sheet_f file) 639void psiconv_free_sheet_f(psiconv_sheet_f file)

Legend:
Removed from v.99  
changed lines
  Added in v.110

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