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) && !defined(_WINRT)
45interface __declspec(uuid(
"C9E0781D-BA3D-4224-9FA4-58ECEA2BC559"))
46IAcadBaseObject :
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;
58typedef IAcadBaseObject* LPACADBASEOBJECT;
62interface __declspec(uuid(
"0E25DE83-2257-4b6d-B73B-33F1D21FFD8D"))
63IRetrieveHostAppServices : IUnknown
65 virtual HRESULT STDMETHODCALLTYPE GetHostAppServices(
OdDbHostAppServices** ppHostAppServices) = 0;
68_COM_SMARTPTR_TYPEDEF(IRetrieveHostAppServices, __uuidof(IRetrieveHostAppServices));
71interface __declspec(uuid(
"765B4640-664A-11cf-93F3-0800099EB3B7"))
72IRetrieveApplication :
public IUnknown
75 virtual HRESULT STDMETHODCALLTYPE SetApplicationObject(LPDISPATCH pAppDisp) = 0;
76 virtual HRESULT STDMETHODCALLTYPE GetApplicationObject(LPDISPATCH* pAppDisp) = 0;
79typedef IRetrieveApplication* LPRETRIEVEAPPLICATION;
82interface __declspec(uuid(
"CD3EB5B8-F3FC-48c2-84EE-954EFC4D4208"))
83IAcadBaseDatabase :
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;
91typedef IAcadBaseDatabase* LPACADBASEDATABASE;
94_COM_SMARTPTR_TYPEDEF(IAcadBaseObject, __uuidof(IAcadBaseObject));
95_COM_SMARTPTR_TYPEDEF(IRetrieveApplication, __uuidof(IRetrieveApplication));
96_COM_SMARTPTR_TYPEDEF(IAcadBaseDatabase, __uuidof(IAcadBaseDatabase));
100DEFINE_GUID(IID_ICategorizeProperties, 0x4d07fc10, 0xf931, 0x11ce, 0xb0, 0x1, 0x0, 0xaa, 0x0, 0x68, 0x84, 0xe5);
108interface __declspec(uuid(
"4D07FC10-F931-11ce-B001-00AA006884E5"))
109ICategorizeProperties :
public IUnknown
112 virtual HRESULT STDMETHODCALLTYPE MapPropertyToCategory(
113 DISPID dispid, PROPCAT* ppropcat) = 0;
116 virtual HRESULT STDMETHODCALLTYPE GetCategoryName(
117 PROPCAT propcat,
LCID lcid, BSTR* pbstrName) = 0;
120typedef ICategorizeProperties FAR* LPCATEGORIZEPROPERTIES;
131#define FACILITY_ODA 32
133#define OdHresultFromOdResult(res) MAKE_HRESULT(res!=eOk ? 3 : 0, FACILITY_ODA, res)
138#if defined(_MSC_VER) && defined(_TOOLKIT_IN_DLL_) && (_MSC_VER > 1310) && !defined(_WIN32_WCE) && !defined(_WINRT)
139#define _DEFINE_GET_CLASS_ID(Class, ID) \
140OdResult Class::subGetClassID(void* pClsid) const { *(CLSID*)pClsid = ID; return eOk;}
142#define _DEFINE_GET_CLASS_ID(Class, CLSID) \
143OdResult Class::subGetClassID(void* pClsid) const { return eNotImplemented; }
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull