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 / ODFDev / Embed / Sources / Content.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.2 KB  |  109 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Content.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CONTENT_H
  13. #define CONTENT_H
  14.  
  15. // ----- FrameWork Includes -----
  16.  
  17. #ifndef FWCONTNG_H
  18. #include "FWContng.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Declarations
  23. //========================================================================================
  24.  
  25. class CEmbedPart;
  26. class CEmbedProxy;
  27.  
  28. //========================================================================================
  29. //    class CEmbedContent
  30. //========================================================================================
  31.  
  32. class CEmbedContent : public FW_CEmbeddingContent
  33. {
  34. //----------------------------------------------------------------------------------------
  35. //    Initialization/Destruction
  36. //
  37.   public:
  38.     FW_DECLARE_AUTO(CEmbedContent)
  39.     
  40.     CEmbedContent(Environment* ev, CEmbedPart* part);
  41.  
  42.     virtual ~CEmbedContent();
  43.  
  44. //----------------------------------------------------------------------------------------
  45. //    Inherited API
  46. //
  47.   public:
  48.     virtual void        ExternalizeKind(Environment* ev,
  49.                                     ODStorageUnit* storageUnit,
  50.                                     FW_CKind* kind,
  51.                                     FW_StorageKinds storageKind,
  52.                                      FW_CPromise* promise,
  53.                                     FW_CCloneInfo* cloneInfo);
  54.     virtual FW_Boolean    InternalizeKind(Environment* ev,
  55.                                      ODStorageUnit* storageUnit, 
  56.                                      FW_CKind* kind,
  57.                                      FW_StorageKinds storageKind,
  58.                                      FW_CCloneInfo* cloneInfo);
  59.  
  60.     virtual void        SingleEmbeddedFrameInternalized(Environment* ev,
  61.                                     FW_CEmbeddingFrame* scopeFrame,
  62.                                     ODPart* odEmbeddedPart, 
  63.                                     ODFrame* odEmbeddedFrame,
  64.                                     ODShape* suggestedShape,
  65.                                     ODTypeToken viewType);
  66.  
  67.     virtual FW_MProxy*    IsDataOnlyOneProxy(Environment* ev) const;
  68.  
  69. //----------------------------------------------------------------------------------------
  70. //    New API
  71. //
  72.   public:
  73.     CEmbedProxy*         GetProxy() const;
  74.     void                 SetProxy(CEmbedProxy* proxy);
  75.  
  76. //----------------------------------------------------------------------------------------
  77. //    Data Members
  78. //
  79.   private:
  80.     CEmbedPart*            fEmbedPart;
  81.  
  82.     //--- part content data
  83.     CEmbedProxy*        fProxy;
  84. };
  85.  
  86. //========================================================================================
  87. //    CEmbedContent Inlines
  88. //========================================================================================
  89.  
  90. //----------------------------------------------------------------------------------------
  91. //    CEmbedContent::GetProxy
  92. //----------------------------------------------------------------------------------------
  93.  
  94. inline CEmbedProxy* CEmbedContent::GetProxy() const
  95. {
  96.     return fProxy;
  97. }
  98.  
  99. //----------------------------------------------------------------------------------------
  100. //    CEmbedContent::SetProxy
  101. //----------------------------------------------------------------------------------------
  102.  
  103. inline void CEmbedContent::SetProxy(CEmbedProxy* proxy)
  104. {    
  105.     fProxy = proxy;
  106. }
  107.  
  108. #endif
  109.