1
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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 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 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 IS_GNM_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
GODataCacheSource *gnm_data_cache_source_new (Sheet *src_sheet,
41
GnmRange const *src_range, char const *src_name);
43
Sheet *gnm_data_cache_source_get_sheet (GnmDataCacheSource const *src);
44
void gnm_data_cache_source_set_sheet (GnmDataCacheSource *src, Sheet *sheet);
45
GnmRange const *gnm_data_cache_source_get_range (GnmDataCacheSource const *src);
46
void gnm_data_cache_source_set_range (GnmDataCacheSource *src, GnmRange const *r);
47
char const *gnm_data_cache_source_get_name (GnmDataCacheSource const *src);
48
void gnm_data_cache_source_set_name (GnmDataCacheSource *src, char const *name);
52
#endif /* GNM_DATA_CACHE_SOURCE_H */