home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / stdtypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  6.4 KB  |  180 lines

  1. /*
  2.     File:        StdTypes.h
  3.  
  4.     Contains:    Standard Types
  5.  
  6.     Written by:    OpenDoc Engineering
  7.  
  8.     Copyright:    ⌐ 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <25>     2/17/94    VL        #1142972, #1144024: 'hfs' should be 'hfs '.
  13.         <24>      2/7/94    JA        Minor tweak to kXMPWindowRect type to
  14.                                     bypass Metrowerks warning.
  15.         <23>      2/1/94    CC        Added kXMPLinkContent.
  16.         <22>     1/27/94    VL        Added kXMPKindStandInFrame.
  17.         <21>     1/21/94    CC        Removed kXMPLinkState; added kXMPLinkSource
  18.                                     and kXMPChangeID.
  19.         <20>     1/18/94    CC        Removed kXMPApplePrefix; changed ISO string
  20.                                     equivalents to Apple scrap types to match
  21.                                     string format now returned by
  22.                                     GetISOTypeFromPlatformType().
  23.         <19>     1/12/94    CG        Moved Category definitions to StdDefs.h.
  24.         <18>    12/16/93    CC        Added kXMPLinkState, kXMPApplealis, and
  25.                                     kXMPApplesect.
  26.         <17>    12/12/93    Té        added kXMPEditor and kXMPStr32
  27.         <16>     12/8/93    Té        added kXMPIconFamily and kXMPIntlText
  28.         <15>    11/23/93    JA        Deleted kXMPRegion, added kXMPPolygon and
  29.                                     kXMPPoint.
  30.         <14>    11/18/93    CG        Added Text, Graphics and Time Category
  31.                                     defines
  32.         <13>    11/18/93    Té        added kXMPTime_T
  33.         <12>    11/16/93    EL        Change OpenDocType to OpenDoc:Type.
  34.         <11>    11/10/93    CC        Added value type kXMPLinkSpec
  35.                                     Added kXMPStrongStorageUnitRef and
  36.                                     kXMPWeakStorageUnitRef
  37.         <10>     11/9/93    PH        Added kXMPDragDropStorageUnit
  38.          <9>    10/25/93    RR        Added kXMPStr255
  39.          <8>     10/4/93    RR        Added signed short and long types
  40.          <7>     9/24/93    PH        Add some Apple types for content
  41.          <6>      9/3/93    JBS        added Layout types, fixed some window types
  42.          <5>     8/13/93    PH        Name all types with OpenDocType
  43.          <4>     8/13/93    VL        Added kXMPStorageUnit, kXMPFrame, kXMPLink,
  44.                                     kXMPWindow and kXMPPart.
  45.          <3>     8/12/93    Té        unify type constants
  46.          <2>     8/11/93    Té        add types for persistent objects
  47.          <1>      8/9/93    VL        first checked in
  48.  
  49.     To Do:
  50. */
  51.  
  52. #ifndef _STDTYPES_
  53. #define _STDTYPES_
  54.  
  55. #ifndef _XMPTYPES_
  56. #include "XMPTypes.h"
  57. #endif
  58.  
  59. //==============================================================================
  60. // Theory of Operation
  61. //==============================================================================
  62.  
  63. /*
  64.     This file is used to store all the standard types.
  65. */
  66.  
  67. //==============================================================================
  68. // Constants
  69. //==============================================================================
  70.  
  71. // Universal Types
  72. const    XMPValueType    kXMPBoolean     = "OpenDoc:Type:Boolean";
  73. const    XMPValueType    kXMPValue        = "OpenDoc:Type:Bytes";
  74. const     XMPValueType    kXMPUShort         = "OpenDoc:Type:UShort";
  75. const     XMPValueType    kXMPSShort         = "OpenDoc:Type:SShort";
  76. const    XMPValueType    kXMPULong        = "OpenDoc:Type:ULong";
  77. const    XMPValueType    kXMPSLong        = "OpenDoc:Type:SLong";
  78. const    XMPValueType    kXMPULongs        = "OpenDoc:Type:ULongs";
  79.  
  80. const    XMPValueType    kXMPISOStr        = "OpenDoc:Type:ISOStr";
  81.  
  82. const    XMPValueType    kXMPIntlText    = "OpenDoc:Type:IntlText";
  83. const    XMPValueType    kXMPName        = "OpenDoc:Type:Name";
  84. const    XMPValueType    kXMPNames         = "OpenDoc:Type:Names";
  85. const    XMPValueType    kXMPStr32         = "OpenDoc:Type:Str32";
  86. const    XMPValueType    kXMPStr255         = "OpenDoc:Type:Str255";
  87.  
  88. const    XMPValueType    kXMPDate        = "OpenDoc:Type:Date";
  89. const    XMPValueType    kXMPTime_T        = "OpenDoc:Type:Time_T";
  90.  
  91. const    XMPValueType    kXMPID            = "OpenDoc:Type:ID";
  92. const    XMPValueType    kXMPIDs            = "OpenDoc:Type:IDs";
  93.  
  94. const    XMPValueType    kXMPPoint        = "OpenDoc:Type:Point";
  95. const    XMPValueType    kXMPRect        = "OpenDoc:Type:Rect";
  96. const    XMPValueType    kXMPPolygon        = "OpenDoc:Type:Polygon";
  97. const    XMPValueType    kXMPIconFamily    = "OpenDoc:Type:IconFamily";
  98.  
  99. const    XMPValueType    kXMPPartInfo    = "OpenDoc:Type:InfoType";
  100. const    XMPValueType    kXMPTransform    = "OpenDoc:Type:Transform";
  101.  
  102. const    XMPValueType    kXMPVersionList = "OpenDoc:Type:VersionList";
  103.  
  104. const    XMPValueType    kXMPHighlight    = "OpenDoc:Type:Highlight";
  105.  
  106. const    XMPValueType    kXMPEditor        = "OpenDoc:Type:Editor";
  107.  
  108. // Window
  109. const    XMPValueType    kXMPWindowRect    = (XMPValueType) kXMPRect;
  110. const    XMPValueType    kXMPSourceFrame    = "OpenDoc:Type:SourceFrame";
  111.  
  112.  
  113. // Layout
  114. const    XMPValueType    kXMPFrameTree    = "OpenDoc:Type:FrameTree";
  115.  
  116.  
  117. const    XMPType            kXMPFrame                    = "OpenDoc:Type:Frame";
  118. const    XMPType            kXMPPart                    = "OpenDoc:Type:Part";
  119. const    XMPType            kXMPLink                    = "OpenDoc:Type:Link";
  120. const    XMPType            kXMPLinkSource                = "OpenDoc:Type:LinkSource";
  121. const    XMPType            kXMPLinkContent                = "OpenDoc:Type:LinkContent";
  122. const    XMPType            kXMPStorageUnit                = "OpenDoc:Type:StorageUnit";
  123. const    XMPType            kXMPStrongStorageUnitRef    = "OpenDoc:Type:StorageUnitRef";
  124. const    XMPType            kXMPWeakStorageUnitRef        = "OpenDoc:Type:StorageUnitRef";
  125. const    XMPType            kXMPWindow                    = "OpenDoc:Type:Window";
  126. const    XMPType            kXMPLayout                    = "OpenDoc:Type:Layout";
  127. const    XMPType            kXMPDragDropStorageUnit        = "OpenDoc:Type:DragDropStorageUnit";
  128.  
  129. const    XMPValueType    kXMPLinkSpec                = "OpenDoc:Type:LinkSpec";
  130. const    XMPValueType    kXMPChangeID                = "OpenDoc:Type:ChangeID";
  131.  
  132. // Drag & Drop and Clipboard
  133.  
  134. const    XMPValueType    kXMPKindStandInFrame        = "OpenDoc:Type:StandInFrame";
  135.  
  136. // Platform Specific Types
  137.  
  138. // ISOString equivalents for Apple scrap types
  139. const    XMPValueType    kXMPApplePart    = "Apple:OSType:Scrap:odcn";    // OpenDoc Container
  140. const    XMPValueType    kXMPAppleTEXT    = "Apple:OSType:Scrap:TEXT";
  141. const    XMPValueType    kXMPApplestyl    = "Apple:OSType:Scrap:styl";
  142. const    XMPValueType    kXMPApplePICT    = "Apple:OSType:Scrap:PICT";
  143. const    XMPValueType    kXMPApplehfs    = "Apple:OSType:Scrap:hfs ";
  144. const    XMPValueType    kXMPApplesnd    = "Apple:OSType:Scrap:snd";
  145. const    XMPValueType    kXMPApplealis    = "Apple:OSType:Scrap:alis";
  146. const    XMPValueType    kXMPApplesect    = "Apple:OSType:Scrap:sect";
  147.  
  148. //Categories
  149. // - moved to StdDefs.h -
  150. //#define kXMPCategoryText        "OpenDoc:Category:Text"
  151. //#define kXMPCategoryGraphics    "OpenDoc:Category:Graphics"
  152. //#define kXMPCategoryTime        "OpenDoc:Category:Time"
  153.  
  154. /*
  155. old type constants:
  156.  
  157. const    XMPValueType    kXMPWindowListType = "OpenDoc:Type:IDList";
  158. // use kXMPIDs
  159.  
  160. const    XMPValueType    kXMPValID = "XMPID";    
  161. // use kXMPID
  162.  
  163. const    XMPValueType    kXMPValGraphicsSystem = "XMPUShort";    
  164. // use kXMPUShort
  165.  
  166. const    XMPValueType    kXMPValTransform = "XMPTransform";
  167. // use kXMPTransform
  168.  
  169. const    XMPValueType    kXMPValPartInfo = "XMPInfoType";
  170. // use kXMPPartInfo
  171.  
  172. const    XMPValueType    kXMPValFrameGroup = "XMPULong";
  173. // use kXMPULong
  174.  
  175. const    XMPValueType    kXMPFrameTree    = "XMPID";
  176. const    XMPValueType    kXMPSourceFrame = "XMPID";
  177. */
  178.  
  179. #endif    // _STDTYPES_
  180.