[gnumeric] Fix some Statistics tool formatting: italics, borders, bold [#649092]



commit 3770dce7aa1cdd1b7aac459b049a285ba638b666
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sun May 1 21:59:10 2011 -0600

    Fix some Statistics tool formatting: italics, borders, bold [#649092]
    
    2011-05-1 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* analysis-anova.c (analysis_tool_anova_two_factor_no_rep_engine_run):
    	use thin border
    	(analysis_tool_anova_two_factor_engine_run): ditto
    	* analysis-exp-smoothing.c
    	(analysis_tool_exponential_smoothing_engine_ses_h_run): fix italic
    	labels
    	(analysis_tool_exponential_smoothing_engine_ses_r_run): ditto
    	(analysis_tool_exponential_smoothing_engine_des_run): ditto
    	(analysis_tool_exponential_smoothing_engine_ates_run): ditto
    	(analysis_tool_exponential_smoothing_engine_mtes_run): ditto
    	* analysis-wilcoxon-mann-whitney.c
    	(analysis_tool_wilcoxon_mann_whitney_engine_run): don't bold the title

 src/tools/ChangeLog                        |   17 ++++++++++++++++-
 src/tools/analysis-anova.c                 |    8 ++++----
 src/tools/analysis-exp-smoothing.c         |   10 +++++-----
 src/tools/analysis-wilcoxon-mann-whitney.c |    1 -
 4 files changed, 25 insertions(+), 11 deletions(-)
---
diff --git a/src/tools/ChangeLog b/src/tools/ChangeLog
index 46fe02f..a68cea6 100644
--- a/src/tools/ChangeLog
+++ b/src/tools/ChangeLog
@@ -1,6 +1,21 @@
 2011-05-1 Andreas J. Guelzow <aguelzow pyrshep ca>
 
-	* analysis-frequency.c (analysis_tool_frequency_engine_run): 
+	* analysis-anova.c (analysis_tool_anova_two_factor_no_rep_engine_run):
+	use thin border
+	(analysis_tool_anova_two_factor_engine_run): ditto
+	* analysis-exp-smoothing.c
+	(analysis_tool_exponential_smoothing_engine_ses_h_run): fix italic
+	labels
+	(analysis_tool_exponential_smoothing_engine_ses_r_run): ditto
+	(analysis_tool_exponential_smoothing_engine_des_run): ditto
+	(analysis_tool_exponential_smoothing_engine_ates_run): ditto
+	(analysis_tool_exponential_smoothing_engine_mtes_run): ditto
+	* analysis-wilcoxon-mann-whitney.c
+	(analysis_tool_wilcoxon_mann_whitney_engine_run): don't bold the title
+
+2011-05-1 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* analysis-frequency.c (analysis_tool_frequency_engine_run):
 	fix italic labels
 	* analysis-histogram.c (analysis_tool_histogram_engine_run): ditto
 	* analysis-tools.c (analysis_tool_ranking_engine_run): ditto
diff --git a/src/tools/analysis-anova.c b/src/tools/analysis-anova.c
index f3fa841..52ce357 100644
--- a/src/tools/analysis-anova.c
+++ b/src/tools/analysis-anova.c
@@ -243,9 +243,9 @@ analysis_tool_anova_two_factor_no_rep_engine_run (data_analysis_output_t *dao,
 					"/Error"
 					"/Total"));
 	dao_set_italic (dao, 1, r, 6, r);
-	dao_set_border (dao, 0, r, 6, r, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THICK,
+	dao_set_border (dao, 0, r, 6, r, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THIN,
 			style_color_black (), GNM_STYLE_BORDER_HORIZ);
-	dao_set_border (dao, 0, r+3, 6, r+3, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THICK,
+	dao_set_border (dao, 0, r+3, 6, r+3, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THIN,
 			style_color_black (), GNM_STYLE_BORDER_HORIZ);
 	set_cell_text_row (dao, 1, r, _("/SS"
 					"/df"
@@ -602,9 +602,9 @@ analysis_tool_anova_two_factor_engine_run (data_analysis_output_t *dao,
 					"/Error"
 					"/Total"));
 	dao_set_italic (dao, 1, r, 6, r);
-	dao_set_border (dao, 0, r, 6, r, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THICK,
+	dao_set_border (dao, 0, r, 6, r, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THIN,
 			style_color_black (), GNM_STYLE_BORDER_HORIZ);
-	dao_set_border (dao, 0, r+4, 6, r+4, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THICK,
+	dao_set_border (dao, 0, r+4, 6, r+4, MSTYLE_BORDER_BOTTOM, GNM_STYLE_BORDER_THIN,
 			style_color_black (), GNM_STYLE_BORDER_HORIZ);
 	set_cell_text_row (dao, 1, r, _("/SS"
 					"/df"
diff --git a/src/tools/analysis-exp-smoothing.c b/src/tools/analysis-exp-smoothing.c
index 58fed9e..2cd740f 100644
--- a/src/tools/analysis-exp-smoothing.c
+++ b/src/tools/analysis-exp-smoothing.c
@@ -131,6 +131,7 @@ analysis_tool_exponential_smoothing_engine_ses_h_run (data_analysis_output_t *da
 		gint row;
 		Sheet *sheet;
 
+		dao_set_italic (dao, col, 0, col, 0);
 		if (info->base.labels) {
 			val_c = value_dup (val);
 			switch (info->base.group_by) {
@@ -144,7 +145,6 @@ analysis_tool_exponential_smoothing_engine_ses_h_run (data_analysis_output_t *da
 			expr_title = gnm_expr_new_funcall1 (fd_index,
 							    gnm_expr_new_constant (val_c));
 
-			dao_set_italic (dao, col, 0, col, 0);
 			dao_set_cell_expr (dao, col, 0, expr_title);
 		} else
 			dao_set_cell_printf
@@ -307,6 +307,7 @@ analysis_tool_exponential_smoothing_engine_ses_r_run (data_analysis_output_t *da
 		gint row;
 		Sheet *sheet;
 
+		dao_set_italic (dao, col, 0, col, 0);
 		if (info->base.labels) {
 			val_c = value_dup (val);
 			switch (info->base.group_by) {
@@ -320,7 +321,6 @@ analysis_tool_exponential_smoothing_engine_ses_r_run (data_analysis_output_t *da
 			expr_title = gnm_expr_new_funcall1 (fd_index,
 							    gnm_expr_new_constant (val_c));
 
-			dao_set_italic (dao, col, 0, col, 0);
 			dao_set_cell_expr (dao, col, 0, expr_title);
 		} else
 			dao_set_cell_printf
@@ -495,6 +495,7 @@ analysis_tool_exponential_smoothing_engine_des_run (data_analysis_output_t *dao,
 		gint row;
 		Sheet *sheet;
 
+		dao_set_italic (dao, col, 0, col, 0);
 		if (info->base.labels) {
 			val_c = value_dup (val);
 			switch (info->base.group_by) {
@@ -508,7 +509,6 @@ analysis_tool_exponential_smoothing_engine_des_run (data_analysis_output_t *dao,
 			expr_title = gnm_expr_new_funcall1 (fd_index,
 							    gnm_expr_new_constant (val_c));
 
-			dao_set_italic (dao, col, 0, col, 0);
 			dao_set_cell_expr (dao, col, 0, expr_title);
 		} else
 			dao_set_cell_printf
@@ -759,6 +759,7 @@ analysis_tool_exponential_smoothing_engine_ates_run (data_analysis_output_t *dao
 									    "/Trend"
 									    "/Seasonal Adjustment"));
 
+			dao_set_italic (dao, col,  -info->s_period, col,  -info->s_period);
 			if (info->base.labels) {
 				val_c = value_dup (val);
 				switch (info->base.group_by) {
@@ -772,7 +773,6 @@ analysis_tool_exponential_smoothing_engine_ates_run (data_analysis_output_t *dao
 				expr_title = gnm_expr_new_funcall1 (fd_index,
 								    gnm_expr_new_constant (val_c));
 
-				dao_set_italic (dao, col,  -info->s_period, col,  -info->s_period);
 				dao_set_cell_expr (dao, col,  -info->s_period, expr_title);
 			} else
 				dao_set_cell_printf
@@ -1081,6 +1081,7 @@ analysis_tool_exponential_smoothing_engine_mtes_run (data_analysis_output_t *dao
 									    "/Trend"
 									    "/Seasonal Adjustment"));
 
+			dao_set_italic (dao, col,  -info->s_period, col,  -info->s_period);
 			if (info->base.labels) {
 				val_c = value_dup (val);
 				switch (info->base.group_by) {
@@ -1094,7 +1095,6 @@ analysis_tool_exponential_smoothing_engine_mtes_run (data_analysis_output_t *dao
 				expr_title = gnm_expr_new_funcall1 (fd_index,
 								    gnm_expr_new_constant (val_c));
 
-				dao_set_italic (dao, col,  -info->s_period, col,  -info->s_period);
 				dao_set_cell_expr (dao, col,  -info->s_period, expr_title);
 			} else
 				dao_set_cell_printf
diff --git a/src/tools/analysis-wilcoxon-mann-whitney.c b/src/tools/analysis-wilcoxon-mann-whitney.c
index 5e2b2ff..c601edb 100644
--- a/src/tools/analysis-wilcoxon-mann-whitney.c
+++ b/src/tools/analysis-wilcoxon-mann-whitney.c
@@ -94,7 +94,6 @@ analysis_tool_wilcoxon_mann_whitney_engine_run (data_analysis_output_t *dao,
 		("ISBLANK", dao->sheet ? dao->sheet->workbook : NULL, FALSE);
 	gnm_func_ref (fd_isblank);
 
-	dao_set_bold (dao, 0, 0, 0, 0);
 	dao_set_italic (dao, 0, 0, 0, 8);
 	dao_set_italic (dao, 0, 1, 3, 1);
 	dao_set_merge (dao, 0, 0, 3, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]