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 _BC_ONEDCODA39WRITER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDCODA39WRITER_H_ |
8 #define _BC_ONEDCODA39WRITER_H_ | 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDCODA39WRITER_H_ |
| 9 |
9 enum BC_TEXT_LOC; | 10 enum BC_TEXT_LOC; |
10 class CBC_OneDimWriter; | 11 class CBC_OneDimWriter; |
11 class CBC_OnedCoda39Writer; | 12 class CBC_OnedCoda39Writer; |
12 class CBC_OnedCode39Writer : public CBC_OneDimWriter { | 13 class CBC_OnedCode39Writer : public CBC_OneDimWriter { |
13 public: | 14 public: |
14 CBC_OnedCode39Writer(); | 15 CBC_OnedCode39Writer(); |
15 CBC_OnedCode39Writer(FX_BOOL extendedMode); | 16 CBC_OnedCode39Writer(FX_BOOL extendedMode); |
16 virtual ~CBC_OnedCode39Writer(); | 17 virtual ~CBC_OnedCode39Writer(); |
17 uint8_t* Encode(const CFX_ByteString& contents, | 18 uint8_t* Encode(const CFX_ByteString& contents, |
18 BCFORMAT format, | 19 BCFORMAT format, |
(...skipping 23 matching lines...) Expand all Loading... |
42 CFX_WideString RenderExtendedTextContents(const CFX_WideStringC& contents); | 43 CFX_WideString RenderExtendedTextContents(const CFX_WideStringC& contents); |
43 FX_BOOL SetTextLocation(BC_TEXT_LOC loction); | 44 FX_BOOL SetTextLocation(BC_TEXT_LOC loction); |
44 FX_BOOL SetWideNarrowRatio(int32_t ratio); | 45 FX_BOOL SetWideNarrowRatio(int32_t ratio); |
45 | 46 |
46 private: | 47 private: |
47 void ToIntArray(int32_t a, int32_t* toReturn); | 48 void ToIntArray(int32_t a, int32_t* toReturn); |
48 FX_CHAR CalcCheckSum(const CFX_ByteString& contents, int32_t& e); | 49 FX_CHAR CalcCheckSum(const CFX_ByteString& contents, int32_t& e); |
49 int32_t m_iWideNarrRatio; | 50 int32_t m_iWideNarrRatio; |
50 FX_BOOL m_extendedMode; | 51 FX_BOOL m_extendedMode; |
51 }; | 52 }; |
52 #endif | 53 |
| 54 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDCODA39WRITER_H_ |
OLD | NEW |