Commit d8bd3cae authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Avoid lots of includes of <gnm-format.h>

2006-04-24  Morten Welinder  <terra@gnome.org>

	* */*.c: Avoid lots of includes of <gnm-format.h>
parent 4177cdfd
2006-04-24 Morten Welinder <terra@gnome.org>
* */*.c: Avoid lots of includes of <gnm-format.h>
2006-04-23 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_reorganize_sheets): Rename from
......
2006-04-24 Morten Welinder <terra@gnome.org>
* */*.c: Avoid lots of includes of <gnm-format.h>
2006-04-23 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_reorganize_sheets): Rename from
......
......@@ -78,10 +78,11 @@ cell_calc_layout (GnmCell const *cell, RenderedValue *rv, int y_direction,
rv->might_overflow &&
!rv->numeric_overflow) {
char const *text = pango_layout_get_text (layout);
/* This assumes that hash marks are wider than
size_t textlen = strlen (text);
/* This assumes that two hash marks are wider than
the characters in the number. Probably ok. */
pango_layout_set_text (layout, hashes,
MIN (sizeof (hashes) - 1, strlen (text)));
MIN (sizeof (hashes) - 1, 2 * textlen));
rv->numeric_overflow = TRUE;
rv->variable_width = TRUE;
rv->hfilled = TRUE;
......
......@@ -20,11 +20,11 @@
#include "str.h"
#include "style.h"
#include "ranges.h"
#include "gnm-format.h"
#include "sheet-object-cell-comment.h"
#include "sheet-style.h"
#include "parse-util.h"
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/go-format.h>
#define USE_CELL_POOL 1
......
......@@ -27,7 +27,6 @@
#include "expr-impl.h"
#include "expr-name.h"
#include "dependent.h"
#include "gnm-format.h"
#include "func.h"
#include "cell.h"
#include "sheet.h"
......@@ -44,6 +43,7 @@
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <goffice/utils/go-format.h>
#include <goffice/utils/go-glib-extras.h>
/*
......
......@@ -27,8 +27,8 @@
#include "sheet.h"
#include "value.h"
#include "number-match.h"
#include "gnm-format.h"
#include "func-builtin.h"
#include <goffice/utils/go-format.h>
#include <string.h>
#include <glib.h>
......
......@@ -8,7 +8,7 @@
#include "style-font.h"
#include "validation.h"
#include "pattern.h"
#include "gnm-format.h"
#include <goffice/utils/go-format.h>
struct _GnmStyle {
unsigned int changed;
......
......@@ -31,12 +31,12 @@
#include "workbook.h"
#include "workbook-cmd-format.h"
#include "commands.h"
#include "gnm-format.h"
#include "cmd-edit.h"
#include "clipboard.h"
#include <gsf/gsf-impl-utils.h>
#include <gdk/gdkkeysyms.h>
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/go-format.h>
#include <string.h>
#define SCROLL_LOCK_MASK GDK_MOD5_MASK
......
......@@ -770,6 +770,10 @@ gnm_style_is_element_set (GnmStyle const *style, GnmStyleElement elem)
gboolean
gnm_style_is_complete (GnmStyle const *style)
{
g_return_val_if_fail (style != NULL, FALSE);
g_assert_not_reached ();
return FALSE;
}
void
......
......@@ -19,12 +19,12 @@
#include "sheet-style.h"
#include "expr.h"
#include "expr-impl.h"
#include "gnm-format.h"
#include "gnm-datetime.h"
#include "mstyle.h"
#include "ranges.h"
#include "sheet-merge.h"
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/go-format.h>
#include <string.h>
#include <errno.h>
......
......@@ -25,7 +25,6 @@
#include "ranges.h"
#include "sheet.h"
#include "expr.h"
#include "gnm-format.h"
#include "style.h"
#include "style-border.h"
#include "style-color.h"
......
......@@ -36,7 +36,6 @@
#include "dependent.h"
#include "value.h"
#include "number-match.h"
#include "gnm-format.h"
#include "clipboard.h"
#include "selection.h"
#include "ranges.h"
......@@ -62,6 +61,7 @@
#include "pivottable.h"
#include "scenarios.h"
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/go-format.h>
#include <glib/gi18n.h>
#include <gsf/gsf-impl-utils.h>
......
......@@ -39,9 +39,9 @@
#include "number-match.h"
#include "gutils.h"
#include "parse-util.h"
#include "gnm-format.h"
#include <goffice/utils/datetime.h>
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/go-format.h>
#include <stdlib.h>
#include <locale.h>
......
......@@ -19,7 +19,6 @@
#include "workbook.h"
#include "application.h"
#include "dialogs.h"
#include "gnm-format.h"
#include "sheet.h"
#include "commands.h"
#include "style-border.h"
......
......@@ -61,7 +61,6 @@
#include "style-color.h"
#include "str.h"
#include "cell.h"
#include "gnm-format.h"
#include "gui-file.h"
#include "search.h"
#include "gui-util.h"
......
......@@ -37,7 +37,6 @@
#include "validation.h"
#include "hlink.h"
#include "input-msg.h"
#include "gnm-format.h"
#include "cell.h"
#include "position.h"
#include "expr.h"
......@@ -60,6 +59,7 @@
#include <goffice/app/go-plugin.h>
#include <goffice/app/error-info.h>
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/go-format.h>
#include <gsf/gsf-libxml.h>
#include <gsf/gsf-input.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