OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXFA_APP_XFA_FFBARCODE_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFBARCODE_H_ |
8 #define XFA_FXFA_APP_XFA_FFBARCODE_H_ | 8 #define XFA_FXFA_APP_XFA_FFBARCODE_H_ |
9 | 9 |
10 #include "xfa/fxbarcode/include/BC_Library.h" | 10 #include "xfa/fxbarcode/include/BC_Library.h" |
11 #include "xfa/fxfa/app/xfa_ffpageview.h" | 11 #include "xfa/fxfa/app/xfa_ffpageview.h" |
12 #include "xfa/fxfa/app/xfa_fftextedit.h" | 12 #include "xfa/fxfa/app/xfa_fftextedit.h" |
13 | 13 |
14 class CXFA_FFBarcode : public CXFA_FFTextEdit { | 14 class CXFA_FFBarcode : public CXFA_FFTextEdit { |
15 public: | 15 public: |
16 CXFA_FFBarcode(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 16 CXFA_FFBarcode(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
17 virtual ~CXFA_FFBarcode(); | 17 virtual ~CXFA_FFBarcode(); |
18 virtual FX_BOOL LoadWidget(); | 18 virtual FX_BOOL LoadWidget(); |
19 virtual void RenderWidget(CFX_Graphics* pGS, | 19 virtual void RenderWidget(CFX_Graphics* pGS, |
20 CFX_Matrix* pMatrix = NULL, | 20 CFX_Matrix* pMatrix = NULL, |
21 FX_DWORD dwStatus = 0, | 21 uint32_t dwStatus = 0, |
22 int32_t iRotate = 0); | 22 int32_t iRotate = 0); |
23 virtual void UpdateWidgetProperty(); | 23 virtual void UpdateWidgetProperty(); |
24 virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 24 virtual FX_BOOL OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
25 virtual FX_BOOL OnRButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 25 virtual FX_BOOL OnRButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
26 }; | 26 }; |
27 | 27 |
28 enum XFA_BARCODETYPEENUM { | 28 enum XFA_BARCODETYPEENUM { |
29 XFA_BARCODETYPE_aztec, | 29 XFA_BARCODETYPE_aztec, |
30 XFA_BARCODETYPE_codabar, | 30 XFA_BARCODETYPE_codabar, |
31 XFA_BARCODETYPE_code11, | 31 XFA_BARCODETYPE_code11, |
32 XFA_BARCODETYPE_code128, | 32 XFA_BARCODETYPE_code128, |
33 XFA_BARCODETYPE_code128A, | 33 XFA_BARCODETYPE_code128A, |
34 XFA_BARCODETYPE_code128B, | 34 XFA_BARCODETYPE_code128B, |
35 XFA_BARCODETYPE_code128C, | 35 XFA_BARCODETYPE_code128C, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 }; | 91 }; |
92 struct XFA_BARCODETYPEENUMINFO { | 92 struct XFA_BARCODETYPEENUMINFO { |
93 uint32_t uHash; | 93 uint32_t uHash; |
94 const FX_WCHAR* pName; | 94 const FX_WCHAR* pName; |
95 XFA_BARCODETYPEENUM eName; | 95 XFA_BARCODETYPEENUM eName; |
96 BC_TYPE eBCType; | 96 BC_TYPE eBCType; |
97 }; | 97 }; |
98 typedef XFA_BARCODETYPEENUMINFO const* XFA_LPCBARCODETYPEENUMINFO; | 98 typedef XFA_BARCODETYPEENUMINFO const* XFA_LPCBARCODETYPEENUMINFO; |
99 | 99 |
100 #endif // XFA_FXFA_APP_XFA_FFBARCODE_H_ | 100 #endif // XFA_FXFA_APP_XFA_FFBARCODE_H_ |
OLD | NEW |