home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / vc / EXPAND / RELATION.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-24  |  4.6 KB  |  238 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 "relation.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12. #include "entity.h"
  13.  
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CRelation properties
  17.  
  18. long CRelation::GetType()
  19. {
  20.     long result;
  21.     GetProperty(0x1, VT_I4, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CRelation::SetType(long propVal)
  26. {
  27.     SetProperty(0x1, VT_I4, propVal);
  28. }
  29.  
  30. long CRelation::GetSourceArrow()
  31. {
  32.     long result;
  33.     GetProperty(0x2, VT_I4, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CRelation::SetSourceArrow(long propVal)
  38. {
  39.     SetProperty(0x2, VT_I4, propVal);
  40. }
  41.  
  42. long CRelation::GetDestinationArrow()
  43. {
  44.     long result;
  45.     GetProperty(0x3, VT_I4, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CRelation::SetDestinationArrow(long propVal)
  50. {
  51.     SetProperty(0x3, VT_I4, propVal);
  52. }
  53.  
  54. long CRelation::GetThickness()
  55. {
  56.     long result;
  57.     GetProperty(0x4, VT_I4, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CRelation::SetThickness(long propVal)
  62. {
  63.     SetProperty(0x4, VT_I4, propVal);
  64. }
  65.  
  66. unsigned long CRelation::GetBackColor()
  67. {
  68.     unsigned long result;
  69.     GetProperty(0x5, VT_I4, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CRelation::SetBackColor(unsigned long propVal)
  74. {
  75.     SetProperty(0x5, VT_I4, propVal);
  76. }
  77.  
  78. unsigned long CRelation::GetTextColor()
  79. {
  80.     unsigned long result;
  81.     GetProperty(0x6, VT_I4, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CRelation::SetTextColor(unsigned long propVal)
  86. {
  87.     SetProperty(0x6, VT_I4, propVal);
  88. }
  89.  
  90. CString CRelation::GetText()
  91. {
  92.     CString result;
  93.     GetProperty(0x7, VT_BSTR, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CRelation::SetText(LPCTSTR propVal)
  98. {
  99.     SetProperty(0x7, VT_BSTR, propVal);
  100. }
  101.  
  102. long CRelation::GetUserData()
  103. {
  104.     long result;
  105.     GetProperty(0x8, VT_I4, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CRelation::SetUserData(long propVal)
  110. {
  111.     SetProperty(0x8, VT_I4, propVal);
  112. }
  113.  
  114. COleFont CRelation::GetFont()
  115. {
  116.     LPDISPATCH pDispatch;
  117.     GetProperty(0x9, VT_DISPATCH, (void*)&pDispatch);
  118.     return COleFont(pDispatch);
  119. }
  120.  
  121. void CRelation::SetFont(LPDISPATCH propVal)
  122. {
  123.     SetProperty(0x9, VT_DISPATCH, propVal);
  124. }
  125.  
  126. BOOL CRelation::GetReadOnly()
  127. {
  128.     BOOL result;
  129.     GetProperty(0xa, VT_BOOL, (void*)&result);
  130.     return result;
  131. }
  132.  
  133. void CRelation::SetReadOnly(BOOL propVal)
  134. {
  135.     SetProperty(0xa, VT_BOOL, propVal);
  136. }
  137.  
  138. BOOL CRelation::GetCanDelete()
  139. {
  140.     BOOL result;
  141.     GetProperty(0xb, VT_BOOL, (void*)&result);
  142.     return result;
  143. }
  144.  
  145. void CRelation::SetCanDelete(BOOL propVal)
  146. {
  147.     SetProperty(0xb, VT_BOOL, propVal);
  148. }
  149.  
  150. BOOL CRelation::GetCanMoveEndPoints()
  151. {
  152.     BOOL result;
  153.     GetProperty(0xc, VT_BOOL, (void*)&result);
  154.     return result;
  155. }
  156.  
  157. void CRelation::SetCanMoveEndPoints(BOOL propVal)
  158. {
  159.     SetProperty(0xc, VT_BOOL, propVal);
  160. }
  161.  
  162. BOOL CRelation::GetCanMoveMidPoints()
  163. {
  164.     BOOL result;
  165.     GetProperty(0xd, VT_BOOL, (void*)&result);
  166.     return result;
  167. }
  168.  
  169. void CRelation::SetCanMoveMidPoints(BOOL propVal)
  170. {
  171.     SetProperty(0xd, VT_BOOL, propVal);
  172. }
  173.  
  174. /////////////////////////////////////////////////////////////////////////////
  175. // CRelation operations
  176.  
  177. BOOL CRelation::PropertyPage(short cPage)
  178. {
  179.     BOOL result;
  180.     static BYTE parms[] =
  181.         VTS_I2;
  182.     InvokeHelper(0xe, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  183.         cPage);
  184.     return result;
  185. }
  186.  
  187. void CRelation::Repaint()
  188. {
  189.     InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  190. }
  191.  
  192. CString CRelation::ClassName()
  193. {
  194.     CString result;
  195.     InvokeHelper(0x10, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
  196.     return result;
  197. }
  198.  
  199. long CRelation::UserID()
  200. {
  201.     long result;
  202.     InvokeHelper(0x11, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  203.     return result;
  204. }
  205.  
  206. CString CRelation::UserName()
  207. {
  208.     CString result;
  209.     InvokeHelper(0x12, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
  210.     return result;
  211. }
  212.  
  213. CEntity CRelation::SourceEntity()
  214. {
  215.     LPDISPATCH pDispatch;
  216.     InvokeHelper(0x13, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
  217.     return CEntity(pDispatch);
  218. }
  219.  
  220. CEntity CRelation::DestinationEntity()
  221. {
  222.     LPDISPATCH pDispatch;
  223.     InvokeHelper(0x14, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
  224.     return CEntity(pDispatch);
  225. }
  226.  
  227. void CRelation::Delete()
  228. {
  229.     InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  230. }
  231.  
  232. BOOL CRelation::BringIntoView()
  233. {
  234.     BOOL result;
  235.     InvokeHelper(0x16, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  236.     return result;
  237. }
  238.