| OLD | NEW |
| 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 CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ | 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
| 8 #define CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ | 8 #define CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
| 9 | 9 |
| 10 #include "../fpdfapi/fpdf_parser.h" | 10 #include "../fpdfapi/fpdf_parser.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 int32_t nColorType; | 45 int32_t nColorType; |
| 46 FX_FLOAT fColor1; | 46 FX_FLOAT fColor1; |
| 47 FX_FLOAT fColor2; | 47 FX_FLOAT fColor2; |
| 48 FX_FLOAT fColor3; | 48 FX_FLOAT fColor3; |
| 49 FX_FLOAT fColor4; | 49 FX_FLOAT fColor4; |
| 50 }; | 50 }; |
| 51 class CPVT_Provider : public IPDF_VariableText_Provider { | 51 class CPVT_Provider : public IPDF_VariableText_Provider { |
| 52 public: | 52 public: |
| 53 CPVT_Provider(IPVT_FontMap* pFontMap); | 53 CPVT_Provider(IPVT_FontMap* pFontMap); |
| 54 ~CPVT_Provider() override; |
| 54 | 55 |
| 55 virtual ~CPVT_Provider(); | 56 // IPDF_VariableText_Provider |
| 56 | 57 int32_t GetCharWidth(int32_t nFontIndex, |
| 57 int32_t GetCharWidth(int32_t nFontIndex, FX_WORD word, int32_t nWordStyle); | 58 FX_WORD word, |
| 58 | 59 int32_t nWordStyle) override; |
| 59 int32_t GetTypeAscent(int32_t nFontIndex); | 60 int32_t GetTypeAscent(int32_t nFontIndex) override; |
| 60 | 61 int32_t GetTypeDescent(int32_t nFontIndex) override; |
| 61 int32_t GetTypeDescent(int32_t nFontIndex); | 62 int32_t GetWordFontIndex(FX_WORD word, |
| 62 | 63 int32_t charset, |
| 63 int32_t GetWordFontIndex(FX_WORD word, int32_t charset, int32_t nFontIndex); | 64 int32_t nFontIndex) override; |
| 64 | 65 FX_BOOL IsLatinWord(FX_WORD word) override; |
| 65 FX_BOOL IsLatinWord(FX_WORD word); | 66 int32_t GetDefaultFontIndex() override; |
| 66 | |
| 67 int32_t GetDefaultFontIndex(); | |
| 68 | 67 |
| 69 private: | 68 private: |
| 70 IPVT_FontMap* m_pFontMap; | 69 IPVT_FontMap* m_pFontMap; |
| 71 }; | 70 }; |
| 72 #define PBS_SOLID 0 | 71 #define PBS_SOLID 0 |
| 73 #define PBS_DASH 1 | 72 #define PBS_DASH 1 |
| 74 #define PBS_BEVELED 2 | 73 #define PBS_BEVELED 2 |
| 75 #define PBS_INSET 3 | 74 #define PBS_INSET 3 |
| 76 #define PBS_UNDERLINED 4 | 75 #define PBS_UNDERLINED 4 |
| 77 class CPVT_GenerateAP { | 76 class CPVT_GenerateAP { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 const CPVT_Color& crLeftTop, | 97 const CPVT_Color& crLeftTop, |
| 99 const CPVT_Color& crRightBottom, | 98 const CPVT_Color& crRightBottom, |
| 100 int32_t nStyle, | 99 int32_t nStyle, |
| 101 const CPVT_Dash& dash); | 100 const CPVT_Dash& dash); |
| 102 | 101 |
| 103 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, | 102 static CFX_ByteString GenerateColorAP(const CPVT_Color& color, |
| 104 const FX_BOOL& bFillOrStroke); | 103 const FX_BOOL& bFillOrStroke); |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 #endif // CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ | 106 #endif // CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
| OLD | NEW |