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

some header cleanup. Remove unused copies of rendered-value.h


2001-02-13  Jody Goldberg <jgoldberg@home.com>

	* some header cleanup.  Remove unused copies of
	  rendered-value.h
parent d79b9148
2001-02-13 Jody Goldberg <jgoldberg@home.com>
* some header cleanup. Remove unused copies of
rendered-value.h
2001-02-13 Morten Welinder <terra@diku.dk>
* src/plugin.c (plugin_info_list_read_for_dir): Plug leak big
......
2001-02-13 Jody Goldberg <jgoldberg@home.com>
* some header cleanup. Remove unused copies of
rendered-value.h
2001-02-13 Morten Welinder <terra@diku.dk>
* src/plugin.c (plugin_info_list_read_for_dir): Plug leak big
......
2001-02-13 Jody Goldberg <jgoldberg@home.com>
* some header cleanup. Remove unused copies of
rendered-value.h
2001-02-13 Morten Welinder <terra@diku.dk>
* src/plugin.c (plugin_info_list_read_for_dir): Plug leak big
......
2001-02-13 Jody Goldberg <jgoldberg@home.com>
* some header cleanup. Remove unused copies of
rendered-value.h
2001-02-13 Morten Welinder <terra@diku.dk>
* src/plugin.c (plugin_info_list_read_for_dir): Plug leak big
......
2001-02-13 Jody Goldberg <jgoldberg@home.com>
* some header cleanup. Remove unused copies of
rendered-value.h
2001-02-13 Morten Welinder <terra@diku.dk>
* src/plugin.c (plugin_info_list_read_for_dir): Plug leak big
......
......@@ -128,10 +128,10 @@ dnl **************************************************
dnl
AC_CHECK_PROG(perl_val, perl, true, false)
if $perl_val; then
AC_MSG_CHECKING(for perl ExtUtils::Embed module)
AC_MSG_CHECKING(for perl ExtUtils::Embed module )
perl -e 'eval { require ExtUtils::Embed }; if ($@) { exit(1); } else { exit(0); }'
if test "x$?" = "x0"; then
AC_MSG_RESULT(yes)
AC_MSG_RESULT($marker_ok)
dnl Use ExtUtils::Embed to figure out the other options.
PERL_CCCDLFLAGS=`perl -MConfig -e 'print $Config{cccdlflags},"\n";'`
......@@ -147,7 +147,7 @@ if $perl_val; then
AC_SUBST(PERL_CCOPTS)
AC_SUBST(PERL_LDOPTS)
else
AC_MSG_RESULT(no)
AC_MSG_RESULT($marker_no)
perl_val=false
fi
fi
......
......@@ -22,7 +22,6 @@
#include "cell.h"
#include "value.h"
#include "file.h"
#include "rendered-value.h"
#include "io-context.h"
#include "workbook-view.h"
#include "workbook.h"
......
......@@ -11,7 +11,6 @@
#include "func-util.h"
#include "func.h"
#include "cell.h"
#include "rendered-value.h"
/* Type definitions */
......
......@@ -33,7 +33,6 @@
#include "cell.h"
#include "value.h"
#include "font.h"
#include "rendered-value.h"
#include <gnome.h>
#include <errno.h>
......
......@@ -33,7 +33,6 @@
#include "cell.h"
#include "value.h"
#include "font.h"
#include "rendered-value.h"
#include <gnome.h>
#include <errno.h>
......
......@@ -31,7 +31,6 @@
#include "latex.h"
#include "font.h"
#include "cell.h"
#include "rendered-value.h"
/*
* escape special characters
......
......@@ -30,7 +30,6 @@
#include "roff.h"
#include "font.h"
#include "cell.h"
#include "rendered-value.h"
/*
* escape special characters .. needs work
......
#ifndef GNUMERIC_CELL_DRAW_H
#define GNUMERIC_CELL_DRAW_H
#include <glib.h>
#include "gnumeric.h"
void cell_draw (Cell const *cell, MStyle const *mstyle,
......
#ifndef GNUMERIC_CELL_H
#define GNUMERIC_CELL_H
#include <glib.h>
#include "gnumeric.h"
#include "dependent.h"
......
#ifndef GNUMERIC_CLIPBOARD_H
#define GNUMERIC_CLIPBOARD_H
#include "gnumeric.h"
enum {
PASTE_CONTENT = 1 << 0, /* either CONTENT or AS_VALUES */
PASTE_AS_VALUES = 1 << 1, /* can be applied, not both */
......
......@@ -2,7 +2,7 @@
#define GNUMERIC_COLLECT_H
#include "numbers.h"
#include "expr.h"
#include "gnumeric.h"
typedef enum {
COLLECT_IGNORE_STRINGS = 0x01,
......@@ -23,8 +23,8 @@ typedef int (*float_range_function_t) (const gnum_float *, int, gnum_float *);
typedef int (*float_range_function2_t) (const gnum_float *, const gnum_float *, int, gnum_float *);
gnum_float *collect_floats_value (const Value *val, const EvalPos *ep,
CollectFlags flags,
int *n, Value **error);
CollectFlags flags,
int *n, Value **error);
Value *float_range_function (GList *exprlist, FunctionEvalInfo *ei,
float_range_function_t func,
......
#ifndef GNUMERIC_COLROW_H
#define GNUMERIC_COLROW_H
#include <glib.h>
#include "gnumeric.h"
struct _ColRowInfo {
......
......@@ -28,6 +28,6 @@ void gnumeric_progress_set (CommandContext *context, gfloat f);
* context for error messages. E.g.: "Could not read file: %s". */
void command_context_pop_err_template (CommandContext *context);
void command_context_push_err_template (CommandContext *context,
const char *template_str);
const char *template_str);
#endif /* GNUMERIC_COMMAND_CONTEXT_H */
......@@ -35,6 +35,7 @@
#include "ranges.h"
#include "sort.h"
#include "eval.h"
#include "value.h"
#include "expr.h"
#include "cell.h"
#include "sheet-merge.h"
......@@ -45,7 +46,6 @@
#include "colrow.h"
#include "dialogs.h"
#include "style-border.h"
#include "rendered-value.h"
#include "dialogs/dialog-autocorrect.h"
#include "sheet-autofill.h"
#include "mstyle.h"
......
......@@ -28,7 +28,6 @@
#include "format.h"
#include "sheet-private.h"
#include "cell-comment.h"
#include "rendered-value.h"
#include "cmd-edit.h"
#define verify(cond) if (!(cond)){ out_of_range (ev); return; }
......
......@@ -10,6 +10,7 @@
#include <config.h>
#include "datetime.h"
#include "number-match.h"
#include "value.h"
#include <math.h>
#define SECS_PER_DAY (24 * 60 * 60)
......
......@@ -2,7 +2,7 @@
#define GNUMERIC_DATETIME_H
#include "gnumeric.h"
#include "value.h"
#include "numbers.h"
#include <time.h>
/*
......
......@@ -16,7 +16,6 @@
#include "ranges.h"
#include "eval.h"
#include "value.h"
#include "rendered-value.h"
#include "main.h"
#include "workbook-control.h"
#include "workbook-view.h"
......
......@@ -20,7 +20,6 @@
#include "cell.h"
#include "ranges.h"
#include "analysis-tools.h"
#include "rendered-value.h"
#define OK 0
#define N_COLUMNS_ERROR 1
......
......@@ -27,7 +27,6 @@
#include "application.h"
#include "workbook.h"
#include "commands.h"
#include "rendered-value.h"
/* The order corresponds to border_preset_buttons */
typedef enum
......
......@@ -21,7 +21,6 @@
#include "ranges.h"
#include "commands.h"
#include "workbook.h"
#include "rendered-value.h"
#include "sort.h"
#include "sheet.h"
......
......@@ -55,11 +55,11 @@ typedef struct {
/**
* name_guru_warned_if_used:
* @state:
*
* @state:
*
* If the expresion that is about to be deleted is beeing used,
* warn the user about it. Ask if we should procede or not
*
*
* Return Value: TRUE if users confirms deletion, FALSE otherwise
**/
static gboolean
......@@ -75,10 +75,10 @@ name_guru_warn (NameGuruState *state)
/**
* name_guru_scope_change:
* @state:
* @scope:
*
* Change the scope of state->cur_name. Ask the user if we want to procede with the
* @state:
* @scope:
*
* Change the scope of state->cur_name. Ask the user if we want to procede with the
* change if we are going to invalidate expressions in the sheet.
*
* Return Value: FALSE, if the user cancels the scope change
......@@ -92,7 +92,7 @@ name_guru_scope_change (NameGuruState *state, NameGuruScope scope)
expression = state->cur_name;
if (expression == NULL)
return TRUE;
/* get the current values for the expression */
if (scope == NAME_GURU_SCOPE_WORKBOOK) {
expr_name_sheet2wb (expression);
......@@ -101,13 +101,13 @@ name_guru_scope_change (NameGuruState *state, NameGuruScope scope)
if (scope == NAME_GURU_SCOPE_SHEET) {
if (!name_guru_warn (state))
return FALSE;
expr_name_wb2sheet (expression, state->sheet);
}
return TRUE;
}
static void
cb_scope_changed (GtkEntry *entry, NameGuruState *state)
{
......@@ -126,7 +126,7 @@ cb_scope_changed (GtkEntry *entry, NameGuruState *state)
NAME_GURU_SCOPE_WORKBOOK))
g_print ("Here we toggle the scope back to what it was\n"
"The user cancelled the scope change.\n");
}
static void
......@@ -157,9 +157,9 @@ static void cb_name_guru_select_name (GtkWidget *list, NameGuruState *state);
/**
* name_guru_set_expr:
* @state:
* @state:
* @expr_name: Expression to set in the entries, NULL to clear entries
*
*
* Set the entries in the dialog from an NamedExpression
**/
static void
......@@ -171,7 +171,7 @@ name_guru_set_expr (NameGuruState *state, NamedExpression *expr_name)
/* don't recurse */
state->updating = TRUE;
if (expr_name) {
/* Display the name */
gtk_entry_set_text (state->name, expr_name->name->str);
......@@ -195,8 +195,8 @@ name_guru_set_expr (NameGuruState *state, NamedExpression *expr_name)
/**
* name_guru_clear_selection:
* @state:
*
* @state:
*
* Clear the selection of the gtklist
**/
static void
......@@ -211,11 +211,11 @@ name_guru_clear_selection (NameGuruState *state)
/**
* name_guru_in_list:
* @name:
* @name:
* @state:
*
*
* Given a name, it searches for it inside the list of Names
*
*
* Return Value: TRUE if name is already defined, FALSE otherwise
**/
static gboolean
......@@ -244,9 +244,9 @@ name_guru_in_list (const gchar *name, NameGuruState *state)
/**
* name_guru_update_sensitivity:
* @state:
* @update_entries:
*
* @state:
* @update_entries:
*
* Update the dialog widgets sensitivity
**/
static void
......@@ -263,7 +263,7 @@ name_guru_update_sensitivity (NameGuruState *state, gboolean update_entries)
if (state->updating)
return;
name = gtk_entry_get_text (state->name);
value = gtk_entry_get_text (state->value);
......@@ -293,9 +293,9 @@ name_guru_update_sensitivity (NameGuruState *state, gboolean update_entries)
/**
* name_guru_update_sensitivity_cb:
* @dummy:
* @state:
*
* @dummy:
* @state:
*
**/
static void
name_guru_update_sensitivity_cb (GtkWidget *dummy, NameGuruState *state)
......@@ -305,9 +305,9 @@ name_guru_update_sensitivity_cb (GtkWidget *dummy, NameGuruState *state)
/**
* cb_name_guru_select_name:
* @list:
* @state:
*
* @list:
* @state:
*
* Set the expression from the selected row in the gtklist
**/
static void
......@@ -371,11 +371,11 @@ name_guru_populate_list (NameGuruState *state)
/**
* name_guru_scope_get:
* @state:
*
* @state:
*
* Get the selected Scope from the combo box
*
* Return Value:
*
* Return Value:
**/
static NameGuruScope
name_guru_scope_get (NameGuruState *state)
......@@ -385,7 +385,7 @@ name_guru_scope_get (NameGuruState *state)
text = gtk_entry_get_text (GTK_ENTRY (state->scope->entry));
g_return_val_if_fail (text != NULL, NAME_GURU_SCOPE_WORKBOOK);
if (strcmp (text, _("Workbook"))==0)
return NAME_GURU_SCOPE_WORKBOOK;
else
......@@ -395,9 +395,9 @@ name_guru_scope_get (NameGuruState *state)
/**
* cb_name_guru_remove:
* @ignored:
* @state:
*
* @ignored:
* @state:
*
* Remove the state->cur_name
**/
static void
......@@ -423,10 +423,10 @@ cb_name_guru_remove (GtkWidget *ignored, NameGuruState *state)
/**
* cb_name_guru_add:
* @state:
*
* @state:
*
* Update or add a NamedExpression from the values in the gtkentries.
*
*
* Return Value: FALSE if the expression was invalid, TRUE otherwise
**/
static gboolean
......@@ -468,11 +468,11 @@ cb_name_guru_add (NameGuruState *state)
if (!expr_name->builtin) {
/* This means that the expresion was updated updated.
* FIXME: if the scope has been changed too, call scope
* chaned first.
* chaned first.
*/
expr_tree_unref (expr_name->t.expr_tree);
expr_name->t.expr_tree = expr;
} else
} else
gnumeric_notice (state->wbcg, GNOME_MESSAGE_BOX_ERROR,
_("You cannot redefine a builtin name."));
} else {
......@@ -510,7 +510,7 @@ cb_name_guru_clicked (GtkWidget *button, NameGuruState *state)
return;
workbook_set_entry (state->wbcg, NULL);
if (button == state->delete_button) {
cb_name_guru_remove (NULL, state);
return;
......@@ -529,7 +529,7 @@ cb_name_guru_clicked (GtkWidget *button, NameGuruState *state)
gtk_widget_destroy (state->dialog);
return;
}
}
static GtkWidget *
......@@ -538,7 +538,7 @@ name_guru_init_button (NameGuruState *state, char const *name)
GtkWidget *tmp = glade_xml_get_widget (state->gui, name);
g_return_val_if_fail (tmp != NULL, NULL);
gtk_signal_connect (GTK_OBJECT (tmp), "clicked",
GTK_SIGNAL_FUNC (cb_name_guru_clicked),
state);
......@@ -631,8 +631,8 @@ name_guru_init (NameGuruState *state, WorkbookControlGUI *wbcg)
/**
* dialog_define_names:
* @wbcg:
*
* @wbcg:
*
* Create and show the define names dialog.
**/
void
......@@ -653,4 +653,3 @@ dialog_define_names (WorkbookControlGUI *wbcg)
name_guru_populate_list (state);
gtk_widget_show (state->dialog);
}
This diff is collapsed.
......@@ -8,6 +8,7 @@
#include <config.h>
#include "workbook.h"
#include "sheet.h"
#include "dialog-stf-export-private.h"
......
......@@ -16,7 +16,6 @@
#include "ranges.h"
#include "eval.h"
#include "value.h"
#include "rendered-value.h"
#include "main.h"
#include "workbook-control.h"
#include "workbook-view.h"
......
......@@ -16,6 +16,8 @@
#include "workbook-view.h"
#include "workbook.h"
#include <libgnome/libgnome.h>
/* A GList of FileOpener structures */
static GList *gnumeric_file_savers = NULL;
static GList *gnumeric_file_openers = NULL;
......
......@@ -2,7 +2,6 @@
#define GNUMERIC_FILE_H
#include "gnumeric.h"
#include "workbook-control-gui.h"
/*
* File format levels. They are ordered. When we save a file, we
......
......@@ -40,6 +40,7 @@
#include "format.h"
#include "expr.h"
#include "dates.h"
#include "value.h"
#include "parse-util.h"
#include "portability.h"
#include "datetime.h"
......
......@@ -11,7 +11,6 @@
#include "func-util.h"
#include "func.h"
#include "cell.h"
#include "rendered-value.h"
/* Type definitions */
......
......@@ -25,6 +25,7 @@
#include "formats.h"
#include "command-context.h"
#include "workbook.h"
#include "workbook-control-gui.h"
#include "sheet-object.h"
#include "number-match.h"
#include "main.h"
......
......@@ -25,6 +25,7 @@
#include "formats.h"
#include "command-context.h"
#include "workbook.h"
#include "workbook-control-gui.h"
#include "sheet-object.h"
#include "number-match.h"
#include "main.h"
......
......@@ -29,6 +29,7 @@
#include "datetime.h"
#include "style.h"
#include "format.h"
#include "value.h"
#undef DEBUG_NUMBER_MATCH
......
......@@ -13,7 +13,6 @@
#include "cell.h"
#include "sort.h"
#include "value.h"
#include "rendered-value.h"
#include <stdlib.h>
#include <stdio.h>
......
......@@ -25,11 +25,12 @@
*/
#include <config.h>
#include <stdio.h>
#include "rendered-value.h"
#include "stf-export.h"
#include "sheet.h"
#include "cell.h"
#include <stdio.h>
#include <string.h>
/*******************************************************************************************************
* STF_EXPORT_OPTIONS Creation/Destruction/Manipulation
......
#ifndef GNUMERIC_STF_EXPORT_H
#define GNUMERIC_STF_EXPORT_H
#include <gnome.h>
#include "sheet.h"
#include "cell.h"
#include "gnumeric.h"
/*
* Callback functions
......@@ -46,27 +43,19 @@ typedef struct
/*
* Creation/Destruction of StfExportOptions struct
*/
StfExportOptions_t *stf_export_options_new (void);
void stf_export_options_free (StfExportOptions_t *export_options);
StfExportOptions_t *stf_export_options_new (void);
void stf_export_options_free (StfExportOptions_t *export_options);
/*
* Manipulation of StfExportOptions struct
*/
void stf_export_options_set_terminator_type (StfExportOptions_t *export_options, StfTerminatorType_t terminator_type);
void stf_export_options_set_cell_separator (StfExportOptions_t *export_options, char cell_separator);
void stf_export_options_set_quoting_mode (StfExportOptions_t *export_options, StfQuotingMode_t quoting_mode);
void stf_export_options_set_quoting_char (StfExportOptions_t *export_options, char quoting_char);
void stf_export_options_set_write_callback (StfExportOptions_t *export_options, StfEWriteFunc write_func, gpointer data);
void stf_export_options_sheet_list_clear (StfExportOptions_t *export_options);
void stf_export_options_sheet_list_add (StfExportOptions_t *export_options, Sheet *sheet);
void stf_export_options_set_terminator_type (StfExportOptions_t *export_options, StfTerminatorType_t terminator_type);
void stf_export_options_set_cell_separator (StfExportOptions_t *export_options, char cell_separator);
void stf_export_options_set_quoting_mode (StfExportOptions_t *export_options, StfQuotingMode_t quoting_mode);
void stf_export_options_set_quoting_char (StfExportOptions_t *export_options, char quoting_char);
void stf_export_options_set_write_callback (StfExportOptions_t *export_options, StfEWriteFunc write_func, gpointer data);
void stf_export_options_sheet_list_clear (StfExportOptions_t *export_options);
void stf_export_options_sheet_list_add (StfExportOptions_t *export_options, Sheet *sheet);
/*
* Functions that do the actual thing
......@@ -74,7 +63,3 @@ void stf_export_options_sheet_list_add (StfExportOptions_t
gboolean stf_export (StfExportOptions_t *export_options);
#endif
......@@ -31,7 +31,6 @@
#include "sheet-private.h"
#include "sheet-control-gui.h"
#include "sheet-object.h"
#include "rendered-value.h"
#include "dialogs.h"
#include "commands.h"
#include "cmd-edit.h"
......
......@@ -19,7 +19,6 @@
#include "sheet.h"
#include "cell.h"
#include "expr.h"
#include "rendered-value.h"
#include "gnumeric-util.h"
#include "parse-util.h"
......
......@@ -10,6 +10,7 @@
#include "gnumeric.h"
#include "summary.h"
#include "file.h"
#include <gtk/gtkobject.h>
typedef struct _WorkbookPrivate WorkbookPrivate;
struct _Workbook {
......
......@@ -35,7 +35,6 @@
#include "value.h"
#include "mstyle.h"
#include "position.h"
#include "rendered-value.h"
#include "cell.h"
#include "parse-util.h"
#include "gnumeric-type-util.h"
......
......@@ -10,6 +10,7 @@
#include "gnumeric.h"
#include "summary.h"
#include "file.h"
#include <gtk/gtkobject.h>
typedef struct _WorkbookPrivate WorkbookPrivate;
struct _Workbook {
......
......@@ -25,7 +25,6 @@
#include "sheet-object-cell-comment.h"
#include "print-info.h"
#include "xml-io.h"
#include "rendered-value.h"
#include "file.h"
#include "expr.h"
#include "expr-name.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