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

Adjust the xml2 plugin (should be renamed to xml_sax) for the new plugin

architecture.

2001-04-09  Jody Goldberg <jgoldberg@home.com>

	* xml2.c (xml2ParseSheet) : support no args.  this should be handled
	  more generally.

	* plugin.xml : Add .xml.gz, and disable probe so that it can be used
	  as an importer while it is experimental.
parent b9ba63fe
2001-04-09 Jody Goldberg <jgoldberg@home.com>
* xml2.c (xml2ParseSheet) : support no args. this should be handled
more generally.
* plugin.xml : Add .xml.gz, and disable probe so that it can be used
as an importer while it is experimental.
2001-03-17 Jody Goldberg <jgoldberg@home.com>
* Release 0.64
......
......@@ -6,12 +6,8 @@
<attribute name="module_file" value="xml2.so"/>
</loader>
<services>
<service type="file_opener" id="xml2" priority="1" probe="TRUE">
<service type="file_opener" id="xml2" priority="1" probe="FALSE">
<information description="EXPERIMENTAL Gnumeric (*.gnumeric) XML based file format"/>
<file_patterns>
<file_pattern type="shell_pattern" value="*.gnumeric"/>
<file_pattern type="shell_pattern" value="*.xml"/>
</file_patterns>
<save_info saver_id="" format_level="manual_remember"/>
</service>
</services>
......
......@@ -511,6 +511,9 @@ xml2ParseSheet (XML2ParseState *state, CHAR const **attrs)
{
int tmp;
if (attrs == NULL)
return;
for (; attrs[0] && attrs[1] ; attrs += 2)
if (xml2ParseAttrInt (attrs, "DisplayFormulas", &tmp))
state->sheet->display_formulas = tmp;
......@@ -1096,12 +1099,12 @@ xml2UnknownState (XML2ParseState *state, CHAR const *name)
/*
* We parse and do some limited validation of the XML file, if this
* passes, then we return TRUE
*/
gboolean
xml2_file_probe (FileOpener const *fo, const gchar *file_name)
{
return TRUE;
}
*/
static void
xml2StartElement (XML2ParseState *state, CHAR const *name, CHAR const **attrs)
......
2001-04-09 Jody Goldberg <jgoldberg@home.com>
* xml2.c (xml2ParseSheet) : support no args. this should be handled
more generally.
* plugin.xml : Add .xml.gz, and disable probe so that it can be used
as an importer while it is experimental.
2001-03-17 Jody Goldberg <jgoldberg@home.com>
* Release 0.64
......
......@@ -6,12 +6,8 @@
<attribute name="module_file" value="xml2.so"/>
</loader>
<services>
<service type="file_opener" id="xml2" priority="1" probe="TRUE">
<service type="file_opener" id="xml2" priority="1" probe="FALSE">
<information description="EXPERIMENTAL Gnumeric (*.gnumeric) XML based file format"/>
<file_patterns>
<file_pattern type="shell_pattern" value="*.gnumeric"/>
<file_pattern type="shell_pattern" value="*.xml"/>
</file_patterns>
<save_info saver_id="" format_level="manual_remember"/>
</service>
</services>
......
......@@ -511,6 +511,9 @@ xml2ParseSheet (XML2ParseState *state, CHAR const **attrs)
{
int tmp;
if (attrs == NULL)
return;
for (; attrs[0] && attrs[1] ; attrs += 2)
if (xml2ParseAttrInt (attrs, "DisplayFormulas", &tmp))
state->sheet->display_formulas = tmp;
......@@ -1096,12 +1099,12 @@ xml2UnknownState (XML2ParseState *state, CHAR const *name)
/*
* We parse and do some limited validation of the XML file, if this
* passes, then we return TRUE
*/
gboolean
xml2_file_probe (FileOpener const *fo, const gchar *file_name)
{
return TRUE;
}
*/
static void
xml2StartElement (XML2ParseState *state, CHAR const *name, CHAR const **attrs)
......
......@@ -511,6 +511,9 @@ xml2ParseSheet (XML2ParseState *state, CHAR const **attrs)
{
int tmp;
if (attrs == NULL)
return;
for (; attrs[0] && attrs[1] ; attrs += 2)
if (xml2ParseAttrInt (attrs, "DisplayFormulas", &tmp))
state->sheet->display_formulas = tmp;
......@@ -1096,12 +1099,12 @@ xml2UnknownState (XML2ParseState *state, CHAR const *name)
/*
* We parse and do some limited validation of the XML file, if this
* passes, then we return TRUE
*/
gboolean
xml2_file_probe (FileOpener const *fo, const gchar *file_name)
{
return TRUE;
}
*/
static void
xml2StartElement (XML2ParseState *state, CHAR const *name, CHAR const **attrs)
......
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