home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / DRAFT.IDL < prev    next >
Text File  |  1995-12-13  |  6KB  |  202 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.  
  15.  
  16. #ifndef _DRAFT_
  17. #define _DRAFT_
  18.  
  19. #ifndef _REFCTOBJ_
  20. #include "RefCtObj.idl"
  21. #endif
  22.  
  23. //==============================================================================
  24. // Classes defined in this interface
  25. //==============================================================================
  26. interface  ODDraft;
  27.  
  28. //==============================================================================
  29. // Classes used by this interface
  30. //==============================================================================
  31. interface   ODCanvas;
  32. interface   ODDocument;
  33. interface   ODFrame;
  34. interface   ODLink;
  35. interface   ODLinkSource;
  36. interface   ODLinkIterator;
  37. interface   ODLinkSourceIterator;
  38. interface   ODLinkSpec;
  39. interface   ODPart;
  40. interface   ODShape;
  41. interface   ODStorageUnit;
  42. interface  ODPersistentObject;
  43. interface  ODPartWrapper;
  44.  
  45. //==============================================================================
  46. // ODDraft
  47. //==============================================================================
  48.  
  49. interface ODDraft :  ODRefCntObject
  50. {
  51.  
  52.   ODDocument   GetDocument();
  53.  
  54.   ODDraftID    GetID();
  55.  
  56.   ODStorageUnit   AcquireDraftProperties();
  57.  
  58.   ODDraftPermissions  GetPermissions();
  59.  
  60.   ODStorageUnit   CreateStorageUnit();
  61.  
  62.   ODStorageUnit   AcquireStorageUnit(in ODStorageUnitID id);
  63.  
  64.   void      RemoveStorageUnit(in ODStorageUnit storageUnit);
  65.  
  66.   ODBoolean    IsValidID(in ODID id);
  67.  
  68.   ODDraftKey    BeginClone(in ODDraft destDraft, in ODFrame destFrame, in ODCloneKind kind);
  69.  
  70.   void      EndClone(in ODDraftKey key);
  71.  
  72.   void      AbortClone(in ODDraftKey key);
  73.  
  74.   ODID Clone(in ODDraftKey key, in ODID fromObjectID, in ODID toObjectID, in ODID scope);
  75.  
  76.   ODID WeakClone(in ODDraftKey key, in ODID objectID, in ODID toObjectID, in ODID scope);
  77.  
  78.   ODBoolean    ChangedFromPrev();
  79.  
  80.   void      SetChangedFromPrev();
  81.  
  82.   void      RemoveFromDocument();
  83.  
  84.   ODDraft     RemoveChanges();
  85.  
  86.   ODDraft     Externalize();
  87.  
  88.   ODDraft     SaveToAPrevious(in ODDraft to);
  89.  
  90.   ODFrame CreateFrame(
  91.       in ODObjectType    frameType,      
  92.       in ODFrame    containingFrame,
  93.       in ODShape    frameShape,
  94.       in ODCanvas    biasCanvas,
  95.       in ODPart    part,
  96.       in ODTypeToken  viewType,
  97.       in ODTypeToken  presentation,
  98.       in ODBoolean  isSubframe,
  99.       in ODBoolean  isOverlaid);
  100.  
  101.   ODFrame AcquireFrame(in ODStorageUnitID id);
  102.  
  103.   void RemoveFrame(in ODFrame frame);
  104.  
  105.   ODPart CreatePart(in ODType partType,
  106.             in ODEditor optionalEditor);
  107.  
  108.   ODPart AcquirePart(in ODStorageUnitID id);
  109.  
  110.   void ReleasePart(in ODPart part);
  111.  
  112.   void RemovePart(in ODPart part);
  113.  
  114.   ODLinkSpec CreateLinkSpec (in ODPart part, in ODByteArray data);
  115.  
  116.   ODLinkSource CreateLinkSource(in ODPart part);
  117.  
  118.   ODLinkSource AcquireLinkSource(in ODStorageUnitID id);
  119.  
  120.   ODLink AcquireLink(in ODStorageUnitID id,
  121.           in ODLinkSpec linkSpec);
  122.  
  123.   void        RemoveLink(in ODLink link);
  124.  
  125.   void        RemoveLinkSource(in ODLinkSource link);
  126.  
  127.   ODPersistentObjectID  GetPersistentObjectID(in ODPersistentObject object,
  128.                   in ODObjectType objectType);
  129.  
  130.   ODPersistentObject AcquirePersistentObject(in ODPersistentObjectID objectID,
  131.                       out ODObjectType objectType);
  132.  
  133.  
  134. #ifdef __SOMIDL__
  135.   implementation
  136.   {
  137.     functionprefix = ODDraft;
  138.  
  139.     override:
  140.     somInit,
  141.     somUninit,
  142.         Acquire,
  143.         Release;
  144.     releaseorder:
  145.         GetDocument,
  146.         GetID,
  147.         GetName,
  148.         SetName,
  149.         AcquireDraftProperties,
  150.         GetPermissions,
  151.         CreateStorageUnit,
  152.         AcquireStorageUnit,
  153.         RemoveStorageUnit,
  154.         BeginClone,
  155.         EndClone,
  156.         AbortClone,
  157.         Clone,
  158.     WeakClone,
  159.         ChangedFromPrev,
  160.         SetChangedFromPrev,
  161.         RemoveFromDocument,
  162.         RemoveChanges,
  163.         Externalize,
  164.         SaveToAPrevious,
  165.         CreateFrame,
  166.         AcquireFrame,
  167.         RemoveFrame,
  168.         CreatePart,
  169.         AcquirePart,
  170.         RemovePart,
  171.         CreateLinkSpec,
  172.         CreateLinkSource,
  173.         AcquireLinkSource,
  174.         AcquireLink,
  175.         RemoveLink,
  176.         RemoveLinkSource,
  177.         GetPersistentObjectID,
  178.         AcquirePersistentObject,
  179.         ReleasePart,
  180.     IsValidID,
  181.     reserved1,
  182.     reserved2,
  183.     reserved3,
  184.     reserved4,
  185.     reserved5,
  186.     reserved6,
  187.     reserved7,
  188.     reserved8,
  189.     reserved9,
  190.     #ifndef _PLATFORM_OS2_
  191.     reserved10;
  192.     #else
  193.     reserved10,
  194.     reserved11,
  195.     reserved12;
  196.     #endif
  197.   };
  198. #endif
  199. };
  200.  
  201. #endif  // _DRAFT_
  202.