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

Side by Side Diff: core/fpdfdoc/cpvt_generateap.h

Issue 2196903002: Use bool instead of FX_BOOL as return values in CPVT_GenerateAP. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use bool instead of FX_BOOL as return values in CPVT_GenerateAP. Created 4 years, 4 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
« no previous file with comments | « no previous file | core/fpdfdoc/cpvt_generateap.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 CORE_FPDFDOC_CPVT_GENERATEAP_H_ 7 #ifndef CORE_FPDFDOC_CPVT_GENERATEAP_H_
8 #define CORE_FPDFDOC_CPVT_GENERATEAP_H_ 8 #define CORE_FPDFDOC_CPVT_GENERATEAP_H_
9 9
10 #include "core/fpdfdoc/cpvt_color.h" 10 #include "core/fpdfdoc/cpvt_color.h"
11 #include "core/fpdfdoc/cpvt_dash.h" 11 #include "core/fpdfdoc/cpvt_dash.h"
12 #include "core/fpdfdoc/include/cpdf_defaultappearance.h" 12 #include "core/fpdfdoc/include/cpdf_defaultappearance.h"
13 #include "core/fpdfdoc/include/cpdf_variabletext.h" 13 #include "core/fpdfdoc/include/cpdf_variabletext.h"
14 #include "core/fxcrt/include/fx_coordinates.h" 14 #include "core/fxcrt/include/fx_coordinates.h"
15 #include "core/fxcrt/include/fx_string.h" 15 #include "core/fxcrt/include/fx_string.h"
16 #include "core/fxcrt/include/fx_system.h" 16 #include "core/fxcrt/include/fx_system.h"
17 17
18 class CPDF_Dictionary; 18 class CPDF_Dictionary;
19 class CPDF_Document; 19 class CPDF_Document;
20 class IPVT_FontMap; 20 class IPVT_FontMap;
21 21
22 struct CPVT_WordRange; 22 struct CPVT_WordRange;
23 23
24 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); 24 bool FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
25 25
26 class CPVT_GenerateAP { 26 class CPVT_GenerateAP {
27 public: 27 public:
28 static FX_BOOL GenerateTextFieldAP(CPDF_Document* pDoc, 28 static bool GenerateComboBoxAP(CPDF_Document* pDoc,
29 CPDF_Dictionary* pAnnotDict); 29 CPDF_Dictionary* pAnnotDict);
30 static FX_BOOL GenerateComboBoxAP(CPDF_Document* pDoc, 30 static bool GenerateListBoxAP(CPDF_Document* pDoc,
31 CPDF_Dictionary* pAnnotDict); 31 CPDF_Dictionary* pAnnotDict);
32 static FX_BOOL GenerateListBoxAP(CPDF_Document* pDoc, 32 static bool GenerateTextFieldAP(CPDF_Document* pDoc,
33 CPDF_Dictionary* pAnnotDict); 33 CPDF_Dictionary* pAnnotDict);
34 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap, 34 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap,
35 CPDF_VariableText::Iterator* pIterator, 35 CPDF_VariableText::Iterator* pIterator,
36 const CFX_FloatPoint& ptOffset, 36 const CFX_FloatPoint& ptOffset,
37 FX_BOOL bContinuous, 37 FX_BOOL bContinuous,
38 uint16_t SubWord); 38 uint16_t SubWord);
39 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect, 39 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect,
40 FX_FLOAT fWidth, 40 FX_FLOAT fWidth,
41 const CPVT_Color& color, 41 const CPVT_Color& color,
42 const CPVT_Color& crLeftTop, 42 const CPVT_Color& crLeftTop,
43 const CPVT_Color& crRightBottom, 43 const CPVT_Color& crRightBottom,
44 BorderStyle nStyle, 44 BorderStyle nStyle,
45 const CPVT_Dash& dash); 45 const CPVT_Dash& dash);
46 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, 46 static CFX_ByteString GenerateColorAP(const CPVT_Color& color,
47 const FX_BOOL& bFillOrStroke); 47 const FX_BOOL& bFillOrStroke);
48 48
49 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, 49 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap,
50 int32_t nFontIndex, 50 int32_t nFontIndex,
51 uint16_t Word, 51 uint16_t Word,
52 uint16_t SubWord); 52 uint16_t SubWord);
53 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords); 53 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords);
54 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap, 54 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap,
55 int32_t nFontIndex, 55 int32_t nFontIndex,
56 FX_FLOAT fFontSize); 56 FX_FLOAT fFontSize);
57 }; 57 };
58 58
59 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_ 59 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_
OLDNEW
« no previous file with comments | « no previous file | core/fpdfdoc/cpvt_generateap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698