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
25 #include <value.h> /* remove after move to goffice */
26 #include <gnm-format.h> /* remove after move to goffice */
29 #ifndef GOFFICE_NAMESPACE_DISABLE
31 typedef GnmValue GOVal
;
32 #define GO_VAL_TYPE gnm_value_get_type()
34 #define go_val_free value_release
35 #define go_val_dup value_dup
36 #define go_val_new_empty value_new_empty
37 #define go_val_new_float value_new_float
38 #define go_val_new_bool value_new_bool
39 #define go_val_new_str value_new_string
40 #define go_val_new_str_nocopy value_new_string_nocopy
41 #define go_val_get_fmt(v) VALUE_FMT(v)
43 #define go_val_as_float value_get_as_float
45 #define go_val_cmp value_cmp
47 /*******************************************************/
49 typedef GPtrArray GOValArray
;
50 void go_val_array_free (GOValArray
*a
);
51 GOVal
*go_val_array_index_steal (GOValArray
*a
, int i
);
52 #define go_val_array_index g_ptr_array_index
54 /*******************************************************/
62 GO_VAL_BUCKET_DAY_OF_YEAR
,
63 GO_VAL_BUCKET_WEEKDAY
,
65 GO_VAL_BUCKET_CALENDAR_QUARTER
,
68 GO_VAL_BUCKET_SERIES_LINEAR
,
69 GO_VAL_BUCKET_SERIES_LOG
87 void go_val_bucketer_init (GOValBucketer
*bucketer
);
88 GError
*go_val_bucketer_validate (GOValBucketer
*bucketer
);
89 int go_val_bucketer_apply (GOValBucketer
const *bucketer
, GOVal
const *v
);