home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Windoid / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.6 KB  |  58 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8. #ifndef DEFINES_K
  9. #include "Defines.k"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17.  
  18. //=======================================================================
  19. class FW_CMenuBar;
  20. class FW_CMenuEvent;
  21. class FW_CPresentation;
  22. class FW_CFloatingWindow;
  23.  
  24. //=======================================================================
  25. class CWindoidPart : public FW_CPart {
  26. public:
  27.     FW_DECLARE_AUTO(CWindoidPart)
  28.                         CWindoidPart(ODPart* odPart);
  29.     virtual             ~CWindoidPart();
  30. // overrides
  31. protected:
  32.     virtual void         Initialize(Environment* ev,
  33.                                     ODStorageUnit* storageUnit, 
  34.                                     FW_Boolean fromStorage);
  35.     virtual FW_CContent* NewPartContent(Environment* ev);
  36.     virtual FW_CFrame*    NewFrame(Environment* ev,
  37.                                  ODFrame* odFrame,
  38.                                  FW_CPresentation* presentation,
  39.                                  FW_Boolean fromStorage);
  40.     virtual FW_Handled    DoAdjustMenus(Environment* ev,
  41.                                       FW_CMenuBar* menuBar, 
  42.                                       FW_Boolean hasMenuFocus,
  43.                                       FW_Boolean isRoot);
  44.     virtual FW_Handled    DoMenu(Environment* ev,
  45.                                const FW_CMenuEvent& theMenuEvent);
  46.     virtual FW_Handled    DoAbout(Environment* ev);
  47. // new members
  48. public:
  49.     virtual void         MyMakePalette(Environment* ev, FW_Boolean showWindow);
  50. private:
  51.     FW_CPresentation*    fMainPresentation;
  52.     FW_CPresentation*    fPalettePresentation;
  53.     FW_CFloatingWindow*    fPaletteWindow;
  54. };
  55.  
  56. //=======================================================================
  57. #endif
  58.