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/lightwidget/cfwl_barcode.h" | 7 #include "xfa/fwl/lightwidget/cfwl_barcode.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 if (!m_pIface) | 37 if (!m_pIface) |
38 return; | 38 return; |
39 static_cast<IFWL_Barcode*>(m_pIface)->SetType(type); | 39 static_cast<IFWL_Barcode*>(m_pIface)->SetType(type); |
40 } | 40 } |
41 | 41 |
42 FX_BOOL CFWL_Barcode::IsProtectedType() { | 42 FX_BOOL CFWL_Barcode::IsProtectedType() { |
43 if (!m_pIface) | 43 if (!m_pIface) |
44 return 0; | 44 return 0; |
45 return static_cast<IFWL_Barcode*>(m_pIface)->IsProtectedType(); | 45 return static_cast<IFWL_Barcode*>(m_pIface)->IsProtectedType(); |
46 } | 46 } |
| 47 |
| 48 CFWL_Barcode::CFWL_BarcodeDP::CFWL_BarcodeDP() |
| 49 : m_dwAttributeMask(FWL_BCDATTRIBUTE_NONE) {} |
| 50 |
47 FWL_Error CFWL_Barcode::CFWL_BarcodeDP::GetCaption(IFWL_Widget* pWidget, | 51 FWL_Error CFWL_Barcode::CFWL_BarcodeDP::GetCaption(IFWL_Widget* pWidget, |
48 CFX_WideString& wsCaption) { | 52 CFX_WideString& wsCaption) { |
49 return FWL_Error::Succeeded; | 53 return FWL_Error::Succeeded; |
50 } | 54 } |
| 55 |
| 56 BC_CHAR_ENCODING CFWL_Barcode::CFWL_BarcodeDP::GetCharEncoding() { |
| 57 return m_eCharEncoding; |
| 58 } |
| 59 |
| 60 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetModuleHeight() { |
| 61 return m_nModuleHeight; |
| 62 } |
| 63 |
| 64 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetModuleWidth() { |
| 65 return m_nModuleWidth; |
| 66 } |
| 67 |
| 68 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetDataLength() { |
| 69 return m_nDataLength; |
| 70 } |
| 71 |
| 72 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetCalChecksum() { |
| 73 return m_nCalChecksum; |
| 74 } |
| 75 |
| 76 FX_BOOL CFWL_Barcode::CFWL_BarcodeDP::GetPrintChecksum() { |
| 77 return m_bPrintChecksum; |
| 78 } |
| 79 |
| 80 BC_TEXT_LOC CFWL_Barcode::CFWL_BarcodeDP::GetTextLocation() { |
| 81 return m_eTextLocation; |
| 82 } |
| 83 |
| 84 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetWideNarrowRatio() { |
| 85 return m_nWideNarrowRatio; |
| 86 } |
| 87 |
| 88 FX_CHAR CFWL_Barcode::CFWL_BarcodeDP::GetStartChar() { |
| 89 return m_cStartChar; |
| 90 } |
| 91 |
| 92 FX_CHAR CFWL_Barcode::CFWL_BarcodeDP::GetEndChar() { |
| 93 return m_cEndChar; |
| 94 } |
| 95 |
| 96 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetVersion() { |
| 97 return m_nVersion; |
| 98 } |
| 99 |
| 100 int32_t CFWL_Barcode::CFWL_BarcodeDP::GetErrorCorrectionLevel() { |
| 101 return m_nECLevel; |
| 102 } |
| 103 |
| 104 FX_BOOL CFWL_Barcode::CFWL_BarcodeDP::GetTruncated() { |
| 105 return m_bTruncated; |
| 106 } |
| 107 |
| 108 uint32_t CFWL_Barcode::CFWL_BarcodeDP::GetBarcodeAttributeMask() { |
| 109 return m_dwAttributeMask; |
| 110 } |
OLD | NEW |