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 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
8 #define _FPDF_AP_H_ | 8 #define CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
9 | 9 |
10 #include "../fxcrt/fx_basic.h" | 10 #include "../fxcrt/fx_basic.h" |
11 #include "../fpdfapi/fpdf_parser.h" | 11 #include "../fpdfapi/fpdf_parser.h" |
12 #include "fpdf_vt.h" | 12 #include "fpdf_vt.h" |
| 13 |
13 class IPVT_FontMap | 14 class IPVT_FontMap |
14 { | 15 { |
15 public: | 16 public: |
16 virtual ~IPVT_FontMap() { } | 17 virtual ~IPVT_FontMap() { } |
17 virtual CPDF_Font* GetPDFFont(FX_IN
T32 nFontIndex) = 0; | 18 virtual CPDF_Font* GetPDFFont(FX_IN
T32 nFontIndex) = 0; |
18 virtual CFX_ByteString GetPDFFontAlias(
FX_INT32 nFontIndex) = 0; | 19 virtual CFX_ByteString GetPDFFontAlias(
FX_INT32 nFontIndex) = 0; |
19 }; | 20 }; |
20 struct CPVT_Dash { | 21 struct CPVT_Dash { |
21 | 22 |
22 CPVT_Dash(FX_INT32 dash, FX_INT32 gap, FX_INT32 phase) : nDash(dash), nGap(g
ap), nPhase(phase) | 23 CPVT_Dash(FX_INT32 dash, FX_INT32 gap, FX_INT32 phase) : nDash(dash), nGap(g
ap), nPhase(phase) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 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, |
86 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); |
87 | 88 |
88 static CFX_ByteString GenerateBorderAP
(const CPDF_Rect & rect, FX_FLOAT fWidth, | 89 static CFX_ByteString GenerateBorderAP
(const CPDF_Rect & rect, FX_FLOAT fWidth, |
89 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, |
90 FX_INT32 nStyle, const CPVT_Dash & dash); | 91 FX_INT32 nStyle, const CPVT_Dash & dash); |
91 | 92 |
92 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); |
93 }; | 94 }; |
94 | 95 |
95 #endif // _FPDF_AP_H_ | 96 #endif // CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
OLD | NEW |