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