home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / colblk.idl < prev    next >
Encoding:
Text File  |  1996-01-24  |  1.7 KB  |  86 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: colblk.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 colblk_idl
  17. #define colblk_idl
  18.  
  19. #include "ll.idl"
  20.  
  21. interface columnBlock : linkedList
  22. {
  23.   void cbInit(in long newColumns, 
  24.               in long newHeight, 
  25.               in long newWidth);
  26.   
  27.   //   Initialize a new columnBlock.
  28.  
  29.   long cbGetColumnWidth();
  30.   
  31.   //  Returns the width of a column (in characters).
  32.  
  33.   long cbLinesLeft();
  34.   
  35.   //  Returns TRUE if there is room for at least one more
  36.   //  line in the columnBlock, FALSE otherwise.
  37.  
  38.  
  39. #ifdef __PRIVATE__
  40.  
  41.   void cbPrintBlanks(inout FILE output, 
  42.                      in long nblanks);
  43.   
  44.   //    Prints blank characters to the output file.
  45.  
  46.  
  47. #endif
  48.  
  49.  
  50. #ifdef __SOMIDL__
  51.   implementation {
  52.  
  53.     releaseorder: cbInit,cbGetColumnWidth,cbLinesLeft,cbPrintBlanks;
  54.  
  55.     //# Class Modifiers
  56.     callstyle = oidl;
  57.     local; 
  58.     filestem = colblk;
  59.  
  60.  
  61.  
  62.     //# Internal Instance Variables
  63.     long columnWidth;              
  64.  
  65.     //# Method Modifiers
  66.     llAddTail: override;
  67.     print: override;
  68.     somInit: override;
  69.     somUninit: override;
  70.     somDumpSelfInt: override;
  71.  
  72.     //# Data Modifiers
  73.     columnWidth: ;
  74.  
  75. #ifdef __PRIVATE__
  76.  
  77.     //# Data Modifiers
  78.  
  79. #endif
  80.  
  81.   };
  82. #endif /* __SOMIDL__ */
  83. };
  84.  
  85. #endif  /* colblk_idl */
  86.