commands.h 1.76 KB
Newer Older
Jody Goldberg's avatar
Jody Goldberg committed
1
2
3
#ifndef GNUMERIC_COMMAND_H
#define GNUMERIC_COMMAND_H

4
#include "gnumeric.h"
Jody Goldberg's avatar
Jody Goldberg committed
5
#include "command-context.h"
6
#include "sort.h"
Jody Goldberg's avatar
Jody Goldberg committed
7
8
9
10

void command_undo (CommandContext *context, Workbook *wb);
void command_redo (CommandContext *context, Workbook *wb);

Morten Welinder's avatar
Morten Welinder committed
11
12
void command_list_pop_top_undo (Workbook *wb);
void command_list_release      (GSList *cmds);
Jody Goldberg's avatar
Jody Goldberg committed
13
14
15

gboolean cmd_set_text (CommandContext *context,
		       Sheet *sheet, CellPos const * const pos,
16
		       char * new_text);
Jody Goldberg's avatar
Jody Goldberg committed
17

18
19
20
gboolean cmd_set_date_time (CommandContext *context, gboolean is_date,
			    Sheet *sheet, int col, int row);

Jody Goldberg's avatar
Jody Goldberg committed
21
22
23
24
25
26
27
28
29
gboolean cmd_insert_cols (CommandContext *context,
			  Sheet *sheet, int start_col, int count);
gboolean cmd_insert_rows (CommandContext *context,
			  Sheet *sheet, int start_row, int count);
gboolean cmd_delete_cols (CommandContext *context,
			  Sheet *sheet, int start_col, int count);
gboolean cmd_delete_rows (CommandContext *context,
			  Sheet *sheet, int start_row, int count);

Jody Goldberg's avatar
Jody Goldberg committed
30
31
32
gboolean cmd_resize_row_col (CommandContext *context, gboolean is_col,
			     Sheet *sheet, int index);

33
34
35
gboolean cmd_paste_cut (CommandContext *context,
			ExprRelocateInfo const * const info);

36
37
38
gboolean cmd_rename_sheet (CommandContext *context, Workbook *wb,
			   const char *old_name, const char *new_name);

Michael Meeks's avatar
Michael Meeks committed
39
40
41
42
43
44
gboolean cmd_sort   (CommandContext *context, Sheet *sheet,
		     Range *range, SortClause *clauses,
		     gint num_clause, gboolean columns);

gboolean cmd_format (CommandContext *context, Sheet *sheet,
		     MStyle *style, MStyleBorder **borders);
45

Jody Goldberg's avatar
Jody Goldberg committed
46
47
gboolean cmd_clear_selection (CommandContext *context, Sheet *sheet, int const clear_flags);

48
49
50
gboolean cmd_hide_selection_rows_cols (CommandContext *context, Sheet *sheet,
				       gboolean const is_cols, gboolean const visible);

JP Rosevear's avatar
JP Rosevear committed
51
52
53
#endif /* GNUMERIC_COMMAND_H */