Introspection fixes
[gnumeric.git] / src / go-data-slicer.h
blob28e8d4f2e462066c599ea9ff97e945fa40049c3a
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * go-data-slicer.h :
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 the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) version 3.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20 * USA
22 #ifndef GO_DATA_SLICER_H
23 #define GO_DATA_SLICER_H
25 #include "goffice-data.h" /* remove after move to goffice */
26 #include <glib-object.h>
28 G_BEGIN_DECLS
29 #ifndef GOFFICE_NAMESPACE_DISABLE
31 #define GO_DATA_SLICER_TYPE (go_data_slicer_get_type ())
32 #define GO_DATA_SLICER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_DATA_SLICER_TYPE, GODataSlicer))
33 #define IS_GO_DATA_SLICER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_DATA_SLICER_TYPE))
35 GType go_data_slicer_get_type (void);
37 GODataCache *go_data_slicer_get_cache (GODataSlicer const *ds);
38 void go_data_slicer_set_cache (GODataSlicer *ds, GODataCache *cache);
40 void go_data_slicer_add_field (GODataSlicer *ds, GODataSlicerField *field);
41 GODataSlicerField *go_data_slicer_get_field (GODataSlicer const *ds, unsigned int field_index);
42 unsigned int go_data_slicer_num_fields (GODataSlicer const *ds);
44 #endif
45 G_END_DECLS
47 #endif /* GO_DATA_SLICER_H */