font.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "font.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // COleFont properties
  8. CString COleFont::GetName()
  9. {
  10. CString result;
  11. GetProperty(0x0, VT_BSTR, (void*)&result);
  12. return result;
  13. }
  14. void COleFont::SetName(LPCTSTR propVal)
  15. {
  16. SetProperty(0x0, VT_BSTR, propVal);
  17. }
  18. CY COleFont::GetSize()
  19. {
  20. CY result;
  21. GetProperty(0x2, VT_CY, (void*)&result);
  22. return result;
  23. }
  24. void COleFont::SetSize(const CY& propVal)
  25. {
  26. SetProperty(0x2, VT_CY, &propVal);
  27. }
  28. BOOL COleFont::GetBold()
  29. {
  30. BOOL result;
  31. GetProperty(0x3, VT_BOOL, (void*)&result);
  32. return result;
  33. }
  34. void COleFont::SetBold(BOOL propVal)
  35. {
  36. SetProperty(0x3, VT_BOOL, propVal);
  37. }
  38. BOOL COleFont::GetItalic()
  39. {
  40. BOOL result;
  41. GetProperty(0x4, VT_BOOL, (void*)&result);
  42. return result;
  43. }
  44. void COleFont::SetItalic(BOOL propVal)
  45. {
  46. SetProperty(0x4, VT_BOOL, propVal);
  47. }
  48. BOOL COleFont::GetUnderline()
  49. {
  50. BOOL result;
  51. GetProperty(0x5, VT_BOOL, (void*)&result);
  52. return result;
  53. }
  54. void COleFont::SetUnderline(BOOL propVal)
  55. {
  56. SetProperty(0x5, VT_BOOL, propVal);
  57. }
  58. BOOL COleFont::GetStrikethrough()
  59. {
  60. BOOL result;
  61. GetProperty(0x6, VT_BOOL, (void*)&result);
  62. return result;
  63. }
  64. void COleFont::SetStrikethrough(BOOL propVal)
  65. {
  66. SetProperty(0x6, VT_BOOL, propVal);
  67. }
  68. short COleFont::GetWeight()
  69. {
  70. short result;
  71. GetProperty(0x7, VT_I2, (void*)&result);
  72. return result;
  73. }
  74. void COleFont::SetWeight(short propVal)
  75. {
  76. SetProperty(0x7, VT_I2, propVal);
  77. }
  78. short COleFont::GetCharset()
  79. {
  80. short result;
  81. GetProperty(0x8, VT_I2, (void*)&result);
  82. return result;
  83. }
  84. void COleFont::SetCharset(short propVal)
  85. {
  86. SetProperty(0x8, VT_I2, propVal);
  87. }
  88. /////////////////////////////////////////////////////////////////////////////
  89. // COleFont operations