Commit c95be58a authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

When relocating a cell with a formula, always mark it as changed. We were

1999-02-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_relocate): When relocating a cell with a
	formula, always mark it as changed.  We were doing that before
	only for the case where the location had changed, but we use
	cell_relocate in other cases as well.

	* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
	functions were wrong.  They were never incrementing the pointer
	and they were releasing the wrong pointer.

	* src/clipboard.c (paste_cell): When pasting a cell, mark the
	contents as modified.

	* src/file.c (file_saver_is_default_format): Make sure the saver
	is always set.
parent c2f9da78
1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cell.c (cell_relocate): When relocating a cell with a
formula, always mark it as changed. We were doing that before
only for the case where the location had changed, but we use
cell_relocate in other cases as well.
* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
functions were wrong. They were never incrementing the pointer
and they were releasing the wrong pointer.
* src/clipboard.c (paste_cell): When pasting a cell, mark the
contents as modified.
* src/file.c (file_saver_is_default_format): Make sure the saver
is always set.
1999-02-10 Michael Meeks <michael@imaginator.com>
* plugins/excel/ms-excel.c (ms_excel_read_cell): BOOLERR booleans
......
1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cell.c (cell_relocate): When relocating a cell with a
formula, always mark it as changed. We were doing that before
only for the case where the location had changed, but we use
cell_relocate in other cases as well.
* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
functions were wrong. They were never incrementing the pointer
and they were releasing the wrong pointer.
* src/clipboard.c (paste_cell): When pasting a cell, mark the
contents as modified.
* src/file.c (file_saver_is_default_format): Make sure the saver
is always set.
1999-02-10 Michael Meeks <michael@imaginator.com>
* plugins/excel/ms-excel.c (ms_excel_read_cell): BOOLERR booleans
......
1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cell.c (cell_relocate): When relocating a cell with a
formula, always mark it as changed. We were doing that before
only for the case where the location had changed, but we use
cell_relocate in other cases as well.
* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
functions were wrong. They were never incrementing the pointer
and they were releasing the wrong pointer.
* src/clipboard.c (paste_cell): When pasting a cell, mark the
contents as modified.
* src/file.c (file_saver_is_default_format): Make sure the saver
is always set.
1999-02-10 Michael Meeks <michael@imaginator.com>
* plugins/excel/ms-excel.c (ms_excel_read_cell): BOOLERR booleans
......
1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cell.c (cell_relocate): When relocating a cell with a
formula, always mark it as changed. We were doing that before
only for the case where the location had changed, but we use
cell_relocate in other cases as well.
* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
functions were wrong. They were never incrementing the pointer
and they were releasing the wrong pointer.
* src/clipboard.c (paste_cell): When pasting a cell, mark the
contents as modified.
* src/file.c (file_saver_is_default_format): Make sure the saver
is always set.
1999-02-10 Michael Meeks <michael@imaginator.com>
* plugins/excel/ms-excel.c (ms_excel_read_cell): BOOLERR booleans
......
......@@ -194,11 +194,13 @@ gnumeric_lower (struct FunctionDefinition *i, Value *argv [], char **error_strin
}
v = g_new (Value, 1);
v->type = VALUE_STRING;
p = s = strdup (argv [0]->v.str->str);
while (*p)
*p = tolower (*p++);
v->v.str = string_get (p);
g_free (p);
for (; *p; p++){
*p = tolower (*p);
}
v->v.str = string_get (s);
g_free (s);
return v;
}
......@@ -313,11 +315,14 @@ gnumeric_upper (struct FunctionDefinition *i, Value *argv [], char **error_strin
}
v = g_new (Value, 1);
v->type = VALUE_STRING;
p = s = strdup (argv [0]->v.str->str);
while (*p)
*p = toupper (*p++);
v->v.str = string_get (p);
g_free (p);
for (;*p; p++){
*p = toupper (*p);
}
v->v.str = string_get (s);
g_free (s);
return v;
}
......
......@@ -25,6 +25,8 @@ plugin_PROGRAMS = perl.so
.c.o:
$(CC) $(CFLAGS) -c $<
perl_so_SOURCES = perl.c
perl.so: perl.o xsinit.o ext.timestamp
$(PERL_LD) $(PERL_LDDLFLAGS) -o perl.so perl.o xsinit.o $(PERL_LDOPTS)
......
......@@ -2,13 +2,14 @@
* Plugin for Gnumeric for the Perl scripting language.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _
#include <glib.h>
#include <gnome.h>
#include "../../src/gnumeric.h"
#include "../../src/plugin.h"
#include <EXTERN.h>
#include <perl.h>
extern void xs_init(void);
......
......@@ -19,7 +19,7 @@ $help_foobar = <<'EOS';
Adds two numbers. It is just an example function.
EOS
Gnumeric::register_function("adder", "ff", "a,b", $help_foobar, \&foobar);
Gnumeric::register_function("perl_adder", "ff", "a,b", $help_foobar, \&foobar);
print "Hello World.\n";
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=iso8859-2\n"
"Date: 1998-09-30 00:38:13-0500\n"
"From: Petr Vyyhnalek <petr.vyhnalek@email.cz>\n"
......@@ -1475,7 +1475,7 @@ msgstr "Posu
msgid "Cut"
msgstr "Vyjmout"
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr "Vloit"
......@@ -1916,19 +1916,32 @@ msgstr "Prum
msgid "Count"
msgstr "Souet"
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr "Bezjmena.gnumeric"
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr "Zmenen"
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr "Zvten"
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr "Seit %d"
......
msgid ""
msgstr ""
"Project-Id-Version: gnumeric 0.4\n"
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"PO-Revision-Date: 1998-12-21 16:48 +1\n"
"Last-Translator: Ralf Baechle <ralf@gnu.org>\n"
"Language-Team:\n"
......@@ -1846,7 +1846,7 @@ msgstr "Zellen rechsverschieben und bewegen"
msgid "Cut"
msgstr "Ausschneiden"
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr "Einfgen"
......@@ -2282,19 +2282,32 @@ msgstr "Durchschnitt"
msgid "Count"
msgstr "Anzahl"
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr "Namenlos.gnumeric"
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr "Verkleinern"
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr "Vergrern"
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr "Blatt %d"
......
msgid ""
msgstr ""
"Project-Id-Version: gnumeric 0.4\n"
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"PO-Revision-Date: 1998-11-25 18:01:18+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: \n"
......@@ -1590,7 +1590,7 @@ msgstr "Desplaza las celdas hacia la derecha y mueve"
msgid "Cut"
msgstr "Cortar"
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr "Pegar"
......@@ -2019,19 +2019,32 @@ msgstr "Promedio"
msgid "Count"
msgstr "Cuenta"
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr "SinTitulo.gnumeric"
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr "Alejarse"
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr "Acercarse"
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr "Hoja %d"
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr ""
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr ""
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr ""
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr ""
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr ""
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""
#: src/workbook.c:1473
msgid "Add another sheet"
msgstr ""
#: src/workbook.c:1474
msgid "Remove this sheet"
msgstr ""
#: src/workbook.c:1698 src/workbook.c:1726
#, c-format
msgid "Sheet %d"
msgstr ""
......
msgid ""
msgstr ""
"POT-Creation-Date: 1999-02-06 22:52-0600\n"
"POT-Creation-Date: 1999-02-09 20:08-0600\n"
"Content-Type: text/plain; charset=\n"
"Date: 1998-12-15 01:37:05-0600\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
......@@ -1496,7 +1496,7 @@ msgstr ""
msgid "Cut"
msgstr ""
#: src/item-grid.c:524 src/sheet.c:2432 src/workbook.c:840
#: src/item-grid.c:524 src/sheet.c:2456 src/workbook.c:840
msgid "Paste"
msgstr ""
......@@ -1923,19 +1923,32 @@ msgstr ""
msgid "Count"
msgstr ""
#: src/workbook.c:1268
#: src/workbook.c:1270
msgid "Untitled.gnumeric"
msgstr ""
#: src/workbook.c:1352
#: src/workbook.c:1354
msgid "Zoom out"
msgstr ""
#: src/workbook.c:1359
#: src/workbook.c:1361
msgid "Zoom in"
msgstr ""
#: src/workbook.c:1490 src/workbook.c:1511
#: src/workbook.c:1446
#, c-format
msgid "Are you sure you want to remove the sheet called `%s' "
msgstr ""