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

  1. #ifndef _IHELPHDR_
  2. #define _IHELPHDR_
  3. /*******************************************************************************
  4. * FILE NAME: ihelphdr.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IHelpHandler                                                             *
  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 <ihandler.hpp>
  19. #include <ihelpevt.hpp>
  20.  
  21. class IFrameWindow;
  22.  
  23. #pragma pack(4)
  24.  
  25. class IHelpHandler : public IHandler {
  26. typedef IHandler
  27.   Inherited;
  28. public:
  29. /*------------------------------- Constructors -------------------------------*/
  30.   IHelpHandler ( );
  31. virtual
  32.  ~IHelpHandler ( );
  33.  
  34. /*---------------------------- Event Dispatching -----------------------------*/
  35. virtual IHelpHandler
  36.  &handleEventsFor       ( IFrameWindow* associatedWindow ),
  37.  &stopHandlingEventsFor ( IFrameWindow* associatedWindow );
  38.  
  39. protected:
  40. /*---------------------------- Event Dispatching -----------------------------*/
  41. virtual Boolean
  42.   dispatchHandlerEvent  ( IEvent& event );
  43.  
  44. /*----------------------------- Event Processing -----------------------------*/
  45. virtual Boolean
  46.   keysHelpId            ( IEvent&                    event ),
  47.   subitemNotFound       ( IHelpSubitemNotFoundEvent& event ),
  48.   helpUndefined         ( IEvent&                    event ),
  49.   handleError           ( IHelpErrorEvent&           event ),
  50.   showTutorial          ( IHelpTutorialEvent&        event ),
  51.   menuBarCommand        ( IHelpMenuBarEvent&         event ),
  52.   hyperlinkSelect       ( IHelpHyperlinkEvent&       event ),
  53.   controlSelect         ( IHelpNotifyEvent&          event );
  54.  
  55. virtual Boolean
  56.   showContents          ( IHelpNotifyEvent&          event ),
  57.   showCoverPage         ( IHelpNotifyEvent&          event ),
  58.   showPage              ( IHelpNotifyEvent&          event ),
  59.   swapPage              ( IHelpNotifyEvent&          event ),
  60.   showHistory           ( IHelpNotifyEvent&          event ),
  61.   showIndex             ( IHelpNotifyEvent&          event ),
  62.   showSearchList        ( IHelpNotifyEvent&          event ),
  63.   openLibrary           ( IHelpNotifyEvent&          event );
  64.  
  65. private:
  66. /*--------------------------------- Private ----------------------------------*/
  67.  
  68. /*------------------------------ Hidden Members ------------------------------*/
  69. virtual IHandler
  70.  &handleEventsFor       ( IWindow* window ),
  71.  &stopHandlingEventsFor ( IWindow* window );
  72.  
  73. }; // IHelpHandler
  74.  
  75. #pragma pack()
  76.  
  77. #endif /* IHELPHDR */
  78.