/* PSPP - a program for statistical analysis.
- Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <language/command.h>
#include <libpspp/misc.h>
#include <math/moments.h>
-#include <output/manager.h>
-#include <output/table.h>
+#include <output/tab.h>
+#include <output/text-item.h>
#include "xalloc.h"
#include "xmalloca.h"
alpha (s->n_items, s->sum_of_variances, s->variance_of_sums);
}
-
- {
- struct tab_table *tab = tab_create(1, 1, 0);
-
- tab_dim (tab, tab_natural_dimensions, NULL);
- tab_flags (tab, SOMF_NO_TITLE );
-
- tab_text_format (tab, 0, 0, 0, "Scale: %s", ds_cstr (&rel->scale_name));
-
- tab_submit(tab);
- }
-
+ text_item_submit (text_item_create_format (TEXT_ITEM_PARAGRAPH, "Scale: %s",
+ ds_cstr (&rel->scale_name)));
case_processing_summary (n_valid, n_missing, dataset_dict (ds));
}
int heading_columns = rol[rel->model].heading_cols;
int heading_rows = rol[rel->model].heading_rows;
- struct tab_table *tbl = tab_create (n_cols, n_rows, 0);
+ struct tab_table *tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
- tab_dim (tbl, tab_natural_dimensions, NULL);
-
tab_title (tbl, _("Reliability Statistics"));
/* Vertical lines for the data only */
const int heading_rows = 1;
const int n_rows = rel->sc[0].n_items + heading_rows ;
- struct tab_table *tbl = tab_create (n_cols, n_rows, 0);
+ struct tab_table *tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
- tab_dim (tbl, tab_natural_dimensions, NULL);
-
tab_title (tbl, _("Item-Total Statistics"));
/* Vertical lines for the data only */
_("Cronbach's Alpha"));
tab_text (tbl, 1, 0, TAB_CENTER | TAT_TITLE,
- _("N of items"));
+ _("N of Items"));
tab_double (tbl, 0, 1, TAB_RIGHT, s->alpha, NULL);
int heading_columns = 2;
int heading_rows = 1;
struct tab_table *tbl;
- tbl = tab_create (n_cols, n_rows, 0);
+ tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
- tab_dim (tbl, tab_natural_dimensions, NULL);
-
tab_title (tbl, _("Case Processing Summary"));
/* Vertical lines for the data only */