Commit aa8223db authored by Jody Goldberg's avatar Jody Goldberg

remove

parent 38ebf924
Makefile
Makefile.in
.deps
.libs
*.lo
2002-08-25 Jody Goldberg <jody@gnome.org>
* Release 1.1.8
2002-08-12 Jody Goldberg <jody@gnome.org>
* Release 1.1.7
2002-07-21 Jody Goldberg <jody@gnome.org>
* Release 1.1.6
2002-05-29 Jody Goldberg <jody@gnome.org>
* Release 1.1.4
2002-04-29 Jody Goldberg <jody@gnome.org>
* Release 1.1.3
2002-03-25 Jody Goldberg <jody@gnome.org>
* Release 1.1.2
2002-03-10 Jody Goldberg <jody@gnome.org>
* Release 1.1.1
2002-02-18 Jody Goldberg <jody@gnome.org>
* Release 1.1.0
2002-01-21 Jody Goldberg <jody@gnome.org>
* Release 1.0.3
2002-01-15 Jody Goldberg <jody@gnome.org>
* Release 1.0.2
2002-01-06 Jody Goldberg <jody@gnome.org>
* Release 1.0.1
2001-12-31 Jody Goldberg <jody@gnome.org>
* Release 1.0.0
2001-12-24 Jody Goldberg <jody@gnome.org>
* Release 0.99.1
2001-12-15 Jody Goldberg <jody@gnome.org>
* Release 0.99.0
2001-11-19 Jody Goldberg <jgoldberg@home.com>
* Release 0.76
2001-11-05 Jody Goldberg <jgoldberg@home,com>
* Release 0.75
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.74
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.73
2001-10-07 Jody Goldberg <jgoldberg@home.com>
* Release 0.71
2001-08-20 Jody Goldberg <jgoldberg@home.com>
* Release 0.70
2001-08-11 Jody Goldberg <jgoldberg@home.com>
* Release 0.69
2001-06-28 Jody Goldberg <jgoldberg@home>
* Release 0.67
2001-05-20 Jody Goldberg <jgoldberg@home.com>
* Release 0.65
2000-12-17 Jody Goldberg <jgoldberg@home.com>
* Release 0.61
2000-12-7 Jody Goldberg <jgoldberg@home.com>
* Release 0.60
2000-11-18 Jody Goldberg <jgoldberg@home.com>
* Release 0.59
2000-11-13 Jody Goldberg <jgoldberg@home.com>
* Release 0.58
2000-10-10 Jody Goldberg <jgoldberg@home.com>
* Release 0.57
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* Release 0.56
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* Release 0.55
2000-05-20 Jody Goldberg <jgoldberg@home.com>
* Release 0.54
2000-05-18 Arturo Tena <arturo@directmail.org>
* Makefile.am (test_gnumeric_corba_SOURCES) :
CFLAGS = `gnome-config --cflags bonobo` -I../idl
LDFLAGS = `gnome-config --libs bonobo`
LDADD = -L../idl -lGnumeric
noinst_PROGRAMS = test-gnumeric-corba
test_gnumeric_corba_SOURCES = \
test-gnumeric-corba.c
/*
* Sample excerciser of Gnumeric CORBA interface
*
* Author:
* Miguel de Icaza (miguel@kernel.org)
*/
#include <gnumeric-config.h>
#include <Gnumeric.h>
#include <libgnorba/gnorba.h>
CORBA_Environment ev;
CORBA_ORB orb;
static void
do_test (GNOME_Gnumeric_Workbook workbook)
{
GNOME_Gnumeric_Sheet sheets [4], sheet0;
GNOME_Gnumeric_Value *value;
int i;
printf ("1. Creating 4 new sheets...\n");
for (i = 0; i < 4; i++){
char *name;
name = g_strdup_printf ("My Sheet %d", i);
sheets [i] = GNOME_Gnumeric_Workbook_sheet_new (workbook, name, &ev);
if (ev._major != CORBA_NO_EXCEPTION){
printf ("Failed\n");
exit (1);
}
g_free (name);
}
printf ("ok\n");
#if 0
printf ("2. Trying to create an existing sheet name: ");
GNOME_Gnumeric_Workbook_sheet_new (workbook, "My Sheet0", &ev);
if (ev._major != CORBA_USER_EXCEPTION){
printf ("Failed\n");
exit (1);
}
printf (" Got exception: %s\n", CORBA_exception_id (&ev));
printf ("ok\n");
printf ("3. Looking up `Sheet 0':");
sheet0 = GNOME_Gnumeric_Workbook_sheet_lookup (workbook, "Sheet0", &ev);
if (sheet0){
printf ("Failed\n");
exit (1);
}
printf ("ok\n");
#endif
printf ("4. Filling a table...");
value = GNOME_Gnumeric_Value__alloc ();
for (i = 0; i < 25; i++){
value->_d = GNOME_Gnumeric_VALUE_INTEGER;
value->_u.v_int = i;
GNOME_Gnumeric_Sheet_cell_set_value (sheets [0], 0, i+3, value, &ev);
if (ev._major != CORBA_NO_EXCEPTION){
printf ("Failed\n");
exit (1);
}
}
value->_d = GNOME_Gnumeric_VALUE_STRING;
value->_u.str = CORBA_string_dup ("Hello!");
GNOME_Gnumeric_Sheet_cell_set_value (sheets [0], 0, 0, value, &ev);
CORBA_free (value);
printf ("ok\n");
printf ("5. Setting texts...");
for (i = 0; i < 25; i++){
char buffer [30];
sprintf (buffer, "I am row %d", i);
GNOME_Gnumeric_Sheet_cell_set_text (sheets [0], 1, i+3, buffer, &ev);
if (ev._major != CORBA_NO_EXCEPTION){
printf ("Failed\n");
exit (1);
}
}
printf ("ok\n");
}
int
main (int argc, char *argv[])
{
GNOME_Gnumeric_Workbook workbook;
CORBA_exception_init (&ev);
orb = gnome_CORBA_init ("Gnumeric client test", "1.0", &argc, argv, 0, &ev);
workbook = goad_server_activate_with_id (
NULL, "GOADID:GNOME:Gnumeric:Workbook:1.0", 0, NULL);
if (workbook == CORBA_OBJECT_NIL){
printf ("Cannot bind workbook");
exit (1);
}
/*
* Show the workbook
*/
GNOME_Gnumeric_Workbook_show (workbook, 1, &ev);
do_test (workbook);
CORBA_exception_free (&ev);
}
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