Commit 1b7dfb5d authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder
Browse files

Implement. (lotus_parse_formula_old): Handle operators in the switch as

2005-11-10  Morten Welinder  <terra@gnome.org>

	* lotus-formula.c (wk1_irr_func): Implement.
	(lotus_parse_formula_old): Handle operators in the switch as the
	ordinals differ from the new ones.
	(lotus_parse_formula_new): Correctly map from the names that Lotus
	1-2-3 uses to the ones we do.
	(lotus_formula_init, lotus_formula_shutdown): New functions.
	(make_function): Use a table instead of a stupid linear search.

	* boot.c (go_plugin_init, go_plugin_shutdown): New functions.
parent 0411a8b5
......@@ -19,6 +19,8 @@ Morten:
* Fix content probing of csv and tsv files. [#318419]
* Import formats from Lotus 1-2-3 files.
* Import column widths and row heights from Lotus 1-2-3 files.
* Handle Lotus 1-2-3 functions whose names differ from the ones
we use better.
* Read basic info from wk4 files.
* Fix issues with new function docs method.
* Fix OO import crash. [#320818]
......
2005-11-10 Morten Welinder <terra@gnome.org>
* lotus-formula.c (wk1_irr_func): Implement.
(lotus_parse_formula_old): Handle operators in the switch as the
ordinals differ from the new ones.
(lotus_parse_formula_new): Correctly map from the names that Lotus
1-2-3 uses to the ones we do.
(lotus_formula_init, lotus_formula_shutdown): New functions.
(make_function): Use a table instead of a stupid linear search.
* boot.c (go_plugin_init, go_plugin_shutdown): New functions.
2005-11-01 Morten Welinder <terra@gnome.org>
* boot.c (lotus_file_probe): Add another magic number.
......
......@@ -10,6 +10,7 @@
#include <glib/gi18n.h>
#include <gnumeric.h>
#include "lotus.h"
#include "lotus-formula.h"
#include "lotus-types.h"
#include <goffice/app/file.h>
......@@ -83,3 +84,19 @@ lotus_file_open (GOFileOpener const *fo, IOContext *io_context,
gnumeric_io_error_string (io_context,
_("Error while reading lotus workbook."));
}
G_MODULE_EXPORT void
go_plugin_init (G_GNUC_UNUSED GOPlugin *plugin,
G_GNUC_UNUSED GOCmdContext *cc)
{
lotus_formula_init ();
}
G_MODULE_EXPORT void
go_plugin_shutdown (G_GNUC_UNUSED GOPlugin *plugin,
G_GNUC_UNUSED GOCmdContext *cc)
{
lotus_formula_shutdown ();
}
This diff is collapsed.
......@@ -41,4 +41,7 @@
GnmExpr const *lotus_parse_formula (LotusState *state, GnmParsePos *pos,
guint8 const *data, guint32 len);
void lotus_formula_init (void);
void lotus_formula_shutdown (void);
#endif
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