"Fossies" - the Fresh Open Source Software Archive

Member "epstool-3.08/src/copt.h" (10 Jun 2005, 3773 Bytes) of package /linux/misc/old/ghost/ghostgum/epstool-3.08-os2.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* Copyright (C) 2001-2002 Ghostgum Software Pty Ltd.  All rights reserved.
    2 
    3   This software is provided AS-IS with no warranty, either express or
    4   implied.
    5 
    6   This software is distributed under licence and may not be copied,
    7   modified or distributed except as expressly authorised under the terms
    8   of the licence contained in the file LICENCE in this distribution.
    9 
   10   For more information about licensing, please refer to
   11   http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd, 
   12   218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA, 
   13   Fax +61 3 9886 6616.
   14 */
   15 
   16 /* $Id: copt.h,v 1.10 2003/01/29 06:55:17 ghostgum Exp $ */
   17 /* Options header */
   18 
   19 /* Public */
   20 int opt_init(OPTION *opt);
   21 int opt_read(OPTION *opt, LPCTSTR ininame);
   22 int opt_write(OPTION *opt, LPCTSTR ininame);
   23 int opt_media(OPTION *opt, int n, const char **name, 
   24     float *width, float *height);
   25 
   26 /****************************************************/
   27 /* Private */
   28 #ifdef DEFINE_COPT
   29 
   30 #define DEFAULT_MEDIA "a4"
   31 /*
   32 #define DEFAULT_MEDIA "letter"
   33 */
   34 #define DEFAULT_RESOLUTION 72.0
   35 #define DEFAULT_ZOOMRES 300.0
   36 
   37 #define INISECTION "GSview"
   38 
   39 typedef enum UNIT_e {
   40     UNIT_PT = 0,
   41     UNIT_MM = 1,
   42     UNIT_IN = 2
   43 } UNIT;
   44 
   45 typedef enum SAFER_e {
   46     SAFER_UNSAFE = 0,
   47     SAFER_SAFE = 1,
   48     SAFER_PARANOID = 2
   49 } SAFER;
   50 
   51 struct MEDIA_s {
   52     char name[MAXSTR];  /* name of media  */
   53     float width;        /* pts */
   54     float height;       /* pts */
   55 
   56     ORIENT orientation;
   57     BOOL swap_landscape; /* landscape <-> seascape */
   58 
   59     BOOL rotate;    /* width and height swapped */
   60 
   61     float xdpi;     /* dpi */
   62     float ydpi;     /* dpi */
   63     DISPLAY_FORMAT depth;
   64     int alpha_text; /* bpp */
   65     int alpha_graphics; /* bpp */
   66 };
   67 
   68 #define MAX_USERMEDIA 16
   69 typedef struct USERMEDIA_s USERMEDIA;
   70 struct USERMEDIA_s {
   71     char name[MAXSTR];  /* name of media  */
   72     float width;        /* pts */
   73     float height;       /* pts */
   74 };
   75 
   76 /* options that are saved in INI file */
   77 struct OPTION_s {
   78     int language;
   79     int gsversion;
   80     BOOL    savesettings;
   81     POINT   img_origin;
   82     POINT   img_size;
   83 
   84     /* Ghostscript */
   85     char    gsdll[MAXSTR];
   86     char    gsinclude[MAXSTR];
   87     char    gsother[MAXSTR];
   88 
   89     /* GhostPCL */
   90     char    pldll[MAXSTR];
   91 
   92     /* Security */
   93     SAFER   safer;
   94 
   95     /* Unit */
   96     UNIT    unit;
   97     BOOL    unitfine;
   98 
   99     /* Pagesize */
  100     float   custom_width;
  101     float   custom_height;
  102     USERMEDIA usermedia[MAX_USERMEDIA];
  103     BOOL    variable_pagesize;
  104     MEDIA   media;
  105 
  106     /* DSC */
  107     int dsc_warn;   /* level of DSC error warnings */
  108     BOOL    ignore_dsc;
  109     BOOL    epsf_clip;
  110 
  111     /* PDF */
  112     BOOL    pdf_crop;
  113 
  114     /* Display */
  115     float   zoom_xdpi;
  116     float   zoom_ydpi;
  117     float   pcl_dpi;
  118 
  119 #ifdef NOTUSED
  120     BOOL    configured;
  121     BOOL    img_max;
  122     int pstotext;
  123     BOOL    button_show;
  124 #endif
  125 
  126 /* FIX: are these used yet? */
  127     BOOL    epsf_warn;
  128 
  129     /* Do NOT save the following in the INI file */
  130 /* FIX: put this in the user dictionary during gssrv_run_header for PDF */
  131     char pdf_password[MAXSTR];  /* -sPDFPassword= */
  132 
  133 
  134 #ifdef NOTUSED
  135     BOOL    epsf_warn;
  136     BOOL    redisplay;
  137     BOOL    show_bbox;
  138     BOOL    save_dir;
  139         /* for printing to GS device */
  140     char    printer_device[64]; /* Ghostscript device for printing */
  141     char    printer_resolution[64];
  142     BOOL    print_fixed_media;
  143     /* for converting with GS device */
  144     char    convert_device[64];
  145     char    convert_resolution[64]; /* Ghostscript device for converting */
  146     BOOL    convert_fixed_media;
  147     /* for printing to GDI device */
  148     int print_gdi_depth;    /* IDC_MONO, IDC_GREY, IDC_COLOUR */
  149     BOOL    print_gdi_fixed_media;
  150         /* general printing */
  151 #define PRINT_GDI 0
  152 #define PRINT_GS 1
  153 #define PRINT_PS 2
  154 #define PRINT_CONVERT 3
  155     int print_method;       /* GDI, GS, PS */
  156     BOOL    print_reverse;      /* pages to be in reverse order */
  157     BOOL    print_to_file;
  158     char    printer_queue[MAXSTR];  /* for Win32 */
  159     int pdf2ps;
  160     BOOL    auto_bbox;
  161     MATRIX  ctm;
  162     MEASURE measure;
  163 #endif
  164 
  165 };
  166 #endif /* DEFINE_COPT */