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

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

Issue 1860063002: Remove core/include/fpdfdoc/fpdf_vt.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « core/fpdfdoc/cpvt_fontmap.cpp ('k') | 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_variabletext.h"
12 #include "core/fxcrt/include/fx_coordinates.h" 13 #include "core/fxcrt/include/fx_coordinates.h"
13 #include "core/fxcrt/include/fx_string.h" 14 #include "core/fxcrt/include/fx_string.h"
14 #include "core/fxcrt/include/fx_system.h" 15 #include "core/fxcrt/include/fx_system.h"
15 #include "core/include/fpdfdoc/fpdf_vt.h"
16 16
17 // border style 17 // border style
18 #define PBS_SOLID 0 18 #define PBS_SOLID 0
19 #define PBS_DASH 1 19 #define PBS_DASH 1
20 #define PBS_BEVELED 2 20 #define PBS_BEVELED 2
21 #define PBS_INSET 3 21 #define PBS_INSET 3
22 #define PBS_UNDERLINED 4 22 #define PBS_UNDERLINED 4
23 #define PBS_SHADOW 5 23 #define PBS_SHADOW 5
24 24
25 class CPDF_Dictionary; 25 class CPDF_Dictionary;
26 class CPDF_Document; 26 class CPDF_Document;
27 class IPVT_FontMap; 27 class IPVT_FontMap;
28 28
29 struct CPVT_WordRange; 29 struct CPVT_WordRange;
30 30
31 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); 31 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
32 32
33 class CPVT_GenerateAP { 33 class CPVT_GenerateAP {
34 public: 34 public:
35 static FX_BOOL GenerateTextFieldAP(CPDF_Document* pDoc, 35 static FX_BOOL GenerateTextFieldAP(CPDF_Document* pDoc,
36 CPDF_Dictionary* pAnnotDict); 36 CPDF_Dictionary* pAnnotDict);
37 static FX_BOOL GenerateComboBoxAP(CPDF_Document* pDoc, 37 static FX_BOOL GenerateComboBoxAP(CPDF_Document* pDoc,
38 CPDF_Dictionary* pAnnotDict); 38 CPDF_Dictionary* pAnnotDict);
39 static FX_BOOL GenerateListBoxAP(CPDF_Document* pDoc, 39 static FX_BOOL GenerateListBoxAP(CPDF_Document* pDoc,
40 CPDF_Dictionary* pAnnotDict); 40 CPDF_Dictionary* pAnnotDict);
41 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap, 41 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap,
42 IPDF_VariableText::Iterator* pIterator, 42 CPDF_VariableText::Iterator* pIterator,
43 const CFX_FloatPoint& ptOffset, 43 const CFX_FloatPoint& ptOffset,
44 FX_BOOL bContinuous, 44 FX_BOOL bContinuous,
45 uint16_t SubWord = 0, 45 uint16_t SubWord = 0,
46 const CPVT_WordRange* pVisible = NULL); 46 const CPVT_WordRange* pVisible = NULL);
47 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect, 47 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect,
48 FX_FLOAT fWidth, 48 FX_FLOAT fWidth,
49 const CPVT_Color& color, 49 const CPVT_Color& color,
50 const CPVT_Color& crLeftTop, 50 const CPVT_Color& crLeftTop,
51 const CPVT_Color& crRightBottom, 51 const CPVT_Color& crRightBottom,
52 int32_t nStyle, 52 int32_t nStyle,
53 const CPVT_Dash& dash); 53 const CPVT_Dash& dash);
54 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, 54 static CFX_ByteString GenerateColorAP(const CPVT_Color& color,
55 const FX_BOOL& bFillOrStroke); 55 const FX_BOOL& bFillOrStroke);
56 56
57 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, 57 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap,
58 int32_t nFontIndex, 58 int32_t nFontIndex,
59 uint16_t Word, 59 uint16_t Word,
60 uint16_t SubWord); 60 uint16_t SubWord);
61 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords); 61 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords);
62 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap, 62 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap,
63 int32_t nFontIndex, 63 int32_t nFontIndex,
64 FX_FLOAT fFontSize); 64 FX_FLOAT fFontSize);
65 }; 65 };
66 66
67 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_ 67 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpvt_fontmap.cpp ('k') | core/fpdfdoc/cpvt_generateap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698