home *** CD-ROM | disk | FTP | other *** search
- /*
- File: StdTypes.h
-
- Contains: Standard Types
-
- Written by: OpenDoc Engineering
-
- Copyright: ⌐ 1993 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <25> 2/17/94 VL #1142972, #1144024: 'hfs' should be 'hfs '.
- <24> 2/7/94 JA Minor tweak to kXMPWindowRect type to
- bypass Metrowerks warning.
- <23> 2/1/94 CC Added kXMPLinkContent.
- <22> 1/27/94 VL Added kXMPKindStandInFrame.
- <21> 1/21/94 CC Removed kXMPLinkState; added kXMPLinkSource
- and kXMPChangeID.
- <20> 1/18/94 CC Removed kXMPApplePrefix; changed ISO string
- equivalents to Apple scrap types to match
- string format now returned by
- GetISOTypeFromPlatformType().
- <19> 1/12/94 CG Moved Category definitions to StdDefs.h.
- <18> 12/16/93 CC Added kXMPLinkState, kXMPApplealis, and
- kXMPApplesect.
- <17> 12/12/93 Té added kXMPEditor and kXMPStr32
- <16> 12/8/93 Té added kXMPIconFamily and kXMPIntlText
- <15> 11/23/93 JA Deleted kXMPRegion, added kXMPPolygon and
- kXMPPoint.
- <14> 11/18/93 CG Added Text, Graphics and Time Category
- defines
- <13> 11/18/93 Té added kXMPTime_T
- <12> 11/16/93 EL Change OpenDocType to OpenDoc:Type.
- <11> 11/10/93 CC Added value type kXMPLinkSpec
- Added kXMPStrongStorageUnitRef and
- kXMPWeakStorageUnitRef
- <10> 11/9/93 PH Added kXMPDragDropStorageUnit
- <9> 10/25/93 RR Added kXMPStr255
- <8> 10/4/93 RR Added signed short and long types
- <7> 9/24/93 PH Add some Apple types for content
- <6> 9/3/93 JBS added Layout types, fixed some window types
- <5> 8/13/93 PH Name all types with OpenDocType
- <4> 8/13/93 VL Added kXMPStorageUnit, kXMPFrame, kXMPLink,
- kXMPWindow and kXMPPart.
- <3> 8/12/93 Té unify type constants
- <2> 8/11/93 Té add types for persistent objects
- <1> 8/9/93 VL first checked in
-
- To Do:
- */
-
- #ifndef _STDTYPES_
- #define _STDTYPES_
-
- #ifndef _XMPTYPES_
- #include "XMPTypes.h"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This file is used to store all the standard types.
- */
-
- //==============================================================================
- // Constants
- //==============================================================================
-
- // Universal Types
- const XMPValueType kXMPBoolean = "OpenDoc:Type:Boolean";
- const XMPValueType kXMPValue = "OpenDoc:Type:Bytes";
- const XMPValueType kXMPUShort = "OpenDoc:Type:UShort";
- const XMPValueType kXMPSShort = "OpenDoc:Type:SShort";
- const XMPValueType kXMPULong = "OpenDoc:Type:ULong";
- const XMPValueType kXMPSLong = "OpenDoc:Type:SLong";
- const XMPValueType kXMPULongs = "OpenDoc:Type:ULongs";
-
- const XMPValueType kXMPISOStr = "OpenDoc:Type:ISOStr";
-
- const XMPValueType kXMPIntlText = "OpenDoc:Type:IntlText";
- const XMPValueType kXMPName = "OpenDoc:Type:Name";
- const XMPValueType kXMPNames = "OpenDoc:Type:Names";
- const XMPValueType kXMPStr32 = "OpenDoc:Type:Str32";
- const XMPValueType kXMPStr255 = "OpenDoc:Type:Str255";
-
- const XMPValueType kXMPDate = "OpenDoc:Type:Date";
- const XMPValueType kXMPTime_T = "OpenDoc:Type:Time_T";
-
- const XMPValueType kXMPID = "OpenDoc:Type:ID";
- const XMPValueType kXMPIDs = "OpenDoc:Type:IDs";
-
- const XMPValueType kXMPPoint = "OpenDoc:Type:Point";
- const XMPValueType kXMPRect = "OpenDoc:Type:Rect";
- const XMPValueType kXMPPolygon = "OpenDoc:Type:Polygon";
- const XMPValueType kXMPIconFamily = "OpenDoc:Type:IconFamily";
-
- const XMPValueType kXMPPartInfo = "OpenDoc:Type:InfoType";
- const XMPValueType kXMPTransform = "OpenDoc:Type:Transform";
-
- const XMPValueType kXMPVersionList = "OpenDoc:Type:VersionList";
-
- const XMPValueType kXMPHighlight = "OpenDoc:Type:Highlight";
-
- const XMPValueType kXMPEditor = "OpenDoc:Type:Editor";
-
- // Window
- const XMPValueType kXMPWindowRect = (XMPValueType) kXMPRect;
- const XMPValueType kXMPSourceFrame = "OpenDoc:Type:SourceFrame";
-
-
- // Layout
- const XMPValueType kXMPFrameTree = "OpenDoc:Type:FrameTree";
-
-
- const XMPType kXMPFrame = "OpenDoc:Type:Frame";
- const XMPType kXMPPart = "OpenDoc:Type:Part";
- const XMPType kXMPLink = "OpenDoc:Type:Link";
- const XMPType kXMPLinkSource = "OpenDoc:Type:LinkSource";
- const XMPType kXMPLinkContent = "OpenDoc:Type:LinkContent";
- const XMPType kXMPStorageUnit = "OpenDoc:Type:StorageUnit";
- const XMPType kXMPStrongStorageUnitRef = "OpenDoc:Type:StorageUnitRef";
- const XMPType kXMPWeakStorageUnitRef = "OpenDoc:Type:StorageUnitRef";
- const XMPType kXMPWindow = "OpenDoc:Type:Window";
- const XMPType kXMPLayout = "OpenDoc:Type:Layout";
- const XMPType kXMPDragDropStorageUnit = "OpenDoc:Type:DragDropStorageUnit";
-
- const XMPValueType kXMPLinkSpec = "OpenDoc:Type:LinkSpec";
- const XMPValueType kXMPChangeID = "OpenDoc:Type:ChangeID";
-
- // Drag & Drop and Clipboard
-
- const XMPValueType kXMPKindStandInFrame = "OpenDoc:Type:StandInFrame";
-
- // Platform Specific Types
-
- // ISOString equivalents for Apple scrap types
- const XMPValueType kXMPApplePart = "Apple:OSType:Scrap:odcn"; // OpenDoc Container
- const XMPValueType kXMPAppleTEXT = "Apple:OSType:Scrap:TEXT";
- const XMPValueType kXMPApplestyl = "Apple:OSType:Scrap:styl";
- const XMPValueType kXMPApplePICT = "Apple:OSType:Scrap:PICT";
- const XMPValueType kXMPApplehfs = "Apple:OSType:Scrap:hfs ";
- const XMPValueType kXMPApplesnd = "Apple:OSType:Scrap:snd";
- const XMPValueType kXMPApplealis = "Apple:OSType:Scrap:alis";
- const XMPValueType kXMPApplesect = "Apple:OSType:Scrap:sect";
-
- //Categories
- // - moved to StdDefs.h -
- //#define kXMPCategoryText "OpenDoc:Category:Text"
- //#define kXMPCategoryGraphics "OpenDoc:Category:Graphics"
- //#define kXMPCategoryTime "OpenDoc:Category:Time"
-
- /*
- old type constants:
-
- const XMPValueType kXMPWindowListType = "OpenDoc:Type:IDList";
- // use kXMPIDs
-
- const XMPValueType kXMPValID = "XMPID";
- // use kXMPID
-
- const XMPValueType kXMPValGraphicsSystem = "XMPUShort";
- // use kXMPUShort
-
- const XMPValueType kXMPValTransform = "XMPTransform";
- // use kXMPTransform
-
- const XMPValueType kXMPValPartInfo = "XMPInfoType";
- // use kXMPPartInfo
-
- const XMPValueType kXMPValFrameGroup = "XMPULong";
- // use kXMPULong
-
- const XMPValueType kXMPFrameTree = "XMPID";
- const XMPValueType kXMPSourceFrame = "XMPID";
- */
-
- #endif // _STDTYPES_
-