1.12.42
[gnumeric.git] / src / tools / data-shuffling.h
blob37c47df2caef44828f3e6b1f74e9cb8e0637b80b
1 #ifndef __DATA_SHUFFLING_H__
2 #define __DATA_SHUFFLING_H__
4 #include <gnumeric.h>
5 #include <tools/dao.h>
8 #define SHUFFLE_COLS 0
9 #define SHUFFLE_ROWS 1
10 #define SHUFFLE_AREA 2
13 typedef struct _data_shuffling_t {
14 GSList *changes;
15 int a_col;
16 int b_col;
17 int a_row;
18 int b_row;
19 int cols;
20 int rows;
21 int type;
23 WorkbookControl *wbc;
24 data_analysis_output_t *dao;
25 Sheet *sheet;
27 GnmRange tmp_area;
28 } data_shuffling_t;
31 void data_shuffling_redo (data_shuffling_t *st);
32 void data_shuffling_free (data_shuffling_t *st);
33 data_shuffling_t *data_shuffling (WorkbookControl *wbc,
34 data_analysis_output_t *dao,
35 Sheet *sheet,
36 GnmValue *input,
37 int shuffling_type);
39 #endif