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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _BC_ONEDCODA128WRITER_H_ 7 #ifndef _BC_ONEDCODA128WRITER_H_
8 #define _BC_ONEDCODA128WRITER_H_ 8 #define _BC_ONEDCODA128WRITER_H_
9 class CBC_OneDimWriter; 9 class CBC_OneDimWriter;
10 class CBC_OnedCoda128Writer; 10 class CBC_OnedCoda128Writer;
11 class CBC_OnedCode128Writer : public CBC_OneDimWriter 11 class CBC_OnedCode128Writer : public CBC_OneDimWriter
12 { 12 {
13 public: 13 public:
14 CBC_OnedCode128Writer(); 14 CBC_OnedCode128Writer();
15 CBC_OnedCode128Writer(BC_TYPE type); 15 CBC_OnedCode128Writer(BC_TYPE type);
16 virtual ~CBC_OnedCode128Writer(); 16 virtual ~CBC_OnedCode128Writer();
17 FX_BYTE *» » » » » Encode(const CFX_ByteString &con tents, BCFORMAT format, 17 uint8_t *» » » » » Encode(const CFX_ByteString &con tents, BCFORMAT format,
18 FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 hints, FX_INT32 &e); 18 int32_t &outWidth, int32_t &outHeight, in t32_t hints, int32_t &e);
19 FX_BYTE *» » » » » Encode(const CFX_ByteString &con tents, BCFORMAT format, 19 uint8_t *» » » » » Encode(const CFX_ByteString &con tents, BCFORMAT format,
20 FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e); 20 int32_t &outWidth, int32_t &outHeight, in t32_t &e);
21 FX_BYTE *» » » » » Encode(const CFX_ByteString &con tents, FX_INT32 &outLength , FX_INT32 &e); 21 uint8_t *» » » » » Encode(const CFX_ByteString &con tents, int32_t &outLength , int32_t &e);
22 FX_BOOL CheckContentValidity(FX_ WSTR contents); 22 FX_BOOL CheckContentValidity(FX_ WSTR contents);
23 CFX_WideString FilterContents(FX_WSTR contents) ; 23 CFX_WideString FilterContents(FX_WSTR contents) ;
24 FX_BOOL SetTextLocation(BC_TEXT_ LOC location); 24 FX_BOOL SetTextLocation(BC_TEXT_ LOC location);
25 BC_TYPE GetType(); 25 BC_TYPE GetType();
26 private: 26 private:
27 FX_BOOL IsDigits(const CFX_ByteString &contents, FX_INT32 start, FX_INT32 le ngth); 27 FX_BOOL IsDigits(const CFX_ByteString &contents, int32_t start, int32_t leng th);
28 FX_INT32 Encode128B(const CFX_ByteString &contents, CFX_PtrArray &patterns); 28 int32_t Encode128B(const CFX_ByteString &contents, CFX_PtrArray &patterns);
29 FX_INT32 Encode128C(const CFX_ByteString &contents, CFX_PtrArray &patterns); 29 int32_t Encode128C(const CFX_ByteString &contents, CFX_PtrArray &patterns);
30 BC_TYPE m_codeFormat; 30 BC_TYPE m_codeFormat;
31 const static» FX_INT32» CODE_START_B; 31 const static» int32_t»CODE_START_B;
32 const static» FX_INT32» CODE_START_C; 32 const static» int32_t»CODE_START_C;
33 const static» FX_INT32» CODE_CODE_B; 33 const static» int32_t»CODE_CODE_B;
34 const static» FX_INT32» CODE_CODE_C; 34 const static» int32_t»CODE_CODE_C;
35 const static» FX_INT32» CODE_STOP; 35 const static» int32_t»CODE_STOP;
36 }; 36 };
37 #endif 37 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/oned/BC_OnedCode128Reader.cpp ('k') | xfa/src/fxbarcode/oned/BC_OnedCode128Writer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698