27 #ifndef _ODAXWRAP_H_INCLUDED_
28 #define _ODAXWRAP_H_INCLUDED_
30 #if defined(_MSC_VER) && (_MSC_VER > 1310) && defined(_TOOLKIT_IN_DLL_) && !defined(_WIN32_WCE)
45 interface __declspec(uuid("C9E0781D-BA3D-4224-9FA4-58ECEA2BC559"))
46 IAcadBaseObject :
public IUnknown
49 virtual HRESULT STDMETHODCALLTYPE SetObjectId(
OdDbObjectId& objId,
51 virtual HRESULT STDMETHODCALLTYPE GetObjectId(
OdDbObjectId* objId) = 0;
52 virtual HRESULT STDMETHODCALLTYPE Clone(
OdDbObjectId ownerId, LPUNKNOWN* pUnkClone) = 0;
53 virtual HRESULT STDMETHODCALLTYPE GetClassID(
CLSID& clsid) = 0;
54 virtual HRESULT STDMETHODCALLTYPE NullObjectId() = 0;
55 virtual HRESULT STDMETHODCALLTYPE OnModified() = 0;
58 typedef IAcadBaseObject* LPACADBASEOBJECT;
62 interface __declspec(uuid("0E25DE83-2257-4b6d-B73B-33F1D21FFD8D"))
63 IRetrieveHostAppServices : IUnknown
65 virtual HRESULT STDMETHODCALLTYPE GetHostAppServices(
OdDbHostAppServices** ppHostAppServices) = 0;
68 _COM_SMARTPTR_TYPEDEF(IRetrieveHostAppServices, __uuidof(IRetrieveHostAppServices));
71 interface __declspec(uuid("765B4640-664A-11cf-93F3-0800099EB3B7"))
72 IRetrieveApplication :
public IUnknown
75 virtual HRESULT STDMETHODCALLTYPE SetApplicationObject(LPDISPATCH pAppDisp) = 0;
76 virtual HRESULT STDMETHODCALLTYPE GetApplicationObject(LPDISPATCH* pAppDisp) = 0;
79 typedef IRetrieveApplication* LPRETRIEVEAPPLICATION;
82 interface __declspec(uuid("CD3EB5B8-F3FC-48c2-84EE-954EFC4D4208"))
83 IAcadBaseDatabase :
public IUnknown
86 virtual HRESULT STDMETHODCALLTYPE SetDatabase(
OdDbDatabase*& pDb) = 0;
87 virtual HRESULT STDMETHODCALLTYPE GetDatabase(
OdDbDatabase** pDb) = 0;
88 virtual HRESULT STDMETHODCALLTYPE GetClassID(
CLSID& clsid) = 0;
91 typedef IAcadBaseDatabase* LPACADBASEDATABASE;
94 _COM_SMARTPTR_TYPEDEF(IAcadBaseObject, __uuidof(IAcadBaseObject));
95 _COM_SMARTPTR_TYPEDEF(IRetrieveApplication, __uuidof(IRetrieveApplication));
96 _COM_SMARTPTR_TYPEDEF(IAcadBaseDatabase, __uuidof(IAcadBaseDatabase));
100 DEFINE_GUID(IID_ICategorizeProperties, 0x4d07fc10, 0xf931, 0x11ce, 0xb0, 0x1, 0x0, 0xaa, 0x0, 0x68, 0x84, 0xe5);
103 #define PROPCAT_Nil -1
104 #define PROPCAT_Misc -2
105 #define PROPCAT_Font -3
106 #define PROPCAT_Position -4
107 #define PROPCAT_Appearance -5
108 #define PROPCAT_Behavior -6
109 #define PROPCAT_Data -7
110 #define PROPCAT_List -8
111 #define PROPCAT_Text -9
112 #define PROPCAT_Scale -10
113 #define PROPCAT_DDE -11
114 #define PROPCAT_General -12
115 #define PROPCAT_Mass -13
116 #define PROPCAT_Pattern -14
117 #define PROPCAT_DataPoints -15
118 #define PROPCAT_Mesh -16
119 #define PROPCAT_ImageAdjust -17
120 #define PROPCAT_ControlPoints -18
121 #define PROPCAT_PrimaryUnits -19
122 #define PROPCAT_AltUnits -20
123 #define PROPCAT_Fit -21
124 #define PROPCAT_LinesArrows -22
125 #define PROPCAT_Tolerances -23
126 #define PROPCAT_Geometry -24
127 #define PROPCAT_Table -25
128 #define PROPCAT_3dVisualization -26
129 #define PROPCAT_UnderlayAdjust -27
130 #define PROPCAT_SectionObject -28
136 interface __declspec(uuid("4D07FC10-F931-11ce-B001-00AA006884E5"))
137 ICategorizeProperties :
public IUnknown
140 virtual HRESULT STDMETHODCALLTYPE MapPropertyToCategory(
141 DISPID dispid, PROPCAT* ppropcat) = 0;
144 virtual HRESULT STDMETHODCALLTYPE GetCategoryName(
145 PROPCAT propcat,
LCID lcid, BSTR* pbstrName) = 0;
148 typedef ICategorizeProperties FAR* LPCATEGORIZEPROPERTIES;
159 #define FACILITY_ODA 32
161 #define OdHresultFromOdResult(res) MAKE_HRESULT(res!=eOk ? 3 : 0, FACILITY_ODA, res)
166 #endif // _ODAXWRAP_H_INCLUDED_