commands.h 1.22 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
6
7
8
9
#include "command-context.h"

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

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

gboolean cmd_set_text (CommandContext *context,
		       Sheet *sheet, CellPos const * const pos,
		       char const * const new_text,
		       String const * const old_text);

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);

30
31
32
gboolean cmd_paste_cut (CommandContext *context,
			ExprRelocateInfo const * const info);

33
34
35
gboolean cmd_rename_sheet (CommandContext *context, Workbook *wb,
			   const char *old_name, const char *new_name);

Jody Goldberg's avatar
Jody Goldberg committed
36
#endif /* GNUMERIC_COMMAND_CONTEXT_H */