home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 2.2 KB | 91 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Part.h
- // Release Version: $ ODF 1 $
- //
- // Author: Henri Lamiraux
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef PART_H
- #define PART_H
-
- // ----- Part Layer -----
-
- #ifndef FWPART_H
- #include "FWPart.h"
- #endif
-
- // ----- OS Layer -----
-
- #ifndef FWBITMAP_H
- #include "FWBitmap.h"
- #endif
-
- #ifndef FWMENU_H
- #include "FWMenu.h"
- #endif
-
- // ----- Foundation Layer -----
-
- #ifndef FWBNDSTR_H
- #include "FWBndStr.h"
- #endif
-
- //========================================================================================
- // Forward Declarations
- //========================================================================================
-
- class CBitmapContent;
-
- //========================================================================================
- // class CBitmapPart
- //========================================================================================
-
- class CBitmapPart : public FW_CPart
- {
- //----------------------------------------------------------------------------------------
- // Initialization/Destruction
- //
- public:
-
- FW_DECLARE_AUTO(CBitmapPart)
-
- CBitmapPart(ODPart* odPart);
- virtual ~ CBitmapPart();
-
- virtual void Initialize(Environment* ev);
-
- //----------------------------------------------------------------------------------------
- // Inherited API
- //
- public:
- virtual FW_CContent* NewPartContent(Environment* ev);
-
- virtual FW_CFrame* NewFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- FW_Boolean fromStorage);
-
- virtual FW_CWindow* NewDocumentWindow(Environment* ev);
-
- virtual FW_Boolean DoMenu(Environment* ev, const FW_CMenuEvent& theMenuEvent);
-
- //----------------------------------------------------------------------------------------
- // New API
- //
- public:
- void PartChanged(Environment* ev);
- void AdjustFramesSize(Environment* ev);
-
- //----------------------------------------------------------------------------------------
- // Data Members
- //
- private:
- CBitmapContent* fBitmapContent;
- FW_CPresentation* fBitmapPresentation;
- };
- #endif
-