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 >
Wrap
Text File
|
1995-04-25
|
15KB
|
405 lines
#ifndef _DTS_HH_INCLUDED_odtypesm
#define _DTS_HH_INCLUDED_odtypesm
// This file was generated by the IBM "DirectToSOM" emitter for C++ (V1.71)
// Generated at 04/13/95 11:44:11 EDT
#include <som.hh> //aj: this insures that primitive types like
// "boolean" are defined, prior to use below.
#define kODNULL 0
// for Undo protocol
enum ODDoneState { kODDone = 1, kODUndone, kODRedone, ODDoneState_FoRcE_lOnG=65537 };
typedef boolean ODBoolean;
typedef octet ODUByte;
typedef char ODSByte;
typedef unsigned short ODUShort;
typedef short ODSShort;
typedef unsigned long ODULong;
typedef long ODSLong;
typedef float ODFloat;
typedef void* ODPtr;
typedef ODUByte *ODRawPtr;
typedef string ODISOStr;
typedef ODISOStr ODType;
typedef ODULong ODTypeToken;
typedef ODULong ODID;
typedef ODType ODValueType;
typedef ODUByte *TValue;
typedef ODSLong ODError;
typedef ODULong ODToken;
typedef ODULong ODSize;
typedef ODULong ODInfoType;
typedef ODULong ODFlags;
typedef void* ODContainerID;
typedef ODISOStr ODContainerName;
typedef ODISOStr ODContainerType;
typedef ODType ODFocusType;
typedef ODPtr ODActionData;
enum ODFramePosition { kODFrameBehind = 1, kODFrameInFront,
ODFramePosition_FoRcE_lOnG=65537 };
enum ODTraversalType { kODTopDown = 1, kODBottomUp, kODChildrenOnly,
ODTraversalType_FoRcE_lOnG=65537 };
enum ODSiblingOrder { kODFrontToBack = 1, kODBackToFront,
ODSiblingOrder_FoRcE_lOnG=65537 };
enum ODNSTypeSpec { kODNSDataTypeODObject = 1, kODNSDataTypeODValue,
ODNSTypeSpec_FoRcE_lOnG=65537 };
enum ODRespectMarksChoices { kODDontRespectMarks = 1, kODRespectMarks,
ODRespectMarksChoices_FoRcE_lOnG=65537 };
enum ODActionType { kODSingleAction = 1, kODBeginAction,
kODEndAction, ODActionType_FoRcE_lOnG=65537 };
typedef ODSLong ODFixed;
typedef ODSLong ODFract;
typedef ODFixed ODCoordinate;
// *** old Graphics system stuff
// $$$$$ Conflicts with SOM output: typedef ODRgnHandle ODShapeData; // Shape Data
typedef struct ODMatrix {
ODCoordinate m[3][3];
} ODMatrix;
typedef ODMatrix *ODMapping;
typedef ODSShort ODGraphicsSystem;
#define kODNoGraphicsSystem 0
// Graphics systems are of course platform dependent, but their numeric IDs
// should be globally registered to avoid overlaps; otherwise confusion may
// occur when documents are moved between platforms, or objects on different
// platforms attempt to communicate via DSOM.
typedef ODSShort ODTransformType;
#define kODIdentityXform 0
// Identity (no-op) transform
#define kODTranslateXform 1
// Pure translation/offset
#define kODScaleXform 2
// Pure scale, no offset
#define kODScaleTranslateXform 3
// Scale and offset
#define kODLinearXform 4
// Scale/rotate/skew, but no offset
#define kODLinearTranslateXform 5
// Linear as above, but with offset
#define kODPerspectiveXform 6
// Perspective: m[0][2]!=0 or m[1][2]!=0
#define kODUnknownXform -1
// Type not known yet [internal use only]
#define kODInvalidXform 7
// Bad matrix [internal use only]
#define kODNullTypeToken 0
#define kODViewAsSmallIcon "OpenDoc:ViewAs:SmallIcon"
#define kODViewAsLargeIcon "OpenDoc:ViewAs:LargeIcon"
#define kODViewAsThumbnail "OpenDoc:ViewAs:Thumbnail"
#define kODViewAsFrame "OpenDoc:ViewAs:Frame"
enum ODGeometryMode { kODLoseGeometry = 1, kODPreserveGeometry,
kODNeedsGeometry,
ODGeometryMode_FoRcE_lOnG=65537 };
enum ODLinkStatus { kODInLinkDestination = 1, kODInLinkSource,
kODNotInLink,
ODLinkStatus_FoRcE_lOnG=65537 };
enum ODHighlight { kODNoHighlight = 1, kODFullHighlight,
kODDimHighlight,
ODHighlight_FoRcE_lOnG=65537 };
typedef ODULong ODClipboardKey;
#define kODNoWait 0
// For the wait parameter to Lock()
enum ODDropResult { kODDropFail = 1, kODDropCopy, kODDropMove,
kODDropUnfinished,
ODDropResult_FoRcE_lOnG=65537 };
#define kODdragHasLeftSourceFrame 1
#define kODdragIsInSourcePart 2
#define kODdragIsInSourceFrame 4
typedef ODULong ODLinkKey;
typedef ODULong ODTranslateResult;
typedef ODULong ODPlatformTypeSpace;
enum ODTranslateResultConsts { kODCannotTranslate = 1, kODCanTranslate,
kODNative,
ODTranslateResultConsts_FoRcE_lOnG=65537 };
enum ODPlatformTypeSpaceConsts { kODPlatformFileType = 1, kODPlatformDataType,
ODPlatformTypeSpaceConsts_FoRcE_lOnG=65537 };
#define kODPosUndefined 4294967295
#define kODPosSame 0
#define kODPosAll 1
#define kODPosFirstSib 2
#define kODPosLastSib 3
#define kODPosNextSib 4
#define kODPosPrevSib 5
#define kODPosFirstBelow 6
#define kODPosLastBelow 7
#define kODPosFirstAbove 8
#define kODPosLastAbove 9
#define kODPosReserved11 10
#define kODPosReserved12 11
#define kODPosReserved13 12
#define kODPosReserved14 13
#define kODPosReserved15 14
#define kODPosMWrap 16
#define kODPosMOtherTypes 32
#define kODIDAll 0
#define kODIndexAll 0
#define kODIDWild 0
#define kODTypeAll 0
typedef void* ODValue;
typedef ODID ODValueIndex;
typedef ODID ODStorageUnitID;
typedef ODID ODStorageUnitRef;
typedef ODULong ODStorageUnitKey;
typedef ODISOStr ODPropertyName;
typedef ODISOStr ODStorageUnitName;
typedef ODULong ODPositionCode;
typedef ODID ODDocumentID;
typedef ODISOStr ODDocumentName;
#define kODDefaultDocument 1
enum ODPurgePriorityConsts { kInvisibleBlocks = 1, kAllBlocks,
kVisibleBlocks,
ODPurgePriorityConsts_FoRcE_lOnG=65537 };
typedef ODULong ODPurgePriority;
enum ODCloneKindConsts { kODCloneCopy = 1, kODCloneCut,
kODClonePaste,
kODCloneDuplicate,
kODCloneDropCopy,
kODCloneDropMove,
kODCloneAll,
ODCloneKindConsts_FoRcE_lOnG=65537 };
typedef ODULong ODCloneKind;
enum ODDraftPermissionsConsts { kDPNone = 1, kDPTransient,
kDPReadOnly,
kDPSharedWrite,
kDPExclusiveWrite,
ODDraftPermissionsConsts_FoRcE_lOnG=65537 };
typedef ODULong ODDraftPermissions;
typedef ODULong ODVersionID;
typedef ODID ODDraftID;
typedef ODID ODLinkID;
typedef ODISOStr ODDraftName;
#define kODDefaultFileContainer "Apple:ContainerType:File"
#define kODDefaultMemoryContainer "Apple:ContainerType:Memory"
#define kODBentoEmbeddedContainer "Apple:Bento:ContainerType:Embedded"
#define kODBentoFileContainer "Apple:Bento:ContainerType:File"
#define kODBentoMemoryContainer "Apple:Bento:ContainerType:Memory"
#define kODExtSemanticInterface "SemanticInterface"
// #ifdef _PLATFORM_MACINTOSH_
//
// Scalar Types
//
//
// ODForeign is used for any 4 byte thing that is platform dependent.
//
// somobj.xh doesn't get included in ODTypesM.xh
typedef void* ODForeign;
typedef struct {
unsigned long _maximum;
unsigned long _length;
octet *_buffer;
} _IDL_SEQUENCE_octet;
typedef /* seq< 0> */ _IDL_SEQUENCE_octet ODByteArray;
typedef ODULong ODHandle;
typedef ODULong ODDescType;
//typedef ODDesc ODObjectSpec;
typedef struct ODDesc {
ODDescType descriptorType;
ODHandle dataHandle;
} ODDesc;
typedef ODDesc ODAddressDesc;
typedef ODDesc ODDescList;
typedef ODDescList ODRecord;
typedef ODRecord ODOSAEvent;
typedef ODSLong ODSendMode;
typedef ODSShort ODSendPriority;
typedef ODULong ODEventClass;
typedef ODULong ODEventID;
typedef short ODScriptCode;
typedef short ODLangCode;
typedef struct ODIText {
ODScriptCode theScriptCode;
ODLangCode theLangCode;
ODByteArray theText;
} ODIText;
typedef ODIText ODName;
//aj: these 4 types also defined in ODTypesF.h. Boca should fix design, for now I hack
// typedef ODForeign ODRegion;
// typedef ODForeign ODFileSpec;
// typedef ODForeign ODFileRefNum;
// typedef ODForeign ODProcessID;
typedef ODUShort ODEventType;
typedef struct ODEventData {
HWND hwnd;
ULONG msg;
MPARAM mp1;
MPARAM mp2;
ULONG ulFlags;
MPARAM mpExtra;
MRESULT result;
} ODEventData;
typedef ODULong ODIdleFrequency;
typedef ODULong ODTimerFrequency;
//aj: this type also defined in ODTypesF.h. Boca should fix design, for now I hack
// typedef ODForeign ODTime;
typedef ODSShort ODMenuID;
typedef ODSShort ODMenuItemID;
typedef ODSLong ODCommandID;
//typedef struct ODPlatformMenuItem ODPlatformMenuItem ;
// Semantic Interface
typedef struct ODPlatformMenuItem {
short iPosition;
unsigned short afStyle;
unsigned short afAttribute;
unsigned short id;
unsigned long hwndSubMenu;
unsigned long hItem;
} ODPlatformMenuItem;
//aj: these 2 types also defined in ODTypesF.h. Boca should fix design, for now I hack
// typedef ODForeign ODObjectSpec;
// typedef ODForeign ODOSLToken;
#define cPart 1885434484
// 'part'
#define cDraft 1685218932
// 'drft'
// for part info dialog properties
#define kODPCategory 1667331173
// 'cate'
#define kODPSize 1936292453
// 'size'
#define kODPCreationDate 1668441204
// 'crdt'
#define kODPModDate 1836016756
// 'modt'
#define kODPAuthor 1635087464
// 'auth'
#define kODPIcon 1768124270
// 'icon'
#define kODPName 1886282093
// 'pnam'
#define kODPKind 1886088804
// 'pknd'
#define kODPEditor 1701082226
// 'edtr'
#define kODPComments 1668116084
// 'cmnt'
#define kODPView 1986618743
// 'view'
#define kODPIsFrozen 1718778478
// 'frzn'
// Name Binding
typedef char *ODEditor;
typedef char *ODContainerSuite;
typedef ODULong ODChangeID;
typedef ODULong ODDraftKey;
typedef ODTime ODTime2;
// Link Dialogs
typedef struct ODLinkInfo {
ODType kind;
ODULong size;
ODTime2 creationTime;
ODTime2 changeTime;
ODChangeID change;
ODBoolean autoUpdate;
} ODLinkInfo;
typedef struct ODPasteAsResult {
ODBoolean pasteLinkSetting;
ODBoolean autoUpdateSetting;
ODBoolean mergeSetting;
ODTypeToken selectedView;
ODType selectedKind;
ODType translateKind;
} ODPasteAsResult;
enum ODLinkInfoAction { kODLinkInfoCancel = 1, kODLinkInfoOk,
kODLinkInfoBreakLink,
kODLinkInfoUpdateNow,
kODLinkInfoFindSource,
ODLinkInfoAction_FoRcE_lOnG=65537 };
//
// Constants
//
typedef struct ODLinkInfoResult {
ODLinkInfoAction action;
ODBoolean autoUpdate;
} ODLinkInfoResult;
#define kODFalse 0
#define kODTrue 1
#define kODAppleMenuID 128
#define kODFileMenuID 129
#define kODEditMenuID 130
#define kODOCEFileMenuID 193
#define kODOCEMailerMenuID 194
#define kODDASMenuRsrc 1146246738
// 'DRVR';
#define kODQuickDraw 1
// Macintosh QuickDraw graphics system
#define kODQuickDrawGX 2
// Macintosh QuickDraw GX graphics system
#define kODGPI 3
// OS/2 GPI graphics @F1
#define kODUnknownChange 0
#define kODInEmbedded 1
#define kODInBorder 2
#define kODMDInDesk 0
// Té: 0-8 copied from Macintosh: <Windows.h>
#define kODMDInMenuBar 1
#define kODMDInSysWindow 2
#define kODMDInContent 3
#define kODMDInDrag 4
#define kODMDInGrow 5
#define kODMDInGoAway 6
#define kODMDInZoomIn 7
#define kODMDInZoomOut 8
//
// Registration types KLS: 8/11/94
//
enum OperatingSystem { OS2 = 1, AIX, MAC, WINDOWS, OperatingSystem_FoRcE_lOnG=65537 };
typedef string ISOString;
//
// Registration types - END KLS: 8/11/94
//
typedef struct PartKindInfo {
ISOString partKindName;
string partKindDisplayName;
string filenameFilters;
string categories;
} PartKindInfo;
/* Start Module OpenDoc_Global_Types */
class OpenDoc_Global_Types {
#pragma SOMModule (OpenDoc_Global_Types)
public :
#define OpenDoc_Types_Version "1.0."
};
/* End OpenDoc_Global_Types */
#endif /* _DTS_HH_INCLUDED_odtypesm */