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

Side by Side Diff: xfa/src/fxbarcode/oned/BC_OnedCodaBarWriter.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARWRITER_H_
8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARWRITER_H_
9
10 enum BC_TEXT_LOC;
11 class CBC_OneDimWriter;
12 class CBC_OnedCodaBarWriter;
13 class CBC_OnedCodaBarWriter : public CBC_OneDimWriter {
14 public:
15 CBC_OnedCodaBarWriter();
16 virtual ~CBC_OnedCodaBarWriter();
17 uint8_t* Encode(const CFX_ByteString& contents,
18 int32_t& outLength,
19 int32_t& e);
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 CFX_WideString encodedContents(const CFX_WideStringC& contents);
32 FX_BOOL CheckContentValidity(const CFX_WideStringC& contents);
33 CFX_WideString FilterContents(const CFX_WideStringC& contents);
34 FX_BOOL SetStartChar(FX_CHAR start);
35 FX_BOOL SetEndChar(FX_CHAR end);
36 void SetDataLength(int32_t length);
37 FX_BOOL SetTextLocation(BC_TEXT_LOC location);
38 FX_BOOL SetWideNarrowRatio(int32_t ratio);
39 FX_BOOL FindChar(FX_WCHAR ch, FX_BOOL isContent);
40
41 private:
42 void RenderResult(const CFX_WideStringC& contents,
43 uint8_t* code,
44 int32_t codeLength,
45 FX_BOOL isDevice,
46 int32_t& e);
47 static const FX_CHAR START_END_CHARS[];
48 static const FX_CHAR CONTENT_CHARS[];
49 FX_CHAR m_chStart;
50 FX_CHAR m_chEnd;
51 int32_t m_iWideNarrRatio;
52 };
53
54 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARWRITER_H_
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/oned/BC_OnedCodaBarReader.cpp ('k') | xfa/src/fxbarcode/oned/BC_OnedCodaBarWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698