Introspection fixes.
[gnumeric.git] / src / gnm-data-cache-source.h
blob9bf0e206b5ebc5174b15848189bfa5a7c5e66e83
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * gnm-data-cache-source.h : GODataCacheSource from a GnmSheet
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 GNM_DATA_CACHE_SOURCE_H
23 #define GNM_DATA_CACHE_SOURCE_H
25 #include <goffice/goffice.h>
26 #include <glib-object.h>
28 #include <gnumeric.h>
29 #include "goffice-data.h"
31 G_BEGIN_DECLS
33 #define GNM_DATA_CACHE_SOURCE_TYPE (gnm_data_cache_source_get_type ())
34 #define GNM_DATA_CACHE_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_DATA_CACHE_SOURCE_TYPE, GnmDataCacheSource))
35 #define GNM_IS_DATA_CACHE_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_DATA_CACHE_SOURCE_TYPE))
37 GType gnm_data_cache_source_get_type (void);
39 typedef struct _GnmDataCacheSource GnmDataCacheSource;
41 #ifndef GOFFICE_NAMESPACE_DISABLE
42 GODataCacheSource *gnm_data_cache_source_new (Sheet *src_sheet,
43 GnmRange const *src_range, char const *src_name);
44 #endif
46 Sheet *gnm_data_cache_source_get_sheet (GnmDataCacheSource const *src);
47 void gnm_data_cache_source_set_sheet (GnmDataCacheSource *src, Sheet *sheet);
48 GnmRange const *gnm_data_cache_source_get_range (GnmDataCacheSource const *src);
49 void gnm_data_cache_source_set_range (GnmDataCacheSource *src, GnmRange const *r);
50 char const *gnm_data_cache_source_get_name (GnmDataCacheSource const *src);
51 void gnm_data_cache_source_set_name (GnmDataCacheSource *src, char const *name);
53 G_END_DECLS
55 #endif /* GNM_DATA_CACHE_SOURCE_H */