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 _FPDF_AP_H_ |
7 #define _FPDF_AP_H_ | 8 #define _FPDF_AP_H_ |
| 9 |
8 #include "../fxcrt/fx_basic.h" | 10 #include "../fxcrt/fx_basic.h" |
9 #include "../fpdfapi/fpdf_parser.h" | 11 #include "../fpdfapi/fpdf_parser.h" |
10 #include "fpdf_vt.h" | 12 #include "fpdf_vt.h" |
11 class IPVT_FontMap | 13 class IPVT_FontMap |
12 { | 14 { |
13 public: | 15 public: |
14 | 16 |
15 virtual CPDF_Font* GetPDFFont(FX_IN
T32 nFontIndex) = 0; | 17 virtual CPDF_Font* GetPDFFont(FX_IN
T32 nFontIndex) = 0; |
16 | 18 |
17 virtual CFX_ByteString GetPDFFontAlias(
FX_INT32 nFontIndex) = 0; | 19 virtual CFX_ByteString GetPDFFontAlias(
FX_INT32 nFontIndex) = 0; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 85 |
84 static CFX_ByteString GenerateEditAP(I
PVT_FontMap * pFontMap, IPDF_VariableText_Iterator * pIterator, | 86 static CFX_ByteString GenerateEditAP(I
PVT_FontMap * pFontMap, IPDF_VariableText_Iterator * pIterator, |
85 const CPDF_Point & ptOffset, FX_BOOL bContinuous, FX_WORD SubWord =
0, const CPVT_WordRange * pVisible = NULL); | 87 const CPDF_Point & ptOffset, FX_BOOL bContinuous, FX_WORD SubWord =
0, const CPVT_WordRange * pVisible = NULL); |
86 | 88 |
87 static CFX_ByteString GenerateBorderAP
(const CPDF_Rect & rect, FX_FLOAT fWidth, | 89 static CFX_ByteString GenerateBorderAP
(const CPDF_Rect & rect, FX_FLOAT fWidth, |
88 const CPVT_Color & color, const CPVT_Color & crLeftTop, const CPVT_C
olor & crRightBottom, | 90 const CPVT_Color & color, const CPVT_Color & crLeftTop, const CPVT_C
olor & crRightBottom, |
89 FX_INT32 nStyle, const CPVT_Dash & dash); | 91 FX_INT32 nStyle, const CPVT_Dash & dash); |
90 | 92 |
91 static CFX_ByteString GenerateColorAP(
const CPVT_Color & color, const FX_BOOL & bFillOrStroke); | 93 static CFX_ByteString GenerateColorAP(
const CPVT_Color & color, const FX_BOOL & bFillOrStroke); |
92 }; | 94 }; |
| 95 |
| 96 #endif // _FPDF_AP_H_ |
OLD | NEW |