| 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_CORE_CFWL_BARCODE_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_BARCODE_H_ |
| 8 #define XFA_FWL_CORE_CFWL_BARCODE_H_ | 8 #define XFA_FWL_CORE_CFWL_BARCODE_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 class CFWL_Barcode : public CFWL_Edit { | 41 class CFWL_Barcode : public CFWL_Edit { |
| 42 public: | 42 public: |
| 43 explicit CFWL_Barcode(const CFWL_App* pApp); | 43 explicit CFWL_Barcode(const CFWL_App* pApp); |
| 44 ~CFWL_Barcode() override; | 44 ~CFWL_Barcode() override; |
| 45 | 45 |
| 46 // CFWL_Widget | 46 // CFWL_Widget |
| 47 FWL_Type GetClassID() const override; | 47 FWL_Type GetClassID() const override; |
| 48 void Update() override; | 48 void Update() override; |
| 49 void DrawWidget(CFX_Graphics* pGraphics, | 49 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
| 50 const CFX_Matrix* pMatrix = nullptr) override; | |
| 51 void OnProcessEvent(CFWL_Event* pEvent) override; | 50 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 52 | 51 |
| 53 // CFWL_Edit | 52 // CFWL_Edit |
| 54 void SetText(const CFX_WideString& wsText) override; | 53 void SetText(const CFX_WideString& wsText) override; |
| 55 | 54 |
| 56 void SetType(BC_TYPE type); | 55 void SetType(BC_TYPE type); |
| 57 bool IsProtectedType() const; | 56 bool IsProtectedType() const; |
| 58 | 57 |
| 59 void SetCharEncoding(BC_CHAR_ENCODING encoding); | 58 void SetCharEncoding(BC_CHAR_ENCODING encoding); |
| 60 void SetModuleHeight(int32_t height); | 59 void SetModuleHeight(int32_t height); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 85 BC_TEXT_LOC m_eTextLocation; | 84 BC_TEXT_LOC m_eTextLocation; |
| 86 int32_t m_nWideNarrowRatio; | 85 int32_t m_nWideNarrowRatio; |
| 87 FX_CHAR m_cStartChar; | 86 FX_CHAR m_cStartChar; |
| 88 FX_CHAR m_cEndChar; | 87 FX_CHAR m_cEndChar; |
| 89 int32_t m_nECLevel; | 88 int32_t m_nECLevel; |
| 90 bool m_bTruncated; | 89 bool m_bTruncated; |
| 91 uint32_t m_dwAttributeMask; | 90 uint32_t m_dwAttributeMask; |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 #endif // XFA_FWL_CORE_CFWL_BARCODE_H_ | 93 #endif // XFA_FWL_CORE_CFWL_BARCODE_H_ |
| OLD | NEW |