home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / Frame.idl < prev    next >
Text File  |  1997-04-02  |  7KB  |  293 lines

  1. /* @(#)Z 1.4 com/src/layout/idl/Frame.idl, odlayout, od96os2, odos29712d 97/03/21 17:18:28 (96/07/15 18:32:47) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odlayout
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28. //#    Copyright:  (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  29.  
  30. #ifndef _FRAME_
  31. #define _FRAME_
  32.  
  33. #ifndef _PSTOBJ_
  34. #include "PstObj.idl"
  35. #endif
  36.  
  37. //==============================================================================
  38. // Classes defined in this interface
  39. //==============================================================================
  40.  
  41. interface  ODFrame;
  42.  
  43. //==============================================================================
  44. // Classes used by this interface
  45. //==============================================================================
  46.  
  47. interface  ODFrameFacetIterator;
  48.  
  49. interface  ODCanvas;
  50. interface  ODFacet;
  51. interface  ODPart;
  52. interface  ODShape;
  53. interface  ODTransform;
  54. interface  ODWindow;
  55.  
  56.  
  57.  
  58. //==============================================================================
  59. // ODFrame
  60. //==============================================================================
  61.  
  62. interface ODFrame :  ODPersistentObject
  63. {
  64.    //# containing frame
  65.  
  66.    ODFrame     AcquireContainingFrame();
  67.  
  68.    void        SetContainingFrame(in ODFrame frame);
  69.  
  70.    //# window
  71.  
  72.    ODWindow    AcquireWindow();
  73.  
  74.    void        SetWindow(in ODWindow window);
  75.  
  76.    //# getters/setters:
  77.  
  78.    ODULong     GetFrameGroup();
  79.  
  80.    void        SetFrameGroup(in ODULong groupID);
  81.  
  82.    ODULong     GetSequenceNumber();
  83.  
  84.    void        ChangeSequenceNumber(in ODULong sequenceNumber);
  85.  
  86.    ODBoolean   IsRoot();
  87.  
  88.    ODBoolean   IsSubframe();
  89.  
  90.    void        SetSubframe(in ODBoolean isSubframe);
  91.  
  92.    ODBoolean   IsOverlaid();
  93.  
  94.    ODBoolean   IsFrozen();
  95.  
  96.    void        SetFrozen(in ODBoolean isFrozen);
  97.  
  98.    ODBoolean   DoesPropagateEvents();
  99.  
  100.    void        SetPropagateEvents(in ODBoolean doesPropagateEvents);
  101.  
  102.    ODBoolean   IsInLimbo();
  103.  
  104.    void        SetInLimbo(in ODBoolean isInLimbo);
  105.  
  106.    //# part
  107.  
  108.    ODPart      AcquirePart();
  109.  
  110.    void        ChangePart(in ODPart part);
  111.  
  112.    ODInfoType  GetPartInfo();
  113.  
  114.    void        SetPartInfo(in ODInfoType partInfo);
  115.  
  116.    ODTypeToken GetViewType();
  117.  
  118.    void        SetViewType(in ODTypeToken viewType);
  119.  
  120.    void        ChangeViewType(in ODTypeToken viewType);
  121.  
  122.    ODTypeToken GetPresentation();
  123.  
  124.    void        SetPresentation(in ODTypeToken presentation);
  125.  
  126.    void        ChangePresentation(in ODTypeToken presentation);
  127.  
  128.    //# facets
  129.  
  130.    void        FacetAdded(in ODFacet facet);
  131.  
  132.    void        FacetRemoved(in ODFacet facet);
  133.  
  134.    ODFrameFacetIterator    CreateFacetIterator();
  135.  
  136.    //# shapes:
  137.  
  138.    ODShape     CreateShape();
  139.  
  140.    //# frame shape
  141.  
  142.    ODShape     AcquireFrameShape(in ODCanvas biasCanvas);
  143.  
  144.    void        ChangeFrameShape(in ODShape shape, in ODCanvas biasCanvas);
  145.  
  146.    ODShape     RequestFrameShape(in ODShape shape, in ODCanvas biasCanvas);
  147.  
  148.    //# used shape
  149.  
  150.    ODShape     AcquireUsedShape(in ODCanvas biasCanvas);
  151.  
  152.    void        ChangeUsedShape(in ODShape shape, in ODCanvas biasCanvas);
  153.  
  154.    //# transformations:
  155.  
  156.    ODTransform CreateTransform();
  157.  
  158.    ODTransform AcquireInternalTransform(in ODCanvas biasCanvas);
  159.  
  160.    void        ChangeInternalTransform(in ODTransform transform, in ODCanvas biasCanvas);
  161.  
  162.    //# content extent:
  163.  
  164.    void        GetContentExtent(out ODPoint contentExtent);
  165.  
  166.    void        ChangeContentExtent(in ODPoint contentExtent);
  167.  
  168.    //# drag&drop:
  169.  
  170.    ODBoolean   IsDroppable();
  171.  
  172.    void        SetDroppable(in ODBoolean isDroppable);
  173.  
  174.    ODBoolean   IsDragging();
  175.  
  176.    void        SetDragging(in ODBoolean isDragging);
  177.  
  178.    //# linking:
  179.  
  180.    void        ContentUpdated(in ODUpdateID change);
  181.  
  182.    void        ChangeLinkStatus(in ODLinkStatus status);
  183.  
  184.    ODLinkStatus GetLinkStatus();
  185.  
  186.    ODBoolean   EditInLink();
  187.  
  188.    //# invalidation/draw:
  189.  
  190.    void        Invalidate(in ODShape invalidShape, in ODCanvas biasCanvas);
  191.  
  192.    void        Validate(in ODShape validShape, in ODCanvas biasCanvas);
  193.  
  194.    void        InvalidateActiveBorder();
  195.  
  196.    void        DrawActiveBorder();
  197.  
  198.    //# ref counting
  199.  
  200.    void        Close();
  201.  
  202.    void        Remove();
  203.  
  204. //# Private to implementation
  205.  
  206.  
  207. #ifdef __SOMIDL__
  208.    implementation
  209.    {
  210.        majorversion = 1; minorversion = 0;
  211.  
  212.        functionprefix = ODFrame;
  213.  
  214.        override:
  215.            somUninit,
  216.            Purge,
  217.            Release,
  218.            ReleaseAll,
  219.            Externalize,
  220.            GetID,
  221.            CloneInto;
  222.  
  223.        releaseorder:
  224.            AcquireContainingFrame,
  225.            SetContainingFrame,
  226.            AcquireWindow,
  227.            SetWindow,
  228.            GetFrameGroup,
  229.            SetFrameGroup,
  230.            GetSequenceNumber,
  231.            ChangeSequenceNumber,
  232.            IsRoot,
  233.            IsSubframe,
  234.            SetSubframe,
  235.            IsOverlaid,
  236.            IsFrozen,
  237.            SetFrozen,
  238.            DoesPropagateEvents,
  239.            SetPropagateEvents,
  240.            IsInLimbo,
  241.            SetInLimbo,
  242.            AcquirePart,
  243.            ChangePart,
  244.            GetPartInfo,
  245.            SetPartInfo,
  246.            GetViewType,
  247.            SetViewType,
  248.            ChangeViewType,
  249.            GetPresentation,
  250.            SetPresentation,
  251.            ChangePresentation,
  252.            FacetAdded,
  253.            FacetRemoved,
  254.            CreateFacetIterator,
  255.            CreateShape,
  256.            AcquireFrameShape,
  257.            ChangeFrameShape,
  258.            RequestFrameShape,
  259.            AcquireUsedShape,
  260.            ChangeUsedShape,
  261.            CreateTransform,
  262.            AcquireInternalTransform,
  263.            ChangeInternalTransform,
  264.            GetContentExtent,
  265.            ChangeContentExtent,
  266.            IsDroppable,
  267.            SetDroppable,
  268.            IsDragging,
  269.            SetDragging,
  270.            ContentUpdated,
  271.            ChangeLinkStatus,
  272.            GetLinkStatus,
  273.            EditInLink,
  274.            Invalidate,
  275.            Validate,
  276.            InvalidateActiveBorder,
  277.            DrawActiveBorder,
  278.            Close,
  279.            Remove,
  280.            reserved1,
  281.            reserved2,
  282.            reserved3,
  283.            reserved4,
  284.            reserved5,
  285.            reserved6,
  286.            reserved7;
  287.  
  288.    };
  289. #endif
  290. };
  291.  
  292. #endif //# _FRAME_
  293.