command-context.h 1.46 KB
Newer Older
1 2
#ifndef GNUMERIC_COMMAND_CONTEXT_H
#define GNUMERIC_COMMAND_CONTEXT_H
3 4

#include "gnumeric.h"
Jody Goldberg's avatar
Jody Goldberg committed
5
#include <glib-object.h>
6 7

#define COMMAND_CONTEXT_TYPE        (command_context_get_type ())
Jody Goldberg's avatar
Jody Goldberg committed
8 9
#define COMMAND_CONTEXT(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), COMMAND_CONTEXT_TYPE, CommandContext))
#define IS_COMMAND_CONTEXT(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), COMMAND_CONTEXT_TYPE))
10

11
GType command_context_get_type (void);
12

13
/*
14
 * These are the exceptions that can arise.
15 16 17
 * NOTE : The selection is quite limited by IDL's intentional non-support for
 *        inheritance (single or multiple).
 */
Jody Goldberg's avatar
Jody Goldberg committed
18 19 20 21 22 23 24 25 26 27 28
void  gnumeric_error_system	    (CommandContext *cc, char const *msg);
void  gnumeric_error_read	    (CommandContext *cc, char const *msg);
void  gnumeric_error_save	    (CommandContext *cc, char const *msg);
void  gnumeric_error_plugin	    (CommandContext *cc, char const *msg);
void  gnumeric_error_invalid	    (CommandContext *cc, char const *msg,
				     char const *val);
void  gnumeric_error_splits_array   (CommandContext *cc, char const *cmd,
				     Range const *array);
void  gnumeric_error_error_info	    (CommandContext *cc, ErrorInfo *error);
void  gnumeric_progress_set	    (CommandContext *cc, gfloat f);
void  gnumeric_progress_message_set (CommandContext *cc, char const *msg);
29

30 31
char *cmd_context_get_password	    (CommandContext *cc, char const *msg);
void  cmd_context_set_sensitive	    (CommandContext *cc, gboolean sensitive);
32

33
#endif /* GNUMERIC_COMMAND_CONTEXT_H */