/usr/include/libspreadsheet-1.12/spreadsheet/application.h is in gnumeric 1.12.32-1+b1.
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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef _GNM_APPLICATION_H_
# define _GNM_APPLICATION_H_
#include "gnumeric.h"
#include <glib-object.h>
G_BEGIN_DECLS
#define GNM_APP_TYPE (gnm_app_get_type ())
typedef gboolean (*GnmWbIterFunc) (Workbook *wb, gpointer data);
GType gnm_app_get_type (void);
GObject *gnm_app_get_app (void);
/* List of active workbooks */
void gnm_app_workbook_list_add (Workbook *wb);
void gnm_app_workbook_list_remove (Workbook *wb);
GList * gnm_app_workbook_list (void);
Workbook *gnm_app_workbook_get_by_name (char const *name,
char const *ref_uri);
Workbook *gnm_app_workbook_get_by_index (int i);
GSList *gnm_app_history_get_list (int max_elements);
void gnm_app_history_add (char const *filename, const char *mimetype);
void gnm_app_sanity_check (void);
void gnm_app_recalc (void);
void gnm_app_recalc_start (void);
void gnm_app_recalc_finish (void);
void gnm_app_recalc_clear_caches (void);
/* GtkFileFilter */
void *gnm_app_create_opener_filter (GList *openers);
double gnm_app_display_dpi_get (gboolean horizontal);
double gnm_app_dpi_to_pixels (void);
/* Clipboard */
void gnm_app_clipboard_clear (gboolean drop_selection);
void gnm_app_clipboard_invalidate_sheet (Sheet *sheet);
void gnm_app_clipboard_cut_copy (WorkbookControl *wbc, gboolean is_cut,
SheetView *sv, GnmRange const *area,
gboolean animate_range);
void gnm_app_clipboard_cut_copy_obj (WorkbookControl *wbc, gboolean is_cut,
SheetView *sv, GSList *objects);
void gnm_app_clipboard_unant (void);
gboolean gnm_app_clipboard_is_empty (void);
gboolean gnm_app_clipboard_is_cut (void);
Sheet *gnm_app_clipboard_sheet_get (void);
SheetView *gnm_app_clipboard_sheet_view_get (void);
GnmCellRegion *gnm_app_clipboard_contents_get (void);
GnmRange const *gnm_app_clipboard_area_get (void);
/**********************************************************************
* Temporary home for extra actions until we rework this in 1.5
* with libgoffice
**/
typedef void (*GnmActionHandler) (GnmAction const *action, WorkbookControl *wbc,
gpointer user_data);
struct _GnmAction {
char *id; /* id of the function that will handle this */
char *label; /* untranslated, gettext domain will be passed later */
char *icon_name; /* optionally NULL */
/* simplistic for now :
* is the action always available (File -> New) or only available
* when we are not editing (Cell -> Format)
* Later on this needs to be more comprehensive with things like
* per-sheetobject flags
**/
gboolean always_available;
GnmActionHandler handler;
};
typedef struct {
char *group_name;
GSList *actions;
char *layout;
char const *domain;
gpointer user_data;
} GnmAppExtraUI;
GType gnm_action_get_type (void);
GnmAction *gnm_action_new (char const *name, char const *label,
char const *icon, gboolean always_available,
GnmActionHandler handler);
void gnm_action_free (GnmAction *action);
GType gnm_app_extra_ui_get_type (void);
GnmAppExtraUI *gnm_app_add_extra_ui (char const *group_name,
GSList *actions, const char *layout,
char const *domain,
gpointer user_data);
void gnm_app_remove_extra_ui (GnmAppExtraUI *extra_ui);
void gnm_app_foreach_extra_ui (GFunc func, gpointer data);
/**********************************************************************/
/* internal implementation util */
void _gnm_app_flag_windows_changed (void);
G_END_DECLS
#endif /* _GNM_APPLICATION_H_ */
|