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

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                      SAMPLE CODE
  3. //
  4. // FileName: ACDFBd2.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 handlingFileNew method have been overridden so
  11. //              that the view class will be called when the user has selects
  12. //              this menu options.
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #include "ACDFBd2.hpp"
  15. #include "ACDFVw2.hpp"
  16.  
  17. ACompDocFwkMyBundle::ACompDocFwkMyBundle()
  18. // Constructor
  19. {   IFUNCTRACE_DEVELOP();}
  20.  
  21. ACompDocFwkMyBundle::~ACompDocFwkMyBundle()
  22. // Destructor
  23. {   IFUNCTRACE_DEVELOP();}
  24.  
  25. void ACompDocFwkMyBundle::handleFileNew( )
  26. // Override this method and call the View's handleFileNew and the
  27. // base class method
  28. {   IFUNCTRACE_DEVELOP();
  29.  
  30.     ACompDocFwkView* theView;
  31.     theView = (ACompDocFwkView*)&objectView();
  32.     theView->handleFileNew();
  33.  
  34.     IGUIBundle::handleFileNew();
  35. }
  36.