home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / itbarcnr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.3 KB  |  96 lines

  1. #ifndef _ITBARCNR_
  2. #define _ITBARCNR_
  3. /*******************************************************************************
  4. * FILE NAME: itbarcnr.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IToolBarContainer                                                        *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <isetcv.hpp>
  19. #include <iframe.hpp>
  20.  
  21. class IToolBar;
  22. class IToolBarContainerData;
  23.  
  24. #pragma pack(4)
  25.  
  26.  
  27. class IToolBarContainer : public ISetCanvas
  28. {
  29. typedef ISetCanvas
  30.   Inherited;
  31. public:
  32. class Style;
  33. /*------------------------------ Constructors --------------------------------*/
  34.   IToolBarContainer ( unsigned long          identifier,
  35.                       IFrameWindow*          parentAndOwner,
  36.                       IFrameWindow::Location location,
  37.                       const Style&           style = defaultStyle() );
  38.  
  39. virtual
  40.   ~IToolBarContainer ();
  41.  
  42. /*------------------------------ Styles --------------------------------------*/
  43. INESTEDBITFLAGCLASSDEF3(Style, IToolBarContainer, ISetCanvas, ICanvas, IWindow);
  44.  
  45. static const Style
  46.   IC_IMPORTU classDefaultStyle;
  47.  
  48. static Style
  49.   defaultStyle      ( );
  50.  
  51. static void
  52.   setDefaultStyle   ( const Style&    style );
  53.  
  54. virtual unsigned long
  55.   convertToGUIStyle ( const IBitFlag& style,
  56.                       Boolean         extendedOnly = false ) const;
  57.  
  58. /*---------------------------- Frame Location --------------------------------*/
  59. virtual IToolBarContainer
  60.  &setLocation            ( IFrameWindow::Location location );
  61.  
  62. IFrameWindow::Location
  63.   location               ( ) const;
  64.  
  65. static IToolBarContainer
  66.   *frameToolBarContainer ( IFrameWindow*          frame,
  67.                            IFrameWindow::Location frameLocation );
  68.  
  69. /*----------------------------- Canvas Layout --------------------------------*/
  70. virtual IToolBarContainer
  71.  &setLayoutDistorted ( unsigned long layoutAttributeOn,
  72.                        unsigned long layoutAttributeOff );
  73.  
  74. /*-------------------------------- Private -----------------------------------*/
  75. private:
  76.  
  77. friend class IToolBar;
  78.  
  79. IToolBarContainer            (const IToolBarContainer&);
  80. IToolBarContainer& operator= (const IToolBarContainer&);
  81.  
  82. static Style
  83.   fgCurrentDefaultStyle;
  84.  
  85. IToolBarContainerData
  86.  *fToolBarContainerData;
  87. };
  88.  
  89. // global style functions
  90. INESTEDBITFLAGCLASSFUNCS(Style, IToolBarContainer);
  91.  
  92.  
  93. #pragma pack()
  94.  
  95. #endif /* _ITBARCNR_ */
  96.