Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
2.8 KiB

  1. /*
  2. * PRINTER.CPP
  3. *
  4. *
  5. *
  6. *
  7. *
  8. *
  9. */
  10. #include <windows.h>
  11. #include <hidclass.h>
  12. #include <hidsdi.h>
  13. #include <ole2.h>
  14. #include <ole2ver.h>
  15. #include "..\inc\opos.h"
  16. #include "oposctrl.h"
  17. /*
  18. * Define constructor/deconstructor.
  19. */
  20. DEFINE_DEFAULT_CONTROL_CONSTRUCTOR(COPOSPrinter)
  21. /*
  22. * Define local methods to relay all generic control
  23. * method calls to the m_genericControl member.
  24. */
  25. DEFINE_GENERIC_CONTROL_FUNCTIONS(COPOSPrinter)
  26. STDMETHODIMP_(LONG) COPOSPrinter::BeginInsertion(LONG Timeout)
  27. {
  28. LONG result = 0;
  29. // BUGBUG FINISH
  30. return result;
  31. }
  32. STDMETHODIMP_(LONG) COPOSPrinter::BeginRemoval(LONG Timeout)
  33. {
  34. LONG result = 0;
  35. // BUGBUG FINISH
  36. return result;
  37. }
  38. STDMETHODIMP_(LONG) COPOSPrinter::CutPaper(LONG Percentage)
  39. {
  40. LONG result = 0;
  41. // BUGBUG FINISH
  42. return result;
  43. }
  44. STDMETHODIMP_(LONG) COPOSPrinter::EndInsertion()
  45. {
  46. LONG result = 0;
  47. // BUGBUG FINISH
  48. return result;
  49. }
  50. STDMETHODIMP_(LONG) COPOSPrinter::EndRemoval()
  51. {
  52. LONG result = 0;
  53. // BUGBUG FINISH
  54. return result;
  55. }
  56. STDMETHODIMP_(LONG) COPOSPrinter::PrintBarCode(LONG Station, BSTR Data, LONG Symbology, LONG Height, LONG Width, LONG Alignment, LONG TextPosition)
  57. {
  58. LONG result = 0;
  59. // BUGBUG FINISH
  60. return result;
  61. }
  62. STDMETHODIMP_(LONG) COPOSPrinter::PrintBitmap(LONG Station, BSTR FileName, LONG Width, LONG Alignment)
  63. {
  64. LONG result = 0;
  65. // BUGBUG FINISH
  66. return result;
  67. }
  68. STDMETHODIMP_(LONG) COPOSPrinter::PrintImmediate(LONG Station, BSTR Data)
  69. {
  70. LONG result = 0;
  71. // BUGBUG FINISH
  72. return result;
  73. }
  74. STDMETHODIMP_(LONG) COPOSPrinter::PrintNormal(LONG Station, BSTR Data)
  75. {
  76. LONG result = 0;
  77. // BUGBUG FINISH
  78. return result;
  79. }
  80. STDMETHODIMP_(LONG) COPOSPrinter::PrintTwoNormal(LONG Stations, BSTR Data1, BSTR Data2)
  81. {
  82. LONG result = 0;
  83. // BUGBUG FINISH
  84. return result;
  85. }
  86. STDMETHODIMP_(LONG) COPOSPrinter::RotatePrint(LONG Station, LONG Rotation)
  87. {
  88. LONG result = 0;
  89. // BUGBUG FINISH
  90. return result;
  91. }
  92. STDMETHODIMP_(LONG) COPOSPrinter::SetBitmap(LONG BitmapNumber, LONG Station, BSTR FileName, LONG Width, LONG Alignment)
  93. {
  94. LONG result = 0;
  95. // BUGBUG FINISH
  96. return result;
  97. }
  98. STDMETHODIMP_(LONG) COPOSPrinter::SetLogo(LONG Location, BSTR Data)
  99. {
  100. LONG result = 0;
  101. // BUGBUG FINISH
  102. return result;
  103. }
  104. STDMETHODIMP_(LONG) COPOSPrinter::TransactionPrint(LONG Station, LONG Control)
  105. {
  106. LONG result = 0;
  107. // BUGBUG FINISH
  108. return result;
  109. }
  110. STDMETHODIMP_(LONG) COPOSPrinter::ValidateData(LONG Station, BSTR Data)
  111. {
  112. LONG result = 0;
  113. // BUGBUG FINISH
  114. return result;
  115. }
  116. STDMETHODIMP_(void) COPOSPrinter::ErrorEvent(LONG ResultCode, LONG ResultCodeExtended, LONG ErrorLocus, LONG* pErrorResponse)
  117. {
  118. // BUGBUG FINISH
  119. }
  120. STDMETHODIMP_(void) COPOSPrinter::StatusUpdateEvent(LONG Status)
  121. {
  122. // BUGBUG FINISH
  123. }