Commit b177dcc0 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

implement combos and lists.


2006-12-16  Jody Goldberg <jody@gnome.org>

	* src/sheet-object-widget.c : implement combos and lists.

2006-12-16  Jody Goldberg <jody@gnome.org>

	* ms-excel-read.c (ms_sheet_realize_obj) : link in the content
	  expression, and the linked cell for combo and list objects.
	* ms-obj.c (ms_obj_read_biff8_obj) : read ListboxData which seems to
	  contain the content expression.
parent 2ad2d628
2006-12-16 Jody Goldberg <jody@gnome.org>
* ms-excel-read.c (ms_sheet_realize_obj) : link in the content
expression, and the linked cell for combo and list objects.
* ms-obj.c (ms_obj_read_biff8_obj) : read ListboxData which seems to
contain the content expression.
2006-12-11 Morten Welinder <terra@gnome.org>
* ms-excel-write.c (log_put_color): Remove "inline" -- it's
......
......@@ -545,10 +545,11 @@ ms_sheet_realize_obj (MSContainer *container, MSObj *obj)
ms_obj_attr_get_int (obj->attrs, MS_OBJ_ATTR_SCROLLBAR_PAGE, 10));
break;
case 0x12:
break;
case 0x14:
case 0x12: /* List */
case 0x14: /* Combo */
sheet_widget_list_base_set_links (obj->gnum_obj,
ms_obj_attr_get_expr (obj->attrs, MS_OBJ_ATTR_LINKED_TO_CELL, NULL, FALSE),
ms_obj_attr_get_expr (obj->attrs, MS_OBJ_ATTR_INPUT_FROM, NULL, FALSE));
break;
case 0x19:
......
......@@ -1061,6 +1061,12 @@ ms_obj_read_biff8_obj (BiffQuery *q, MSContainer *c, MSObj *obj)
break;
case GR_LISTBOX_DATA : {
guint16 const expr_len = GSF_LE_GET_GUINT16 (data+6);
GnmExprTop const *ref = ms_container_parse_expr (c, data+12, expr_len);
if (ref != NULL)
ms_obj_attr_bag_insert (obj->attrs,
ms_obj_attr_new_expr (MS_OBJ_ATTR_INPUT_FROM, ref));
/* FIXME : find some docs for this
* It seems as if list box data does not conform to
* the docs. It acts like an end and has no size.
......
......@@ -69,6 +69,7 @@ typedef enum {
/* Expressions */
MS_OBJ_ATTR_IS_EXPR_MASK = 0x20000,
MS_OBJ_ATTR_LINKED_TO_CELL,
MS_OBJ_ATTR_INPUT_FROM,
/* GObjects */
MS_OBJ_ATTR_IS_GOBJECT_MASK = 0x40000,
......
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* gnm-valudation-combo-foo-view.c: A foocanvas object for Validate from list
* gnm-validation-combo-foo-view.c: A foocanvas object for Validate from list
* in cell combos
*
* Copyright (C) 2006 Jody Goldberg (jody@gnome.org)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment