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

  1. /* @(#)Z 1.13 com/src/include/idl/StdTypes.idl, odcore, od96os2, odos29712d 97/03/21 17:18:33 (97/02/26 16:18:30) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odcore
  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. //#     Copyright:      (r) 1993-1994 by Apple Computer, Inc., all rights reserved.
  30.  
  31. #ifndef _STDTYPES_
  32. #define _STDTYPES_
  33.  
  34. #ifndef _ODTYPESB_
  35. #include "ODTypesB.idl"
  36. #endif
  37.  
  38. //==============================================================================
  39. // Theory of Operation
  40. //==============================================================================
  41.  
  42. /*
  43.   This file is used to store all the standard persistent types. It must
  44.   be compiled by the SOM compiler with -D EMIT_GLOBAL_CONSTANTS
  45. */
  46.  
  47. //==============================================================================
  48. // Constants
  49. //==============================================================================
  50.  
  51. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  52. #pragma somemittypes on
  53. #endif
  54.  
  55. //# Universal Types
  56.  
  57. const  ODValueType  kODBoolean          = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Boolean";
  58. const  ODValueType  kODUShort           = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:UShort";
  59. const  ODValueType  kODSShort           = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:SShort";
  60. const  ODValueType  kODULong            = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:ULong";
  61. const  ODValueType  kODSLong            = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:SLong";
  62.  
  63. const  ODValueType  kODISOStr           = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:ISOStr";
  64. const  ODValueType  kODISOStrList   = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:ISOStrList";
  65.  
  66. const  ODValueType  kODMacIText         = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:Type:IntlText";
  67. const  ODValueType  kODWindowsIText     = "+//ISO 9070/ANSI::113722::US::CI LABS::Windows:Type:IntlText";
  68. const  ODValueType  kODOS2IText         = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:IntlText";
  69. const  ODValueType  kODAIXIText         = "+//ISO 9070/ANSI::113722::US::CI LABS::AIX:Type:IntlText";
  70. const  ODValueType  kODIntlText         = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:IntlText";
  71.  
  72.     // Platform image types
  73.     // These types are used for the Drag and Drop drag image, but
  74.     // are not specific to drag and drop.
  75.     // Each of these types is available on all platforms to allow
  76.     // any future translation of image types that may be done
  77.     // [Win32 RegionHandle to AIX Region, for example]
  78.  
  79. const  ODValueType  kODWindowsRegionHandle    = "+//ISO 9070/ANSI::113722::US::CI LABS::Windows:Type:HRGN";
  80. const  ODValueType  kODOS2RegionHandle        = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:HRGN";
  81. const  ODValueType  kODOS2DragImage           = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:DRAGIMAGE";
  82. const  ODValueType  kODAIXRegion              = "+//ISO 9070/ANSI::113722::US::CI LABS::AIX:Type:Region";
  83.  
  84. #ifdef _PLATFORM_WIN32_
  85. const ODValueType kODPlatformIText      = kODWindowsIText;
  86. #endif
  87. #ifdef _PLATFORM_OS2_
  88. const ODValueType kODPlatformIText      = kODOS2IText;
  89. #endif
  90. #ifdef _PLATFORM_AIX_
  91. const ODValueType kODPlatformIText      = kODAIXIText;
  92. #endif
  93.  
  94. const  ODValueType  kODTime_T           = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Time_T";
  95.  
  96. const  ODValueType  kODPoint            = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Point";
  97. const  ODValueType  kODRect             = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Rect";
  98. const  ODValueType  kODPolygon          = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Polygon";
  99.  
  100. const  ODValueType  kODIconFamily       = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:IconFamily";
  101. const  ODValueType  kODIconFamilyMac    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:IconFamily:Macintosh";
  102. const  ODValueType  kODIconFamilyWin    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:IconFamily:Windows";
  103. const  ODValueType  kODIconFamilyOS2    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:IconFamily:OS2";
  104. const  ODValueType  kODIconFamilyAIX    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:IconFamily:AIX";
  105.  
  106. const  ODValueType  kODTransform        = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Transform";
  107.  
  108. const  ODValueType  kODEditor           = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:Editor";
  109.  
  110. const  ODType      kODStrongStorageUnitRef  = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:StorageUnitRef";
  111. const  ODType      kODWeakStorageUnitRef    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:StorageUnitRef";
  112.  
  113. const  ODType      kODStrongStorageUnitRefs  = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:StorageUnitRefs";
  114. const  ODType      kODWeakStorageUnitRefs    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:StorageUnitRefs";
  115.  
  116. const  ODValueType      kODLinkSpec             = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:LinkSpec";
  117. const  ODValueType      kODCloneKind    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:CloneKind";
  118.  
  119. const  ODValueType      kODObjectType   = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:ObjectType";
  120.  
  121. const  ODType           kODFileType     = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Type:FileType";
  122.  
  123.   // Value ids for the data stored under the Attached Script Property (kODPropAttachedScriptType)
  124. const  ODValueType      kODDSComponentIdValue    = "+//ISO 9070/ANSI::113722::US::IBM::OpenDoc:Type:ODDS_Component_ID"    ;
  125. const  ODValueType      kODDSExtensionNamesValue = "+//ISO 9070/ANSI::113722::US::IBM::OpenDoc:Type:ODDS_Extension_Names" ;
  126. const  ODValueType      kODDSComponentDataValue  = "+//ISO 9070/ANSI::113722::US::IBM::OpenDoc:Type:ODDS_Component_Data"  ;
  127.  
  128.  
  129. #ifdef _PLATFORM_WIN32_
  130. const  ODValueType kODDocfile            = "+//ISO 9070/ANSI::113722::US::IBM::Windows:Type:Docfile";                //OLE2
  131. const  ODValueType kODChangeID           = "+//ISO 9070/ANSI::113722::US::IBM::Windows:Type:ChangeID";               //OLE2
  132. const  ODValueType kODLinkSpecDescriptor = "+//ISO 9070/ANSI::113722::US::IBM::Windows:Type:OleLinkSpecDescriptor";  //OLE2
  133. const  ODValueType kODObjSpec            = "+//ISO 9070/ANSI::113722::US::IBM::Windows:Type:OleObjSpec";             //OLE2
  134. const  ODValueType kODObjSpecDescriptor  = "+//ISO 9070/ANSI::113722::US::IBM::Windows:Type:OleObjSpecDescriptor";   //OLE2
  135. const  ODValueType kODASCIIText          = "+//ISO 9070/ANSI::113722::US::IBM::Windows:Type:Text";                   //OLE2
  136. #endif // _PLATFORM_WIN32
  137.  
  138. #ifdef _PLATFORM_MACINTOSH_
  139. //# Mac specific types:
  140.  
  141. //# Printing (use in kODPropPageSetup property):
  142. const ODPropertyName  kODTypeQuickDrawPageSetup                 = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:Type:QuickDrawPageSetup";
  143. const ODPropertyName  kODTypeGXPageSetup                                = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:Type:GXPageSetup";
  144.  
  145. #endif //_PLATFORM_MACINTOSH_
  146.  
  147.  
  148. #ifdef _PLATFORM_OS2_
  149. const ODValueType kODHashTable        = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:HashTable";  /*watson*/
  150. const ODValueType kODPartDescription  = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:PartDescription";/*watson*/
  151. const ODValueType kODPOINTL   = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:POINTL";
  152. // const ODType kODFileType      = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:FileType";
  153. const ODType kODFileTypeEA    = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:FileTypeEA";
  154. const ODType kODDragitem      = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:Dragitem";
  155. const ODType kODDragOperation = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:DragOperation";
  156. const ODType kODSelectedRMF   = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:SelectedRMF";
  157. const ODType kODSelectedKind  = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:SelectedKind";
  158.  
  159. //# defect 127139
  160. // standard types for IBM core parts (will be eventually replaced by CIL standard names
  161. // kODRGB2 is a RGB2 structure
  162. const ODType kODRGB2         = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:RGB2";
  163. // kODFontNameSize is a string of the font size and name in the same format as OS/2 presparams
  164. const ODType kODFontNameSize = "+//ISO 9070/ANSI::113722::US::CI LABS::OS2:Type:FontNameSize";
  165. #endif // _PLATFORM_OS2_
  166.  
  167.  
  168. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  169. #pragma somemittypes off
  170. #endif
  171.  
  172. module OpenDoc_StdTypes
  173. {
  174.         const string OpenDoc_StdTypes_Version = "1.0.";
  175. };
  176.  
  177. #endif  // _STDTYPES_
  178.  
  179.