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

exporthtml.c File Reference

Functions to export results to files. More...

#include <string.h>
#include "buf.h"
#include "guiapi.h"
#include "queries.h"
#include "status.h"

Include dependency graph for exporthtml.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _html_export_data
 Data for HTML export dialog. More...


typedef _html_export_data HtmlExportData
 Data for HTML export dialog.


void export_html_dialog_hide ()
 Hide the html export dialog.

void export_html_dialog_show (char *title, char *filename, char *name, GtkWidget *query, char *query_name)
 Show the html export dialog.

void export_html_dialog_create ()
 Create the html export dialog.

void export_as_html (char *filename, char *rawfilename, GtkWidget *query, char *query_name)
 HTML results of the query in HTML.


HtmlExportData exportHtmlData
 Data for the html export dialog.

Detailed Description

Functions to export results to files.

Lionel ULMER , Darryl Luff
A number of output formats are supported. There are a number of dialogs supported in this module.

Definition in file exporthtml.c.

Function Documentation

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

HTML results of the query in HTML.

filename  The full pathname to output to.
rawfilename  The raw filename.
query  The query widget.
query_name  The query name.

Definition at line 348 of file exporthtml.c.

References _a_buf::b_dat, _a_buf::b_len, buf_free(), buf_new(), export_html_dialog_create(), and export_html_dialog_show().

void export_html_dialog_create  

Create the html export dialog.

Only needs to be called once.

Definition at line 78 of file exporthtml.c.

References _html_export_data::links, _html_export_data::recPerPage, and _html_export_data::titles.

Referenced by export_as_html(), and export_html_dialog_show().

void export_html_dialog_show char *    title,
char *    filename,
char *    rawfilename,
GtkWidget *    query,
char *    query_name

Show the html export dialog.

title  The title string for the dialog window.
filename  The selected filename (includes path).
rawfilename  The raw filename (no path).
query  A pointer to the query text widget.
query_name  The display name of the query.

Definition at line 161 of file exporthtml.c.

References _a_buf::b_dat, _a_buf::b_len, buf_check(), db_conn::DBget_query_status, db_conn::DBget_record_number, export_html_dialog_create(), _html_export_data::filename, gui_get_connection(), _html_export_data::query, query_get_result(), _html_export_data::raw_filename, and _html_export_data::recPerPage.

Referenced by export_as_html().

Variable Documentation

HtmlExportData exportHtmlData

Initial value:

Data for the html export dialog.

Definition at line 67 of file exporthtml.c.

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