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 _BC_ONEDCODA128WRITER_H_ | |
8 #define _BC_ONEDCODA128WRITER_H_ | |
9 class CBC_OneDimWriter; | |
10 class CBC_OnedCoda128Writer; | |
11 class CBC_OnedCode128Writer : public CBC_OneDimWriter | |
12 { | |
13 public: | |
14 CBC_OnedCode128Writer(); | |
15 CBC_OnedCode128Writer(BC_TYPE type); | |
16 virtual ~CBC_OnedCode128Writer(); | |
17 FX_BYTE * Encode(const CFX_ByteString &con
tents, BCFORMAT format, | |
18 FX_INT32 &outWidth, FX_INT32 &outHeight,
FX_INT32 hints, FX_INT32 &e); | |
19 FX_BYTE * Encode(const CFX_ByteString &con
tents, BCFORMAT format, | |
20 FX_INT32 &outWidth, FX_INT32 &outHeight,
FX_INT32 &e); | |
21 FX_BYTE * Encode(const CFX_ByteString &con
tents, FX_INT32 &outLength , FX_INT32 &e); | |
22 FX_BOOL CheckContentValidity(FX_
WSTR contents); | |
23 CFX_WideString FilterContents(FX_WSTR contents)
; | |
24 FX_BOOL SetTextLocation(BC_TEXT_
LOC location); | |
25 BC_TYPE GetType(); | |
26 private: | |
27 FX_BOOL IsDigits(const CFX_ByteString &contents, FX_INT32 start, FX_INT32 le
ngth); | |
28 FX_INT32 Encode128B(const CFX_ByteString &contents, CFX_PtrArray &patterns); | |
29 FX_INT32 Encode128C(const CFX_ByteString &contents, CFX_PtrArray &patterns); | |
30 BC_TYPE m_codeFormat; | |
31 const static FX_INT32 CODE_START_B; | |
32 const static FX_INT32 CODE_START_C; | |
33 const static FX_INT32 CODE_CODE_B; | |
34 const static FX_INT32 CODE_CODE_C; | |
35 const static FX_INT32 CODE_STOP; | |
36 }; | |
37 #endif | |
OLD | NEW |