2 * gnm-data-cache-source.h : GODataCacheSource from a GnmSheet
4 * Copyright (C) 2008 Jody Goldberg (jody@gnome.org)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) version 3.
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 GNM_DATA_CACHE_SOURCE_H
22 #define GNM_DATA_CACHE_SOURCE_H
24 #include <goffice/goffice.h>
25 #include <glib-object.h>
28 #include <goffice-data.h>
32 #define GNM_DATA_CACHE_SOURCE_TYPE (gnm_data_cache_source_get_type ())
33 #define GNM_DATA_CACHE_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_DATA_CACHE_SOURCE_TYPE, GnmDataCacheSource))
34 #define GNM_IS_DATA_CACHE_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_DATA_CACHE_SOURCE_TYPE))
36 GType
gnm_data_cache_source_get_type (void);
38 typedef struct _GnmDataCacheSource GnmDataCacheSource
;
40 #ifndef GOFFICE_NAMESPACE_DISABLE
41 GODataCacheSource
*gnm_data_cache_source_new (Sheet
*src_sheet
,
42 GnmRange
const *src_range
, char const *src_name
);
45 Sheet
*gnm_data_cache_source_get_sheet (GnmDataCacheSource
const *src
);
46 void gnm_data_cache_source_set_sheet (GnmDataCacheSource
*src
, Sheet
*sheet
);
47 GnmRange
const *gnm_data_cache_source_get_range (GnmDataCacheSource
const *src
);
48 void gnm_data_cache_source_set_range (GnmDataCacheSource
*src
, GnmRange
const *r
);
49 char const *gnm_data_cache_source_get_name (GnmDataCacheSource
const *src
);
50 void gnm_data_cache_source_set_name (GnmDataCacheSource
*src
, char const *name
);
54 #endif /* GNM_DATA_CACHE_SOURCE_H */