1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * gsf-docprop-vectors.h: A type implementing OLE Document Property vectors
5 * Copyright (C) 2004-2006 Frank Chiulli (fc-linux@cox.net)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2.1 of the GNU Lesser 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 Lesser 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
22 #ifndef GSF_DOCPROP_VECTOR_H
23 #define GSF_DOCPROP_VECTOR_H
26 #include <glib-object.h>
30 #define GSF_DOCPROP_VECTOR_TYPE (gsf_docprop_vector_get_type ())
31 #define GSF_DOCPROP_VECTOR(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GSF_DOCPROP_VECTOR, GsfDocPropVector))
32 #define IS_GSF_DOCPROP_VECTOR(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GSF_DOCPROP_VECTOR_TYPE))
34 typedef struct _GsfDocPropVector GsfDocPropVector;
35 GType gsf_docprop_vector_get_type (void) G_GNUC_CONST;
36 /* void gsf_docprop_vector_register_type (GTypeModule *module); glib dynamic types are not thread safe */
38 GsfDocPropVector *gsf_docprop_vector_new (void);
39 void gsf_docprop_vector_append (GsfDocPropVector *vector, GValue *value);
40 gchar *gsf_docprop_vector_as_string (GsfDocPropVector const *vector);
42 #define VAL_IS_GSF_DOCPROP_VECTOR(v) (G_TYPE_CHECK_VALUE_TYPE((v), GSF_DOCPROP_VECTOR_TYPE))
43 GsfDocPropVector *gsf_value_get_docprop_vector (GValue const *value);
44 GValueArray *gsf_value_get_docprop_varray (GValue const *value);
48 #endif /* GSF_DOCPROP_VECTOR_H */