home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Format / ascii2fax / pg_sizes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  1.2 KB  |  43 lines

  1. /* pg_sizes.h: various macros/defines to do with fax page sizes */
  2.  
  3. /*
  4.  * @(#) $Header: /xtel/pp/pp-beta/Format/ascii2fax/RCS/pg_sizes.h,v 6.0 1991/12/18 20:15:19 jpo Rel $
  5.  *
  6.  * $Log: pg_sizes.h,v $
  7.  * Revision 6.0  1991/12/18  20:15:19  jpo
  8.  * Release 6.0
  9.  *
  10.  *
  11.  */
  12.  
  13. #define X_ALLOWED_NOT_PRINT    56
  14. /* pixels standard allows not to print in both x directions */
  15. #define    Y_ALLOWED_NOT_PRINT_TOP    4
  16. /* mm standard allows not to print at top of page */
  17. #define Y_ALLOWED_NOT_PRINT_BOTTOM   7 /* really 6.77 */
  18. /* mm standard allows not to print at bottom of page */
  19.  
  20. /* a4 */
  21. #ifdef A4
  22. # define FAX_WIDTH    210 /* mm */
  23. # define FAX_HEIGHT    297 /* mm */
  24. #else
  25. # define FAX_WIDTH    216 /* mm */
  26. # define FAX_HEIGHT    273 /* mm */
  27. #endif
  28.  
  29.  
  30. /* res */
  31. # define LINES_PER_MM    3.85 /* 7.7 */
  32.  
  33. # define LEFT_PAD       30     /* mm */ /* 29.5 */
  34. # define TOP_PAD    6    /* mm */
  35. # define BOTTOM_PAD    2    /* mm */
  36.  
  37. # define FAX_WIDTH_LINES    1728 /* standard ? */
  38.  
  39. # define FAX_HEIGHT_LINES    ((int)(FAX_HEIGHT * LINES_PER_MM))
  40. # define TEXT_HEIGHT_LINES    ((int)((FAX_HEIGHT - BOTTOM_PAD - Y_ALLOWED_NOT_PRINT_BOTTOM) * LINES_PER_MM))
  41. # define LEFT_PAD_LINES    ((int)(LEFT_PAD * LINES_PER_MM) + X_ALLOWED_NOT_PRINT)
  42. # define TOP_PAD_LINES    ((int)((TOP_PAD + Y_ALLOWED_NOT_PRINT_TOP) * LINES_PER_MM))
  43.