home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / runnable / ibmc / ibmclass / icnrhdr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-26  |  3.6 KB  |  77 lines

  1. #ifndef _ICNRHDR_
  2. #define _ICNRHDR_
  3. /*******************************************************************************
  4. * FILE NAME: icnrhdr.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     ICnrHandler                                                              *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   (C) Copyright IBM Corporation 1992                                         *
  12. *   All Rights Reserved                                                        *
  13. *   Licensed Materials * Property of IBM                                       *
  14. *                                                                              *
  15. * HISTORY:                                                                     *
  16. * $Log:   R:/ibmclass/icnr/vcs/icnrhdr.hpv  $
  17. //
  18. //   Rev 1.4   26 Oct 1992 00:50:36   BOBLOVE
  19. //External Beta Release
  20. *                                                                              *
  21. *******************************************************************************/
  22. #ifndef _IHANDLER_
  23.   #include <ihandler.hpp>
  24. #endif
  25.  
  26. #ifndef _ICNRBEVT_
  27.   #include <icnrbevt.hpp>
  28. #endif
  29.  
  30.  
  31. class ICnrHandler : public IHandler
  32. {
  33. /*******************************************************************************
  34. * This class provides miscellaneous handler capability in the container.       *
  35. *******************************************************************************/
  36. public:
  37.  
  38. /*------------------------ CONSTRUCTORS/DESTRUCTORS ----------------------------
  39. | There is only one way to construct instances of this class:                  |
  40. |   1. The default with no parameters.                                         |
  41. ------------------------------------------------------------------------------*/
  42.   ICnrHandler();
  43.  
  44. /*------------------------ EVENT PROCESSING FUNCTIONS --------------------------
  45. | These functions must be supplied by a derived class in order to provide      |
  46. | processing for an edit event.                                                |
  47. |   deltaReached   - The container has scrolled to the predefined delta.       |
  48. |   treeCollapsed  - An object is being collapsed in the container.            |
  49. |   treeExpanded   - An object is being expanded in the container.             |
  50. ------------------------------------------------------------------------------*/
  51. virtual Boolean 
  52.   deltaReached(ICnrQueryDeltaEvent& evt),
  53.   treeCollapsed(IContainerObject* CollapsedObject),
  54.   treeExpanded(IContainerObject* ExpandedObject);
  55.  
  56.  
  57. protected:
  58. /*----------------------------- IMPLEMENTATION ---------------------------------
  59. | These functions are used to implement the class:                             |
  60. | dispatchHandlerEvent - This function is responsible for routing the edit     |
  61. |                        events to the appropriate event functions.            |
  62. ------------------------------------------------------------------------------*/
  63. virtual Boolean 
  64.   dispatchHandlerEvent(IEvent& evt);
  65.  
  66. };
  67.  
  68. /* INLINES */
  69. inline Boolean ICnrHandler :: deltaReached(ICnrQueryDeltaEvent& evt)
  70.        { return false; }
  71. inline Boolean ICnrHandler :: treeCollapsed(IContainerObject* CollapsedObject)  
  72.        { return false; }
  73. inline Boolean ICnrHandler :: treeExpanded(IContainerObject* ExpandedObject)  
  74.        { return false; }
  75.  
  76. #endif
  77.