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

xmlCreateFileParserCtxt will return NULL if the file was not readable.


2000-06-18  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
	  if the file was not readable.
parent 56a85927
......@@ -53,17 +53,18 @@ Long term breakage
- Names : Sheet local vs workbook local vs application global (does that exist ?)
: addresses not changing with row/col ins/del.
- Underline should scale with font size. (Say, min (1, font->descent/4?)
- Underline should scale with font size. (Say, max (1, font->descent/4?)
gnome-print has a function we could use for printing which returns the
underline thickness.
- Error handling is completely hosed. We currently save the value of a cell
as a string. This means that we need to be able to parse that a value is an
error. Currently this only works for the standard errors.
eg value_error_new("1+3") will print the string 1+3 as the error.
Something more comprehensive is necessary.
Dialogs
-------
- Enhance function wizard
- Use color combos in format dialog.
- Function selector
: Double click in the function list should select a function.
......@@ -71,12 +72,10 @@ Dialogs
: typing in the function list should jump to an entry that starts with the
requested letter.
- Formula Guru
: Sizing sucks
: Roll/Unroll is not shrinking suddenly.
: maintaining visibility of entries when the window is scrollable.
: Editing nested funtions
: Switching between multiple function at the same level.
: Better communication and handling of parse errors.
: Does not exit when escape is hit.
Function Breakage
-----------------
......@@ -87,9 +86,7 @@ Printing
--------
- cell text wraps differently when printing than displaying due to scaling
differences in font size. do we want to eliminate this ?
- headers and footers should be clipped to a rectangle.
- add accessors to header and footer sizes to enforce the invariants
header >= top margin, footer >= bottom margin.
- headers and footers should be clipped
Widget polishing
----------------
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
2000-06-18 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
if the file was not readable.
2000-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_set_text) : Does this change the selection
......
......@@ -6,6 +6,7 @@ Gnumeric Spread Sheet task list
Have a new "manager" file that will take over the details of open
workbooks and active servers, instead of the current approach we
use to have this management in the workbook.c file
This belongs in application.c.
* Component
......@@ -62,8 +63,6 @@ Gnumeric Spread Sheet task list
* Get the list of *valid* fonts from GnomePrint
* Create a simplistic dialog (to map to font-bold yes/no).
* Cell dimension computation is broken on font change for multi-lines.
* when copying and entire row or col we should also copy the row/col size.
* when cuting & pasting a cell that is inside a range on another cell grow
......
......@@ -447,12 +447,14 @@ font_init (void)
msg = g_strdup_printf (
_("Gnumeric failed to find a suitable default font.\n"
"Please verify your gnome-print installation.\n"
"Please verify your gnome-print installation\n."
"Your fontmap file %s\n"
"\n"
"If you still have no luck, please file a proper bug report (see\n"
"http://bugs.gnome.org) including the following extra items:\n"
"\n"
"1) The content of your fontmap file, if the file exists.\n"
"\t (typically located in %s) %s\n"
"\t (typically located in %s)\n"
"2) The value of the LC_ALL environment variable\n"
"\tLC_ALL=%s\n"
"3) The value of the LANG environment variable\n"
......@@ -460,10 +462,10 @@ font_init (void)
"4) What version of libxml gnumeric is running with.\n"
" You may be able to use the 'ldd' command to get that information.\n"
"\n"
"Thanks -- the Gnumeric Team\n"), fontmap_fn, exists
"Thanks -- the Gnumeric Team\n"), exists
? _("does not have a valid entry for Helvetica")
: _("could not be found in the expected location"),
lc_all, lang);
fontmap_fn, lc_all, lang);
gnumeric_notice (NULL, GNOME_MESSAGE_BOX_ERROR, msg);
exit (1);
}
......
......@@ -3024,6 +3024,9 @@ xml_probe (const char *filename)
* Do a silent call to the XML parser.
*/
ctxt = xmlCreateFileParserCtxt(filename);
if (ctxt == NULL)
return FALSE;
memcpy(&silent, ctxt->sax, sizeof(silent));
old = ctxt->sax;
silent.error = NULL;
......
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