1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_COMPLETE_H_
3 # define _GNM_COMPLETE_H_
5 #include <glib-object.h>
6 #include <gnumeric-fwd.h>
10 #define GNM_COMPLETE_TYPE (gnm_complete_get_type ())
11 #define GNM_COMPLETE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_COMPLETE_TYPE, GnmComplete))
12 #define GNM_COMPLETE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNM_COMPLETE_TYPE, GnmCompleteClass))
13 #define GNM_IS_COMPLETE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_COMPLETE_TYPE))
15 typedef void (*GnmCompleteMatchNotifyFn
) (char const *text
, void *closure
);
20 GnmCompleteMatchNotifyFn notify
;
29 GObjectClass parent_class
;
31 void (*start_over
) (GnmComplete
*complete
);
32 gboolean (*search_iteration
) (GnmComplete
*complete
);
35 void gnm_complete_construct (GnmComplete
*complete
,
36 GnmCompleteMatchNotifyFn notify
,
37 void *notify_closure
);
38 void gnm_complete_start (GnmComplete
*complete
, char const *text
);
39 GType
gnm_complete_get_type (void);
43 #endif /* _GNM_COMPLETE_H_ */