Commit c73b937c authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg
Browse files

More header cleanup. Remove value.h and sheet.h from expr.h. Remove


2000-02-15  Jody Goldberg <jgoldberg@home.com>

	* *.[ch] : More header cleanup.  Remove value.h and sheet.h
	  from expr.h.  Remove sheet.h from cell.h.

2000-02-16  Dom Lachowicz <dominicl@seas.upenn.edu>

	* src/plugin-manager.c : Move functionality.
	* src/dialogs/dialog-plugin-manager.c : here.  and move to libglade.

	* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
	  of plugin_manager_new.
parent ecd1f329
2000-02-15 Jody Goldberg <jgoldberg@home.com>
* *.[ch] : More header cleanup. Remove value.h and sheet.h
from expr.h. Remove sheet.h from cell.h.
2000-02-16 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/plugin-manager.c : Move functionality.
* src/dialogs/dialog-plugin-manager.c : here. and move to libglade.
* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
of plugin_manager_new.
2000-02-16 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
......
......@@ -23,6 +23,7 @@ Jody:
* Redraw improvements.
* More work on undo.
* Parse interbook references.
* Mostly correct sizing of MS Excel cols/rows and objects.
Jon:
* Cursor fixes and speedups.
......@@ -33,6 +34,9 @@ ERDI Gergo :
Michael:
* Style undo/redo
Dom Lachowicz :
* libgladify the plugin manager.
--------------------------------------------------------------------------
Gnumeric 0.48
......
2000-02-15 Jody Goldberg <jgoldberg@home.com>
* *.[ch] : More header cleanup. Remove value.h and sheet.h
from expr.h. Remove sheet.h from cell.h.
2000-02-16 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/plugin-manager.c : Move functionality.
* src/dialogs/dialog-plugin-manager.c : here. and move to libglade.
* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
of plugin_manager_new.
2000-02-16 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
......
......@@ -17,9 +17,6 @@ Description Difficulty Integration
functions to samples/regress.gnumeric so we can be
sure that we are returning the right error code.
- libgladeify the pluging manager dialog and move the Low Low
UI into the dialogs directory.
- Enhance plugin interface and manager to supply Medium Medium
descriptive information about the plugin, and allow
browsing/listing the funtions & I/O routines it
......
......@@ -19,6 +19,7 @@
#include "plugin.h"
#include "gnumeric.h"
#include "cell.h"
#include "value.h"
#include "workbook.h"
#include "file.h"
#include "command-context.h"
......
2000-02-15 Jody Goldberg <jgoldberg@home.com>
* ms-obj.c (object_anchor_to_position) : Improve debug output.
* ms-excel-read.c (ms_excel_sheet_new) : Add new member base_char_width_default.
(print_font_mapping_debug_info) : Delete.
(lookup_base_char_width_for_read) : Rename init_base_char_width_for_read,
......
......@@ -2881,6 +2881,7 @@ ms_excel_read_default_col_width (BiffQuery *q, ExcelSheet *sheet)
double col_width;
#ifndef NO_DEBUG_EXCEL
if (ms_excel_read_debug > 0)
printf ("Default column width %hu characters\n", width);
#endif
/*
......
......@@ -15,6 +15,8 @@
#include <stdio.h>
extern int ms_excel_read_debug;
/*
* TwoWayTable
*
......@@ -340,7 +342,10 @@ lookup_font_base_char_width_new (char const * const name, double size_pts,
/* Round to pixels */
width = (int)(width +.5);
printf ("%s %g = %g\n", name, size_pts, width);
#ifndef NO_DEBUG_EXCEL
if (ms_excel_read_debug > 0)
printf ("%s %g = %g\n", name, size_pts, width);
#endif
/* Convert to pts using the hard coded 96dpi that the
* measurements assume.
......
......@@ -15,6 +15,7 @@
#include <gnome.h>
#include "gnumeric.h"
#include "func.h"
#include "value.h"
#include "utils.h"
......
......@@ -17,6 +17,7 @@
#include "gnumeric.h"
#include "func.h"
#include "value.h"
#include "utils.h"
......
......@@ -53,35 +53,48 @@ extern int ms_excel_read_debug;
* preceding.
*/
static void
object_anchor_to_position (double points[4], MSObj*obj, Sheet const * sheet,
object_anchor_to_position (double pixels[4], MSObj*obj, Sheet const * sheet,
eBiff_version const ver)
{
float const row_denominator = (ver >= eBiffV8) ? 256. : 1024.;
int i;
#ifndef NO_DEBUG_EXCEL
if (ms_excel_read_debug > 0)
printf ("%s\n", sheet->name);
#endif
for (i = 0; i < 4; i++) {
int const pos = obj->anchor[i].pos;
int const nths = obj->anchor[i].nths;
if (i & 1) { /* odds are rows */
ColRowInfo const *ri = sheet_row_get_info (sheet, pos);
points[i] = ri->size_pixels;
points[i] *= nths / row_denominator;
points[i] += sheet_row_get_distance_pixels (sheet, 0, pos);
pixels[i] = ri->size_pixels;
pixels[i] *= nths / row_denominator;
pixels[i] += sheet_row_get_distance_pixels (sheet, 0, pos);
#ifndef NO_DEBUG_EXCEL
if (ms_excel_read_debug > 0)
printf ("%d + %d\n", pos+1, nths);
#endif
} else {
ColRowInfo const *ci = sheet_col_get_info (sheet, pos);
points[i] = ci->size_pixels;
points[i] *= nths / 1024.;
points[i] += sheet_col_get_distance_pixels (sheet, 0, pos);
pixels[i] = ci->size_pixels;
pixels[i] *= nths / 1024.;
pixels[i] += sheet_col_get_distance_pixels (sheet, 0, pos);
#ifndef NO_DEBUG_EXCEL
if (ms_excel_read_debug > 0)
printf ("%s + %d\n", col_name(pos), nths);
#endif
}
}
#ifndef NO_DEBUG_EXCEL
if (ms_excel_read_debug > 0)
printf ("Anchor position in points"
printf ("Anchor position in pixels"
" left = %g, top = %g, right = %g, bottom = %g;\n",
points[0], points[1], points[2], points[3]);
pixels[0], pixels[1], pixels[2], pixels[3]);
#endif
}
......
......@@ -12,6 +12,7 @@
#include "utils.h"
#include "func.h"
#include "eval.h"
#include "cell.h"
/***************************************************************************/
......
......@@ -13,6 +13,7 @@
#include "expr.h"
#include "func.h"
#include "cell.h"
#include "value.h"
/* This is damn ugly.
* However, it will get things working again (I hope)
......
......@@ -21,6 +21,7 @@
#include "main.h"
#include "sheet.h"
#include "expr.h"
#include "value.h"
#include "lotus.h"
#include "lotus-types.h"
......
......@@ -23,6 +23,7 @@
#include "sheet.h"
#include "file.h"
#include "utils.h"
#include "value.h"
#include "cell.h"
#include "command-context.h"
......
......@@ -26,6 +26,7 @@
#include "gnumeric-util.h"
#include "main.h"
#include "sheet.h"
#include "value.h"
#include "file.h"
#include "utils.h"
#include "command-context.h"
......
......@@ -20,6 +20,7 @@
#include "plugin.h"
#include "gnumeric.h"
#include "file.h"
#include "value.h"
#include "cell.h"
#include "workbook.h"
#include "command-context.h"
......
......@@ -5,11 +5,12 @@
#include <config.h>
#include <gnome.h>
#include <string.h>
#include "../../src/gnumeric.h"
#include "../../src/func.h"
#include "../../src/symbol.h"
#include "../../src/plugin.h"
#include "../../src/command-context.h"
#include "gnumeric.h"
#include "func.h"
#include "symbol.h"
#include "plugin.h"
#include "value.h"
#include "command-context.h"
#include "Python.h"
......
......@@ -10,6 +10,7 @@
#include "../../src/gnumeric.h"
#include "../../src/func.h"
#include "../../src/plugin.h"
#include "../../src/value.h"
static Value *
func_plusone (FunctionEvalInfo *ei, Value *argv [])
......
......@@ -15,6 +15,7 @@
#include "gnumeric.h"
#include "workbook.h"
#include "utils.h"
#include "value.h"
#include "file.h"
#include "cell.h"
#include "command-context.h"
......
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