Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

export.c File Reference

Functions to export results to files. More...

#include <string.h>
#include "buf.h"
#include "dialogs.h"
#include "exporthtml.h"
#include "exporttext.h"
#include "gui_common.h"
#include "queries.h"

Include dependency graph for export.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _export_data
 Data for dialog call. More...


Defines

#define TYPE_KEY   "Type key"
 Key for the GTK data field linked to the file extension menu.


Typedefs

typedef _export_data ExportData
 Data for dialog call.


Functions

void export_dialog_hide ()
 Hide the export dialog.

void export_dialog_show (char *title)
 Show the export dialog.

void export_dialog_create ()
 Create the export dialog.

void add_entry_line (char *labeltext, GtkWidget *widget, GtkWidget *table, int height)
 Adds an entry line.

int export_in_progress ()
 Return the status of the export.

void export_cancel_callback (GtkWidget *widget, gpointer data)
 Dialog cancel callback.

void export_ok_callback (GtkWidget *widget, gpointer data)
 Dialog OK callback.

gint delete_event (GtkWidget *widget, GdkEvent *event, gpointer data)
 Delete handler for main export dialog.

void result_export ()
 Display the export dialog.


Variables

ExportData exportData
 Data for the main export dialog.


Detailed Description

Functions to export results to files.

Author:
Lionel ULMER , Darryl Luff
A number of output formats are supported.

There are a number of dialogs supported in this module.

Definition in file export.c.


Function Documentation

gint delete_event GtkWidget *    widget,
GdkEvent *    event,
gpointer    data
 

Delete handler for main export dialog.

Parameters:
widget  The widget generating the event.
event  The event.
data  Not used (NULL).

Definition at line 251 of file export.c.

References export_cancel_callback().

Referenced by export_dialog_create().

void export_cancel_callback GtkWidget *    widget,
gpointer    data
 

Dialog cancel callback.

Parameters:
widget  The cancel button.
data  A pointer to the dialog.

Definition at line 160 of file export.c.

References update_button_sensitivity().

Referenced by delete_event(), export_dialog_create(), and export_ok_callback().

void export_dialog_show char *    title
 

Show the export dialog.

Parameters:
title  The window title to display.

Definition at line 296 of file export.c.

References export_dialog_create(), _export_data::query, query_get_current(), query_get_current_name(), and _export_data::query_name.

Referenced by result_export().

int export_in_progress  
 

Return the status of the export.

Returns:
1 if an export is in progress.

Definition at line 120 of file export.c.

void export_ok_callback GtkWidget *    widget,
gpointer    data
 

Dialog OK callback.

Parameters:
widget  The OK button.
data  A pointer to the ExportData structure.

Definition at line 170 of file export.c.

References display_error(), export_cancel_callback(), export_dialog_hide(), _export_data::query, _export_data::query_name, TYPE_KEY, _export_data::type_menu, and update_button_sensitivity().

Referenced by export_dialog_create().


Variable Documentation

ExportData exportData
 

Initial value:

 {
    NULL,                              
    NULL,                              
    NULL                               
}
Data for the main export dialog.

Definition at line 89 of file export.c.


Generated on Sun May 9 19:19:21 2004 for GtkSQL by doxygen1.2.18