home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / FRAME.IDL < prev    next >
Text File  |  1995-12-13  |  6KB  |  253 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /********************************************************************/
  12.  
  13.  
  14. #ifndef _FRAME_
  15. #define _FRAME_
  16.  
  17. #ifndef _PSTOBJ_
  18. #include "PstObj.idl"
  19. #endif
  20.  
  21. //==============================================================================
  22. // Types
  23. //==============================================================================
  24.  
  25. //==============================================================================
  26. // Classes defined in this interface
  27. //==============================================================================
  28.  
  29. interface  ODFrame;
  30.  
  31. //==============================================================================
  32. // Classes used by this interface
  33. //==============================================================================
  34.  
  35. interface  ODFrameFacetIterator;
  36.  
  37. interface  ODCanvas;
  38. interface  ODDraft;
  39. interface  ODFacet;
  40. interface  ODPart;
  41. interface  ODShape;
  42. interface  ODStorageUnit;
  43. interface  ODTransform;
  44. interface  ODDragItemIterator;
  45. interface  ODWindow;
  46.  
  47.  
  48. //==============================================================================
  49. // ODFrame
  50. //==============================================================================
  51.  
  52. interface ODFrame :  ODPersistentObject
  53. {
  54.  
  55.    ODFrame AcquireContainingFrame();
  56.  
  57.    void SetContainingFrame(in ODFrame frame);
  58.  
  59.    ODWindow AcquireWindow();
  60.  
  61.    void SetWindow(in ODWindow window);
  62.  
  63.    ODULong GetFrameGroup();
  64.  
  65.    void SetFrameGroup(in ODULong groupID);
  66.  
  67.    ODULong GetSequenceNumber();
  68.  
  69.    void ChangeSequenceNumber(in ODULong sequenceNumber);
  70.  
  71.    ODBoolean IsRoot();
  72.  
  73.    ODBoolean IsSubframe();
  74.  
  75.    void SetSubframe(in ODBoolean isSubframe);
  76.  
  77.    ODBoolean IsOverlaid();
  78.  
  79.    ODBoolean IsFrozen();
  80.  
  81.    void SetFrozen(in ODBoolean isFrozen);
  82.  
  83.    ODBoolean DoesPropagateEvents();
  84.  
  85.    void SetPropagateEvents(in ODBoolean doesPropagateEvents);
  86.  
  87.   ODBoolean  IsInLimbo();                             
  88.  
  89.   void    SetInLimbo(in ODBoolean isInLimbo);         
  90.  
  91.    ODPart  AcquirePart();
  92.  
  93.    void ChangePart(in ODPart part);
  94.  
  95.    ODInfoType  GetPartInfo();
  96.  
  97.    void SetPartInfo(in ODInfoType partInfo);
  98.  
  99.    ODTypeToken GetViewType();
  100.  
  101.    void SetViewType(in ODTypeToken viewType);
  102.  
  103.    void ChangeViewType(in ODTypeToken viewType);
  104.  
  105.    ODTypeToken GetPresentation();
  106.  
  107.    void SetPresentation(in ODTypeToken presentation);
  108.  
  109.    void ChangePresentation(in ODTypeToken presentation);
  110.  
  111.    void FacetAdded(in ODFacet facet);
  112.  
  113.    void FacetRemoved(in ODFacet facet);
  114.  
  115.    ODFrameFacetIterator  CreateFacetIterator();
  116.  
  117.    ODShape CreateShape();
  118.  
  119.    ODShape  AcquireFrameShape(in ODCanvas biasCanvas);
  120.  
  121.    void ChangeFrameShape(in ODShape shape, in ODCanvas biasCanvas);
  122.  
  123.    ODShape  RequestFrameShape(in ODShape shape, in ODCanvas biasCanvas);
  124.  
  125.    ODShape  AcquireUsedShape(in ODCanvas biasCanvas);
  126.  
  127.    void ChangeUsedShape(in ODShape shape, in ODCanvas biasCanvas);
  128.  
  129.    ODTransform CreateTransform();
  130.  
  131.    ODTransform AcquireInternalTransform(in ODCanvas biasCanvas);
  132.  
  133.    void ChangeInternalTransform(in ODTransform transform, in ODCanvas biasCanvas);
  134.  
  135.    void GetContentExtent(out ODPoint contentExtent);    // [137664]
  136.  
  137.    void ChangeContentExtent(in ODPoint contentExtent);
  138.  
  139.    ODBoolean   IsDroppable();
  140.  
  141.    void        SetDroppable(in ODBoolean isDroppable);
  142.  
  143.    ODBoolean   IsDragging();
  144.  
  145.    void        SetDragging(in ODBoolean isDragging);
  146.  
  147.    void        ContentUpdated(in ODUpdateID change);
  148.  
  149.    void        ChangeLinkStatus(in ODLinkStatus status);
  150.  
  151.    ODLinkStatus   GetLinkStatus();
  152.  
  153.    ODBoolean   EditInLink();
  154.  
  155.    void Invalidate(in ODShape invalidShape, in ODCanvas biasCanvas);
  156.  
  157.    void Validate(in ODShape validShape, in ODCanvas biasCanvas);
  158.  
  159.    void InvalidateActiveBorder();
  160.  
  161.    void DrawActiveBorder();
  162.  
  163.    void Close();
  164.  
  165.    void Remove();
  166.  
  167.  
  168. #ifdef __SOMIDL__
  169.    implementation
  170.    {
  171.    functionprefix = ODFrame;
  172.  
  173.    override:
  174.       somInit,
  175.       somUninit,
  176.         Purge,
  177.         Release,
  178.       ReleaseAll,
  179.         Externalize,
  180.       GetID,
  181.       CloneInto;
  182.  
  183.     releaseorder:
  184.         AcquireContainingFrame,
  185.         SetContainingFrame,
  186.       AcquireWindow,
  187.       SetWindow,
  188.         GetFrameGroup,
  189.         SetFrameGroup,
  190.       GetSequenceNumber,
  191.       ChangeSequenceNumber,
  192.         IsRoot,
  193.         IsSubframe,
  194.         SetSubframe,
  195.         IsOverlaid,
  196.         IsFrozen,
  197.         SetFrozen,
  198.         DoesPropagateEvents,
  199.         SetPropagateEvents,
  200.         IsInLimbo,                                
  201.         SetInLimbo,                               
  202.         AcquirePart,
  203.         ChangePart,
  204.         GetPartInfo,
  205.         SetPartInfo,
  206.         GetViewType,
  207.         SetViewType,
  208.         ChangeViewType,
  209.         GetPresentation,
  210.         SetPresentation,
  211.         ChangePresentation,
  212.         FacetAdded,
  213.         FacetRemoved,
  214.         CreateFacetIterator,
  215.       CreateShape,
  216.         AcquireFrameShape,
  217.         ChangeFrameShape,
  218.         RequestFrameShape,
  219.         AcquireUsedShape,
  220.         ChangeUsedShape,
  221.       CreateTransform,
  222.         AcquireInternalTransform,
  223.         ChangeInternalTransform,
  224.         GetContentExtent,
  225.         ChangeContentExtent,
  226.         IsDroppable,
  227.         SetDroppable,
  228.         IsDragging,
  229.         SetDragging,
  230.         ContentUpdated,
  231.         ChangeLinkStatus,
  232.         GetLinkStatus,
  233.       EditInLink,
  234.         Invalidate,
  235.         Validate,
  236.         InvalidateActiveBorder,
  237.         DrawActiveBorder,
  238.         Close,
  239.         Remove,
  240.         GetFacets,
  241.       SetDirty,
  242.         CommonInitFrame,
  243.         InitFrame,
  244.         InitFrameFromStorage,
  245.       InitFrameNonPersistent;
  246.  
  247.  
  248.   };
  249. #endif
  250. };
  251.  
  252. #endif // _FRAME_
  253.