home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xcontinf.h < prev    next >
Text File  |  1997-08-12  |  3KB  |  75 lines

  1. #ifndef __OOL_XCONTINFO_H__
  2. #define __OOL_XCONTINFO_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XContainerInfo                        */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xobject.h"
  16.  
  17. #define CO_TITLESEPARATOR CA_TITLESEPARATOR
  18. #define CO_TITLEREADONLY  CA_TITLEREADONLY
  19. #define CO_DETAILTITLES   CA_DETAILSVIEWTITLES
  20. #define CO_TITLELEFT      CA_TITLELEFT
  21. #define CO_TITLERIGHT     CA_TITLERIGHT
  22. #define CO_TITLECENTER    CA_TITLECENTER
  23. #define CO_TEXT    0x00000001
  24. #define CO_NAME    0x00000002
  25. #define CO_ICON    0x00000004
  26. #define CO_DETAIL  0x00000008
  27. #define CO_FLOW    0x00000010
  28. #define CO_MINI    CV_MINI
  29. #define CO_TREE    0x00000040
  30. #define CO_OWNERPAINTBACKGROUND      0x00100000
  31. #define CO_TREELINE         0x00400000
  32. #define CO_DRAWBITMAP CA_DRAWBITMAP
  33. #define CO_DRAWICON   CA_DRAWICON
  34. #define CO_TITLE CA_CONTAINERTITLE
  35.  
  36. class XString;
  37. class XContainerColumn;
  38. class XBitmap;
  39. class XIcon;
  40. class XSize;
  41.  
  42. class _export_ XContainerInfo: public XObject
  43. {
  44.       friend class XContainerControl;
  45.    private:
  46.       CNRINFO cnrinfo;
  47.       LONG changes;
  48.    public:
  49.       XContainerInfo( char * title = "", LONG attr = CO_ICON);
  50.       virtual ~XContainerInfo() {;}
  51.       void EnableBackgroundPainting( const BOOL enable = TRUE);
  52.       void EnableSorting( const BOOL enable = TRUE);
  53.       BOOL IsBackgroundPaintingEnabled() const ;
  54.       LONG GetAttributes( void ) const ;
  55.       void GetBitmapSize( XSize*);
  56.       LONG GetSplitbarPos( void ) const { return cnrinfo.xVertSplitbar; }
  57.       LONG GetObjectCount ( void ) const { return cnrinfo.cRecords; }
  58.       void GetTitle( XString * s );
  59.       void SetAttributes( const LONG attribute );
  60.       void SetBitmapSize( const XSize*);
  61.       void SetSplitbarPos( const LONG pos );
  62.       void SetSplitbarColumn( const XContainerColumn * col);
  63.       void SetTitle( const char * t );
  64.       void SetTreeLineWidth( const SHORT w);
  65.       void SetTreeLineSpacing( const SHORT s);
  66.       void SetTreeBitmapSize( const XSize*);
  67.       void SetExpandedBitmap( const XBitmap * );
  68.       void SetExpandedBitmap( const XIcon * );
  69.       void SetCollapsedBitmap( const XBitmap *);
  70.       void SetCollapsedBitmap( const XIcon *);
  71.       void SetSpacing( const SHORT w);
  72. };
  73.  
  74. #endif
  75.