home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / vc / EXPAND / ENTITY.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-24  |  8.9 KB  |  486 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "entity.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CEntity properties
  16.  
  17. long CEntity::GetShape()
  18. {
  19.     long result;
  20.     GetProperty(0x1, VT_I4, (void*)&result);
  21.     return result;
  22. }
  23.  
  24. void CEntity::SetShape(long propVal)
  25. {
  26.     SetProperty(0x1, VT_I4, propVal);
  27. }
  28.  
  29. CString CEntity::GetText()
  30. {
  31.     CString result;
  32.     GetProperty(0x2, VT_BSTR, (void*)&result);
  33.     return result;
  34. }
  35.  
  36. void CEntity::SetText(LPCTSTR propVal)
  37. {
  38.     SetProperty(0x2, VT_BSTR, propVal);
  39. }
  40.  
  41. unsigned long CEntity::GetTextColor()
  42. {
  43.     unsigned long result;
  44.     GetProperty(0x3, VT_I4, (void*)&result);
  45.     return result;
  46. }
  47.  
  48. void CEntity::SetTextColor(unsigned long propVal)
  49. {
  50.     SetProperty(0x3, VT_I4, propVal);
  51. }
  52.  
  53. unsigned long CEntity::GetBackColor()
  54. {
  55.     unsigned long result;
  56.     GetProperty(0x4, VT_I4, (void*)&result);
  57.     return result;
  58. }
  59.  
  60. void CEntity::SetBackColor(unsigned long propVal)
  61. {
  62.     SetProperty(0x4, VT_I4, propVal);
  63. }
  64.  
  65. long CEntity::GetFrame()
  66. {
  67.     long result;
  68.     GetProperty(0x5, VT_I4, (void*)&result);
  69.     return result;
  70. }
  71.  
  72. void CEntity::SetFrame(long propVal)
  73. {
  74.     SetProperty(0x5, VT_I4, propVal);
  75. }
  76.  
  77. BOOL CEntity::GetBorder()
  78. {
  79.     BOOL result;
  80.     GetProperty(0x6, VT_BOOL, (void*)&result);
  81.     return result;
  82. }
  83.  
  84. void CEntity::SetBorder(BOOL propVal)
  85. {
  86.     SetProperty(0x6, VT_BOOL, propVal);
  87. }
  88.  
  89. short CEntity::GetCoordX()
  90. {
  91.     short result;
  92.     GetProperty(0x7, VT_I2, (void*)&result);
  93.     return result;
  94. }
  95.  
  96. void CEntity::SetCoordX(short propVal)
  97. {
  98.     SetProperty(0x7, VT_I2, propVal);
  99. }
  100.  
  101. short CEntity::GetCoordY()
  102. {
  103.     short result;
  104.     GetProperty(0x8, VT_I2, (void*)&result);
  105.     return result;
  106. }
  107.  
  108. void CEntity::SetCoordY(short propVal)
  109. {
  110.     SetProperty(0x8, VT_I2, propVal);
  111. }
  112.  
  113. long CEntity::GetUserData()
  114. {
  115.     long result;
  116.     GetProperty(0x9, VT_I4, (void*)&result);
  117.     return result;
  118. }
  119.  
  120. void CEntity::SetUserData(long propVal)
  121. {
  122.     SetProperty(0x9, VT_I4, propVal);
  123. }
  124.  
  125. COleFont CEntity::GetFont()
  126. {
  127.     LPDISPATCH pDispatch;
  128.     GetProperty(0xa, VT_DISPATCH, (void*)&pDispatch);
  129.     return COleFont(pDispatch);
  130. }
  131.  
  132. void CEntity::SetFont(LPDISPATCH propVal)
  133. {
  134.     SetProperty(0xa, VT_DISPATCH, propVal);
  135. }
  136.  
  137. long CEntity::GetContainer()
  138. {
  139.     long result;
  140.     GetProperty(0xb, VT_I4, (void*)&result);
  141.     return result;
  142. }
  143.  
  144. void CEntity::SetContainer(long propVal)
  145. {
  146.     SetProperty(0xb, VT_I4, propVal);
  147. }
  148.  
  149. long CEntity::GetTop()
  150. {
  151.     long result;
  152.     GetProperty(0xc, VT_I4, (void*)&result);
  153.     return result;
  154. }
  155.  
  156. void CEntity::SetTop(long propVal)
  157. {
  158.     SetProperty(0xc, VT_I4, propVal);
  159. }
  160.  
  161. long CEntity::GetBottom()
  162. {
  163.     long result;
  164.     GetProperty(0xd, VT_I4, (void*)&result);
  165.     return result;
  166. }
  167.  
  168. void CEntity::SetBottom(long propVal)
  169. {
  170.     SetProperty(0xd, VT_I4, propVal);
  171. }
  172.  
  173. long CEntity::GetLeft()
  174. {
  175.     long result;
  176.     GetProperty(0xe, VT_I4, (void*)&result);
  177.     return result;
  178. }
  179.  
  180. void CEntity::SetLeft(long propVal)
  181. {
  182.     SetProperty(0xe, VT_I4, propVal);
  183. }
  184.  
  185. long CEntity::GetRight()
  186. {
  187.     long result;
  188.     GetProperty(0xf, VT_I4, (void*)&result);
  189.     return result;
  190. }
  191.  
  192. void CEntity::SetRight(long propVal)
  193. {
  194.     SetProperty(0xf, VT_I4, propVal);
  195. }
  196.  
  197. CString CEntity::GetGraphic()
  198. {
  199.     CString result;
  200.     GetProperty(0x10, VT_BSTR, (void*)&result);
  201.     return result;
  202. }
  203.  
  204. void CEntity::SetGraphic(LPCTSTR propVal)
  205. {
  206.     SetProperty(0x10, VT_BSTR, propVal);
  207. }
  208.  
  209. long CEntity::GetTextOrientation()
  210. {
  211.     long result;
  212.     GetProperty(0x11, VT_I4, (void*)&result);
  213.     return result;
  214. }
  215.  
  216. void CEntity::SetTextOrientation(long propVal)
  217. {
  218.     SetProperty(0x11, VT_I4, propVal);
  219. }
  220.  
  221. BOOL CEntity::GetSelect()
  222. {
  223.     BOOL result;
  224.     GetProperty(0x12, VT_BOOL, (void*)&result);
  225.     return result;
  226. }
  227.  
  228. void CEntity::SetSelect(BOOL propVal)
  229. {
  230.     SetProperty(0x12, VT_BOOL, propVal);
  231. }
  232.  
  233. CString CEntity::GetInetUrl()
  234. {
  235.     CString result;
  236.     GetProperty(0x13, VT_BSTR, (void*)&result);
  237.     return result;
  238. }
  239.  
  240. void CEntity::SetInetUrl(LPCTSTR propVal)
  241. {
  242.     SetProperty(0x13, VT_BSTR, propVal);
  243. }
  244.  
  245. long CEntity::GetInetHost()
  246. {
  247.     long result;
  248.     GetProperty(0x14, VT_I4, (void*)&result);
  249.     return result;
  250. }
  251.  
  252. void CEntity::SetInetHost(long propVal)
  253. {
  254.     SetProperty(0x14, VT_I4, propVal);
  255. }
  256.  
  257. BOOL CEntity::GetTransparent()
  258. {
  259.     BOOL result;
  260.     GetProperty(0x15, VT_BOOL, (void*)&result);
  261.     return result;
  262. }
  263.  
  264. void CEntity::SetTransparent(BOOL propVal)
  265. {
  266.     SetProperty(0x15, VT_BOOL, propVal);
  267. }
  268.  
  269. BOOL CEntity::GetStretchBitmap()
  270. {
  271.     BOOL result;
  272.     GetProperty(0x16, VT_BOOL, (void*)&result);
  273.     return result;
  274. }
  275.  
  276. void CEntity::SetStretchBitmap(BOOL propVal)
  277. {
  278.     SetProperty(0x16, VT_BOOL, propVal);
  279. }
  280.  
  281. BOOL CEntity::GetAutoResize()
  282. {
  283.     BOOL result;
  284.     GetProperty(0x17, VT_BOOL, (void*)&result);
  285.     return result;
  286. }
  287.  
  288. void CEntity::SetAutoResize(BOOL propVal)
  289. {
  290.     SetProperty(0x17, VT_BOOL, propVal);
  291. }
  292.  
  293. BOOL CEntity::GetReadOnly()
  294. {
  295.     BOOL result;
  296.     GetProperty(0x18, VT_BOOL, (void*)&result);
  297.     return result;
  298. }
  299.  
  300. void CEntity::SetReadOnly(BOOL propVal)
  301. {
  302.     SetProperty(0x18, VT_BOOL, propVal);
  303. }
  304.  
  305. BOOL CEntity::GetCanDelete()
  306. {
  307.     BOOL result;
  308.     GetProperty(0x19, VT_BOOL, (void*)&result);
  309.     return result;
  310. }
  311.  
  312. void CEntity::SetCanDelete(BOOL propVal)
  313. {
  314.     SetProperty(0x19, VT_BOOL, propVal);
  315. }
  316.  
  317. BOOL CEntity::GetCanResize()
  318. {
  319.     BOOL result;
  320.     GetProperty(0x1a, VT_BOOL, (void*)&result);
  321.     return result;
  322. }
  323.  
  324. void CEntity::SetCanResize(BOOL propVal)
  325. {
  326.     SetProperty(0x1a, VT_BOOL, propVal);
  327. }
  328.  
  329. BOOL CEntity::GetCanMove()
  330. {
  331.     BOOL result;
  332.     GetProperty(0x1b, VT_BOOL, (void*)&result);
  333.     return result;
  334. }
  335.  
  336. void CEntity::SetCanMove(BOOL propVal)
  337. {
  338.     SetProperty(0x1b, VT_BOOL, propVal);
  339. }
  340.  
  341. BOOL CEntity::GetValidRelationDragSource()
  342. {
  343.     BOOL result;
  344.     GetProperty(0x1c, VT_BOOL, (void*)&result);
  345.     return result;
  346. }
  347.  
  348. void CEntity::SetValidRelationDragSource(BOOL propVal)
  349. {
  350.     SetProperty(0x1c, VT_BOOL, propVal);
  351. }
  352.  
  353. /////////////////////////////////////////////////////////////////////////////
  354. // CEntity operations
  355.  
  356. BOOL CEntity::PropertyPage(short cPage)
  357. {
  358.     BOOL result;
  359.     static BYTE parms[] =
  360.         VTS_I2;
  361.     InvokeHelper(0x1d, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  362.         cPage);
  363.     return result;
  364. }
  365.  
  366. void CEntity::Repaint()
  367. {
  368.     InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  369. }
  370.  
  371. long CEntity::GetRelationInCount()
  372. {
  373.     long result;
  374.     InvokeHelper(0x1f, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  375.     return result;
  376. }
  377.  
  378. long CEntity::GetRelationOutCount()
  379. {
  380.     long result;
  381.     InvokeHelper(0x20, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  382.     return result;
  383. }
  384.  
  385. CString CEntity::ClassName()
  386. {
  387.     CString result;
  388.     InvokeHelper(0x21, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
  389.     return result;
  390. }
  391.  
  392. long CEntity::UserID()
  393. {
  394.     long result;
  395.     InvokeHelper(0x22, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  396.     return result;
  397. }
  398.  
  399. CString CEntity::UserName()
  400. {
  401.     CString result;
  402.     InvokeHelper(0x23, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
  403.     return result;
  404. }
  405.  
  406. BOOL CEntity::RemoveEntityFromContainer(LPDISPATCH lpDispEntity)
  407. {
  408.     BOOL result;
  409.     static BYTE parms[] =
  410.         VTS_DISPATCH;
  411.     InvokeHelper(0x24, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  412.         lpDispEntity);
  413.     return result;
  414. }
  415.  
  416. BOOL CEntity::AddEntityToContainer(LPDISPATCH lpDispEntity)
  417. {
  418.     BOOL result;
  419.     static BYTE parms[] =
  420.         VTS_DISPATCH;
  421.     InvokeHelper(0x25, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  422.         lpDispEntity);
  423.     return result;
  424. }
  425.  
  426. long CEntity::GetContainedEntityCount()
  427. {
  428.     long result;
  429.     InvokeHelper(0x26, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  430.     return result;
  431. }
  432.  
  433. BOOL CEntity::IterateContainedEntityFirst()
  434. {
  435.     BOOL result;
  436.     InvokeHelper(0x27, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  437.     return result;
  438. }
  439.  
  440. CEntity CEntity::IterateContainedEntityNext()
  441. {
  442.     LPDISPATCH pDispatch;
  443.     InvokeHelper(0x28, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
  444.     return CEntity(pDispatch);
  445. }
  446.  
  447. BOOL CEntity::IterateRelationInFirst()
  448. {
  449.     BOOL result;
  450.     InvokeHelper(0x29, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  451.     return result;
  452. }
  453.  
  454. LPDISPATCH CEntity::IterateRelationInNext()
  455. {
  456.     LPDISPATCH result;
  457.     InvokeHelper(0x2a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  458.     return result;
  459. }
  460.  
  461. BOOL CEntity::IterateRelationOutFirst()
  462. {
  463.     BOOL result;
  464.     InvokeHelper(0x2b, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  465.     return result;
  466. }
  467.  
  468. LPDISPATCH CEntity::IterateRelationOutNext()
  469. {
  470.     LPDISPATCH result;
  471.     InvokeHelper(0x2c, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  472.     return result;
  473. }
  474.  
  475. void CEntity::Delete()
  476. {
  477.     InvokeHelper(0x2d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  478. }
  479.  
  480. BOOL CEntity::BringIntoView()
  481. {
  482.     BOOL result;
  483.     InvokeHelper(0x2e, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  484.     return result;
  485. }
  486.