home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Ph 1.1.1 / Lib / doc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-06  |  1.5 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*______________________________________________________________________
  2.  
  3.     doc.h - Report Module Interface.
  4.     
  5.     Copyright © 1988-1991 Northwestern University.
  6.     
  7.     The definitions in this module are used by the rep.c, rpp.c, ldf.c, 
  8.     hlp.c, and cvrt.c modules.  They are private to these modules.  
  9.     This header file should not be included or used by any other modules.
  10. _____________________________________________________________________*/
  11.  
  12. #ifndef __doc__
  13. #define __doc__
  14.  
  15. /* For type 1 reports the userHandle field of the list record is used to
  16.     store a handle to auxiliary information used to optimize the 
  17.     performance of the list definition function.  The following typedef 
  18.     describes this information. */
  19.     
  20. typedef struct auxInfo {
  21.     short            cachedPictID;    /* resource id of cached picture, 
  22.                                             or 0 if none */
  23.     BitMap        cachedBitMap;    /* cached picture bitmap */
  24.     Handle        auxArray[1];    /* array of handles to STR# resources -
  25.                                             expanded by rep_Init to whatever size
  26.                                             is required, and terminated with a zero
  27.                                             entry */
  28. } auxInfo;
  29.  
  30. /* Escape codes used in STR# lines. */
  31.  
  32. #define    docStyle        0
  33. #define    docJust        1
  34. #define    docSize        2
  35. #define    docOnly        3
  36. #define    docPict        4
  37. #define    docPage        5
  38. #define    docKeep        6
  39. #define    docEndKeep    7
  40. #define    docITcon        8
  41.  
  42. /* End-of-paragraph marker. */
  43.  
  44. #define    docEop        31
  45.  
  46. /* Justification constants used in STR# escape sequences. */
  47.  
  48. #define    docLeft        0
  49. #define    docCenter    1
  50. #define    docRight        2
  51.  
  52. /* Masks for STR# "only" escape sequences. */
  53.  
  54. #define    docScreen    1
  55. #define    docPrint        2
  56. #define    docSave        4
  57.  
  58. #endif