home *** CD-ROM | disk | FTP | other *** search
/ Delphi Anthology / aDELPHI.iso / ActiveX / 3DText_ActiveX_v3.1-FCN / data1.cab / Example_Files / 3DText / Vc / font.cpp < prev    next >
C/C++ Source or Header  |  1999-10-27  |  2KB  |  112 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 "font.h"
  9.  
  10.  
  11. /////////////////////////////////////////////////////////////////////////////
  12. // COleFont properties
  13.  
  14. CString COleFont::GetName()
  15. {
  16.     CString result;
  17.     GetProperty(0x0, VT_BSTR, (void*)&result);
  18.     return result;
  19. }
  20.  
  21. void COleFont::SetName(LPCTSTR propVal)
  22. {
  23.     SetProperty(0x0, VT_BSTR, propVal);
  24. }
  25.  
  26. CY COleFont::GetSize()
  27. {
  28.     CY result;
  29.     GetProperty(0x2, VT_CY, (void*)&result);
  30.     return result;
  31. }
  32.  
  33. void COleFont::SetSize(const CY& propVal)
  34. {
  35.     SetProperty(0x2, VT_CY, &propVal);
  36. }
  37.  
  38. BOOL COleFont::GetBold()
  39. {
  40.     BOOL result;
  41.     GetProperty(0x3, VT_BOOL, (void*)&result);
  42.     return result;
  43. }
  44.  
  45. void COleFont::SetBold(BOOL propVal)
  46. {
  47.     SetProperty(0x3, VT_BOOL, propVal);
  48. }
  49.  
  50. BOOL COleFont::GetItalic()
  51. {
  52.     BOOL result;
  53.     GetProperty(0x4, VT_BOOL, (void*)&result);
  54.     return result;
  55. }
  56.  
  57. void COleFont::SetItalic(BOOL propVal)
  58. {
  59.     SetProperty(0x4, VT_BOOL, propVal);
  60. }
  61.  
  62. BOOL COleFont::GetUnderline()
  63. {
  64.     BOOL result;
  65.     GetProperty(0x5, VT_BOOL, (void*)&result);
  66.     return result;
  67. }
  68.  
  69. void COleFont::SetUnderline(BOOL propVal)
  70. {
  71.     SetProperty(0x5, VT_BOOL, propVal);
  72. }
  73.  
  74. BOOL COleFont::GetStrikethrough()
  75. {
  76.     BOOL result;
  77.     GetProperty(0x6, VT_BOOL, (void*)&result);
  78.     return result;
  79. }
  80.  
  81. void COleFont::SetStrikethrough(BOOL propVal)
  82. {
  83.     SetProperty(0x6, VT_BOOL, propVal);
  84. }
  85.  
  86. short COleFont::GetWeight()
  87. {
  88.     short result;
  89.     GetProperty(0x7, VT_I2, (void*)&result);
  90.     return result;
  91. }
  92.  
  93. void COleFont::SetWeight(short propVal)
  94. {
  95.     SetProperty(0x7, VT_I2, propVal);
  96. }
  97.  
  98. short COleFont::GetCharset()
  99. {
  100.     short result;
  101.     GetProperty(0x8, VT_I2, (void*)&result);
  102.     return result;
  103. }
  104.  
  105. void COleFont::SetCharset(short propVal)
  106. {
  107.     SetProperty(0x8, VT_I2, propVal);
  108. }
  109.  
  110. /////////////////////////////////////////////////////////////////////////////
  111. // COleFont operations
  112.