home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / ep.idl < prev    next >
Encoding:
Text File  |  1996-01-24  |  2.7 KB  |  113 lines

  1. /*
  2.  *    %Z% %I% %W% %G% %U% [%H% %T%] (c)IBM Corp. 1992
  3.  */
  4.  
  5. // This file was generated by the SOM Compiler.
  6. // FileName: ep.id2.
  7. // Generated using:
  8. //     SOM Precompiler spc: 6.9
  9. //     SOM Emitter emitidl.dll: 6.8
  10.  
  11. //  This class is adapted from the book
  12. //    Class Construction in C and C++, Object Oriented Fundamentals
  13. //    by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  14. //  Reprinted with permission.
  15.  
  16. #ifndef ep_idl
  17. #define ep_idl
  18.  
  19. #include <somobj.idl>
  20.  
  21. interface page;
  22. interface TPWord;
  23. interface fileMgr;
  24.  
  25. interface envProcessor : SOMObject
  26. {
  27.   void epInit1(in envProcessor lastEnv);
  28.   
  29.   // Used to initialize a new environment from an
  30.   // existing environment.
  31.  
  32.   void epProcessEnvironment();
  33.   
  34.   // Defines what it means to process a given
  35.   // environment.  This method MUST be overridden in
  36.   // derived classes.
  37.  
  38.   void epStartUpNewEnvironment(in TPWord envName);
  39.   
  40.   // Defines what steps need to be taken at the start
  41.   // of this environment.
  42.  
  43.   void epInitializeEnvironment();
  44.   
  45.   // Defines what steps need to be taken to initialize
  46.   // a given environment.
  47.  
  48.   void epShutdownEnvironment();
  49.   
  50.   // Defines what steps need to be taken to shutdown this
  51.   // environment.
  52.  
  53.   void epPrepareForNewEnvironment();
  54.   
  55.   // Defines what steps this environment should take as it
  56.   // prepares to transfer control to a new environment.
  57.  
  58.   long epGetParagraphIndentation();
  59.   
  60.   // Get the indentation for a new paragraph for this environment.
  61.  
  62.   long epGetLineIndentation();
  63.   
  64.   // Get the indentation for a new line for this environment.
  65.  
  66.   page epGetPage();
  67.   fileMgr epGetFileMgr();
  68.   envProcessor epGetPreviousEnv();
  69.   string epGetClassName();
  70.   void epSetPage(in page newPage);
  71.   void epSetFileMgr(in fileMgr newFileMgr);
  72.  
  73.  
  74. #ifdef __SOMIDL__
  75.   implementation {
  76.  
  77.     releaseorder: epInit1,epProcessEnvironment,epStartUpNewEnvironment, 
  78.                   epInitializeEnvironment,epShutdownEnvironment,epPrepareForNewEnvironment, 
  79.                   epGetParagraphIndentation,epGetLineIndentation,epGetPage, 
  80.                   epGetFileMgr,epGetPreviousEnv,epGetClassName,epSetPage, 
  81.                   epSetFileMgr;
  82.  
  83.     //# Class Modifiers
  84.     callstyle = oidl;
  85.     local; 
  86.     filestem = ep;
  87.  
  88.     passthru C_h =      "#include \"page.h\""
  89. "#include \"fm.h\""
  90. "#include \"tpword.h\"";
  91.  
  92.  
  93.     //# Internal Instance Variables
  94.     page thisPage;                
  95.     fileMgr thisFile;             
  96.     envProcessor previousEnv;     
  97.  
  98.     //# Method Modifiers
  99.     somInit: override;
  100.     somUninit: override;
  101.     somDumpSelfInt: override;
  102.  
  103.     //# Data Modifiers
  104.     thisPage: ;
  105.     thisFile: ;
  106.     previousEnv: ;
  107.  
  108.   };
  109. #endif /* __SOMIDL__ */
  110. };
  111.  
  112. #endif  /* ep_idl */
  113.