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

Side by Side Diff: xfa/src/fxbarcode/src/include/BC_EncoderContext.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_ENCODERCONTEXT_H_
8 #define _BC_ENCODERCONTEXT_H_
9 class CBC_SymbolShapeHint;
10 class CBC_SymbolInfo;
11 class CBC_Dimension;
12 class CBC_EncoderContext;
13 class CBC_EncoderContext : public CBC_SymbolShapeHint
14 {
15 public:
16 CBC_EncoderContext(const CFX_WideString msg, CFX_WideString ecLevel, FX_INT3 2 &e);
17 virtual ~CBC_EncoderContext();
18 void setSymbolShape(SymbolShapeHint shape);
19 void setSizeConstraints(CBC_Dimension* minSize, CBC_Dimension* maxSize);
20 CFX_WideString getMessage();
21 void setSkipAtEnd(FX_INT32 count);
22 FX_WCHAR getCurrentChar();
23 FX_WCHAR getCurrent();
24 void writeCodewords(CFX_WideString codewords);
25 void writeCodeword(FX_WCHAR codeword);
26 FX_INT32 getCodewordCount();
27 void signalEncoderChange(FX_INT32 encoding);
28 void resetEncoderSignal();
29 FX_BOOL hasMoreCharacters();
30 FX_INT32 getRemainingCharacters();
31 void updateSymbolInfo(FX_INT32 &e);
32 void updateSymbolInfo(FX_INT32 len, FX_INT32 &e);
33 void resetSymbolInfo();
34 public:
35 CFX_WideString m_msg;
36 CFX_WideString m_codewords;
37 FX_INT32 m_pos;
38 FX_INT32 m_newEncoding;
39 CBC_SymbolInfo* m_symbolInfo;
40 private:
41 FX_INT32 getTotalMessageCharCount();
42 private:
43 SymbolShapeHint m_shape;
44 CBC_Dimension* m_minSize;
45 CBC_Dimension* m_maxSize;
46 FX_INT32 m_skipAtEnd;
47 };
48 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/src/include/BC_Encoder.h ('k') | xfa/src/fxbarcode/src/include/BC_ErrorCorrection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698