home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / ipep.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-24  |  1.5 KB  |  56 lines

  1.  
  2. /*
  3.  *  This file was generated by the SOM Compiler.
  4.  *  Generated using:
  5.  *     SOM incremental update: 6.34
  6.  */
  7.  
  8. #ifndef lint
  9. static char *sccsid = "%Z% %I% %W% %G% %U% [%H% %T%] (c)IBM Corp. 1992";
  10. #endif
  11.  
  12. /*
  13.  * This class is adapted from the book
  14.  *   Class Construction in C and C++, Object Oriented Fundamentals
  15.  *   by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  16.  * Reprinted with permission.
  17.  */
  18.  
  19. #define indentedParagraphs_Class_Source
  20. #if defined(_WIN32)
  21. #include "statcls.h"
  22. #endif
  23. #include "ipep.ih"
  24.  
  25. #define PARAGRAPH_INDENTATION 3
  26. #define LINE_INDENTATION 0
  27.  
  28.  
  29. /* ************************************************************ */
  30. SOM_Scope long  SOMLINK epGetParagraphIndentation(indentedParagraphs *somSelf)
  31. {
  32. /* indentedParagraphsData *somThis = indentedParagraphsGetData(somSelf); */
  33.      indentedParagraphsMethodDebug("indentedParagraphs",
  34.                     "epGetParagraphIndentation");
  35.  
  36.     somSelf;
  37.     return PARAGRAPH_INDENTATION;
  38.  
  39. }
  40.  
  41. /* ************************************************************ */
  42. SOM_Scope long  SOMLINK epGetLineIndentation(indentedParagraphs *somSelf)
  43. {
  44. /* indentedParagraphsData *somThis = indentedParagraphsGetData(somSelf); */
  45.     envProcessor *lastEnv;
  46.     indentedParagraphsMethodDebug("indentedParagraphs",
  47.                   "epGetLineIndentation");
  48.     lastEnv = _epGetPreviousEnv(somSelf);
  49.     if (lastEnv)
  50.     return _epGetLineIndentation(lastEnv) +
  51.         LINE_INDENTATION;
  52.     else
  53.     return LINE_INDENTATION;
  54.  
  55. }
  56.