printer.h

Go to the documentation of this file.
00001 /* Gxsm - Gnome X Scanning Microscopy
00002  * universal STM/AFM/SARLS/SPALEED/... controlling and
00003  * data analysis software
00004  * 
00005  * Copyright (C) 2003 Percy Zahl 
00006  *
00007  * Authors: Stefan Schroeder and Percy Zahl 
00008  *                                                                                
00009  * WWW Home: http://gxsm.sf.net
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024 
00025 /*
00026 This file belongs to printer.C and contains information about the printer plugin of GXSM.
00027 */
00028 
00029 
00030 class PIPrintPSData{
00031  public:
00032   PIPrintPSData();
00033   ~PIPrintPSData();
00034 
00035   gchar *title;
00036   gchar *fname;
00037   gchar *prtcmd;
00038   gchar *previewcmd;
00039   int  mode;
00040   int  typ;
00041   int  info;
00042   
00043   double fontsize;
00044   double figwidth;
00045   UnitObj *ptUnit;
00046   UnitObj *mmUnit;
00047 };
00048 void PIPrintPS(PIPrintPSData *ppsd);
00049 
00050 
00051 class PIPrintControl : public DlgBase{
00052 public:
00053   PIPrintControl();
00054   ~PIPrintControl();
00055 
00056   void run();
00057 
00058   static void option_choice_callback(GtkWidget *widget, PIPrintControl *pc);
00059   static void dlg_clicked(GnomeDialog * dialog, gint button_number, PIPrintControl *pc);
00060 
00061   PIPrintPSData *pdata;
00062 
00063   GtkWidget *title, *fname, *prtcmd, *previewcmd;
00064   GtkWidget *framebutton, *scalebutton, *regionbutton;
00065   GtkWidget *filebutton, *printbutton, *previewbutton;
00066   Gtk_EntryControl *Fs, *Fw;
00067 private:
00068   void cleanup();
00069 };

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