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

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

Issue 2205543002: Generate default AP stream for underline annotation. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Generate default AP stream for underline annotation. 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
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"
(...skipping 15 matching lines...) Expand all
26 class CPVT_GenerateAP { 26 class CPVT_GenerateAP {
27 public: 27 public:
28 static bool GenerateComboBoxAP(CPDF_Document* pDoc, 28 static bool GenerateComboBoxAP(CPDF_Document* pDoc,
29 CPDF_Dictionary* pAnnotDict); 29 CPDF_Dictionary* pAnnotDict);
30 static bool GenerateHighlightAP(CPDF_Document* pDoc, 30 static bool GenerateHighlightAP(CPDF_Document* pDoc,
31 CPDF_Dictionary* pAnnotDict); 31 CPDF_Dictionary* pAnnotDict);
32 static bool GenerateListBoxAP(CPDF_Document* pDoc, 32 static bool GenerateListBoxAP(CPDF_Document* pDoc,
33 CPDF_Dictionary* pAnnotDict); 33 CPDF_Dictionary* pAnnotDict);
34 static bool GenerateTextFieldAP(CPDF_Document* pDoc, 34 static bool GenerateTextFieldAP(CPDF_Document* pDoc,
35 CPDF_Dictionary* pAnnotDict); 35 CPDF_Dictionary* pAnnotDict);
36 static bool GenerateUnderlineAP(CPDF_Document* pDoc,
37 CPDF_Dictionary* pAnnotDict);
36 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap, 38 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap,
37 CPDF_VariableText::Iterator* pIterator, 39 CPDF_VariableText::Iterator* pIterator,
38 const CFX_FloatPoint& ptOffset, 40 const CFX_FloatPoint& ptOffset,
39 FX_BOOL bContinuous, 41 FX_BOOL bContinuous,
40 uint16_t SubWord); 42 uint16_t SubWord);
41 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect, 43 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect,
42 FX_FLOAT fWidth, 44 FX_FLOAT fWidth,
43 const CPVT_Color& color, 45 const CPVT_Color& color,
44 const CPVT_Color& crLeftTop, 46 const CPVT_Color& crLeftTop,
45 const CPVT_Color& crRightBottom, 47 const CPVT_Color& crRightBottom,
46 BorderStyle nStyle, 48 BorderStyle nStyle,
47 const CPVT_Dash& dash); 49 const CPVT_Dash& dash);
48 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, 50 static CFX_ByteString GenerateColorAP(const CPVT_Color& color,
49 const FX_BOOL& bFillOrStroke); 51 const FX_BOOL& bFillOrStroke);
50 52
51 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, 53 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap,
52 int32_t nFontIndex, 54 int32_t nFontIndex,
53 uint16_t Word, 55 uint16_t Word,
54 uint16_t SubWord); 56 uint16_t SubWord);
55 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords); 57 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords);
56 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap, 58 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap,
57 int32_t nFontIndex, 59 int32_t nFontIndex,
58 FX_FLOAT fFontSize); 60 FX_FLOAT fFontSize);
59 }; 61 };
60 62
61 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_ 63 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698