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.

439 lines
7.7 KiB

  1. /*
  2. * FISCPRNT.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(COPOSFiscalPrinter)
  21. /*
  22. * Define local methods to relay all generic control
  23. * method calls to the m_genericControl member.
  24. */
  25. DEFINE_GENERIC_CONTROL_FUNCTIONS(COPOSFiscalPrinter)
  26. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginFiscalDocument(LONG DocumentAmount)
  27. {
  28. LONG result = 0;
  29. // BUGBUG FINISH
  30. return result;
  31. }
  32. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginFiscalReceipt(BOOL PrintHeader)
  33. {
  34. LONG result = 0;
  35. // BUGBUG FINISH
  36. return result;
  37. }
  38. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginFixedOutput(LONG Station, LONG DocumentType)
  39. {
  40. LONG result = 0;
  41. // BUGBUG FINISH
  42. return result;
  43. }
  44. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginInsertion(LONG Timeout)
  45. {
  46. LONG result = 0;
  47. // BUGBUG FINISH
  48. return result;
  49. }
  50. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginItemList(LONG VatID)
  51. {
  52. LONG result = 0;
  53. // BUGBUG FINISH
  54. return result;
  55. }
  56. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginNonFiscal()
  57. {
  58. LONG result = 0;
  59. // BUGBUG FINISH
  60. return result;
  61. }
  62. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginRemoval(LONG Timeout)
  63. {
  64. LONG result = 0;
  65. // BUGBUG FINISH
  66. return result;
  67. }
  68. STDMETHODIMP_(LONG) COPOSFiscalPrinter::BeginTraining()
  69. {
  70. LONG result = 0;
  71. // BUGBUG FINISH
  72. return result;
  73. }
  74. STDMETHODIMP_(LONG) COPOSFiscalPrinter::ClearError()
  75. {
  76. LONG result = 0;
  77. // BUGBUG FINISH
  78. return result;
  79. }
  80. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndFiscalDocument()
  81. {
  82. LONG result = 0;
  83. // BUGBUG FINISH
  84. return result;
  85. }
  86. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndFiscalReceipt(BOOL PrintHeader)
  87. {
  88. LONG result = 0;
  89. // BUGBUG FINISH
  90. return result;
  91. }
  92. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndFixedOutput()
  93. {
  94. LONG result = 0;
  95. // BUGBUG FINISH
  96. return result;
  97. }
  98. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndInsertion()
  99. {
  100. LONG result = 0;
  101. // BUGBUG FINISH
  102. return result;
  103. }
  104. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndItemList()
  105. {
  106. LONG result = 0;
  107. // BUGBUG FINISH
  108. return result;
  109. }
  110. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndNonFiscal()
  111. {
  112. LONG result = 0;
  113. // BUGBUG FINISH
  114. return result;
  115. }
  116. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndRemoval()
  117. {
  118. LONG result = 0;
  119. // BUGBUG FINISH
  120. return result;
  121. }
  122. STDMETHODIMP_(LONG) COPOSFiscalPrinter::EndTraining()
  123. {
  124. LONG result = 0;
  125. // BUGBUG FINISH
  126. return result;
  127. }
  128. STDMETHODIMP_(LONG) COPOSFiscalPrinter::GetData(LONG DataItem, LONG* OptArgs, BSTR* Data)
  129. {
  130. LONG result = 0;
  131. // BUGBUG FINISH
  132. return result;
  133. }
  134. STDMETHODIMP_(LONG) COPOSFiscalPrinter::GetDate(BSTR* Date)
  135. {
  136. LONG result = 0;
  137. // BUGBUG FINISH
  138. return result;
  139. }
  140. STDMETHODIMP_(LONG) COPOSFiscalPrinter::GetTotalizer(LONG VatID, LONG OptArgs, BSTR* Data)
  141. {
  142. LONG result = 0;
  143. // BUGBUG FINISH
  144. return result;
  145. }
  146. STDMETHODIMP_(LONG) COPOSFiscalPrinter::GetVatEntry(LONG VatID, LONG OptArgs, LONG* VatRate)
  147. {
  148. LONG result = 0;
  149. // BUGBUG FINISH
  150. return result;
  151. }
  152. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintDuplicateReceipt()
  153. {
  154. LONG result = 0;
  155. // BUGBUG FINISH
  156. return result;
  157. }
  158. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintFiscalDocumentLine(BSTR DocumentLine)
  159. {
  160. LONG result = 0;
  161. // BUGBUG FINISH
  162. return result;
  163. }
  164. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintFixedOutput(LONG DocumentType, LONG LineNumber, BSTR Data)
  165. {
  166. LONG result = 0;
  167. // BUGBUG FINISH
  168. return result;
  169. }
  170. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintNormal(LONG Station, BSTR Data)
  171. {
  172. LONG result = 0;
  173. // BUGBUG FINISH
  174. return result;
  175. }
  176. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintPeriodicTotalsReport(BSTR Date1, BSTR Date2)
  177. {
  178. LONG result = 0;
  179. // BUGBUG FINISH
  180. return result;
  181. }
  182. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintPowerLossReport()
  183. {
  184. LONG result = 0;
  185. // BUGBUG FINISH
  186. return result;
  187. }
  188. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecItem(BSTR Description, CURRENCY Price, LONG Quantity, LONG VatInfo, CURRENCY OptUnitPrice, BSTR UnitName)
  189. {
  190. LONG result = 0;
  191. // BUGBUG FINISH
  192. return result;
  193. }
  194. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecItemAdjustment(LONG AdjustmentType, BSTR Description, CURRENCY Amount, LONG VatInfo)
  195. {
  196. LONG result = 0;
  197. // BUGBUG FINISH
  198. return result;
  199. }
  200. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecMessage(BSTR Message)
  201. {
  202. LONG result = 0;
  203. // BUGBUG FINISH
  204. return result;
  205. }
  206. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecNotPaid(BSTR Description, CURRENCY Amount)
  207. {
  208. LONG result = 0;
  209. // BUGBUG FINISH
  210. return result;
  211. }
  212. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecRefund(BSTR Description, CURRENCY Amount, LONG VatInfo)
  213. {
  214. LONG result = 0;
  215. // BUGBUG FINISH
  216. return result;
  217. }
  218. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecSubtotal(CURRENCY Amount)
  219. {
  220. LONG result = 0;
  221. // BUGBUG FINISH
  222. return result;
  223. }
  224. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecSubtotalAdjustment(LONG AdjustmentType, BSTR Description, CURRENCY Amount)
  225. {
  226. LONG result = 0;
  227. // BUGBUG FINISH
  228. return result;
  229. }
  230. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecTotal(CURRENCY Total, CURRENCY Payment, BSTR Description)
  231. {
  232. LONG result = 0;
  233. // BUGBUG FINISH
  234. return result;
  235. }
  236. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecVoid(BSTR Description)
  237. {
  238. LONG result = 0;
  239. // BUGBUG FINISH
  240. return result;
  241. }
  242. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintRecVoidItem(BSTR Description, CURRENCY Amount, LONG Quantity, LONG AdjustmentType, CURRENCY Adjustment, LONG VatInfo)
  243. {
  244. LONG result = 0;
  245. // BUGBUG FINISH
  246. return result;
  247. }
  248. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintReport(LONG ReportType, BSTR StartNum, BSTR EndNum)
  249. {
  250. LONG result = 0;
  251. // BUGBUG FINISH
  252. return result;
  253. }
  254. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintXReport()
  255. {
  256. LONG result = 0;
  257. // BUGBUG FINISH
  258. return result;
  259. }
  260. STDMETHODIMP_(LONG) COPOSFiscalPrinter::PrintZReport()
  261. {
  262. LONG result = 0;
  263. // BUGBUG FINISH
  264. return result;
  265. }
  266. STDMETHODIMP_(LONG) COPOSFiscalPrinter::ResetPrinter()
  267. {
  268. LONG result = 0;
  269. // BUGBUG FINISH
  270. return result;
  271. }
  272. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetDate(BSTR Date)
  273. {
  274. LONG result = 0;
  275. // BUGBUG FINISH
  276. return result;
  277. }
  278. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetHeaderLine(LONG LineNumber, BSTR Text, BOOL DoubleWidth)
  279. {
  280. LONG result = 0;
  281. // BUGBUG FINISH
  282. return result;
  283. }
  284. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetPOSID(BSTR POSID, BSTR CashierID)
  285. {
  286. LONG result = 0;
  287. // BUGBUG FINISH
  288. return result;
  289. }
  290. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetStoreFiscalID(BSTR ID)
  291. {
  292. LONG result = 0;
  293. // BUGBUG FINISH
  294. return result;
  295. }
  296. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetTrailerLine(LONG LineNumber, BSTR Text, BOOL DoubleWidth)
  297. {
  298. LONG result = 0;
  299. // BUGBUG FINISH
  300. return result;
  301. }
  302. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetVatTable()
  303. {
  304. LONG result = 0;
  305. // BUGBUG FINISH
  306. return result;
  307. }
  308. STDMETHODIMP_(LONG) COPOSFiscalPrinter::SetVatValue(LONG VatID, BSTR VatValue)
  309. {
  310. LONG result = 0;
  311. // BUGBUG FINISH
  312. return result;
  313. }
  314. STDMETHODIMP_(LONG) COPOSFiscalPrinter::VerifyItem(BSTR ItemName, LONG VatID)
  315. {
  316. LONG result = 0;
  317. // BUGBUG FINISH
  318. return result;
  319. }
  320. STDMETHODIMP_(void) COPOSFiscalPrinter::ErrorEvent(LONG ResultCode, LONG ResultCodeExtended, LONG ErrorLocus, LONG* pErrorResponse)
  321. {
  322. // BUGBUG FINISH
  323. }
  324. STDMETHODIMP_(void) COPOSFiscalPrinter::StatusUpdateEvent(LONG Data)
  325. {
  326. // BUGBUG FINISH
  327. }