1
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
5
* Copyright (C) 2008 Jody Goldberg (jody@gnome.org)
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of version 2 of the GNU General Public
9
* License as published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
21
#ifndef GO_DATA_SLICER_H
22
#define GO_DATA_SLICER_H
24
#include "goffice-data.h" /* remove after move to goffice */
25
#include <glib-object.h>
29
#define GO_DATA_SLICER_TYPE (go_data_slicer_get_type ())
30
#define GO_DATA_SLICER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_DATA_SLICER_TYPE, GODataSlicer))
31
#define IS_GO_DATA_SLICER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_DATA_SLICER_TYPE))
33
GType go_data_slicer_get_type (void);
35
GODataCache *go_data_slicer_get_cache (GODataSlicer const *ds);
36
void go_data_slicer_set_cache (GODataSlicer *ds, GODataCache *cache);
38
void go_data_slicer_add_field (GODataSlicer *ds, GODataSlicerField *field);
39
GODataSlicerField *go_data_slicer_get_field (GODataSlicer const *ds, unsigned int field_index);
40
unsigned int go_data_slicer_num_fields (GODataSlicer const *ds);
41
void go_data_slicer_order_field (GODataSlicer *ds, GODataSlicerFieldType field_type,
42
unsigned int field_index, int before);
46
#endif /* GO_DATA_SLICER_H */