commands.h 1.78 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

void command_undo (CommandContext *context, Workbook *wb);
void command_redo (CommandContext *context, Workbook *wb);
10
void command_list_release	(GSList *cmds);
Jody Goldberg's avatar
Jody Goldberg committed
11

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

15 16
gboolean cmd_area_set_text	(CommandContext *context, EvalPos const *pos,
				 char const *text, gboolean as_array);
Jody Goldberg's avatar
Jody Goldberg committed
17

18 19
gboolean cmd_set_date_time	(CommandContext *context, Sheet *sheet,
				 CellPos const *pos, gboolean is_date);
20

21 22 23 24 25 26 27 28
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
29

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

33 34
gboolean cmd_hide_selection_rows_cols (CommandContext *context, Sheet *sheet,
				       gboolean is_cols, gboolean visible);
35

36 37
gboolean cmd_paste_cut		(CommandContext *context,
				 ExprRelocateInfo const *info);
Michael Meeks's avatar
Michael Meeks committed
38

39 40
gboolean cmd_rename_sheet	(CommandContext *context, Workbook *wb,
				 char const *old_name, char const *new_name);
41

42 43 44
gboolean cmd_sort		(CommandContext *context, Sheet *sheet,
				 Range *range, SortClause *clauses,
				 gint num_clause, gboolean columns);
Jody Goldberg's avatar
Jody Goldberg committed
45

46 47
gboolean cmd_format		(CommandContext *context, Sheet *sheet,
				 MStyle *style, MStyleBorder **borders);
48

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

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