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_FWL_BASEWIDGET_IFWL_BARCODE_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ |
9 | 9 |
10 #include "xfa/fxbarcode/include/BC_Library.h" | 10 #include "xfa/fxbarcode/include/BC_Library.h" |
11 #include "xfa/fwl/basewidget/ifwl_edit.h" | 11 #include "xfa/fwl/basewidget/ifwl_edit.h" |
12 | 12 |
13 class CFWL_WidgetImpProperties; | 13 class CFWL_WidgetImpProperties; |
14 | 14 |
15 #define FWL_CLASS_Barcode L"FWL_BARCODE" | 15 #define FWL_CLASS_Barcode L"FWL_BARCODE" |
16 #define FWL_CLASSHASH_Barcode 366886968 | |
17 | 16 |
18 enum FWL_BCDAttribute { | 17 enum FWL_BCDAttribute { |
19 FWL_BCDATTRIBUTE_NONE = 0, | 18 FWL_BCDATTRIBUTE_NONE = 0, |
20 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0, | 19 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0, |
21 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1, | 20 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1, |
22 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2, | 21 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2, |
23 FWL_BCDATTRIBUTE_DATALENGTH = 1 << 3, | 22 FWL_BCDATTRIBUTE_DATALENGTH = 1 << 3, |
24 FWL_BCDATTRIBUTE_CALCHECKSUM = 1 << 4, | 23 FWL_BCDATTRIBUTE_CALCHECKSUM = 1 << 4, |
25 FWL_BCDATTRIBUTE_PRINTCHECKSUM = 1 << 5, | 24 FWL_BCDATTRIBUTE_PRINTCHECKSUM = 1 << 5, |
26 FWL_BCDATTRIBUTE_TEXTLOCATION = 1 << 6, | 25 FWL_BCDATTRIBUTE_TEXTLOCATION = 1 << 6, |
(...skipping 27 matching lines...) Expand all Loading... |
54 public: | 53 public: |
55 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); | 54 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); |
56 void SetType(BC_TYPE type); | 55 void SetType(BC_TYPE type); |
57 FX_BOOL IsProtectedType(); | 56 FX_BOOL IsProtectedType(); |
58 | 57 |
59 protected: | 58 protected: |
60 IFWL_Barcode(); | 59 IFWL_Barcode(); |
61 }; | 60 }; |
62 | 61 |
63 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ | 62 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ |
OLD | NEW |