1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2017, 2018 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #include "output/spv/spv.h"
24 #include "data/settings.h"
25 #include "output/pivot-table.h"
27 #include "gl/xalloc.h"
30 indent (int indentation)
32 for (int i = 0; i < indentation * 2; i++)
37 spv_item_dump (const struct spv_item *item, int indentation)
41 printf ("\"%s\" ", item->label);
47 case SPV_ITEM_HEADING:
49 for (size_t i = 0; i < item->n_children; i++)
50 spv_item_dump (item->children[i], indentation + 1);
54 printf ("text \"%s\"\n",
55 pivot_value_to_string (item->text, SETTINGS_VALUE_SHOW_DEFAULT,
56 SETTINGS_VALUE_SHOW_DEFAULT));
61 pivot_table_dump (item->table, indentation + 1);
64 printf ("unloaded table in %s", item->bin_member);
66 printf (" and %s", item->xml_member);
80 printf ("object type=\"%s\" uri=\"%s\"\n", item->object_type, item->uri);