home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / cnr / dynobj / table.hpp < prev   
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.5 KB  |  63 lines

  1. #ifndef _TABLE_
  2. #define _TABLE_
  3. //************************************************************
  4. // Container Control - Dynamic Creation Of Objects
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //************************************************************
  10. #include <icnrobj.hpp>
  11. #include <istring.hpp>
  12.  
  13. class IContainerColumn;
  14. class IContainerControl;
  15.  
  16. class TableObject : public IContainerObject
  17. {
  18. public:
  19.   TableObject      ( );
  20.   TableObject      ( TableObject&  objectToCopy);
  21.     ~TableObject   ( );
  22.  
  23. void
  24.  *operator new     ( size_t        size);
  25.  
  26. IContainerObject
  27.  *objectCopy       ( );
  28.  
  29. TableObject
  30.  &setFieldText     ( const IString& fieldText,
  31.                      unsigned long  fieldIndex);
  32. IString
  33.   fieldText        ( unsigned long fieldIndex) const;
  34.  
  35. static void
  36.   setFieldCount    ( unsigned long fieldCount);
  37. static unsigned long
  38.   fieldCount       ( );
  39.  
  40. static void
  41.   setHeadingText   ( const IString& headingText,
  42.                      unsigned long  headingIndex);
  43. static IString
  44.   headingText      ( unsigned long  headingIndex);
  45.  
  46.  
  47. IContainerColumn
  48.  *createAndOrphanColumnFor ( IContainerControl& container,
  49.                              unsigned long      fieldNumber);
  50. void
  51.   createAllColumnsFor      ( IContainerControl&  container);
  52.  
  53.  
  54. private:
  55.  
  56. static unsigned long
  57.   fgFieldCount;
  58. IString
  59.   fFieldArray[1];
  60. };
  61.  
  62. #endif // _TABLE_
  63.