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/fwl/basewidget/ifwl_edit.h" | 10 #include "xfa/fwl/basewidget/ifwl_edit.h" |
11 #include "xfa/fxbarcode/include/BC_Library.h" | 11 #include "xfa/fxbarcode/BC_Library.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 | 16 |
17 enum FWL_BCDAttribute { | 17 enum FWL_BCDAttribute { |
18 FWL_BCDATTRIBUTE_NONE = 0, | 18 FWL_BCDATTRIBUTE_NONE = 0, |
19 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0, | 19 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0, |
20 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1, | 20 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1, |
21 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2, | 21 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 public: | 53 public: |
54 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); | 54 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); |
55 void SetType(BC_TYPE type); | 55 void SetType(BC_TYPE type); |
56 FX_BOOL IsProtectedType(); | 56 FX_BOOL IsProtectedType(); |
57 | 57 |
58 protected: | 58 protected: |
59 IFWL_Barcode(); | 59 IFWL_Barcode(); |
60 }; | 60 }; |
61 | 61 |
62 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ | 62 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ |
OLD | NEW |