home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21j / c / samples / tp / header.cs_ / header.csc
Encoding:
Text File  |  1993-03-12  |  1.0 KB  |  42 lines

  1. #   @(#)header.csc 1.3 1/22/92 16:09:44 [1/26/92] (c)IBM Corp. 1992
  2.  
  3. -- This class is adapted from the book
  4. --   Class Construction in C and C++, Object Oriented Fundamentals
  5. --   by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  6. -- Reprinted with permission.
  7.  
  8. include "ep.sc"
  9.  
  10. class: header,
  11.   local;
  12.  
  13. parent: envProcessor;
  14.  
  15. /*
  16. ----------------------------------------------------
  17.   Class: header
  18.  
  19. Purpose: This environment processes information needed
  20.      to set up a page heading.  It recognizes the
  21.      special environment command [[header]],
  22.      which is used to indicate placement for a
  23.      page header.  Typical text that this environment
  24.      would be called upon to process is
  25.  
  26.      [[header]]
  27.      Romeo and Juliet           Page: [[page_number]]
  28.      [[end_environment]]
  29.  
  30.      which would result in this header printed on
  31.      each page:
  32.  
  33.      Romeo and Juliet           Page: 1
  34. ---------------------------------------------------- */
  35.  
  36.  
  37. methods:
  38.  
  39.   override epProcessEnvironment;
  40.   -- See envProcessor definition for more information.
  41.  
  42.