commands.h 906 Bytes
Newer Older
Jody Goldberg's avatar
Jody Goldberg committed
1
2
3
4
5
6
7
8
#ifndef GNUMERIC_COMMAND_H
#define GNUMERIC_COMMAND_H

#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
9
10
void command_list_pop_top_undo (Workbook *wb);
void command_list_release      (GSList *cmds);
Jody Goldberg's avatar
Jody Goldberg committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

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

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

#endif /* GNUMERIC_COMMAND_CONTEXT_H */