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 #include "xfa/fwl/core/cfwl_barcode.h" | 7 #include "xfa/fwl/core/cfwl_barcode.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 void CFWL_Barcode::SetType(BC_TYPE type) { | 96 void CFWL_Barcode::SetType(BC_TYPE type) { |
97 if (GetWidget()) | 97 if (GetWidget()) |
98 ToBarcode(GetWidget())->SetType(type); | 98 ToBarcode(GetWidget())->SetType(type); |
99 } | 99 } |
100 | 100 |
101 bool CFWL_Barcode::IsProtectedType() { | 101 bool CFWL_Barcode::IsProtectedType() { |
102 return GetWidget() ? ToBarcode(GetWidget())->IsProtectedType() : false; | 102 return GetWidget() ? ToBarcode(GetWidget())->IsProtectedType() : false; |
103 } | 103 } |
104 | 104 |
105 void CFWL_Barcode::GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) { | |
106 } | |
107 | |
108 BC_CHAR_ENCODING CFWL_Barcode::GetCharEncoding() const { | 105 BC_CHAR_ENCODING CFWL_Barcode::GetCharEncoding() const { |
109 return m_eCharEncoding; | 106 return m_eCharEncoding; |
110 } | 107 } |
111 | 108 |
112 int32_t CFWL_Barcode::GetModuleHeight() const { | 109 int32_t CFWL_Barcode::GetModuleHeight() const { |
113 return m_nModuleHeight; | 110 return m_nModuleHeight; |
114 } | 111 } |
115 | 112 |
116 int32_t CFWL_Barcode::GetModuleWidth() const { | 113 int32_t CFWL_Barcode::GetModuleWidth() const { |
117 return m_nModuleWidth; | 114 return m_nModuleWidth; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 return m_nECLevel; | 150 return m_nECLevel; |
154 } | 151 } |
155 | 152 |
156 bool CFWL_Barcode::GetTruncated() const { | 153 bool CFWL_Barcode::GetTruncated() const { |
157 return m_bTruncated; | 154 return m_bTruncated; |
158 } | 155 } |
159 | 156 |
160 uint32_t CFWL_Barcode::GetBarcodeAttributeMask() const { | 157 uint32_t CFWL_Barcode::GetBarcodeAttributeMask() const { |
161 return m_dwAttributeMask; | 158 return m_dwAttributeMask; |
162 } | 159 } |
OLD | NEW |