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

Side by Side Diff: xfa/fxbarcode/oned/BC_OneDimWriter.h

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « xfa/fxbarcode/datamatrix/BC_SymbolInfo.cpp ('k') | xfa/fxbarcode/oned/BC_OneDimWriter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 XFA_FXBARCODE_ONED_BC_ONEDIMWRITER_H_ 7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDIMWRITER_H_
8 #define XFA_FXBARCODE_ONED_BC_ONEDIMWRITER_H_ 8 #define XFA_FXBARCODE_ONED_BC_ONEDIMWRITER_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 int32_t& outHeight, 33 int32_t& outHeight,
34 int32_t hints, 34 int32_t hints,
35 int32_t& e); 35 int32_t& e);
36 virtual uint8_t* Encode(const CFX_ByteString& contents, 36 virtual uint8_t* Encode(const CFX_ByteString& contents,
37 int32_t& outLength, 37 int32_t& outLength,
38 int32_t& e); 38 int32_t& e);
39 39
40 virtual void RenderResult(const CFX_WideStringC& contents, 40 virtual void RenderResult(const CFX_WideStringC& contents,
41 uint8_t* code, 41 uint8_t* code,
42 int32_t codeLength, 42 int32_t codeLength,
43 FX_BOOL isDevice, 43 bool isDevice,
44 int32_t& e); 44 int32_t& e);
45 virtual void RenderBitmapResult(CFX_DIBitmap*& pOutBitmap, 45 virtual void RenderBitmapResult(CFX_DIBitmap*& pOutBitmap,
46 const CFX_WideStringC& contents, 46 const CFX_WideStringC& contents,
47 int32_t& e); 47 int32_t& e);
48 virtual void RenderDeviceResult(CFX_RenderDevice* device, 48 virtual void RenderDeviceResult(CFX_RenderDevice* device,
49 const CFX_Matrix* matrix, 49 const CFX_Matrix* matrix,
50 const CFX_WideStringC& contents, 50 const CFX_WideStringC& contents,
51 int32_t& e); 51 int32_t& e);
52 virtual FX_BOOL CheckContentValidity(const CFX_WideStringC& contents); 52 virtual bool CheckContentValidity(const CFX_WideStringC& contents);
53 virtual CFX_WideString FilterContents(const CFX_WideStringC& contents); 53 virtual CFX_WideString FilterContents(const CFX_WideStringC& contents);
54 virtual CFX_WideString RenderTextContents(const CFX_WideStringC& contents); 54 virtual CFX_WideString RenderTextContents(const CFX_WideStringC& contents);
55 virtual void SetPrintChecksum(FX_BOOL checksum); 55 virtual void SetPrintChecksum(bool checksum);
56 virtual void SetDataLength(int32_t length); 56 virtual void SetDataLength(int32_t length);
57 virtual void SetCalcChecksum(FX_BOOL state); 57 virtual void SetCalcChecksum(bool state);
58 virtual void SetFontSize(FX_FLOAT size); 58 virtual void SetFontSize(FX_FLOAT size);
59 virtual void SetFontStyle(int32_t style); 59 virtual void SetFontStyle(int32_t style);
60 virtual void SetFontColor(FX_ARGB color); 60 virtual void SetFontColor(FX_ARGB color);
61 FX_BOOL SetFont(CFX_Font* cFont); 61 bool SetFont(CFX_Font* cFont);
62 62
63 protected: 63 protected:
64 virtual void CalcTextInfo(const CFX_ByteString& text, 64 virtual void CalcTextInfo(const CFX_ByteString& text,
65 FXTEXT_CHARPOS* charPos, 65 FXTEXT_CHARPOS* charPos,
66 CFX_Font* cFont, 66 CFX_Font* cFont,
67 FX_FLOAT geWidth, 67 FX_FLOAT geWidth,
68 int32_t fontSize, 68 int32_t fontSize,
69 FX_FLOAT& charsLen); 69 FX_FLOAT& charsLen);
70 virtual void ShowChars(const CFX_WideStringC& contents, 70 virtual void ShowChars(const CFX_WideStringC& contents,
71 CFX_DIBitmap* pOutBitmap, 71 CFX_DIBitmap* pOutBitmap,
(...skipping 19 matching lines...) Expand all
91 int32_t barWidth); 91 int32_t barWidth);
92 virtual int32_t AppendPattern(uint8_t* target, 92 virtual int32_t AppendPattern(uint8_t* target,
93 int32_t pos, 93 int32_t pos,
94 const int32_t* pattern, 94 const int32_t* pattern,
95 int32_t patternLength, 95 int32_t patternLength,
96 int32_t startColor, 96 int32_t startColor,
97 int32_t& e); 97 int32_t& e);
98 98
99 FX_WCHAR Upper(FX_WCHAR ch); 99 FX_WCHAR Upper(FX_WCHAR ch);
100 100
101 FX_BOOL m_bPrintChecksum; 101 bool m_bPrintChecksum;
102 int32_t m_iDataLenth; 102 int32_t m_iDataLenth;
103 FX_BOOL m_bCalcChecksum; 103 bool m_bCalcChecksum;
104 CFX_Font* m_pFont; 104 CFX_Font* m_pFont;
105 FX_FLOAT m_fFontSize; 105 FX_FLOAT m_fFontSize;
106 int32_t m_iFontStyle; 106 int32_t m_iFontStyle;
107 uint32_t m_fontColor; 107 uint32_t m_fontColor;
108 BC_TEXT_LOC m_locTextLoc; 108 BC_TEXT_LOC m_locTextLoc;
109 int32_t m_iContentLen; 109 int32_t m_iContentLen;
110 FX_BOOL m_bLeftPadding; 110 bool m_bLeftPadding;
111 FX_BOOL m_bRightPadding; 111 bool m_bRightPadding;
112 std::unique_ptr<CBC_CommonBitMatrix> m_output; 112 std::unique_ptr<CBC_CommonBitMatrix> m_output;
113 int32_t m_barWidth; 113 int32_t m_barWidth;
114 int32_t m_multiple; 114 int32_t m_multiple;
115 FX_FLOAT m_outputHScale; 115 FX_FLOAT m_outputHScale;
116 }; 116 };
117 117
118 #endif // XFA_FXBARCODE_ONED_BC_ONEDIMWRITER_H_ 118 #endif // XFA_FXBARCODE_ONED_BC_ONEDIMWRITER_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/datamatrix/BC_SymbolInfo.cpp ('k') | xfa/fxbarcode/oned/BC_OneDimWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698