home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pgehdl.zip / PgHndler.cpp < prev    next >
C/C++ Source or Header  |  1996-02-02  |  3KB  |  84 lines

  1. /*******************************************************************************
  2. * FILE NAME: PgHndler.cpp                                                      *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *   Class implementation of the class:                                         *
  6. *     APageHandler- Notebook page handler                                      *
  7. * ---------------------------------------------------------------------------- *
  8. * Warning: This file was generated by the VisualAge C++ Visual Builder.        *
  9. * Modifications to this source file will be lost when the part is regenerated. *
  10. *******************************************************************************/
  11. #ifndef _INOTIFEV_
  12. #include <inotifev.hpp>
  13. #endif
  14.  
  15. #ifndef _IOBSERVR_
  16. #include <iobservr.hpp>
  17. #endif
  18.  
  19. #ifndef _ISTDNTFY_
  20. #include <istdntfy.hpp>
  21. #endif
  22.  
  23. #ifndef _APAGEHANDLER_
  24. #include "PgHndler.hpp"
  25. #endif
  26.  
  27. #ifndef _IVBDEFS_
  28. #include <ivbdefs.h>
  29. #endif
  30.  
  31. #ifndef _ITRACE_
  32. #include <itrace.hpp>
  33. #endif
  34.  
  35.  
  36. #pragma export (APageHandler::readyId)
  37. const INotificationId APageHandler::readyId = "APageHandler::readyId";
  38.  
  39. //------------------------------------------------------------------------------
  40. // APageHandler :: APageHandler
  41. //------------------------------------------------------------------------------
  42. #pragma export (APageHandler::APageHandler())
  43. APageHandler::APageHandler()
  44. {
  45.  
  46.    initialize();
  47. }     //end constructor
  48.  
  49.  
  50. //------------------------------------------------------------------------------
  51. // APageHandler :: ~APageHandler
  52. //------------------------------------------------------------------------------
  53. #pragma export (APageHandler::~APageHandler())
  54. APageHandler::~APageHandler()
  55. {
  56.  
  57. }
  58.  
  59. //------------------------------------------------------------------------------
  60. // APageHandler :: initializePart
  61. //------------------------------------------------------------------------------
  62. #pragma export (APageHandler::initializePart())
  63. APageHandler & APageHandler::initializePart()
  64. {
  65.    makeConnections();
  66.    notifyObservers(INotificationEvent(readyId, *this));
  67.    return *this;
  68. }
  69.  
  70.  
  71. //------------------------------------------------------------------------------
  72. // APageHandler :: makeConnections
  73. //------------------------------------------------------------------------------
  74. #pragma export (APageHandler::makeConnections())
  75. Boolean APageHandler::makeConnections()
  76. {
  77.    this->enableNotification();
  78.  
  79.    return true;
  80. }
  81.  
  82.  
  83. #include "PgHndler.cpv"
  84.