Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: xfa/src/fxbarcode/src/include/BC_OnedCode128Writer.h

Issue 842043002: Organize barcode codes into modules. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/src/include/BC_OnedCode128Reader.h ('k') | xfa/src/fxbarcode/src/include/BC_OnedCode39Reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698