1. 07 May, 2005 1 commit
    • Jody Goldberg's avatar
      We do not need the VARARG vs FIXED flags anymore min_args vs max_args is · 94ca1328
      Jody Goldberg authored
      
      2005-04-23  Jody Goldberg <jody@gnome.org>
      
      	* ms-formula-read.c (excel_func_desc) : We do not need the VARARG vs
      	  FIXED flags anymore min_args vs max_args is enough.  Replace both
      	  with XL_STD.
      	(make_function) : No need to generate warnings about VAR vs FIXED
      	* ms-formula-write.c (write_funcall) : Use max_args from the func
      	  descriptor
      94ca1328
  2. 11 Aug, 2004 2 commits
    • Jon Kåre Hellan's avatar
      Simplify using g_memdup. (excel_read_IMDATA): Initialize variables. · 6c802be9
      Jon Kåre Hellan authored
      * plugins/excel/ms-excel-read.c (excel_formula_shared): Simplify using
      g_memdup.  (excel_read_IMDATA): Initialize variables.
      
      * plugins/excel/ms-escher.c (ms_escher_blip_new,
      ms_escher_read_ClientAnchor): Ditto.
      
      * plugins/excel/crypt-md4.c: Include crypt-md4.h and make signatures
      consistent with it.
      
      * plugins/excel/crypt-md4.h: Add include guards.
      
      * src/sheet-object-image.c (sheet_object_image_new): Simplify
      using g_memdup.
      (sheet_object_image_print): fix up types to make gmorten happy.
      6c802be9
    • Jon Kåre Hellan's avatar
      Add crypt-md4.[ch] · 9ecf1c04
      Jon Kåre Hellan authored
      * plugins/excel/Makefile.am (excel_la_SOURCES): Add crypt-md4.[ch]
      
      * plugins/excel/ms-excel-write.c:
      (blipinf_new): New function. Initialize a record for image data.
      (blipinf_free): New function. Free an image data record.
      (excel_write_image): New function. Write an image Sp record
      referencing a BLIP.
      (excel_write_objs): Include images in record length. Write images.
      (excel_sheet_new): Save image info.
      (excel_write_image_bytes): New function. Save image in chunks,
      letting the biff layer insert CONTINUE records.
      (excel_write_vector_blip): New function. Save a vector format BLIP.
      (excel_write_raster_blip): New function. Save a raster format BLIP.
      (get_bliptype): New function. Get bliptype record.
      (excel_write_blip): New function. Save an image BLIP.
      (excel_write_blips): New function. Save the images as BLIPs.
      (excel_write_workbook): Get length of BLIP records. Call
      excel_write_blips.
      (excel_write_state_new): Initialize cur_blip.
      (excel_write_state_free): Free BLIP lists from sheets.
      
      * ms-excel-write.h (struct ExcelWriteSheet): Add blips, num_blips.
      (struct _ExcelWriteState): Add cur_blip.
      
      * src/sheet-object-image.c (sheet_object_image_new): strdup the
      image type.
      (sheet_object_image_finalize): Free the image type.
      (soi_info_cb): New callback used to find image type.
      (soi_get_pixbuf): Install callback on pixbuf loader in order to
      find image type.
      (sheet_object_image_get_property): New gobject method to return
      type, data or pixbuf as object parameters.
      (sheet_object_image_class_init): Install properties.
      9ecf1c04