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

exporttext.c File Reference

Module containing the text export functions and dialog. More...

#include <gtk/gtk.h>
#include <string.h>
#include "buf.h"
#include "export.h"
#include "guiapi.h"
#include "queries.h"
#include "status.h"
#include "utils.h"

Include dependency graph for exporttext.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _text_export_data
 Data for text export dialog. More...


Typedefs

typedef _text_export_data TextExportData
 Data for text export dialog.


Functions

void export_text_dialog_hide ()
 Hide the text export dialog.

void export_text_dialog_show (char *title, char *filename, char *name, GtkWidget *query)
 Show the text export dialog.

void export_text_dialog_create ()
 Create the text export dialog.

void export_as_text (char *filename, char *rawfilename, GtkWidget *query, char *query_name)
 Text export.


Variables

TextExportData exportTextData
 Data for the text export dialog.


Detailed Description

Module containing the text export functions and dialog.

Author:
Lionel ULMER , Darryl Luff
This dialog is initialised the first time it is used, then is kept around for the rest of the run of the program. This allows settings to be kept.

Definition in file exporttext.c.


Function Documentation

void export_as_text char *    filename,
char *    rawfilename,
GtkWidget *    query,
char *    query_name
 

Text export.

Parameters:
filename  The filename to export to.
rawfilename  The raw filename to export to.
query  A pointer to the query text widget.
query_name  The query display name.

Definition at line 297 of file exporttext.c.

References _a_buf::b_dat, _a_buf::b_len, buf_free(), buf_new(), export_text_dialog_create(), and export_text_dialog_show().

void export_text_dialog_show char *    title,
char *    filename,
char *    rawfilename,
GtkWidget *    query
 

Show the text export dialog.

Parameters:
title  The title string for the dialog box.
filename  The output filename.
rawfilename  The raw output filename.
query  A pointer to the query text widget.

Definition at line 265 of file exporttext.c.

References export_text_dialog_create(), _text_export_data::filename, _text_export_data::query, and _text_export_data::raw_filename.

Referenced by export_as_text().


Variable Documentation

TextExportData exportTextData
 

Initial value:

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

Definition at line 65 of file exporttext.c.


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