OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDEAN13WRITER_H_ | |
8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDEAN13WRITER_H_ | |
9 | |
10 class CBC_OneDimWriter; | |
11 class CBC_OnedEAN13Writer; | |
12 class CBC_OnedEAN13Writer : public CBC_OneDimWriter { | |
13 private: | |
14 int32_t m_codeWidth; | |
15 | |
16 public: | |
17 CBC_OnedEAN13Writer(); | |
18 virtual ~CBC_OnedEAN13Writer(); | |
19 | |
20 uint8_t* Encode(const CFX_ByteString& contents, | |
21 BCFORMAT format, | |
22 int32_t& outWidth, | |
23 int32_t& outHeight, | |
24 int32_t& e); | |
25 uint8_t* Encode(const CFX_ByteString& contents, | |
26 BCFORMAT format, | |
27 int32_t& outWidth, | |
28 int32_t& outHeight, | |
29 int32_t hints, | |
30 int32_t& e); | |
31 uint8_t* Encode(const CFX_ByteString& contents, | |
32 int32_t& outLength, | |
33 int32_t& e); | |
34 void RenderResult(const CFX_WideStringC& contents, | |
35 uint8_t* code, | |
36 int32_t codeLength, | |
37 FX_BOOL isDevice, | |
38 int32_t& e); | |
39 FX_BOOL CheckContentValidity(const CFX_WideStringC& contents); | |
40 CFX_WideString FilterContents(const CFX_WideStringC& contents); | |
41 int32_t CalcChecksum(const CFX_ByteString& contents); | |
42 | |
43 protected: | |
44 void ShowChars(const CFX_WideStringC& contents, | |
45 CFX_DIBitmap* pOutBitmap, | |
46 CFX_RenderDevice* device, | |
47 const CFX_Matrix* matrix, | |
48 int32_t barWidth, | |
49 int32_t multiple, | |
50 int32_t& e); | |
51 }; | |
52 | |
53 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDEAN13WRITER_H_ | |
OLD | NEW |