home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / Document.idl < prev    next >
Text File  |  1997-03-21  |  4KB  |  158 lines

  1. /* @(#)Z 1.4 com/src/storage/idl/Document.idl, odstorage, od96os2, odos29712d 97/03/21 17:20:07 (96/10/29 09:32:18) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odstorage
  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.  
  29. #ifdef __PRIVATE__
  30. //#
  31. //#    File:        Document.idl
  32. //#
  33. //#    Contains:    Class definition for ODDocument
  34. //#
  35. //#    Owned by:    Vincent Lo
  36. //#
  37. //#    Copyright:    (r) 1994-1995 by Apple Computer, Inc., all rights reserved.
  38. //#
  39. //#    Change History (most recent first):
  40. //#
  41. //#         <9>     8/16/95    VL        1275241: Cleaned up IDL file.
  42. //#         <8>      8/3/95    RR        #1257260: Collapse B classes. Remove
  43. //#                                    somInit methods. Don't call IsInitialized
  44. //#                                    or SubclassResponsibility
  45. //#         <7>     5/25/95    VL        1251403: Multithreading naming support.
  46. //#         <6>     5/17/95    VL        1249181: Made Init method private.
  47. //#         <5>      9/6/94    VL        1184154: Removed Document Properties.
  48. //#         <4>     7/11/94    VL        Added Exists.
  49. //#         <3>      7/5/94    VL        Fixed in/out.
  50. //#         <2>     6/21/94    VL        Added functionprefix.
  51. //#         <1>      6/8/94    VL        first checked in
  52. //#
  53. //#    To Do:
  54. //#
  55. #else
  56. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  57. #endif
  58.  
  59. #ifndef _DOCUMENT_
  60. #define _DOCUMENT_
  61.  
  62. #ifndef _REFCTOBJ_
  63. #include "RefCtObj.idl"
  64. #endif
  65.  
  66. //==============================================================================
  67. // Classes defined in this interface
  68. //==============================================================================
  69. interface   ODDocument;
  70.  
  71. //==============================================================================
  72. // Classes used by this interface
  73. //==============================================================================
  74. interface   ODContainer;
  75. interface    ODDraft;
  76. interface    ODStorageUnit;
  77.  
  78. //==============================================================================
  79. // ODDocument
  80. //==============================================================================
  81.  
  82. interface ODDocument :  ODRefCntObject 
  83. {
  84.     ODContainer  GetContainer();
  85.     
  86.     ODDocumentID GetID();
  87.       
  88.     ODDocumentName GetName();
  89.       
  90.     void SetName(in ODDocumentName name);
  91.         
  92.     ODDocument CollapseDrafts(in ODDraft from,
  93.                                 in ODDraft to);
  94.     
  95.     ODDraft  AcquireDraft(in ODDraftPermissions perms, 
  96.                         in    ODDraftID id,
  97.                         in    ODDraft draft, 
  98.                         in    ODPositionCode posCode, 
  99.                         in    ODBoolean release);
  100.  
  101.     ODBoolean  Exists(in ODDraftID id,
  102.                         in    ODDraft draft, 
  103.                         in    ODPositionCode posCode);
  104.       
  105.     ODDraft  AcquireBaseDraft( in ODDraftPermissions perms);
  106.     
  107.     ODDraft  CreateDraft(in ODDraft below,
  108.                         in ODBoolean releaseBelow);
  109.       
  110.     void SaveToAPrevDraft(in ODDraft from,
  111.                         in ODDraft to);
  112.     
  113.     void SetBaseDraftFromForeignDraft(in ODDraft draft);
  114.   
  115. #ifdef __PRIVATE__
  116.  
  117.     void InitDocument(in ODContainer container,
  118.                         in  ODDocumentID id);
  119.  
  120.     ODDocument ReleaseDraft( in ODDraft draft);
  121.  
  122. #endif
  123.  
  124. #ifdef __SOMIDL__
  125.   implementation
  126.   {
  127.     majorversion = 1; minorversion = 0;
  128.       functionprefix = ODDocument;
  129.     override:
  130.         somUninit,
  131.         Acquire,
  132.         Release;
  133.     releaseorder:
  134.         GetContainer,
  135.         GetID,
  136.         GetName,
  137.         SetName,
  138.         CollapseDrafts,
  139.         AcquireDraft,
  140.         Exists,
  141.         AcquireBaseDraft,
  142.         CreateDraft,
  143.         SaveToAPrevDraft,
  144.         SetBaseDraftFromForeignDraft,
  145. #ifdef __PRIVATE__
  146.         InitDocument,
  147.         ReleaseDraft;
  148. #else
  149.         reserved1,
  150.         reserved2;
  151. #endif
  152.   };
  153. #endif
  154. };
  155.  
  156. #endif  // _DOCUMENT_
  157.  
  158.