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 / ipep.cs_ / ipep.csc
Encoding:
Text File  |  1993-03-12  |  1.1 KB  |  46 lines

  1. #   @(#)ipep.csc 1.3 1/22/92 16:10:30 [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 "txtep.sc"
  9.  
  10. class: indentedParagraphs,
  11.   local;
  12.  
  13. parent: txtEnvProcessor;
  14.  
  15. /*
  16. ----------------------------------------------------
  17.   Class: indentedParagrpahs
  18.  
  19. Purpose: This environment treats new paragraphs as
  20.      new paragraphs which are to be indented.  It
  21.      is invoked with the [[indent_paragraphs]].
  22.      For example, this text:
  23.  
  24.      [[indent_paragraphs]]
  25.      Tis but thy name that is my enemy.
  26.      Thou art thyself, though not a Montague.
  27.      What's Montague?  It is
  28.  
  29.      results in this output:
  30.  
  31.         Tis but thy name that is
  32.      my enemy. Thou art thyself,
  33.      though not a Montague.
  34.      What's Montague?  It is
  35. ---------------------------------------------------- */
  36.  
  37.  
  38. methods:
  39.  
  40.   override epGetParagraphIndentation;
  41.   -- See envProcessor defintion for more information.
  42.  
  43.   override epGetLineIndentation;
  44.   -- See envProcessor defintion for more information.
  45.  
  46.