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_FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_ | 7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_ |
8 #define XFA_FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_ | 8 #define XFA_FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 int32_t& outHeight, | 32 int32_t& outHeight, |
33 int32_t hints, | 33 int32_t hints, |
34 int32_t& e) override; | 34 int32_t& e) override; |
35 uint8_t* Encode(const CFX_ByteString& contents, | 35 uint8_t* Encode(const CFX_ByteString& contents, |
36 int32_t& outLength, | 36 int32_t& outLength, |
37 int32_t& e) override; | 37 int32_t& e) override; |
38 | 38 |
39 void RenderResult(const CFX_WideStringC& contents, | 39 void RenderResult(const CFX_WideStringC& contents, |
40 uint8_t* code, | 40 uint8_t* code, |
41 int32_t codeLength, | 41 int32_t codeLength, |
42 FX_BOOL isDevice, | 42 bool isDevice, |
43 int32_t& e) override; | 43 int32_t& e) override; |
44 FX_BOOL CheckContentValidity(const CFX_WideStringC& contents) override; | 44 bool CheckContentValidity(const CFX_WideStringC& contents) override; |
45 CFX_WideString FilterContents(const CFX_WideStringC& contents) override; | 45 CFX_WideString FilterContents(const CFX_WideStringC& contents) override; |
46 void SetDataLength(int32_t length) override; | 46 void SetDataLength(int32_t length) override; |
47 | 47 |
48 FX_BOOL SetTextLocation(BC_TEXT_LOC location); | 48 bool SetTextLocation(BC_TEXT_LOC location); |
49 int32_t CalcChecksum(const CFX_ByteString& contents); | 49 int32_t CalcChecksum(const CFX_ByteString& contents); |
50 | 50 |
51 protected: | 51 protected: |
52 void ShowChars(const CFX_WideStringC& contents, | 52 void ShowChars(const CFX_WideStringC& contents, |
53 CFX_DIBitmap* pOutBitmap, | 53 CFX_DIBitmap* pOutBitmap, |
54 CFX_RenderDevice* device, | 54 CFX_RenderDevice* device, |
55 const CFX_Matrix* matrix, | 55 const CFX_Matrix* matrix, |
56 int32_t barWidth, | 56 int32_t barWidth, |
57 int32_t multiple, | 57 int32_t multiple, |
58 int32_t& e) override; | 58 int32_t& e) override; |
59 | 59 |
60 private: | 60 private: |
61 int32_t m_codeWidth; | 61 int32_t m_codeWidth; |
62 }; | 62 }; |
63 | 63 |
64 #endif // XFA_FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_ | 64 #endif // XFA_FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_ |
OLD | NEW |