1 #ifndef GNUMERIC_WIZARD_GRAPHICS_CONTEXT_H
2 #define GNUMERIC_WIZARD_GRAPHICS_CONTEXT_H
6 #include "sheet-vector.h"
20 DataRange
*data_range_new (Workbook
*wb
, const char *name_expr
);
21 DataRange
*data_range_new_from_expr (Workbook
*wb
, const char *name_expr
, const char *expression
);
22 DataRange
*data_range_new_from_vector (Workbook
*wb
, const char *name_expr
, SheetVector
*vector
);
23 void data_range_destroy (DataRange
*data_range
, gboolean detach_from_sheet
);
27 GtkWidget
*dialog_toplevel
;
32 int last_graphic_type_page
;
33 GtkNotebook
*steps_notebook
, *graphic_types_notebook
;
37 /* Data for the various pages */
39 SeriesOrientation series_location
;
40 GList
*data_range_list
;
47 BonoboObjectClient
*graphics_server
;
48 BonoboClientSite
*client_site
;
50 /* Interface pointer for the Layout interface */
51 GNOME_Graph_Layout layout
;
53 /* Interface pointer for the actual chart */
54 GNOME_Graph_Chart chart
;
57 * A List of BonoboViewFrames
62 } WizardGraphicContext
;
64 #define GC_SIGNATURE ((('G' << 8) | ('C' << 8)) | 'o')
65 #define IS_GRAPHIC_CONTEXT(gc) (gc->signature == GC_SIGNATURE)
67 WizardGraphicContext
*graphic_context_new (Workbook
*wb
, GladeXML
*gui
);
68 BonoboViewFrame
*graphic_context_new_chart_view_frame (WizardGraphicContext
*gc
);
70 void graphic_context_destroy (WizardGraphicContext
*gc
);
72 void graphic_context_data_range_remove (WizardGraphicContext
*gc
,
73 DataRange
*data_range
);
74 void graphic_context_data_range_add (WizardGraphicContext
*gc
,
75 DataRange
*data_range
);
78 * Wizardy functions have a graphic_wizard prefix, because they do
81 void graphic_wizard_guess_series (WizardGraphicContext
*gc
,
82 SeriesOrientation orientation
,
83 gboolean first_item_is_series_name
);
85 #endif /* GNUMERIC_WIZARD_GRAPHICS_CONTEXT_H */