home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ibmodf.zip / OPEND_HH.ZIP / ODTYPESM.HH < prev    next >
Text File  |  1995-04-25  |  15KB  |  405 lines

  1. #ifndef _DTS_HH_INCLUDED_odtypesm
  2. #define _DTS_HH_INCLUDED_odtypesm
  3. // This file was generated by the IBM "DirectToSOM" emitter for C++ (V1.71)
  4. // Generated at 04/13/95 11:44:11 EDT
  5. #include <som.hh>              //aj: this insures that primitive types like
  6.                                // "boolean" are defined, prior to use below.
  7.      #define kODNULL 0
  8.      
  9.      // for Undo protocol
  10.      enum ODDoneState { kODDone = 1, kODUndone, kODRedone, ODDoneState_FoRcE_lOnG=65537 };
  11.      typedef boolean ODBoolean;
  12.      typedef octet ODUByte;
  13.      typedef char ODSByte;
  14.      typedef unsigned short ODUShort;
  15.      typedef short ODSShort;
  16.      typedef unsigned long ODULong;
  17.      typedef long ODSLong;
  18.      typedef float ODFloat;
  19.      typedef void* ODPtr;
  20.      typedef ODUByte *ODRawPtr;
  21.      typedef string ODISOStr;
  22.      typedef ODISOStr ODType;
  23.      typedef ODULong ODTypeToken;
  24.      typedef ODULong ODID;
  25.      typedef ODType ODValueType;
  26.      typedef ODUByte *TValue;
  27.      typedef ODSLong ODError;
  28.      typedef ODULong ODToken;
  29.      typedef ODULong ODSize;
  30.      typedef ODULong ODInfoType;
  31.      typedef ODULong ODFlags;
  32.      typedef void* ODContainerID;
  33.      typedef ODISOStr ODContainerName;
  34.      typedef ODISOStr ODContainerType;
  35.      typedef ODType ODFocusType;
  36.      typedef ODPtr ODActionData;
  37.      enum ODFramePosition { kODFrameBehind = 1, kODFrameInFront, 
  38.                                                 ODFramePosition_FoRcE_lOnG=65537 };
  39.      enum ODTraversalType { kODTopDown = 1, kODBottomUp, kODChildrenOnly, 
  40.                                             ODTraversalType_FoRcE_lOnG=65537 };
  41.      enum ODSiblingOrder { kODFrontToBack = 1, kODBackToFront, 
  42.                                                ODSiblingOrder_FoRcE_lOnG=65537 };
  43.      enum ODNSTypeSpec { kODNSDataTypeODObject = 1, kODNSDataTypeODValue, 
  44.                                                     ODNSTypeSpec_FoRcE_lOnG=65537 };
  45.      enum ODRespectMarksChoices { kODDontRespectMarks = 1, kODRespectMarks, 
  46.                                                            ODRespectMarksChoices_FoRcE_lOnG=65537 };
  47.      enum ODActionType { kODSingleAction = 1, kODBeginAction, 
  48.                                               kODEndAction, ODActionType_FoRcE_lOnG=65537 };
  49.      typedef ODSLong ODFixed;
  50.      typedef ODSLong ODFract;
  51.      typedef ODFixed ODCoordinate;
  52.      
  53.      // *** old Graphics system stuff
  54.      // $$$$$ Conflicts with SOM output: typedef ODRgnHandle  ODShapeData;    // Shape Data
  55.      typedef struct ODMatrix {
  56.           ODCoordinate m[3][3];
  57.      } ODMatrix;
  58.      typedef ODMatrix *ODMapping;
  59.      typedef ODSShort ODGraphicsSystem;
  60.      #define kODNoGraphicsSystem 0
  61.      
  62.      // Graphics systems are of course platform dependent, but their numeric IDs
  63.      //     should be globally registered to avoid overlaps; otherwise confusion may
  64.      //     occur when documents are moved between platforms, or objects on different
  65.      //     platforms attempt to communicate via DSOM.
  66.      typedef ODSShort ODTransformType;
  67.      #define kODIdentityXform 0
  68.      
  69.      // Identity (no-op) transform
  70.      #define kODTranslateXform 1
  71.      
  72.      // Pure translation/offset
  73.      #define kODScaleXform 2
  74.      
  75.      // Pure scale, no offset
  76.      #define kODScaleTranslateXform 3
  77.      
  78.      // Scale and offset
  79.      #define kODLinearXform 4
  80.      
  81.      // Scale/rotate/skew, but no offset
  82.      #define kODLinearTranslateXform 5
  83.      
  84.      // Linear as above, but with offset
  85.      #define kODPerspectiveXform 6
  86.      
  87.      // Perspective: m[0][2]!=0 or m[1][2]!=0
  88.      #define kODUnknownXform -1
  89.      
  90.      // Type not known yet [internal use only]
  91.      #define kODInvalidXform 7
  92.      
  93.      // Bad matrix [internal use only]
  94.      #define kODNullTypeToken 0
  95.      #define kODViewAsSmallIcon "OpenDoc:ViewAs:SmallIcon"
  96.      #define kODViewAsLargeIcon "OpenDoc:ViewAs:LargeIcon"
  97.      #define kODViewAsThumbnail "OpenDoc:ViewAs:Thumbnail"
  98.      #define kODViewAsFrame "OpenDoc:ViewAs:Frame"
  99.      enum ODGeometryMode { kODLoseGeometry = 1, kODPreserveGeometry, 
  100.                                                 kODNeedsGeometry, 
  101.                                                 ODGeometryMode_FoRcE_lOnG=65537 };
  102.      enum ODLinkStatus { kODInLinkDestination = 1, kODInLinkSource, 
  103.                                                    kODNotInLink, 
  104.                                                    ODLinkStatus_FoRcE_lOnG=65537 };
  105.      enum ODHighlight { kODNoHighlight = 1, kODFullHighlight, 
  106.                                             kODDimHighlight, 
  107.                                             ODHighlight_FoRcE_lOnG=65537 };
  108.      typedef ODULong ODClipboardKey;
  109.      #define kODNoWait 0
  110.      
  111.      // For the wait parameter to Lock()
  112.      enum ODDropResult { kODDropFail = 1, kODDropCopy, kODDropMove, 
  113.                                           kODDropUnfinished, 
  114.                                           ODDropResult_FoRcE_lOnG=65537 };
  115.      #define kODdragHasLeftSourceFrame 1
  116.      #define kODdragIsInSourcePart 2
  117.      #define kODdragIsInSourceFrame 4
  118.      typedef ODULong ODLinkKey;
  119.      typedef ODULong ODTranslateResult;
  120.      typedef ODULong ODPlatformTypeSpace;
  121.      enum ODTranslateResultConsts { kODCannotTranslate = 1, kODCanTranslate, 
  122.                                                             kODNative, 
  123.                                                             ODTranslateResultConsts_FoRcE_lOnG=65537 };
  124.      enum ODPlatformTypeSpaceConsts { kODPlatformFileType = 1, kODPlatformDataType, 
  125.                                                                ODPlatformTypeSpaceConsts_FoRcE_lOnG=65537 };
  126.      #define kODPosUndefined 4294967295
  127.      #define kODPosSame 0
  128.      #define kODPosAll 1
  129.      #define kODPosFirstSib 2
  130.      #define kODPosLastSib 3
  131.      #define kODPosNextSib 4
  132.      #define kODPosPrevSib 5
  133.      #define kODPosFirstBelow 6
  134.      #define kODPosLastBelow 7
  135.      #define kODPosFirstAbove 8
  136.      #define kODPosLastAbove 9
  137.      #define kODPosReserved11 10
  138.      #define kODPosReserved12 11
  139.      #define kODPosReserved13 12
  140.      #define kODPosReserved14 13
  141.      #define kODPosReserved15 14
  142.      #define kODPosMWrap 16
  143.      #define kODPosMOtherTypes 32
  144.      #define kODIDAll 0
  145.      #define kODIndexAll 0
  146.      #define kODIDWild 0
  147.      #define kODTypeAll 0
  148.      typedef void* ODValue;
  149.      typedef ODID ODValueIndex;
  150.      typedef ODID ODStorageUnitID;
  151.      typedef ODID ODStorageUnitRef;
  152.      typedef ODULong ODStorageUnitKey;
  153.      typedef ODISOStr ODPropertyName;
  154.      typedef ODISOStr ODStorageUnitName;
  155.      typedef ODULong ODPositionCode;
  156.      typedef ODID ODDocumentID;
  157.      typedef ODISOStr ODDocumentName;
  158.      #define kODDefaultDocument 1
  159.      enum ODPurgePriorityConsts { kInvisibleBlocks = 1, kAllBlocks, 
  160.                                                         kVisibleBlocks, 
  161.                                                         ODPurgePriorityConsts_FoRcE_lOnG=65537 };
  162.      typedef ODULong ODPurgePriority;
  163.      enum ODCloneKindConsts { kODCloneCopy = 1, kODCloneCut, 
  164.                                                 kODClonePaste, 
  165.                                                 kODCloneDuplicate, 
  166.                                                 kODCloneDropCopy, 
  167.                                                 kODCloneDropMove, 
  168.                                                 kODCloneAll, 
  169.                                                 ODCloneKindConsts_FoRcE_lOnG=65537 };
  170.      typedef ODULong ODCloneKind;
  171.      enum ODDraftPermissionsConsts { kDPNone = 1, kDPTransient, 
  172.                                                   kDPReadOnly, 
  173.                                                   kDPSharedWrite, 
  174.                                                   kDPExclusiveWrite, 
  175.                                                   ODDraftPermissionsConsts_FoRcE_lOnG=65537 };
  176.      typedef ODULong ODDraftPermissions;
  177.      typedef ODULong ODVersionID;
  178.      typedef ODID ODDraftID;
  179.      typedef ODID ODLinkID;
  180.      typedef ODISOStr ODDraftName;
  181.      #define kODDefaultFileContainer "Apple:ContainerType:File"
  182.      #define kODDefaultMemoryContainer "Apple:ContainerType:Memory"
  183.      #define kODBentoEmbeddedContainer "Apple:Bento:ContainerType:Embedded"
  184.      #define kODBentoFileContainer "Apple:Bento:ContainerType:File"
  185.      #define kODBentoMemoryContainer "Apple:Bento:ContainerType:Memory"
  186.      #define kODExtSemanticInterface "SemanticInterface"
  187.      
  188.      // #ifdef _PLATFORM_MACINTOSH_
  189.      //
  190.      // Scalar Types
  191.      //
  192.      //
  193.      // ODForeign is used for any 4 byte thing that is platform dependent.
  194.      //
  195.      // somobj.xh doesn't get included in ODTypesM.xh
  196.      typedef void* ODForeign;
  197.      typedef struct {
  198.         unsigned long _maximum;
  199.     unsigned long _length;
  200.     octet *_buffer;
  201.      } _IDL_SEQUENCE_octet;
  202.      typedef /* seq<         0> */ _IDL_SEQUENCE_octet ODByteArray;
  203.      typedef ODULong ODHandle;
  204.      typedef ODULong ODDescType;
  205.      
  206.      //typedef ODDesc    ODObjectSpec;
  207.      typedef struct ODDesc {
  208.           ODDescType descriptorType;
  209.           ODHandle dataHandle;
  210.      } ODDesc;
  211.      typedef ODDesc ODAddressDesc;
  212.      typedef ODDesc ODDescList;
  213.      typedef ODDescList ODRecord;
  214.      typedef ODRecord ODOSAEvent;
  215.      typedef ODSLong ODSendMode;
  216.      typedef ODSShort ODSendPriority;
  217.      typedef ODULong ODEventClass;
  218.      typedef ODULong ODEventID;
  219.      typedef short ODScriptCode;
  220.      typedef short ODLangCode;
  221.      typedef struct ODIText {
  222.           ODScriptCode theScriptCode;
  223.           ODLangCode theLangCode;
  224.           ODByteArray theText;
  225.      } ODIText;
  226.      typedef ODIText ODName;
  227. //aj: these 4 types also defined in ODTypesF.h. Boca should fix design, for now I hack
  228. //     typedef ODForeign ODRegion;
  229. //     typedef ODForeign ODFileSpec;
  230. //     typedef ODForeign ODFileRefNum;
  231. //     typedef ODForeign ODProcessID;
  232.      typedef ODUShort ODEventType;
  233.      typedef struct ODEventData {
  234.           HWND hwnd;
  235.           ULONG msg;
  236.           MPARAM mp1;
  237.           MPARAM mp2;
  238.           ULONG ulFlags;
  239.           MPARAM mpExtra;
  240.           MRESULT result;
  241.      } ODEventData;
  242.      typedef ODULong ODIdleFrequency;
  243.      typedef ODULong ODTimerFrequency;
  244. //aj: this type also defined in ODTypesF.h. Boca should fix design, for now I hack
  245. //     typedef ODForeign ODTime;
  246.      typedef ODSShort ODMenuID;
  247.      typedef ODSShort ODMenuItemID;
  248.      typedef ODSLong ODCommandID;
  249.      
  250.      //typedef struct ODPlatformMenuItem ODPlatformMenuItem ;
  251.      // Semantic Interface
  252.      typedef struct ODPlatformMenuItem {
  253.           short iPosition;
  254.           unsigned short afStyle;
  255.           unsigned short afAttribute;
  256.           unsigned short id;
  257.           unsigned long hwndSubMenu;
  258.           unsigned long hItem;
  259.      } ODPlatformMenuItem;
  260. //aj: these 2 types also defined in ODTypesF.h. Boca should fix design, for now I hack
  261. //     typedef ODForeign ODObjectSpec;
  262. //     typedef ODForeign ODOSLToken;
  263.      #define cPart 1885434484
  264.      
  265.      // 'part'
  266.      #define cDraft 1685218932
  267.      
  268.      // 'drft'
  269.      // for part info dialog properties
  270.      #define kODPCategory 1667331173
  271.      
  272.      // 'cate'
  273.      #define kODPSize 1936292453
  274.      
  275.      // 'size'
  276.      #define kODPCreationDate 1668441204
  277.      
  278.      // 'crdt'
  279.      #define kODPModDate 1836016756
  280.      
  281.      // 'modt'
  282.      #define kODPAuthor 1635087464
  283.      
  284.      // 'auth'
  285.      #define kODPIcon 1768124270
  286.      
  287.      // 'icon'
  288.      #define kODPName 1886282093
  289.      
  290.      // 'pnam'
  291.      #define kODPKind 1886088804
  292.      
  293.      // 'pknd'
  294.      #define kODPEditor 1701082226
  295.      
  296.      // 'edtr'
  297.      #define kODPComments 1668116084
  298.      
  299.      // 'cmnt'
  300.      #define kODPView 1986618743
  301.      
  302.      // 'view'
  303.      #define kODPIsFrozen 1718778478
  304.      
  305.      // 'frzn'
  306.      // Name Binding
  307.      typedef char *ODEditor;
  308.      typedef char *ODContainerSuite;
  309.      typedef ODULong ODChangeID;
  310.      typedef ODULong ODDraftKey;
  311.      typedef ODTime ODTime2;
  312.      
  313.      // Link Dialogs
  314.      typedef struct ODLinkInfo {
  315.           ODType kind;
  316.           ODULong size;
  317.           ODTime2 creationTime;
  318.           ODTime2 changeTime;
  319.           ODChangeID change;
  320.           ODBoolean autoUpdate;
  321.      } ODLinkInfo;
  322.      typedef struct ODPasteAsResult {
  323.           ODBoolean pasteLinkSetting;
  324.           ODBoolean autoUpdateSetting;
  325.           ODBoolean mergeSetting;
  326.           ODTypeToken selectedView;
  327.           ODType selectedKind;
  328.           ODType translateKind;
  329.      } ODPasteAsResult;
  330.      enum ODLinkInfoAction { kODLinkInfoCancel = 1, kODLinkInfoOk, 
  331.                                                     kODLinkInfoBreakLink, 
  332.                                                     kODLinkInfoUpdateNow, 
  333.                                                     kODLinkInfoFindSource, 
  334.                                                     ODLinkInfoAction_FoRcE_lOnG=65537 };
  335.      
  336.      //
  337.      // Constants
  338.      //
  339.      typedef struct ODLinkInfoResult {
  340.           ODLinkInfoAction action;
  341.           ODBoolean autoUpdate;
  342.      } ODLinkInfoResult;
  343.      #define kODFalse 0
  344.      #define kODTrue 1
  345.      #define kODAppleMenuID 128
  346.      #define kODFileMenuID 129
  347.      #define kODEditMenuID 130
  348.      #define kODOCEFileMenuID 193
  349.      #define kODOCEMailerMenuID 194
  350.      #define kODDASMenuRsrc 1146246738
  351.      
  352.      // 'DRVR';
  353.      #define kODQuickDraw 1
  354.      
  355.      // Macintosh QuickDraw graphics system
  356.      #define kODQuickDrawGX 2
  357.      
  358.      // Macintosh QuickDraw GX graphics system
  359.      #define kODGPI 3
  360.      
  361.      // OS/2 GPI graphics @F1
  362.      #define kODUnknownChange 0
  363.      #define kODInEmbedded 1
  364.      #define kODInBorder 2
  365.      #define kODMDInDesk 0
  366.      
  367.      // Té: 0-8 copied from Macintosh: <Windows.h>
  368.      #define kODMDInMenuBar 1
  369.      #define kODMDInSysWindow 2
  370.      #define kODMDInContent 3
  371.      #define kODMDInDrag 4
  372.      #define kODMDInGrow 5
  373.      #define kODMDInGoAway 6
  374.      #define kODMDInZoomIn 7
  375.      #define kODMDInZoomOut 8
  376.      
  377.      //
  378.      // Registration types                           KLS: 8/11/94
  379.      //
  380.      enum OperatingSystem { OS2 = 1, AIX, MAC, WINDOWS, OperatingSystem_FoRcE_lOnG=65537 };
  381.      typedef string ISOString;
  382.      
  383.      //
  384.      // Registration types - END                     KLS: 8/11/94
  385.      //
  386.      typedef struct PartKindInfo {
  387.           ISOString partKindName;
  388.           string partKindDisplayName;
  389.           string filenameFilters;
  390.           string categories;
  391.      } PartKindInfo;
  392. /* Start Module OpenDoc_Global_Types */
  393.  
  394.  
  395. class OpenDoc_Global_Types {
  396. #pragma SOMModule (OpenDoc_Global_Types)
  397.  
  398.   public :
  399.      #define OpenDoc_Types_Version "1.0."
  400. };
  401.  
  402. /* End OpenDoc_Global_Types */
  403.  
  404. #endif /* _DTS_HH_INCLUDED_odtypesm */
  405.