vcfootnote.cpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 "vcfootnote.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "vctextlayout.h"
  8. #include "vclocation.h"
  9. #include "vcbackdrop.h"
  10. #include "vcfont.h"
  11. #include "font.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CVcFootnote properties
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CVcFootnote operations
  16. CVcTextLayout CVcFootnote::GetTextLayout()
  17. {
  18. LPDISPATCH pDispatch;
  19. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  20. return CVcTextLayout(pDispatch);
  21. }
  22. CVcLocation CVcFootnote::GetLocation()
  23. {
  24. LPDISPATCH pDispatch;
  25. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  26. return CVcLocation(pDispatch);
  27. }
  28. CVcBackdrop CVcFootnote::GetBackdrop()
  29. {
  30. LPDISPATCH pDispatch;
  31. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  32. return CVcBackdrop(pDispatch);
  33. }
  34. CVcFont CVcFootnote::GetVtFont()
  35. {
  36. LPDISPATCH pDispatch;
  37. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  38. return CVcFont(pDispatch);
  39. }
  40. CString CVcFootnote::GetText()
  41. {
  42. CString result;
  43. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  44. return result;
  45. }
  46. void CVcFootnote::SetText(LPCTSTR lpszNewValue)
  47. {
  48. static BYTE parms[] =
  49. VTS_BSTR;
  50. InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  51. lpszNewValue);
  52. }
  53. short CVcFootnote::GetTextLength()
  54. {
  55. short result;
  56. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  57. return result;
  58. }
  59. void CVcFootnote::SetRefFont(LPDISPATCH newValue)
  60. {
  61. static BYTE parms[] =
  62. VTS_DISPATCH;
  63. InvokeHelper(0x8, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  64. newValue);
  65. }
  66. COleFont CVcFootnote::GetFont()
  67. {
  68. LPDISPATCH pDispatch;
  69. InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  70. return COleFont(pDispatch);
  71. }
  72. void CVcFootnote::Select()
  73. {
  74. InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  75. }