/usr/include/libspreadsheet-1.12/spreadsheet/workbook-priv.h is in gnumeric 1.12.28-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef _GNM_WORKBOOK_PRIV_H_
# define _GNM_WORKBOOK_PRIV_H_
#include "workbook.h"
#include <goffice/goffice.h>
G_BEGIN_DECLS
struct _Workbook {
GODoc doc;
GPtrArray *wb_views;
GPtrArray *sheets;
GHashTable *sheet_hash_private;
GHashTable *sheet_order_dependents;
GHashTable *sheet_local_functions;
gboolean is_placeholder;
GOFileFormatLevel file_format_level;
GOFileFormatLevel file_export_format_level;
GOFileSaver *file_saver;
GOFileSaver *file_exporter;
char *last_export_uri;
/* Undo support */
GSList *undo_commands;
GSList *redo_commands;
GnmNamedExprCollection *names;
/* Calculation options */
struct {
gboolean enabled;
int max_number;
double tolerance;
} iteration;
gboolean recalc_auto;
GODateConventions const *date_conv;
gboolean during_destruction;
gboolean being_reordered;
gboolean recursive_dirty_enabled;
};
typedef struct {
GODocClass base;
void (*sheet_order_changed) (Workbook *wb);
void (*sheet_added) (Workbook *wb);
void (*sheet_deleted) (Workbook *wb);
} WorkbookClass;
#define WORKBOOK_FOREACH_VIEW(wb, view, code) \
do { \
int InD; \
GPtrArray *wb_views = (wb)->wb_views; \
if (wb_views != NULL) /* Reverse is important during destruction */ \
for (InD = wb_views->len; InD-- > 0; ) { \
WorkbookView *view = g_ptr_array_index (wb_views, InD); \
code \
} \
} while (0)
#define WORKBOOK_FOREACH_CONTROL(wb, view, control, code) \
WORKBOOK_FOREACH_VIEW((wb), view, \
WORKBOOK_VIEW_FOREACH_CONTROL(view, control, code);)
/*
* Walk the dependents. WARNING: Note, that it is only valid to muck with
* the current dependency in the code.
*/
#define WORKBOOK_FOREACH_DEPENDENT(wb, dep, code) \
do { \
/* Maybe external deps here. */ \
\
WORKBOOK_FOREACH_SHEET(wb, _wfd_sheet, { \
SHEET_FOREACH_DEPENDENT (_wfd_sheet, dep, code); \
}); \
} while (0)
G_END_DECLS
#endif /* _GNM_WORKBOOK_PRIV_H_ */
|