home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume27 / psf3 / part04 / psf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-20  |  2.4 KB  |  112 lines

  1. /* ta=4
  2.                 p s f . h
  3.         general configuration for psf.
  4. */
  5. /*
  6.  * $Id: psf.h,v 3.2 1992/01/19 05:50:33 ajf Exp ajf $
  7. */
  8. /**** Configuration information:  if not defined in the makefile *****
  9.  *
  10.  *    DOS users:  modify these defaults, no other #defines are necessary
  11.  *                 for msdos users.
  12.  */
  13.  
  14. /* default paper size */
  15.  
  16. #ifndef PAPERTYPE
  17. #define PAPERTYPE "letter"
  18. #endif
  19.  
  20. /* location of binaries: so psf can find psfdoub */
  21.  
  22. #ifndef BINDIR
  23. #if defined(MSDOS) || defined(__MSDOS__)
  24. #define BINDIR "c:/bin"
  25. #else
  26. #define BINDIR "/local/bin"
  27. #endif
  28. #endif
  29.  
  30. /* where is your printer definition file located? */
  31.  
  32. #ifndef PDEF
  33. #if defined(MSDOS) || defined(__MSDOS__)
  34. #define PDEF "psfprint.def"
  35. #else
  36. #define PDEF "/local/lib/psfprint.def"
  37. #endif
  38. #endif
  39.  
  40.  
  41. /* if two paper trays are available, and you want to use them for
  42.  * double sided printing, then make HOPPER defined.
  43.  */
  44.  
  45. /* #define HOPPER  */
  46.  
  47. /* prefix name for "book" temporary file for reversed or book print
  48.  */
  49.  
  50. #ifndef TEMPFILE
  51. #if defined(MSDOS) || defined(__MSDOS__)
  52. #define TEMPFILE    "Psf"
  53. #else
  54. #define TEMPFILE    "/tmp/Psf"
  55. #endif
  56. #endif
  57.  
  58. /* bookwork file name if multiple hoppers not available.
  59.  */
  60. #ifndef BOOKDFILE
  61. #define BOOKFILE "psfbook.psd"
  62. #endif
  63.  
  64. /* change the following names only if you have reason to change
  65.  * the default names of psfdoub or psfbanner
  66.  */
  67.  
  68. #ifndef PSFDOUB
  69. #define PSFDOUB "psfdoub"
  70. #endif
  71.  
  72. #ifndef PSFBANNER
  73. #define PSFBANNER "psfbanner"
  74. #endif
  75.  
  76. /*********  end configuration **********/
  77.  
  78. /*     the following are 'escape' sequences used by psf, psfbs & psfmail
  79.     used to generate bold, underline, etc.  What should be used
  80.     for EBCDIC???  change if needed....
  81. */
  82.  
  83. #define    ESCAPE                0x05        /* CTL/E */
  84.  
  85. #define BEGIN_BOLD            "\005B"
  86. #define END_BOLD            "\005b"
  87.  
  88. #define BEGIN_UNDERLINE        "\005U"
  89. #define END_UNDERLINE        "\005u"
  90.  
  91. #define BEGIN_ITALICS        "\005I"
  92. #define END_ITALICS            "\005i"
  93.  
  94. /* for psfmbox/psfmail */
  95.  
  96. #define    BEGIN_NAME            "\005F1\005B\005P13"    /* Helvetica bold 13 point */
  97. #define END_NAME            "\005p\005b\005f"        
  98.  
  99. #define BEGIN_SUBJECT        "\005P13\005F1\005B\005I"    /*    Helvetica bold italic 13 point */
  100. #define END_SUBJECT            "\005i\005b\005f\005p"        /*    return to normal point, font */
  101.  
  102. /* other stuff */
  103.  
  104. #define    min(x,y)        ((x) < (y) ? (x) : (y))
  105. #define    max(x,y)        ((x) > (y) ? (x) : (y))
  106.  
  107. #define MAX_PAGES    1000        /* max pages in a book */
  108. #define LONG_STR    1000        /* max bytes in an input text line */
  109.  
  110. #define    NSLOTS        6
  111. #define NPAGE        30
  112.