Update Spanish translation
[gnumeric.git] / src / sheet-diff.h
blob8765fd86cd5aacdfe3dc615a31c430c624cfde1c
1 #ifndef GNM_SHEET_DIFF_H
2 #define GNM_SHEET_DIFF_H
4 #include <gnumeric.h>
6 G_BEGIN_DECLS
8 typedef struct {
9 // Start comparison of two workbooks.
10 gboolean (*diff_start) (gpointer user);
12 // Finish comparison started with above.
13 void (*diff_end) (gpointer user);
15 // Clean up allocations
16 // This is not actually called by code here
17 void (*dtor) (gpointer user);
19 /* ------------------------------ */
21 // Start looking at a sheet. Either sheet might be NULL.
22 void (*sheet_start) (gpointer user,
23 Sheet const *os, Sheet const *ns);
25 // Finish sheet started with above.
26 void (*sheet_end) (gpointer user);
28 // The order of sheets has changed.
29 void (*sheet_order_changed) (gpointer user);
31 // An integer attribute of the sheet has changed.
32 void (*sheet_attr_int_changed) (gpointer user, const char *name,
33 int o, int n);
35 /* ------------------------------ */
37 // Column or Row information changed
38 void (*colrow_changed) (gpointer user,
39 ColRowInfo const *oc, ColRowInfo const *nc,
40 gboolean is_cols, int i);
42 /* ------------------------------ */
44 // A cell was changed/added/removed.
45 void (*cell_changed) (gpointer user,
46 GnmCell const *oc, GnmCell const *nc);
48 /* ------------------------------ */
50 // The style of an area was changed.
51 void (*style_changed) (gpointer user, GnmRange const *r,
52 GnmStyle const *os, GnmStyle const *ns);
54 /* ------------------------------ */
56 // A defined name was changed
57 void (*name_changed) (gpointer user,
58 GnmNamedExpr const *on, GnmNamedExpr const *nn);
59 } GnmDiffActions;
62 gboolean gnm_diff_sheets (const GnmDiffActions *actions, gpointer user,
63 Sheet *old_sheet, Sheet *new_sheet);
65 int gnm_diff_workbooks (const GnmDiffActions *actions, gpointer user,
66 Workbook *old_wb, Workbook *new_wb);
68 G_END_DECLS
70 #endif /* GNM_SHEET_DIFF_H */