data-shuffling.h 868 Bytes
Newer Older
1 2 3 4
#ifndef __DATA_SHUFFLING_H__
#define __DATA_SHUFFLING_H__

#include <gnumeric.h>
5
#include <tools/dao.h>
6 7 8 9 10 11 12


#define SHUFFLE_COLS  0
#define SHUFFLE_ROWS  1
#define SHUFFLE_AREA  2


Morten Welinder's avatar
Morten Welinder committed
13
typedef struct _data_shuffling_t {
14 15 16 17 18 19 20 21 22 23 24 25 26
	GSList  *changes;
	int     a_col;
	int     b_col;
	int     a_row;
	int     b_row;
	int     cols;
	int     rows;
        int     type;

        WorkbookControl *wbc;
	data_analysis_output_t *dao;
	Sheet                  *sheet;

Jody Goldberg's avatar
Jody Goldberg committed
27
        GnmRange tmp_area;
28 29 30 31 32 33 34 35
} data_shuffling_t;


void              data_shuffling_redo (data_shuffling_t *st);
void              data_shuffling_free (data_shuffling_t *st);
data_shuffling_t *data_shuffling      (WorkbookControl        *wbc,
				       data_analysis_output_t *dao,
				       Sheet                  *sheet,
Jody Goldberg's avatar
Jody Goldberg committed
36
				       GnmValue               *input,
37
				       int                    shuffling_type);
38 39

#endif