- /* C:ICADDEVTHIRDPARTYMARCOMPAD2.H
- * Copyright (C) 1988-1998 Visio Corporation. All rights reserved.
- *
- * Abstract
- *
- * <TODO : Add Abstract here>
- *
- */
- /* ad2.h */
- /* include file for OpenDWG Toolkit */
- #ifndef AD2HINCLUDED
- #define AD2HINCLUDED
- #ifdef AD_64BITLONG
- #define OdaLong int
- #endif
- #ifndef OdaLong
- #define OdaLong long
- #endif
- #ifndef VMSTUFFDEFINED
- #define VMSTUFFDEFINED
- typedef char * AD_VMADDR;
- #define AD_VMNULL NULL
- #endif
- /* these are the equates for the constants which define the version of
- the drawing being processed */
- #define AD_ACAD25 0 /* ac1002 */
- #define AD_ACAD26 1 /* ac1003 */
- #define AD_ACAD9 2 /* ac1004 */
- #define AD_ACAD10 3 /* ac1006 */
- #define AD_ACAD11 4 /* ac1009 */
- #define AD_ACAD13 5 /* ac1012 */
- #define AD_ACAD14 6
- #define AD_ACAD2000 7
- #define AD_MAXACADVER AD_ACAD2000
- #define AD_ENT_LINE 1
- #define AD_ENT_POINT 2
- #define AD_ENT_CIRCLE 3
- #define AD_ENT_SHAPE 4
- #define AD_ENT_ELLIPSE 5
- #define AD_ENT_SPLINE 6
- #define AD_ENT_TEXT 7
- #define AD_ENT_ARC 8
- #define AD_ENT_TRACE 9
- #define AD_ENT_REGION 10
- #define AD_ENT_SOLID 11
- #define AD_ENT_BLOCK 12
- #define AD_ENT_ENDBLK 13
- #define AD_ENT_INSERT 14
- #define AD_ENT_ATTDEF 15
- #define AD_ENT_ATTRIB 16
- #define AD_ENT_SEQEND 17
- #define AD_ENT_POLYLINE 19
- #define AD_ENT_VERTEX 20
- #define AD_ENT_LINE3D 21
- #define AD_ENT_FACE3D 22
- #define AD_ENT_DIMENSION 23
- #define AD_ENT_VIEWPORT 24
- #define AD_ENT_SOLID3D 25
- #define AD_ENT_RAY 26
- #define AD_ENT_XLINE 27
- #define AD_ENT_MTEXT 28
- #define AD_ENT_LEADER 29
- #define AD_ENT_TOLERANCE 30
- #define AD_ENT_MLINE 31
- #define AD_OBJ_DICTIONARY 32
- #define AD_OBJ_MLINESTYLE 33
- #define AD_OBJ_CLASS 34
- #define AD_ENT_BODY 35
- #define AD_OBJ_GROUP 36
- #define AD_OBJ_PROXY 100
- #define AD_OBJ_XRECORD 101
- #define AD_OBJ_IDBUFFER 102
- #define AD_GRENT_EXTENTS 1
- #define AD_GRENT_CIRCLE 2
- #define AD_GRENT_CIRCLE3PT 3
- #define AD_GRENT_CIRCULARARC 4
- #define AD_GRENT_CIRCULARARC3PT 5
- #define AD_GRENT_POLYLINE 6
- #define AD_GRENT_POLYGON 7
- #define AD_GRENT_MESH 8
- #define AD_GRENT_SHELL 9
- #define AD_GRENT_TEXT 10
- #define AD_GRENT_TEXT2 11
- #define AD_GRENT_XLINE 12
- #define AD_GRENT_RAY 13
- #define AD_GRENT_SUBENT_COLOR 14
- /* 15 ? */
- #define AD_GRENT_SUBENT_LAYER 16
- /* 17 ? */
- #define AD_GRENT_SUBENT_LINETYPE 18
- #define AD_GRENT_SUBENT_MARKER 19
- #define AD_GRENT_SUBENT_FILLON 20
- /* 21 ? */
- #define AD_GRENT_SUBENT_TRUECOLOR 22
- #define AD_GRENT_SUBENT_LNWEIGHT 23
- #define AD_GRENT_SUBENT_LTSCALE 24
- #define AD_GRENT_SUBENT_THICKNESS 25
- #define AD_GRENT_SUBENT_PLSTNAME 26
- #define AD_GRENT_PUSH_CLIP 27
- #define AD_GRENT_POP_CLIP 28
- #define AD_GRENT_PUSH_MODELXFORM 29
- #define AD_GRENT_PUSH_MODELXFORM2 30
- #define AD_GRENT_POP_MODELXFORM 31
- #define AD_GRENT_MDT_LINE 32
- #define AD_XD_STRING 1000
- #define AD_XD_APPOBJHANDLE 1001
- #define AD_XD_CONTROL 1002
- #define AD_XD_LAYEROBJHANDLE 1003
- #define AD_XD_BINDATA 1004
- #define AD_XD_OBJHANDLE 1005
- #define AD_XD_REALS 1010
- #define AD_XD_WORLDPOS 1011
- #define AD_XD_WORLDDISP 1012
- #define AD_XD_WORLDDIR 1013
- #define AD_XD_REAL 1040
- #define AD_XD_DIST 1041
- #define AD_XD_SCALE 1042
- #define AD_XD_INT 1070
- #define AD_XD_LONG 1071
- #define AD_IS_A_PROXYENT(a) (a>=0x1F2)
- #define AD_IS_A_GENERIC_PROXYENT(a) (a==0x1F2)
- #define AD_IS_A_GENERIC_PROXYOBJ(a) (a==0x1F3)
- #define AD_ITEM_CLASS_PROXY_ENTITY 0x1F2
- #define AD_ITEM_CLASS_PROXY_OBJECT 0x1F3
- #define AD_PROXYCAP_NONE 0
- #define AD_PROXYCAP_ERASEOK 1
- #define AD_PROXYCAP_TRANSFORMOK 2
- #define AD_PROXYCAP_COLORCHANGEOK 4
- #define AD_PROXYCAP_LAYERCHANGEOK 8
- #define AD_PROXYCAP_LINETYPECHANGEOK 16
- #define AD_PROXYCAP_LINETYPESCALECHANGEOK 32
- #define AD_PROXYCAP_VISIBLITYCHANGEOK 64
- #define AD_PROXYCAP_CLONINGOK 128
- #define AD_PROXYCAP_LINEWEIGHTCHANGEOK 0x100
- #define AD_PROXYCAP_PLOTSTYLENAMECHANGEOK 0x200
- #define AD_PROXYCAP_ALLBUTCLONINGOK 0x37F
- #define AD_PROXYCAP_ALLOK 0x3FF
- #define AD_PROXYCAP_R13FORMATPROXY 32768
- #define AD_VPENT_STATUS_PERSPECTIVEMODE 1
- #define AD_VPENT_STATUS_FRONTCLIP 2
- #define AD_VPENT_STATUS_BACKCLIP 4
- #define AD_VPENT_STATUS_UCSFOLLOW 8
- #define AD_VPENT_STATUS_NOTATEYE 16
- #define AD_VPENT_STATUS_UCSICON 32
- #define AD_VPENT_STATUS_UCSATORIGIN 64
- #define AD_VPENT_STATUS_FASTZOOM 128
- #define AD_VPENT_STATUS_SNAPON 256
- #define AD_VPENT_STATUS_GRIDON 512
- #define AD_VPENT_STATUS_SNAPSTYLEISO 1024
- #define AD_VPENT_STATUS_HIDDENINPLOT 2048
- #define AD_VPENT_STATUS_SNAPISOPAIRTOP 4096
- #define AD_VPENT_STATUS_SNAPISOPAIRRIGHT 8192
- #define AD_VPENT_STATUS_ZOOMLOCKING 16384
- #define AD_VPENT_STATUS_ALWAYS 32768
- #define AD_VPENT_STATUS_NONRECTCLIP 65536
- #define AD_VPENT_STATUS_OFF 131072
- #define adHasPrimTraits(a) (a & 0xFFFFL)
- #define adPrimsHaveColors(a) (a & 0x0001L)
- #define adPrimsHaveLayers(a) (a & 0x0002L)
- #define adPrimsHaveLinetypes(a) (a & 0x0004L)
- #define adPrimsHaveMarkers(a) (a & 0x0020L)
- #define adPrimsHaveVisibilities(a) (a & 0x0040L)
- #define adPrimsHaveNormals(a) (a & 0x0080L)
- #define adPrimsHaveOrientation(a) (a & 0x0400L)
- #define adSetPrimsHaveColors(a) (a |= 0x0001L)
- #define adSetPrimsHaveLayers(a) (a |= 0x0002L)
- #define adSetPrimsHaveLinetypes(a) (a |= 0x0004L)
- #define adSetPrimsHaveMarkers(a) (a |= 0x0020L)
- #define adSetPrimsHaveVisibilities(a) (a |= 0x0040L)
- #define adSetPrimsHaveNormals(a) (a |= 0x0080L)
- #define adSetPrimsHaveOrientation(a) (a |= 0x0400L)
- #define AD_DWG 0
- #define AD_DXF 1
- #define AD_BDXF 2
- #define AD_MAX_STRLEN 512
- #define AD_R15_TO_R14_TRUNC_NAMELEN 26 /* AC2000 uses it while saving to minor versions */
- #define AD_MAX_R14_NAMELEN 31
- #define AD_MAX_TRUNC_NAMELEN adGetMaxPreR15NameLength()
- #define AD_MAX_XREF_TRUNC_NAMELEN 4
- #define AD_EXPORT_AS_UPPERCASE 0
- #define AD_EXPORT_AS_LOWERCASE 1
- #define AD_EXPORT_AS_CURRENT_CASE 2
- #define AD_PAPERSPACE_HANDLE 0
- #define AD_MODELSPACE_HANDLE 1
- #define AD_TTF_OUTLINE 0x01
- #define AD_TTF_FILL 0x02
- #define AD_TTF_FREE_MEMORY 0x04
- #define AD_MAXVPORTS 49
- #define AD_VPMSKSIZE 8
- typedef struct advpmskstru {
- unsigned char data[AD_VPMSKSIZE];
- } ADVPMSK;
- typedef unsigned char AD_OBJHANDLE[8];
- typedef void * AD_DB_HANDLE;
- #define AD_ARBITRARY_HANDLE 0
- #define AD_SOFT_POINTER_HANDLE 1
- #define AD_HARD_POINTER_HANDLE 2
- #define AD_SOFT_OWNER_HANDLE 3
- #define AD_HARD_OWNER_HANDLE 4
- #define NULLOBJHANDLE "