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 "xfa/fwl/core/cfwl_edit.h" | 10 #include "xfa/fwl/core/cfwl_edit.h" |
11 #include "xfa/fwl/core/fwl_error.h" | 11 #include "xfa/fwl/core/fwl_error.h" |
12 #include "xfa/fwl/core/ifwl_barcode.h" | 12 #include "xfa/fwl/core/ifwl_barcode.h" |
13 | 13 |
14 class CFWL_Barcode : public CFWL_Edit, public IFWL_Barcode::DataProvider { | 14 class CFWL_Barcode : public CFWL_Edit, public IFWL_Barcode::DataProvider { |
15 public: | 15 public: |
16 explicit CFWL_Barcode(const IFWL_App* pApp); | 16 explicit CFWL_Barcode(const IFWL_App* pApp); |
17 ~CFWL_Barcode() override; | 17 ~CFWL_Barcode() override; |
18 | 18 |
19 void Initialize(); | 19 void Initialize(); |
20 | 20 |
21 // IFWL_Widget::DataProvider | |
22 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override; | |
23 | |
24 // IFWL_Barcode::DataProvider | 21 // IFWL_Barcode::DataProvider |
25 BC_CHAR_ENCODING GetCharEncoding() const override; | 22 BC_CHAR_ENCODING GetCharEncoding() const override; |
26 int32_t GetModuleHeight() const override; | 23 int32_t GetModuleHeight() const override; |
27 int32_t GetModuleWidth() const override; | 24 int32_t GetModuleWidth() const override; |
28 int32_t GetDataLength() const override; | 25 int32_t GetDataLength() const override; |
29 bool GetCalChecksum() const override; | 26 bool GetCalChecksum() const override; |
30 bool GetPrintChecksum() const override; | 27 bool GetPrintChecksum() const override; |
31 BC_TEXT_LOC GetTextLocation() const override; | 28 BC_TEXT_LOC GetTextLocation() const override; |
32 int32_t GetWideNarrowRatio() const override; | 29 int32_t GetWideNarrowRatio() const override; |
33 FX_CHAR GetStartChar() const override; | 30 FX_CHAR GetStartChar() const override; |
(...skipping 29 matching lines...) Expand all Loading... |
63 BC_TEXT_LOC m_eTextLocation; | 60 BC_TEXT_LOC m_eTextLocation; |
64 int32_t m_nWideNarrowRatio; | 61 int32_t m_nWideNarrowRatio; |
65 FX_CHAR m_cStartChar; | 62 FX_CHAR m_cStartChar; |
66 FX_CHAR m_cEndChar; | 63 FX_CHAR m_cEndChar; |
67 int32_t m_nECLevel; | 64 int32_t m_nECLevel; |
68 bool m_bTruncated; | 65 bool m_bTruncated; |
69 uint32_t m_dwAttributeMask; | 66 uint32_t m_dwAttributeMask; |
70 }; | 67 }; |
71 | 68 |
72 #endif // XFA_FWL_CORE_CFWL_BARCODE_H_ | 69 #endif // XFA_FWL_CORE_CFWL_BARCODE_H_ |
OLD | NEW |