home *** CD-ROM | disk | FTP | other *** search
- ///////////////////////////////////////////////////////////////////////////////
- // SAMPLE CODE
- //
- // FileName: ACDFBd2.cpp
- //
- // ClassName: ACompDocFwkMyBundle
- //
- // Description: This is the bundle class. The reason a user version of the
- // IGUIbundle class is created is to override the bundle menu handling.
- // For example in this case handlingFileNew method have been overridden so
- // that the view class will be called when the user has selects
- // this menu options.
- ///////////////////////////////////////////////////////////////////////////////
- #include "ACDFBd2.hpp"
- #include "ACDFVw2.hpp"
-
- ACompDocFwkMyBundle::ACompDocFwkMyBundle()
- // Constructor
- { IFUNCTRACE_DEVELOP();}
-
- ACompDocFwkMyBundle::~ACompDocFwkMyBundle()
- // Destructor
- { IFUNCTRACE_DEVELOP();}
-
- void ACompDocFwkMyBundle::handleFileNew( )
- // Override this method and call the View's handleFileNew and the
- // base class method
- { IFUNCTRACE_DEVELOP();
-
- ACompDocFwkView* theView;
- theView = (ACompDocFwkView*)&objectView();
- theView->handleFileNew();
-
- IGUIBundle::handleFileNew();
- }
-