home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / acdf5 / acdfbd5.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  1.5 KB  |  48 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                        SAMPLE CODE
  3. //
  4. // FileName: ACDFBd5.cpp
  5. //
  6. // ClassName: ACompDocFwkMyBundle
  7. //
  8. // Description: This is the bundle class. The reason a user version of the 
  9. //              IGUIbundle class is created is to override the bundle menu handling.
  10. //              For example in this case handling SelectAll and FileNew methods
  11. //              have been overridden so that the view class will be called when
  12. //              the user has selected either of these menu options.
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #include "ACDFBd5.hpp"
  15. #include "ACDFVw5.hpp"
  16.  
  17. ACompDocFwkMyBundle::ACompDocFwkMyBundle()
  18. // Constructor
  19. {   IFUNCTRACE_DEVELOP();}
  20.  
  21. ACompDocFwkMyBundle::~ACompDocFwkMyBundle()
  22. // Destructor
  23. {   IFUNCTRACE_DEVELOP();}
  24.  
  25. void ACompDocFwkMyBundle::handleSelectAll( Boolean selectAll)
  26. // Override this method and call the View's handleSelectAll and the
  27. // base class method
  28. {   IFUNCTRACE_DEVELOP();
  29.  
  30.     ACompDocFwkView* theView;
  31.     theView = (ACompDocFwkView*)&objectView();
  32.     theView->handleSelectAll(selectAll);
  33.  
  34.     IGUIBundle::handleSelectAll(selectAll);
  35.  
  36. }
  37. void ACompDocFwkMyBundle::handleFileNew( )
  38. // Override this method and call the View's handleFileNew and the
  39. // base class method
  40. {   IFUNCTRACE_DEVELOP();
  41.  
  42.     ACompDocFwkView* theView;
  43.     theView = (ACompDocFwkView*)&objectView();
  44.     theView->handleFileNew();
  45.  
  46.     IGUIBundle::handleFileNew();
  47. }
  48.