Compilation: fix up tools includes.
[gnumeric.git] / src / tools / tools.h
blob370ede7927374c9860f13b7d6f893f97699c8b7a
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, see <https://www.gnu.org/licenses/>.
15 #ifndef GNUMERIC_TOOLS_H
16 #define GNUMERIC_TOOLS_H
18 #include "gnumeric.h"
19 #include "numbers.h"
20 #include <tools/dao.h>
22 typedef enum {
23 TOOL_ENGINE_UPDATE_DAO = 0,
24 TOOL_ENGINE_UPDATE_DESCRIPTOR,
25 TOOL_ENGINE_PREPARE_OUTPUT_RANGE,
26 TOOL_ENGINE_LAST_VALIDITY_CHECK,
27 TOOL_ENGINE_FORMAT_OUTPUT_RANGE,
28 TOOL_ENGINE_PERFORM_CALC,
29 TOOL_ENGINE_CLEAN_UP
30 } analysis_tool_engine_t;
32 /* Note: when the engine is called with TOOL_ENGINE_CLEAN_UP, the GOCmdContext *gcc will be NULL. */
34 typedef gboolean (* analysis_tool_engine) (GOCmdContext *gcc,
35 data_analysis_output_t *dao, gpointer specs,
36 analysis_tool_engine_t selector, gpointer result);
39 typedef enum {
40 GROUPED_BY_ROW = 0,
41 GROUPED_BY_COL = 1,
42 GROUPED_BY_AREA = 2,
43 GROUPED_BY_BIN = 3
44 } group_by_t;
47 #endif