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_INCLUDE_FWL_LIGHTWIDGET_BARCODE_H_ | 7 #ifndef XFA_INCLUDE_FWL_LIGHTWIDGET_BARCODE_H_ |
8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_BARCODE_H_ | 8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_BARCODE_H_ |
9 | 9 |
| 10 #include "xfa/include/fwl/basewidget/fwl_barcode.h" |
| 11 #include "xfa/include/fwl/core/fwl_error.h" |
10 #include "xfa/include/fwl/lightwidget/edit.h" | 12 #include "xfa/include/fwl/lightwidget/edit.h" |
| 13 #include "xfa/include/fxbarcode/BC_BarCode.h" |
11 | 14 |
12 class CFWL_Widget; | 15 class CFWL_Widget; |
13 class CFWL_WidgetProperties; | 16 class CFWL_WidgetProperties; |
14 class IFWL_BarcodeDP; | |
15 class CFWL_BarcodeDP; | |
16 | 17 |
17 class CFWL_Barcode : public CFWL_Edit { | 18 class CFWL_Barcode : public CFWL_Edit { |
18 public: | 19 public: |
19 static CFWL_Barcode* Create(); | 20 static CFWL_Barcode* Create(); |
20 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 21 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
21 void SetType(BC_TYPE type); | 22 void SetType(BC_TYPE type); |
22 FX_BOOL IsProtectedType(); | 23 FX_BOOL IsProtectedType(); |
23 | 24 |
24 public: | 25 public: |
25 void SetCharEncoding(BC_CHAR_ENCODING encoding) { | 26 void SetCharEncoding(BC_CHAR_ENCODING encoding) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 FX_DWORD m_dwAttributeMask; | 112 FX_DWORD m_dwAttributeMask; |
112 virtual FX_DWORD GetBarcodeAttributeMask() { return m_dwAttributeMask; } | 113 virtual FX_DWORD GetBarcodeAttributeMask() { return m_dwAttributeMask; } |
113 | 114 |
114 public: | 115 public: |
115 CFWL_BarcodeDP() : m_dwAttributeMask(0) {} | 116 CFWL_BarcodeDP() : m_dwAttributeMask(0) {} |
116 }; | 117 }; |
117 CFWL_BarcodeDP m_barcodeData; | 118 CFWL_BarcodeDP m_barcodeData; |
118 }; | 119 }; |
119 | 120 |
120 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_BARCODE_H_ | 121 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_BARCODE_H_ |
OLD | NEW |