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

  1. /* @(#)Z 1.5 com/src/storage/idl/Draft.idl, odstorage, od96os2, odos29712d 97/03/21 17:20:07 (96/10/28 13:40:39) */
  2.  
  3. //#====START_GENERATED_PROLOG======================================
  4. //#
  5. //#
  6. //#   COMPONENT_NAME: odstorage
  7. //#
  8. //#   CLASSES: none
  9. //#
  10. //#   ORIGINS: 82,27
  11. //#
  12. //#
  13. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  14. //#   All Rights Reserved
  15. //#   Licensed Materials - Property of IBM
  16. //#   US Government Users Restricted Rights - Use, duplication or
  17. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  18. //#       
  19. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  21. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  22. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  23. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  24. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  25. //#   OR PERFORMANCE OF THIS SOFTWARE.
  26. //#
  27. //#====END_GENERATED_PROLOG========================================
  28. //#
  29.  
  30. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  31.  
  32. #ifndef _DRAFT_
  33. #define _DRAFT_
  34.  
  35. #ifndef _REFCTOBJ_
  36. #include "RefCtObj.idl"
  37. #endif
  38.  
  39. //==============================================================================
  40. // Classes defined in this interface
  41. //==============================================================================
  42. interface  ODDraft;
  43.  
  44. //==============================================================================
  45. // Classes used by this interface
  46. //==============================================================================
  47. interface   ODCanvas;
  48. interface   ODDocument;
  49. interface   ODFrame;
  50. interface   ODLink;
  51. interface   ODLinkSource;
  52. interface   ODLinkIterator;
  53. interface   ODLinkSourceIterator;
  54. interface   ODLinkSpec;
  55. interface   ODPart;
  56. interface   ODShape;
  57. interface   ODStorageUnit;
  58. interface    ODPersistentObject;
  59. interface    ODPartWrapper;
  60.  
  61. //==============================================================================
  62. // ODDraft
  63. //==============================================================================
  64.  
  65. interface ODDraft :  ODRefCntObject
  66. {
  67.  
  68.     ODDocument   GetDocument();
  69.     
  70.     ODDraftID    GetID();
  71.     
  72.     ODStorageUnit   AcquireDraftProperties();
  73.     
  74.     ODDraftPermissions  GetPermissions();
  75.     
  76.     ODStorageUnit   CreateStorageUnit();
  77.     
  78.     ODStorageUnit   AcquireStorageUnit(in ODStorageUnitID id);
  79.     
  80.     void      RemoveStorageUnit(in ODStorageUnit storageUnit);
  81.     
  82.     ODBoolean    IsValidID(in ODID id);
  83.     
  84.     ODDraftKey    BeginClone(in ODDraft destDraft, in ODFrame destFrame, in ODCloneKind kind);
  85.     
  86.     void      EndClone(in ODDraftKey key);
  87.     
  88.     void      AbortClone(in ODDraftKey key);
  89.  
  90.     ODID Clone(in ODDraftKey key, in ODID fromObjectID, in ODID toObjectID, in ODID scope);
  91.     
  92.     ODID WeakClone(in ODDraftKey key, in ODID objectID, in ODID toObjectID, in ODID scope);
  93.  
  94.     ODBoolean    ChangedFromPrev();
  95.     
  96.     void      SetChangedFromPrev();
  97.     
  98.     void      RemoveFromDocument();
  99.     
  100.     ODDraft     RemoveChanges();
  101.     
  102.     ODDraft     Externalize();
  103.     
  104.     ODDraft     SaveToAPrevious(in ODDraft to);
  105.     
  106.     ODFrame CreateFrame(
  107.             in ODObjectType    frameType,
  108.             in ODFrame        containingFrame,
  109.             in ODShape        frameShape,
  110.             in ODCanvas        biasCanvas,
  111.             in ODPart        part,
  112.             in ODTypeToken    viewType,
  113.             in ODTypeToken    presentation,
  114.             in ODBoolean    isSubframe,
  115.             in ODBoolean    isOverlaid);
  116.        
  117.     ODFrame AcquireFrame(in ODStorageUnitID id);
  118.     
  119.     void RemoveFrame(in ODFrame frame);
  120.     
  121.     ODPart CreatePart(in ODType partType,
  122.                         in ODEditor optionalEditor);
  123.     
  124.     ODPart AcquirePart(in ODStorageUnitID id);
  125.     
  126.     void ReleasePart(in ODPart part);
  127.     
  128.     void RemovePart(in ODPart part);
  129.     
  130.     ODLinkSpec CreateLinkSpec (in ODPart part, in ODByteArray data);
  131.  
  132.     ODLinkSource CreateLinkSource(in ODPart part);
  133.     
  134.     ODLinkSource AcquireLinkSource(in ODStorageUnitID id);
  135.     
  136.     ODLink AcquireLink(in ODStorageUnitID id,
  137.                     in ODLinkSpec linkSpec);
  138.     
  139.     void        RemoveLink(in ODLink link);
  140.     
  141.     void        RemoveLinkSource(in ODLinkSource link);
  142.     
  143.     ODPersistentObjectID    GetPersistentObjectID(in ODPersistentObject object,
  144.                                     in ODObjectType objectType);
  145.     
  146.     ODPersistentObject AcquirePersistentObject(in ODPersistentObjectID objectID,
  147.                                             out ODObjectType objectType);
  148.  
  149.  
  150. #ifdef __SOMIDL__
  151.   implementation
  152.   {
  153.     majorversion = 1; minorversion = 0;
  154.       functionprefix = ODDraft;
  155.  
  156.     override:
  157.         somUninit,
  158.         Acquire,
  159.         Release;
  160.     releaseorder:
  161.         GetDocument,
  162.         GetID,
  163.         GetName,
  164.         SetName,
  165.         AcquireDraftProperties,
  166.         GetPermissions,
  167.         CreateStorageUnit,
  168.         AcquireStorageUnit,
  169.         RemoveStorageUnit,
  170.         BeginClone,
  171.         EndClone,
  172.         AbortClone,
  173.         Clone,
  174.         WeakClone,
  175.         ChangedFromPrev,
  176.         SetChangedFromPrev,
  177.         RemoveFromDocument,
  178.         RemoveChanges,
  179.         Externalize,
  180.         SaveToAPrevious,
  181.         CreateFrame,
  182.         AcquireFrame,
  183.         RemoveFrame,
  184.         CreatePart,
  185.         AcquirePart,
  186.         RemovePart,
  187.         CreateLinkSpec,
  188.         CreateLinkSource,
  189.         AcquireLinkSource,
  190.         AcquireLink,
  191.         RemoveLink,
  192.         RemoveLinkSource,
  193.         GetPersistentObjectID,
  194.         AcquirePersistentObject,
  195.         ReleasePart,
  196.         IsValidID,
  197.         reserved1,
  198.         reserved2,
  199.         reserved3,
  200.         reserved4,
  201.         reserved5,
  202.         reserved6,
  203.         reserved7,
  204.         reserved8,
  205.         reserved9,
  206.         reserved10,
  207. #ifdef _PLATFORM_OS2_
  208.     reserved11,
  209.     reserved12,
  210.     reserved13;
  211. #else
  212.     reserved11;
  213. #endif
  214.  
  215. };
  216. #endif
  217. };
  218.  
  219. #endif  // _DRAFT_
  220.