| OLD | NEW |
| 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/cpdf_defaultappearance.h" | 10 #include "core/fpdfdoc/cpdf_defaultappearance.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 static bool GenerateStrikeOutAP(CPDF_Document* pDoc, | 42 static bool GenerateStrikeOutAP(CPDF_Document* pDoc, |
| 43 CPDF_Dictionary* pAnnotDict); | 43 CPDF_Dictionary* pAnnotDict); |
| 44 static bool GenerateTextAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); | 44 static bool GenerateTextAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); |
| 45 static bool GenerateTextFieldAP(CPDF_Document* pDoc, | 45 static bool GenerateTextFieldAP(CPDF_Document* pDoc, |
| 46 CPDF_Dictionary* pAnnotDict); | 46 CPDF_Dictionary* pAnnotDict); |
| 47 static bool GenerateUnderlineAP(CPDF_Document* pDoc, | 47 static bool GenerateUnderlineAP(CPDF_Document* pDoc, |
| 48 CPDF_Dictionary* pAnnotDict); | 48 CPDF_Dictionary* pAnnotDict); |
| 49 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap, | 49 static CFX_ByteString GenerateEditAP(IPVT_FontMap* pFontMap, |
| 50 CPDF_VariableText::Iterator* pIterator, | 50 CPDF_VariableText::Iterator* pIterator, |
| 51 const CFX_FloatPoint& ptOffset, | 51 const CFX_FloatPoint& ptOffset, |
| 52 FX_BOOL bContinuous, | 52 bool bContinuous, |
| 53 uint16_t SubWord); | 53 uint16_t SubWord); |
| 54 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect, | 54 static CFX_ByteString GenerateBorderAP(const CFX_FloatRect& rect, |
| 55 FX_FLOAT fWidth, | 55 FX_FLOAT fWidth, |
| 56 const CPVT_Color& color, | 56 const CPVT_Color& color, |
| 57 const CPVT_Color& crLeftTop, | 57 const CPVT_Color& crLeftTop, |
| 58 const CPVT_Color& crRightBottom, | 58 const CPVT_Color& crRightBottom, |
| 59 BorderStyle nStyle, | 59 BorderStyle nStyle, |
| 60 const CPVT_Dash& dash); | 60 const CPVT_Dash& dash); |
| 61 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, | 61 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, |
| 62 PaintOperation nOperation); | 62 PaintOperation nOperation); |
| 63 | 63 |
| 64 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, | 64 static CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, |
| 65 int32_t nFontIndex, | 65 int32_t nFontIndex, |
| 66 uint16_t Word, | 66 uint16_t Word, |
| 67 uint16_t SubWord); | 67 uint16_t SubWord); |
| 68 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords); | 68 static CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords); |
| 69 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap, | 69 static CFX_ByteString GetFontSetString(IPVT_FontMap* pFontMap, |
| 70 int32_t nFontIndex, | 70 int32_t nFontIndex, |
| 71 FX_FLOAT fFontSize); | 71 FX_FLOAT fFontSize); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_ | 74 #endif // CORE_FPDFDOC_CPVT_GENERATEAP_H_ |
| OLD | NEW |