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

  1. /* @(#)Z 1.42 com/src/include/idl/StdDefs.idl, odcore, od96os2, odos29712d 97/03/21 17:18:32 (97/03/07 16:21:55) */
  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 -  by Apple Computer, Inc., all rights reserved.
  30.  
  31. #ifndef _STDDEFS_
  32. #define _STDDEFS_
  33.  
  34. #ifndef _ODTYPESM_
  35. #include "ODTypesM.idl"
  36. #endif
  37.  
  38. /*
  39.         The C/C++ and Rez emitters are applied to this file.
  40. */
  41.  
  42. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  43. #pragma somemittypes on
  44. #endif
  45.  
  46. //#--------------------------------------------------------------------------------
  47. //# Prefixes
  48. //#--------------------------------------------------------------------------------
  49.  
  50. const  ODISOStr kODISOPrefix    = "+//ISO 9070/ANSI::113722::US::CI LABS::";
  51.  
  52. //#--------------------------------------------------------------------------------
  53. //# Miscellaneous
  54. //#--------------------------------------------------------------------------------
  55.  
  56. const long kODNULL = 0;
  57.  
  58. const ODBoolean  kODFalse = 0;
  59. const ODBoolean  kODTrue = 1;
  60.  
  61. const ODULong kODNoWait = 0;  // For the wait parameter to Lock()
  62.  
  63. //#--------------------------------------------------------------------------------
  64. //# Tokens
  65. //#--------------------------------------------------------------------------------
  66.  
  67. const ODTypeToken kODNullTypeToken = 0;
  68.  
  69. //#--------------------------------------------------------------------------------
  70. //# IDs
  71. //#--------------------------------------------------------------------------------
  72.  
  73. const ODID kODNULLID    = 0;
  74. const ODID kODIDAll     = 0;
  75. const ODID kODIndexAll  = 0;
  76. const ODID kODIDWild    = 0;
  77.  
  78. //#--------------------------------------------------------------------------------
  79. //# Object Types
  80. //#--------------------------------------------------------------------------------
  81.  
  82. const ODObjectType kODPartObject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ObjectType:Part";
  83. const ODObjectType kODFrameObject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ObjectType:Frame";
  84. const ODObjectType kODNonPersistentFrameObject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ObjectType:NonPersistentFrame";
  85.  
  86. //#--------------------------------------------------------------------------------
  87. //# NameSpaces
  88. //#--------------------------------------------------------------------------------
  89.  
  90. const ODISOStr          kODContainerSuite               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:ContainerSuite";
  91. const ODISOStr          kODKind                                 =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:KindCategories";
  92. const ODISOStr          kODEditorKinds                  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorKinds";
  93. const ODISOStr          kODViewer                               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:Viewers";
  94. const ODISOStr          kODKindOldMacOSType             =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:KindOldMacOSType";
  95. const ODISOStr          kODEditorPlatformKind   =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorPlatformKind";
  96. const ODISOStr          kODEditorHelpFile               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorHelpFile";
  97.  
  98. const ODISOStr          kODSysPrefContainerSuites=      "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:SysPrefContainerSuites";
  99. const ODISOStr          kODSysPrefEditorKinds   =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:SysPrefEditorKinds";
  100. const ODISOStr          kODSysPrefEditorCategories      = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:SysPrefEditorCategories";
  101.  
  102. const ODISOStr          kODEditorUserString             =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorUserString";
  103. const ODISOStr          kODKindUserString               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:KindUserString";
  104. const ODISOStr          kODCategoryUserString   =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:CategoryUserString";
  105.  
  106. const ODOSType          kODNameMappings                 =       'nmap';
  107. const ODISOStr          kODSimpleViewer                 =       "";
  108.  
  109. const ODUByte           kODPlatformKindFileChar1        =       '#';
  110.  
  111. //#--------------------------------------------------------------------------------
  112. //# Editors
  113. //#--------------------------------------------------------------------------------
  114.  
  115. const ODEditor  kODNoEditor = kODNULL;
  116.  
  117. #ifdef _PLATFORM_MACINTOSH_
  118. const ODISOStr  kODBlackBoxHandlerOfLastResort = "Apple::NoPart";
  119. #endif
  120.  
  121. //#--------------------------------------------------------------------------------
  122. //# Categories
  123. //#--------------------------------------------------------------------------------
  124.  
  125. const ODISOStr kODCategoryPlainText             =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Text:Plain";
  126. const ODISOStr kODCategoryStyledText    =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Text:Styled";
  127. const ODISOStr kODCategoryDrawing               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Drawing";
  128. const ODISOStr kODCategory3DGraphic             =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:3DGraphic";
  129. const ODISOStr kODCategoryPainting              =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Painting";
  130. const ODISOStr kODCategoryMovie                 =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Movie";
  131. const ODISOStr kODCategorySampledSound  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:SampledSound";
  132. const ODISOStr kODCategoryStructuredSound       =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:StructuredSound";
  133. const ODISOStr kODCategoryChart                 =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Chart";
  134. const ODISOStr kODCategoryFormula               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Formula";
  135. const ODISOStr kODCategorySpreadsheet   =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Spreadsheet";
  136. const ODISOStr kODCategoryTable                 =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Table";
  137. const ODISOStr kODCategoryDatabase              =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Database";
  138. const ODISOStr kODCategoryQuery                 =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Query";
  139. const ODISOStr kODCategoryConnection    =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Connection";
  140. const ODISOStr kODCategoryScript                =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Script";
  141. const ODISOStr kODCategoryOutline               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Outline";
  142. const ODISOStr kODCategoryPageLayout    =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:PageLayout";
  143. const ODISOStr kODCategoryPresentation  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Presentation";
  144. const ODISOStr kODCategoryCalendar              =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Calendar";
  145. const ODISOStr kODCategoryForm                  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Form";
  146. const ODISOStr kODCategoryExecutable    =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Executable";
  147. const ODISOStr kODCategoryCompressed    =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Compressed";
  148. const ODISOStr kODCategoryControlPanel  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:ControlPanel";
  149. const ODISOStr kODCategoryControl               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Control";
  150. const ODISOStr kODCategoryPersonalInfo  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:PersonalInfo";
  151. const ODISOStr kODCategorySpace                 =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Space";
  152. const ODISOStr kODCategoryProject               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Project";
  153. const ODISOStr kODCategorySignature             =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Signature";
  154. const ODISOStr kODCategoryKey                   =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Key";
  155. const ODISOStr kODCategoryUtility               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Utility";
  156. const ODISOStr kODCategoryMailingLabel  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:MailingLabel";
  157. const ODISOStr kODCategoryLocator               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Locator";
  158. const ODISOStr kODCategoryPrinter               =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Printer";
  159.  
  160. const ODISOStr kODCategoryTime                  =       "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Time";
  161.  
  162. //#--------------------------------------------------------------------------------
  163. //# Resource types
  164. //#--------------------------------------------------------------------------------
  165.  
  166. const short kODIsMacOSTypeID                    =       1;                      /* Mac OSType */
  167. const short kODIsINTLTextID                             =       2;                      /* International text */
  168. const short kODIsAnISOStringID                  =       3;                      /* ISOString */
  169. const short kODIsAnISOStringListID              =       4;                      /* ISOString List*/
  170. const short kODIsPltfmTypeSpacID                =       5;                      /* PlatformTypeSpace */
  171. const short kODIsHelpFileNameID                 =       6;                      /* AppleGuide file on the Mac */
  172.  
  173. const short kODPaletteWDEFID                    =       128;            /* Windoid WDEF */
  174.  
  175. //#--------------------------------------------------------------------------------
  176. //# PlatformTypeSpace
  177. //#--------------------------------------------------------------------------------
  178.  
  179. const   ODULong kODPlatformFileType                     = 1;
  180. const   ODULong kODPlatformDataType                     = 2;
  181.  
  182. //#--------------------------------------------------------------------------------
  183. //# International text format constants
  184. //#--------------------------------------------------------------------------------
  185.  
  186. const   short kODISO10646_1993BaseEncoding      =       0;              // UCS
  187. const ODITextFormat kODTraditionalMacText = 0;
  188.  
  189. //#--------------------------------------------------------------------------------
  190. //# Semantic events
  191. //#--------------------------------------------------------------------------------
  192.  
  193. interface ODPart;
  194.  
  195. const ODPart    kODAppShell             =       0;
  196.  
  197. //#--------------------------------------------------------------------------------
  198. //# View Type Sizes
  199. //#--------------------------------------------------------------------------------
  200.  
  201. const   short   kODTinyIconSize         =       12;     // 12x12 pixels
  202. const   short   kODSmallIconSize        =       16;     // 16x16 pixels
  203. const   short   kODLargeIconSize        =       32;     // 32x32 pixels
  204. const   short   kODThumbnailSize        =       64;     // 64x64 pixels
  205.  
  206. //#--------------------------------------------------------------------------------
  207. //# Imaging
  208. //#--------------------------------------------------------------------------------
  209.  
  210.         /* Graphics systems are of course platform dependent, but their numeric IDs
  211.            should be globally registered to avoid overlaps; otherwise confusion may
  212.            occur when documents are moved between platforms, or objects on different
  213.            platforms attempt to communicate via DSOM. */
  214.  
  215. const ODGraphicsSystem kODNoGraphicsSystem = 0;
  216.  
  217.         // Apple Graphics Platforms
  218.  
  219. const ODGraphicsSystem  kODQuickDraw    = 1; // Macintosh QuickDraw graphics system
  220. const ODGraphicsSystem kODQuickDrawGX   = 2; // Macintosh QuickDraw GX graphics system
  221.  
  222. const ODTransformType kODIdentityXform           = 0;   // Identity (no-op) transform
  223. const ODTransformType kODTranslateXform          = 1;   // Pure translation/offset
  224. const ODTransformType kODScaleXform                      = 2;   // Pure scale, no offset
  225. const ODTransformType kODScaleTranslateXform = 3;       // Scale and offset
  226. const ODTransformType kODLinearXform             = 4;   // Scale/rotate/skew, but no offset
  227. const ODTransformType kODLinearTranslateXform= 5;       // Linear as above, but with offset
  228. const ODTransformType kODPerspectiveXform        = 6;   // Perspective: m[0][2]!=0 or m[1][2]!=0
  229.  
  230. const ODTransformType kODUnknownXform            =-1;   // Type not known yet [internal use only]
  231. const ODTransformType kODInvalidXform            = 7;   // Bad matrix [internal use only]
  232.  
  233. //#--------------------------------------------------------------------------------
  234. //# ViewTypes and Presentations
  235. //#--------------------------------------------------------------------------------
  236.  
  237. const ODType kODViewAsSmallIcon         = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:SmallIcon";
  238. const ODType kODViewAsLargeIcon         = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:LargeIcon";
  239. const ODType kODViewAsThumbnail         = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:Thumbnail";
  240. const ODType kODViewAsFrame                     = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:Frame";
  241.  
  242. const ODType kODPresDefault                     = "OpenDoc:Presentation:Default";
  243.  
  244. //#--------------------------------------------------------------------------------
  245. //# Drag And Drop
  246. //#--------------------------------------------------------------------------------
  247.  
  248. const ODULong kODDragIsInSourceFrame    = 0x00000001;
  249. const ODULong kODDragIsInSourcePart     = 0x00000002;
  250.  
  251. const ODULong kODDropIsInSourceFrame    = kODDragIsInSourceFrame;
  252. const ODULong kODDropIsInSourcePart     = kODDragIsInSourcePart;
  253. const ODULong kODDropIsMove             = 0x00000004;
  254. const ODULong kODDropIsCopy             = 0x00000008;
  255. const ODULong kODDropIsPasteAs          = 0x00000010;
  256.  
  257. //#--------------------------------------------------------------------------------
  258. //# Interchange
  259. //#--------------------------------------------------------------------------------
  260.  
  261. const ODType kODDragImageRegionHandle                   = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc::DragImage:RegionHandle";
  262. const ODValueType                       kODHFSPromise           = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc::Type:HFSPromise";
  263. const ODValueType                       kODTypeAll                      = kODNULL;
  264.  
  265. const ODUpdateID                        kODUnknownUpdate        = 0;
  266.  
  267. const ODLinkUpdateResult        kODLinkUpdateSuspend= 0;
  268. const ODLinkUpdateResult        kODLinkUpdateStop       = 1;
  269. const ODLinkUpdateResult        kODLinkUpdateContinue = 2;
  270.  
  271. const ODPasteAsMergeSetting     kODPasteAsMerge         = 1;
  272. const ODPasteAsMergeSetting kODPasteAsEmbed     = 3;
  273. const ODPasteAsMergeSetting kODPasteAsMergeOnly = 0;
  274. const ODPasteAsMergeSetting kODPasteAsEmbedOnly = 2;
  275.  
  276. //#--------------------------------------------------------------------------------
  277. //# For ODStorageUnit
  278. //#--------------------------------------------------------------------------------
  279.  
  280. const ODStorageUnitKey  kODNULLKey = 0;
  281.  
  282. const ODULong kODPosUndefined = 0xFFFFFFFF;
  283. const ODULong kODPosSame = 0x00;
  284. const ODULong kODPosAll = 1;
  285. const ODULong kODPosFirstSib = 2;
  286. const ODULong kODPosLastSib = 3;
  287. const ODULong kODPosNextSib = 4;
  288. const ODULong kODPosPrevSib = 5;
  289. const ODULong kODPosFirstBelow = 6;
  290. const ODULong kODPosLastBelow = 7;
  291. const ODULong kODPosFirstAbove = 8;
  292. const ODULong kODPosLastAbove = 9;
  293. const ODULong kODPosReserved11 = 10;
  294. const ODULong kODPosReserved12 = 11;
  295. const ODULong kODPosReserved13 = 12;
  296. const ODULong kODPosReserved14 = 13;
  297. const ODULong kODPosReserved15 = 14;
  298. const ODULong kODPosMWrap = 0x10;
  299. const ODULong kODPosTop = 0x20;
  300.  
  301. //#--------------------------------------------------------------------------------
  302. //# For ODDocument
  303. //#--------------------------------------------------------------------------------
  304.  
  305. const ODDocumentID  kODDefaultDocument = 1;
  306.  
  307. const ODContainerType kODDefaultFileContainer   = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ContainerType:File";
  308. const ODContainerType kODDefaultMemoryContainer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ContainerType:Memory";
  309.  
  310. const ODContainerType kODBentoFileContainer     = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:File";
  311. const ODContainerType kODBentoMemoryContainer   = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:Memory";
  312.  
  313. //#--------------------------------------------------------------------------------
  314. //# Events
  315. //#--------------------------------------------------------------------------------
  316. #ifdef _PLATFORM_MACINTOSH_
  317. const  ODSShort kODEvtNull                      = 0; // 0-15 copied from Macintosh: <Events.h>
  318. const  ODSShort kODEvtMouseDown         = 1;
  319. const  ODSShort kODEvtMouseUp           = 2;
  320. const  ODSShort kODEvtKeyDown           = 3;
  321. const  ODSShort kODEvtKeyUp                     = 4;
  322. const  ODSShort kODEvtAutoKey           = 5;
  323. const  ODSShort kODEvtUpdate            = 6;
  324. const  ODSShort kODEvtDisk                      = 7;
  325. const  ODSShort kODEvtActivate          = 8;
  326. const  ODSShort kODEvtOS                        = 15;
  327. const  ODSShort kODEvtBGMouseDown       = 16; // Mouse-down while in background [special]
  328.  
  329. const  ODSShort kODEvtMenu                      = 98;
  330. const  ODSShort kODEvtMouseDownEmbedded = 99;
  331. // A mouse-down in an embedded frame, or the active border
  332. // Sent to the container
  333.  
  334. const  ODSShort kODEvtMouseUpEmbedded = 100;
  335. // A mouse-up in an embedded frame, or the active border
  336. // Sent to the container
  337.  
  338. const  ODSShort kODEvtMouseDownBorder = 101;
  339. // A mouse-down in an embedded frame, or the active border
  340. // Sent to the container
  341.  
  342. const  ODSShort kODEvtMouseUpBorder     = 102;
  343. // A mouse-up in an embedded frame, or the active border
  344. // Sent to the container
  345.  
  346. const  ODSShort kODEvtWindow            = 103;
  347. // Used to offer events in title bar to root part
  348.  
  349. const  ODSShort kODEvtMouseEnter        = 104;
  350. const  ODSShort kODEvtMouseWithin       = 105;
  351. const  ODSShort kODEvtMouseLeave        = 106;
  352.  
  353. const  ODSShort kODEvtBGMouseDownEmbedded = 107;
  354. // A mouse-down in an embedded frame, when process is inactive
  355. // Sent to the container
  356.  
  357. const  ODSShort kODEvtExit                      = 108;
  358. // Dispatched immediately before session is destructed.
  359. #endif // _PLATFORM_MACINTOSH_
  360.  
  361. const  ODSShort kODMDInDesk                     = 0; // Te: 0-8 copied from Macintosh: <Windows.h>
  362. const  ODSShort kODMDInMenuBar          = 1;
  363. const  ODSShort kODMDInSysWindow        = 2;
  364. const  ODSShort kODMDInContent          = 3;
  365. const  ODSShort kODMDInDrag                     = 4;
  366. const  ODSShort kODMDInGrow                     = 5;
  367. const  ODSShort kODMDInGoAway           = 6;
  368. const  ODSShort kODMDInZoomIn           = 7;
  369. const  ODSShort kODMDInZoomOut          = 8;
  370.  
  371. //#--------------------------------------------------------------------------------
  372. //# Shell
  373. //#--------------------------------------------------------------------------------
  374. const ODOSType  kODShellSignature = 'odtm';
  375.  
  376. #ifdef _PLATFORM_WIN32_
  377. //#--------------------------------------------------------------------------------
  378. //# Editors
  379. //#--------------------------------------------------------------------------------
  380. const ODISOStr  kODBlackBoxHandlerOfLastResort = "NoPart";
  381.  
  382. //#--------------------------------------------------------------------------------
  383. //# International text format constants
  384. //#--------------------------------------------------------------------------------
  385. const ODITextFormat kODIBMCodePageText = 1;
  386.  
  387. //#--------------------------------------------------------------------------------
  388. //# Imaging
  389. //#--------------------------------------------------------------------------------
  390. const ODGraphicsSystem  kODWin32        = 20;   // Used for Standard Windows 32 (NT+95) imaging
  391. const ODGraphicsSystem  kODWin95        = 21;   // Used for implementations that only support Win95 and not Win32
  392. const ODGraphicsSystem  kODWinNT        = 22;   // Used for implementations that only support WinNT and not Win32
  393.  
  394. const ODGraphicsSystem  kODOpenClass    = 50;   // Used for Standard Portable OS2,Win,AIX OpenClass imaging
  395.  
  396. //#--------------------------------------------------------------------------------
  397. //# Drag And Drop
  398. //#--------------------------------------------------------------------------------
  399. const ODULong kODDropIsLink             = 0x00000020;
  400. const ODULong kODDragHasLeftSourceFrame = 0x00000004;
  401.  
  402. //#--------------------------------------------------------------------------------
  403. //# For ODDocument
  404. //#--------------------------------------------------------------------------------
  405. const ODContainerType kODBentoIStreamContainer  = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:IStream";
  406.  
  407. //#--------------------------------------------------------------------------------
  408. //# Events
  409. //#--------------------------------------------------------------------------------
  410. const  ODSShort kODEvtNull              = 0x0000; // WM_NULL
  411. const  ODSShort kODEvtMouseDown         = 0x0201; // WM_LBUTTONDOWN
  412. const  ODSShort kODEvtMouseUp           = 0x0202; // WM_LBUTTONUP
  413. const  ODSShort kODEvtKeyDown           = 0x0100; // WM_KEYDOWN
  414. const  ODSShort kODEvtKeyUp             = 0x0101; // WM_KEYUP
  415. const  ODSShort kODEvtActivate          = 0x0006; // WM_ACTIVATE
  416. const  ODSShort kODEvtUpdate            = 0x000f; // WM_PAINT
  417.  
  418. // const  ODSShort      kODEvtAutoKey   = 5; Don't know the equivalent in WIN32
  419. // const  ODSShort      kODEvtDisk      = 7; for these keys
  420. // const  ODSShort      kODEvtOS        = 15;
  421.  
  422. const  ODSShort kODEvtLButtonDown       = 0x0201; // WM_LBUTTONDOWN
  423. const  ODSShort kODEvtRButtonDown       = 0x0204; // WM_RBUTTONDOWN
  424. const  ODSShort kODEvtMButtonDown       = 0x0207; // WM_MBUTTONDOWN
  425. const  ODSShort kODEvtInitMenu          = 0x0116; // WM_INITMENU
  426. const  ODSShort kODEvtMenu              = 0x0111; // WM_COMMAND
  427. const  ODSShort kODEvtCommand           = 0x0111; // WM_COMMAND
  428. const  ODSShort kODEvtHelp              = 0x0053; // WM_HELP
  429. const  ODSShort kODEvtClose             = 0x0010; // WM_CLOSE
  430. const  ODSShort kODEvtUser              = 0x0400; // WM_USER
  431. const  ODSShort kODEvtNCMouseMove       = 0x00a0; // WM_NCMOUSEMOVE
  432. const  ODSShort kODEvtSetFocus          = 0x0007; // WM_SETFOCUS
  433. const  ODSShort kODEvtSize              = 0x0005; // WM_SIZE
  434. const  ODSShort kODEvtEraseBkgnd        = 0x0014; // WM_ERASEBKGND
  435. const  ODSShort kODEvtNCCreate          = 0x0081; // WM_NCCREATE
  436. const  ODSShort kODEvtDestroy           = 0x0002; // WM_DESTROY
  437. const  ODSShort kODEvtInactive          = 0x0000; // WM_NULL
  438. const  ODSShort kODEvtExit              = 0x0012; // WM_QUIT
  439.  
  440. // constants for embedded mouse events. These values may change ...
  441.  
  442. const  ODSShort kODEvtMouseDownEmbedded = 0x0401; // WM_USER + 1
  443. const  ODSShort kODEvtMouseUpEmbedded   = 0x0402; // WM_USER + 2
  444. const  ODSShort kODEvtMouseDownBorder   = 0x0403; // WM_USER + 3
  445. const  ODSShort kODEvtMouseUpBorder     = 0x0404; // WM_USER + 4
  446.  
  447. const  ODSShort OD_HELP                 = 0x0405; // WM_USER + 5
  448.  
  449. //#--------------------------------------------------------------------------------
  450. //# Shell
  451. //#--------------------------------------------------------------------------------
  452. // Defines used in the SelectPartKind dialog.
  453. const ODULong   kODKindName = 2;
  454. const ODULong   kODFileName = 3;
  455. const ODULong   kODNoRootPart = 4;
  456.  
  457. const ODUShort  kODEditStationery = 1;
  458. const ODUShort  kODCreateStationery = 2;
  459.  
  460. //#--------------------------------------------------------------------------------
  461. //# Registry constants
  462. //#--------------------------------------------------------------------------------
  463. const ODISOStr ODRegistryFileName = "/PartReg.bto";
  464. const ODISOStr ODRegistryPathEnvVar = "ODCFG";
  465. #endif
  466.  
  467. #ifdef _PLATFORM_OS2_
  468. //#--------------------------------------------------------------------------------
  469. //# Editors
  470. //#--------------------------------------------------------------------------------
  471. const ODISOStr  kODBlackBoxHandlerOfLastResort = "NoPart";
  472. const ODISOStr kODKindPlainText    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:PlainText";
  473. const ODISOStr kODKindTextRTF10    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:RTF10";
  474. const ODISOStr kODKindGraphicsCGM  = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:CGM";
  475. const ODISOStr kODKindImageGIF     = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:GIF";
  476. const ODISOStr kODKindImageJPEG    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:JPEG";
  477. const ODISOStr kODKindVideoMPEG    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:MPEG";
  478. const ODISOStr kODKindAudioAU      = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:AudioAU";
  479. const ODISOStr kODKindMusicMIDI    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:MIDI";
  480.  
  481. // OS/2 Clipboard & Drag&Drop kinds:
  482. const ODISOStr kODKindOS2Bitmap        = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:BTMP";         // CF_BITMAP, <DRM_OS2FILE,DRF_BITMAP>
  483. const ODISOStr kODKindOS2DspBitmap     = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:BMPD";         // CF_DSPBITMAP, <DRM_OS2FILE,DRF_DSPBITMAP>
  484. const ODISOStr kODKindOS2Metafile      = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:METF";         // CF_METAFILE, <DRM_OS2FILE,DRF_METAFILE>
  485. const ODISOStr kODKindOS2DspMetafile   = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:METD";         // CF_DSPMETAFILE
  486. const ODISOStr kODKindOS2Text          = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:TEXT";         // CF_TEXT, <DRM_OS2FILE,DRF_TEXT>
  487. const ODISOStr kODKindOS2DspText       = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:TXTD";         // CF_DSPTEXT
  488. const ODISOStr kODKindOS2DIB           = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:DIB";          // <DRM_OS2FILE,DRF_DIB>
  489. const ODISOStr kODKindOS2DIF           = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:DIF";          // <DRM_OS2FILE,DRF_DIF>
  490. const ODISOStr kODKindOS2OEMText       = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:OEMTEXT";      // <DRM_OS2FILE,DRF_OEMTEXT>
  491. const ODISOStr kODKindOS2OwnerDisplay  = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:OWNERDISPLAY"; // <DRM_OS2FILE,DRF_OWNERDISPLAY>
  492. const ODISOStr kODKindOS2PtrPict       = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:PTRPICT";      // <DRM_OS2FILE,DRF_PTRPICT>
  493. const ODISOStr kODKindOS2RTF           = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:RTF";          // <DRM_OS2FILE,DRF_RTF>
  494. const ODISOStr kODKindOS2SYLK          = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:SYLK";         // <DRM_OS2FILE,DRF_SYLK>
  495. const ODISOStr kODKindOS2TIFF          = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:TIFF";         // <DRM_OS2FILE,DRF_TIFF>
  496. const ODISOStr kODKindOS2Palette       = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:PALT";         // CF_PALETTE
  497. const ODISOStr kODKindOS2Unknown       = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:UNKNOWN";      // <DRM_OS2FILE,DRF_UNKNOWN>
  498.  
  499. //#--------------------------------------------------------------------------------
  500. //# International text format constants
  501. //#--------------------------------------------------------------------------------
  502. const ODITextFormat kODIBMCodePageText = 1;
  503. const ODITextFormat kODOS2PlainText = 0;
  504.  
  505. //#--------------------------------------------------------------------------------
  506. //# Imaging
  507. //#--------------------------------------------------------------------------------
  508. const ODGraphicsSystem  kODPM           = 30;   // Used for Standard OS/2 PM imaging
  509.  
  510. const ODGraphicsSystem  kODOpenClass    = 50;   // Used for Standard Portable OS2,Win,AIX OpenClass imaging
  511.  
  512. //#--------------------------------------------------------------------------------
  513. //# Drag And Drop
  514. //#--------------------------------------------------------------------------------
  515. const ODULong kODDropIsLink             = 0x00000020;
  516.  
  517. //#--------------------------------------------------------------------------------
  518. //# For ODDocument
  519. //#--------------------------------------------------------------------------------
  520.  
  521. //#--------------------------------------------------------------------------------
  522. //# Events
  523. //#--------------------------------------------------------------------------------
  524. // Choose a random offset for OpenDoc user events, to avoid
  525. // collisions with user events from other OS/2 applications.
  526. const  ODSShort kODUserEventBase        = 0x4c41;
  527.  
  528. const  ODSShort kODEvtNull              = 0x0000; // WM_NULL
  529. const  ODSShort kODEvtMouseDown         = 0x0071; // WM_BUTTON1DOWN
  530. const  ODSShort kODEvtMouseUp           = 0x0072; // WM_BUTTON1UP
  531. const  ODSShort kODEvtKeyDown           = kODUserEventBase + 1;
  532. const  ODSShort kODEvtKeyUp             = kODUserEventBase + 2;
  533. const  ODSShort kODEvtActivate          = 0x000d; // WM_ACTIVATE
  534. const  ODSShort kODEvtUpdate            = 0x0023; // WM_PAINT
  535.  
  536. // const  ODSShort      kODEvtAutoKey   = 5; Don't know the equivalent in WIN32
  537. // const  ODSShort      kODEvtDisk      = 7; for these keys
  538. // const  ODSShort      kODEvtOS        = 15;
  539.  
  540. const  ODSShort kODEvtLButtonDown       = 0x0071; // WM_BUTTON1DOWN
  541. const  ODSShort kODEvtRButtonDown       = 0x0077; // WM_BUTTON3DOWN
  542. const  ODSShort kODEvtMButtonDown       = 0x0074; // WM_BUTTON2DOWN
  543. const  ODSShort kODEvtInitMenu          = 0x0033; // WM_INITMENU
  544. const  ODSShort kODEvtMenu              = 0x0020; // WM_COMMAND
  545. const  ODSShort kODEvtCommand           = 0x0020; // WM_COMMAND
  546. const  ODSShort kODEvtHelp              = 0x0022; // WM_HELP
  547. const  ODSShort kODEvtClose             = 0x0029; // WM_CLOSE
  548. const  ODSShort kODEvtUser              = kODUserEventBase;
  549. // const  ODSShort      kODEvtNCMouseMove       = 0x00a0; // ???
  550. const  ODSShort kODEvtSetFocus          = 0x000f; // WM_SETFOCUS
  551. const  ODSShort kODEvtSize              = 0x0007; // WM_SIZE
  552. const  ODSShort kODEvtEraseBkgnd        = 0x004f; // WM_ERASEBACKGROUND
  553. // const  ODSShort      kODEvtNCCreate          = 0x0081; // ???
  554. const  ODSShort kODEvtDestroy           = 0x0002; // WM_DESTROY
  555. const  ODSShort kODEvtInactive          = 0x0000; // WM_NULL
  556. const  ODSShort kODEvtExit              = 0x002a; // WM_QUIT
  557.  
  558. // constants for embedded mouse events. These values may change ...
  559.  
  560. const  ODSShort kODEvtMouseDownEmbedded = kODUserEventBase + 3;
  561. const  ODSShort kODEvtMouseUpEmbedded   = kODUserEventBase + 4;
  562. const  ODSShort kODEvtMouseDownBorder   = kODUserEventBase + 5;
  563. const  ODSShort kODEvtMouseUpBorder     = kODUserEventBase + 6;
  564.  
  565. // constant for linking update event.
  566.  
  567. const  ODSShort kODEvtLinkUpdate        = kODUserEventBase + 7;
  568.  
  569. //#--------------------------------------------------------------------------------
  570. //# Shell
  571. //#--------------------------------------------------------------------------------
  572. // Defines used in the SelectPartKind dialog.
  573. const ODULong   kODKindName = 2;
  574. const ODULong   kODFileName = 3;
  575. const ODULong   kODNoRootPart = 4;
  576.  
  577. const ODUShort  kODEditStationery = 1;
  578. const ODUShort  kODCreateStationery = 2;
  579.  
  580. //#--------------------------------------------------------------------------------
  581. //# Registry constants
  582. //#--------------------------------------------------------------------------------
  583. const ODISOStr ODRegistryFileName = "/PartReg.bto";
  584. const ODISOStr ODRegistryPathEnvVar = "ODCFG";
  585. #endif
  586.  
  587. #ifdef _PLATFORM_UNIX_
  588. //#--------------------------------------------------------------------------------
  589. //# Editors
  590. //#--------------------------------------------------------------------------------
  591. const ODISOStr  kODBlackBoxHandlerOfLastResort = "NoPart";
  592.  
  593. //#--------------------------------------------------------------------------------
  594. //# International text format constants
  595. //#--------------------------------------------------------------------------------
  596. const ODITextFormat kODIBMCodePageText = 1;
  597.  
  598. //#--------------------------------------------------------------------------------
  599. //# Imaging
  600. //#--------------------------------------------------------------------------------
  601. const ODGraphicsSystem  kODAIX          = 40;   // Used for Standard OS/2 AIX X11R5+Motif1.2 imaging
  602.  
  603. const ODGraphicsSystem  kODOpenClass    = 50;   // Used for Standard Portable OS2,Win,AIX OpenClass imaging
  604.  
  605. //#--------------------------------------------------------------------------------
  606. //# Drag And Drop
  607. //#--------------------------------------------------------------------------------
  608. const ODULong kODDropIsLink             = 0x00000020;
  609.  
  610. //#--------------------------------------------------------------------------------
  611. //# For ODDocument
  612. //#--------------------------------------------------------------------------------
  613.  
  614. //#--------------------------------------------------------------------------------
  615. //# Events
  616. //#--------------------------------------------------------------------------------
  617. const  ODSShort kODEvtNull              = 0;
  618. const  ODSShort kODEvtMouseDown         = 4; // (X11 ButtonPress)
  619. const  ODSShort kODEvtMouseUp           = 5; // (X11 ButtonRelease)
  620. const  ODSShort kODEvtMouseMotion       = 6; // (X11 MotionNotify)
  621. const  ODSShort kODEvtKeyDown           = 2; // (X11 KeyPress)
  622. const  ODSShort kODEvtKeyUp             = 3; // (X11 KeyRelease)
  623. const  ODSShort kODEvtUpdate            = 12; // (X11 Expose)
  624. const  ODSShort kODEvtAutoKey           = 36; // (> X11 LASTEvent)
  625. const  ODSShort kODEvtDisk              = 37; // (> X11 LASTEvent)
  626. const  ODSShort kODEvtActivate          = 38; // (> X11 LASTEvent)
  627. const  ODSShort kODEvtOS                = 39; // (> X11 LASTEvent)
  628.  
  629. // temporary until docshell is fixed
  630. const  ODSShort kODEvtInitMenu          = 40;
  631. const  ODSShort kODEvtCommand           = 42;
  632. const  ODSShort kODEvtInactive          = 41;
  633. const  ODSShort kODEvtClose             = 43;
  634. const  ODSShort kODEvtHelp              = 44;
  635.  
  636. const  ODSShort kODEvtMenu              = kODEvtCommand;
  637.  
  638. const  ODSShort OD_HELP                 = 80;
  639.  
  640. const  ODSShort kODEvtMouseDownEmbedded = 99;
  641. // A mouse-down in an embedded frame, or the active border
  642. // Sent to the container
  643.  
  644. const  ODSShort kODEvtMouseUpEmbedded = 100;
  645. // A mouse-up in an embedded frame, or the active border
  646. // Sent to the container
  647.  
  648. const  ODSShort kODEvtMouseDownBorder = 101;
  649. // A mouse-down in an embedded frame, or the active border
  650. // Sent to the container
  651.  
  652. const  ODSShort kODEvtMouseUpBorder     = 102;
  653. // A mouse-up in an embedded frame, or the active border
  654. // Sent to the container
  655.  
  656. const  ODSShort kODEvtWindow            = 103;
  657. // Used to offer events in title bar to root part
  658.  
  659. const  ODSShort kODEvtMouseEnter        = 104;
  660. const  ODSShort kODEvtMouseWithin       = 105;
  661. const  ODSShort kODEvtMouseLeave        = 106;
  662.  
  663. const  ODSShort kODEvtBGMouseDownEmbedded = 107;
  664. // A mouse-down in an embedded frame, when process is inactive
  665. // Sent to the container
  666.  
  667. const  ODSShort kODEvtExit                      = 108;
  668. // Dispatched immediately before session is destructed.
  669.  
  670. //#--------------------------------------------------------------------------------
  671. //# Shell
  672. //#--------------------------------------------------------------------------------
  673. // Defines used in the SelectPartKind dialog.
  674. const ODULong   kODKindName = 2;
  675. const ODULong   kODFileName = 3;
  676. const ODULong   kODNoRootPart = 4;
  677.  
  678. const ODUShort  kODEditStationery = 1;
  679. const ODUShort  kODCreateStationery = 2;
  680.  
  681. //#--------------------------------------------------------------------------------
  682. //# Registry constants
  683. //#--------------------------------------------------------------------------------
  684. const ODISOStr ODRegistryFileName = "/PartReg.bto";
  685. const ODISOStr ODRegistryPathEnvVar = "ODCFG";
  686. #endif
  687.  
  688. // Te: Dependent files where you have to hand copy this constant:
  689. //
  690. // NOTE: This constant needs to be the same as the "Creator" in the
  691. // Also, make sure that the "SetFile -c " statements which are immediately
  692. // after the "MergeFragment" statments in OpenDocX.mak also have the same constant
  693. // e.g.
  694. //              SetFile -c odtm "{ODBinaryDir}OpenDoc¬"
  695.  
  696. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  697. #pragma somemittypes off
  698. #endif
  699.  
  700. module OpenDoc_StdDefs
  701. {
  702.         const string OpenDoc_StdDefs_Version = "1.0.";
  703. };
  704.  
  705. #endif //# _STDDEFS_
  706.