home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / page.idl < prev    next >
Encoding:
Text File  |  1996-01-24  |  2.4 KB  |  108 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: page.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 page_idl
  17. #define page_idl
  18.  
  19. #include <somobj.idl>
  20.  
  21. interface textLine;
  22. interface TPWord;
  23. interface columnBlock;
  24.  
  25. interface page : SOMObject
  26. {
  27.   void pgPrint(inout FILE output);
  28.   void pgSetHeight(in long newHeight);
  29.   
  30.   // Set the height of a page in characters.
  31.  
  32.   void pgSetWidth(in long newWidth);
  33.   
  34.   // Set the width of a page in characters.
  35.  
  36.   void pgSetNumberOfColumns(in long ncolumns);
  37.   
  38.   // Set the number of columns in a page.
  39.  
  40.   void pgSetPageNumber(in TPWord newPageWord);
  41.   
  42.   // Tell the page about a special word to be used to
  43.   // store page numbers.
  44.  
  45.   columnBlock pgGetColumnBlock();
  46.   
  47.   // Get the columnBlock being used by this page.
  48.  
  49.   textLine pgGetHeaderBlock();
  50.   
  51.   // Get the textLine representing the page header.
  52.  
  53.   textLine pgGetFooterBlock();
  54.   
  55.   // Get the textLine representing the page footer.
  56.  
  57.  
  58.  
  59. #ifdef __SOMIDL__
  60.   implementation {
  61.  
  62.     releaseorder: pgPrint,pgSetHeight,pgSetWidth,pgSetNumberOfColumns, 
  63.                   pgSetPageNumber,pgGetColumnBlock,pgGetHeaderBlock, 
  64.                   pgGetFooterBlock;
  65.  
  66.     //# Class Modifiers
  67.     callstyle = oidl;
  68.     local; 
  69.     filestem = page;
  70.  
  71.     passthru C_h =      "#include \"tpword.h\""
  72. "#include \"textline.h\""
  73. "#include \"colblk.h\"";
  74.  
  75.  
  76.     //# Internal Instance Variables
  77.     long height;                   
  78.     long width;                    
  79.     long ncolumns;                 
  80.     long currentCol;               
  81.     long pageNumber;               
  82.     textLine header;              
  83.     textLine footer;              
  84.     columnBlock columns;          
  85.     TPWord pageWord;              
  86.  
  87.     //# Method Modifiers
  88.     somInit: override;
  89.     somUninit: override;
  90.     somDumpSelfInt: override;
  91.  
  92.     //# Data Modifiers
  93.     height: ;
  94.     width: ;
  95.     ncolumns: ;
  96.     currentCol: ;
  97.     pageNumber: ;
  98.     header: ;
  99.     footer: ;
  100.     columns: ;
  101.     pageWord: ;
  102.  
  103.   };
  104. #endif /* __SOMIDL__ */
  105. };
  106.  
  107. #endif  /* page_idl */
  108.