Trying to list of types and fields to save to implement full load/store of Gnumeric spreadsheets. Daniel V. $Id: saving.txt,v 1.1 1999/02/17 00:11:58 pablo Exp $ -------------- Workbook : a set of spreadsheets + a style -------------- Workbook: Style . style Sheet[] sheets -------------- Style : specific rendering informations -------------- Style StyleFormat format StyleFont font StyleBorder border StyleShade shading int halign int valign int orientation StyleFormat char *format StyleFont char *font_name int units StyleBorder int left int right int top int bottom GdkColor left_color GdkColor right_color GdkColor top_color GdkColor bottom_color GdkColor ushort red ushort green ushort blue StyleShade pattern ------------ Sheet : big container, especially a set of Cells ----------- Sheet Workbook parent_workbook /* save as URI if Sheet saved independantly ? */ char *name double last_zoom_factor_used Style style ColRowInfo default_col_style ColRowInfo cols_info[] ColRowInfo default_row_style ColRowInfo rows_info[] Cells cell_hash[] int max_col_used int max_row_used ColRowInfo int pos Style style int units int margin_a int margin_b int pixels Cell ColRowInfo *col /* should save the pos value */ ColRowInfo *row /* should save the pos value */ char *entered_text int flags /* should it be save ? Don't think so */ ============================================================================ Sun Jul 26 17:34:14 EDT 1998 Saving the "default" Workbook produces: ---------------------- default.wb ------------------------ Sheet 0 ---------------------------------------------------------- and Sheet_0 (lack a suffix ...). Note that the ref_count on FontStyle is respected by using NAME and HREF attribs so that they (will) share the same pointer when reloaded. --------------------------- Sheet_0 ---------------------- Sheet 0 40 40 1.000000 -adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-* --------------------------------------------------------------------