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 / Proxy.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.7 KB  |  99 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Proxy.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 PROXY_H
  13. #define PROXY_H
  14.  
  15. // ----- ODF Includes -----
  16.  
  17. #ifndef FWPROXY_H
  18. #include "FWProxy.h"
  19. #endif
  20.  
  21. #ifndef FWRECT_H
  22. #include "FWRect.h"
  23. #endif
  24.  
  25. //==============================================================================
  26. //    Forward declarations
  27. //==============================================================================
  28.  
  29. class FW_CEmbeddingFrame;
  30. class CEmbedPart;
  31.  
  32. //==============================================================================
  33. //    class CEmbedProxy
  34. //==============================================================================
  35.  
  36. class CEmbedProxy : public FW_MProxy
  37. {
  38. //----------------------------------------------------------------------------------------
  39. //    Initialization/Destruction
  40. //
  41. public:
  42.     CEmbedProxy(Environment* ev, CEmbedPart* part);
  43.     virtual ~ CEmbedProxy();
  44.  
  45. //----------------------------------------------------------------------------------------
  46. //    Inherited API
  47. //
  48. public:
  49.     virtual void         UsedShapeChanged(Environment* ev,
  50.                                      FW_CEmbeddingFrame* embeddingFrame,
  51.                                       ODFrame* odEmbeddedFrame);
  52.     
  53.     virtual ODShape*     FrameShapeRequested(Environment* ev, 
  54.                                     FW_CEmbeddingFrame* embeddingFrame, 
  55.                                     ODFrame* odEmbeddedFrame, 
  56.                                     ODShape* requestedFrameShape);
  57.                                         
  58.     virtual void         AdjustBorderShape(Environment* ev, 
  59.                                     FW_CEmbeddingFrame* embeddingFrame, 
  60.                                     ODFacet* embeddedFacet, 
  61.                                     ODShape* shape);
  62.  
  63.     virtual short        CreateFacets(Environment* ev,
  64.                                     FW_CEmbeddingFrame* embeddingFrame, 
  65.                                     ODFacet* embeddingFacet,
  66.                                     ODFrame* embeddedFrame,
  67.                                     ODShape* proposedClipShape);
  68.                                         
  69. //----------------------------------------------------------------------------------------
  70. //    New API
  71. //
  72. public:
  73.     void                 RotateFacets(Environment* ev, short rotation);
  74.  
  75.     ODFacet*            CreateOneFacet(Environment* ev, 
  76.                                     ODFacet* embeddingFacet, 
  77.                                     ODFrame* embeddedFrame, 
  78.                                     ODFacet* sibling,
  79.                                     short rotation,
  80.                                     short facetID,
  81.                                     const FW_CRect& clipRect);
  82.     void                EmbeddedFacetBounds(Environment* ev, 
  83.                                     FW_CEmbeddingFrame* embeddingFrame, 
  84.                                     FW_CRect* clipRects);
  85.                                         
  86.     static ODTransform* GetExternalTransform(Environment* ev,
  87.                                     short rotation, 
  88.                                     short facetID, 
  89.                                     const FW_CRect& clipRect);
  90.     
  91. //----------------------------------------------------------------------------------------
  92. //    Data Members
  93. //
  94. private:
  95.     CEmbedPart*            fPart;
  96. };
  97.  
  98. #endif
  99.