printer.C File Reference

#include <gtk/gtk.h>
#include "config.h"
#include "gxsm/plugin.h"
#include "epsfutils.h"
#include "gxsm/glbvars.h"
#include "printer.h"
#include "pyremote.h"
#include "mkicons.h"

Go to the source code of this file.

Classes

union  pOptIndex

Defines

#define PI_PRINT_FILE   0x01
#define PI_PRINT_PRINTER   0x02
#define PI_PRINT_PREVIEW   0x04
#define PI_PRINT_FRAME   0x10
#define PI_PRINT_SCALE   0x20
#define PI_PRINT_REGIONS   0x40

Functions

static void printer_init (void)
static void printer_about (void)
static void printer_configure (void)
static void printer_query (void)
static void printer_cleanup (void)
static void printer_run (GtkWidget *w, void *data)
static void printer_run_non_interactive (GtkWidget *w, gpointer pc)
GxsmPluginget_gxsm_plugin_info (void)
void PIPrintPS (PIPrintPSData *ppsd)

Variables

GxsmPlugin printer_pi
static const char * about_text
char * pOpt_Type [] = {"plain", "with ticks", "with ticks, Off.=0", "with bar", "circular", NULL}
char * pOpt_Info [] = {"none", "size only", "more", "all", NULL}
MKICONSPI_OPTIONS pOptionsList []


Define Documentation

#define PI_PRINT_FILE   0x01
 

Definition at line 137 of file printer.C.

Referenced by PIPrintControl::dlg_clicked(), and PIPrintPS().

#define PI_PRINT_FRAME   0x10
 

Definition at line 140 of file printer.C.

Referenced by PIPrintControl::dlg_clicked(), and PIPrintPS().

#define PI_PRINT_PREVIEW   0x04
 

Definition at line 139 of file printer.C.

Referenced by PIPrintControl::dlg_clicked(), and PIPrintPS().

#define PI_PRINT_PRINTER   0x02
 

Definition at line 138 of file printer.C.

Referenced by PIPrintControl::dlg_clicked(), and PIPrintPS().

#define PI_PRINT_REGIONS   0x40
 

Definition at line 142 of file printer.C.

Referenced by PIPrintControl::dlg_clicked(), and PIPrintPS().

#define PI_PRINT_SCALE   0x20
 

Definition at line 141 of file printer.C.

Referenced by PIPrintControl::dlg_clicked(), and PIPrintPS().


Function Documentation

GxsmPlugin* get_gxsm_plugin_info void   ) 
 

Definition at line 128 of file printer.C.

References GxsmPlugin::description, N_, printer_pi, and VERSION.

void PIPrintPS PIPrintPSData ppsd  ) 
 

Definition at line 617 of file printer.C.

References DBG_L4, EpsfTools::endimage(), ERR_NOACTIVESCAN, ERR_SORRY, FALSE, PIPrintPSData::figwidth, PIPrintPSData::fname, PIPrintPSData::fontsize, gapp, scan_object_data::get_name(), Scan::get_object_data(), scan_object_data::get_xy(), Surface::GetActiveScan(), HINT_ACTIVATESCAN, PIPrintPSData::info, IS_SPALEED_CTRL, Scan::mem2d, PIPrintPSData::mode, Scan::number_of_object(), EpsfTools::open(), PI_DEBUG, PI_PRINT_FILE, PI_PRINT_FRAME, PI_PRINT_PREVIEW, PI_PRINT_PRINTER, PI_PRINT_REGIONS, PI_PRINT_SCALE, EpsfTools::placeimage(), EpsfTools::putbar(), EpsfTools::putframe(), EpsfTools::putgrey(), EpsfTools::putline(), EpsfTools::putmore(), EpsfTools::putsize(), EpsfTools::putticks(), EpsfTools::SetAbbWidth(), EpsfTools::SetFontSize(), PIPrintPSData::title, TRUE, PIPrintPSData::typ, App::xsm, and XSM_SHOW_ALERT.

Referenced by PIPrintControl::dlg_clicked(), and printer_run_non_interactive().

static void printer_about void   )  [static]
 

Definition at line 569 of file printer.C.

References about_text, GxsmPlugin::authors, N_, GxsmPlugin::name, printer_pi, and VERSION.

static void printer_cleanup void   )  [static]
 

Definition at line 595 of file printer.C.

References GxsmPlugin::app, App::ConnectPluginToPrinterEvent(), and printer_pi.

static void printer_configure void   )  [static]
 

Definition at line 582 of file printer.C.

References GxsmPlugin::app, GnomeAppService::message(), and printer_pi.

static void printer_init void   )  [static]
 

Definition at line 520 of file printer.C.

References DBG_L2, gapp, PI_DEBUG, printer_run_non_interactive(), and App::RemoteActionList.

static void printer_query void   )  [static]
 

Definition at line 588 of file printer.C.

References GxsmPlugin::app, App::ConnectPluginToPrinterEvent(), printer_pi, and printer_run().

static void printer_run GtkWidget *  w,
void *  data
[static]
 

Definition at line 602 of file printer.C.

References PIPrintControl::run(), and DlgBase::running().

Referenced by printer_query().

static void printer_run_non_interactive GtkWidget *  w,
gpointer  pc
[static]
 

Definition at line 538 of file printer.C.

References DBG_L2, PIPrintPSData::mode, PI_DEBUG, and PIPrintPS().

Referenced by printer_init().


Variable Documentation

const char* about_text [static]
 

Initial value:

 N_("Gxsm Plugin\n\n"
                                   "Printer Plugin + Control.")

Definition at line 124 of file printer.C.

char* pOpt_Info[] = {"none", "size only", "more", "all", NULL}
 

Definition at line 146 of file printer.C.

char* pOpt_Type[] = {"plain", "with ticks", "with ticks, Off.=0", "with bar", "circular", NULL}
 

Definition at line 145 of file printer.C.

MKICONSPI_OPTIONS pOptionsList[]
 

Initial value:

 {
        { "Type", pOpt_Type, "ptzbc", 0 },
        { "Info", pOpt_Info, "nsma", 0 },
        { NULL, NULL, NULL, 0 }
}

Definition at line 149 of file printer.C.

Referenced by PIPrintControl::option_choice_callback(), PIPrintControl::run(), and PIPrintPSData::~PIPrintPSData().

GxsmPlugin printer_pi
 

Definition at line 78 of file printer.C.

Referenced by get_gxsm_plugin_info(), printer_about(), printer_cleanup(), printer_configure(), and printer_query().


Generated on Sat Apr 1 09:04:42 2006 for GXSM by  doxygen 1.4.6