home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / BENTODEF.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  6KB  |  132 lines

  1. /* @(#)Z 1.4 com/src/bento/BentoDef.h, odstorage, od96os2, odos29646d 96/11/15 15:26:07 (96/10/29 09:10:30) */
  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. /*
  30.     File:        BentoDef.h
  31.  
  32.     Contains:    defines for Bento code and resources
  33.  
  34.     Owned by:    Vincent Lo
  35.  
  36.     Copyright:    ⌐ 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  37.  
  38.     Change History (most recent first):
  39.  
  40.         <13>    10/20/95    VL        1293256: Removed
  41.                                     kODErrBentoInvalidVersionList.
  42.         <12>    10/13/95    EL        1287340: Use standard ISO prefix
  43.         <11>      9/8/95    jpa        Use official error number range. [1281354]
  44.         <10>     8/24/95    EL        1276818: move Bento container suite
  45.                                     property to BentoDef.h. 1278212: move
  46.                                     private error code to BentoDef.h.
  47.          <9>     8/21/95    VL        1278330, 1278315: Error code cleanup. Added
  48.                                     kODErrCannotGetDraftVersion.
  49.          <8>     5/10/95    CG        #1243599    RemovekNMAPid from StdDefs.idl.
  50.          <7>     2/10/95    VL        1205627: Added ODBentoUpdateContainer.
  51.          <6>    11/17/94    CG        #1181489: Fixed kODMemoryContainerID to
  52.                                     ODMemContainer.
  53.          <5>    11/14/94    VL        1188257: Added Bento errors.
  54.          <4>     11/1/94    VL        1179951: Defined BCS internal prefix.
  55.          <3>     9/23/94    VL        1182227: Moved Bento Types from
  56.                                     StdTypes.idl.
  57.          <2>     8/24/94    CG        #1181622: Updated ownership info.
  58.          <1>     8/17/94    CG        first checked in
  59.          <4>     2/11/94    CG        #114303: Moved 'kNMAPIDxx' consts to
  60.                                     Bento.r.
  61.          <3>     1/21/94    CG        New constant names.
  62.          <2>     1/18/94    CG        Fixed resources id nos.
  63.          <1>     12/6/93    CG        first checked in
  64.  
  65.     To Do:
  66. */
  67.  
  68. #ifndef _BENTODEF_
  69. #define _BENTODEF_
  70.  
  71. // Kind
  72. #define kODContainerBento             "OpenDoc:Apple:Bento"
  73.  
  74. // Class IDs
  75.  
  76. #define kODBentoContainerID         "ODBentoContainer"
  77. #define kODFileContainerID             "ODFileContainer"
  78. #define kODMemoryContainerID         "ODMemContainer"
  79. #define kODEmbeddedContainerID         "ODEmbeddedContainer"
  80. #define kODUpdateContainerID        "ODUpdateContainer"
  81.  
  82. // Constants
  83. #define kODBentoEmbeddedContainer    "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:Embedded"
  84. #define kODBentoFileContainer        "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:File"
  85. #define kODBentoMemoryContainer        "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:Memory"
  86. #define kODBentoUpdateContainer        "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:Update"
  87.  
  88. #define kODPropVersionList          "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Property:DraftList"
  89. #define kODPropStorageUnitName        "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Metadata:StorageUnitName"
  90. #define kODPropCurrentSURef          "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Metadata:CurrentSURef"
  91. #define kODPropDocumentName          "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Property:DocumentName"
  92.  
  93. #define kNMAPid1 128
  94.  
  95. #define kcfrgID                0
  96.  
  97. #define kODBentoPrefix    "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:"
  98. #define kODValue        "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Type:Bytes"
  99. #define kODFrame        "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Type:Frame"
  100. #define kODPart         "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Type:Part"
  101. #define kODLink         "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Type:Link"
  102. #define kODLinkSource    "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:Type:LinkSource"
  103.  
  104. // Error codes
  105. // Consult ErrorDef.idl before adding any more errors, to check for uniqueness!
  106.  
  107. // Unused: -29804
  108.  
  109. #define    kODErrBentoErr                         -29809
  110. #define kODErrInvalidVersion                -29808
  111. #define kODErrCannotCreateDraftVersion        -29807
  112. #define kODErrVersionListUnavailable        -29806
  113. #define kODErrSemaphoreReleased                -29805
  114. #define kODErrInvalidIDList                    -29803
  115. #define kODErrBentoNoSession                -29802
  116. #define kODErrBentoInvalidProperty            -29801
  117. #define kODErrBentoInvalidType                -29800
  118. #define kODErrBentoCannotNewObject            -29799
  119. #define kODErrBentoCannotNewValue            -29798
  120. #define kODErrBentoCannotCreateContainer    -29797
  121. #define kODErrBentoCannotOpenContainer        -29796
  122. #define kODErrBentoInvalidObject            -29795
  123. #define kODErrDraftExistsWithDifferentID    -29794
  124. #define kODErrNoVersionList                    -29793
  125. #define kODErrNotPromise                    -29792
  126. #define kODErrInvalidZone                    -29791
  127. #define kODErrCannotGetDraftVersion            -29790
  128. #define kODErrNoDocumentProperties            -29789
  129.  
  130. #endif //_BENTODEF_
  131.  
  132.