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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual ~CPVT_Provider(); | 53 virtual ~CPVT_Provider(); |
54 | 54 |
55 int32_t GetCharWidth(int32_t nFo
ntIndex, FX_WORD word, int32_t nWordStyle); | 55 int32_t GetCharWidth(int32_t nFo
ntIndex, FX_WORD word, int32_t nWordStyle); |
56 | 56 |
57 int32_t GetTypeAscent(int32_t nF
ontIndex); | 57 int32_t GetTypeAscent(int32_t nF
ontIndex); |
58 | 58 |
59 int32_t GetTypeDescent(int32_t n
FontIndex); | 59 int32_t GetTypeDescent(int32_t n
FontIndex); |
60 | 60 |
61 int32_t GetWordFontIndex(FX_WORD
word, int32_t charset, int32_t nFontIndex); | 61 int32_t GetWordFontIndex(FX_WORD
word, int32_t charset, int32_t nFontIndex); |
62 | 62 |
63 FX_BOOL» » » » » » » IsLatinWord(FX_W
ORD word); | 63 bool» » » » » » » IsLatinWord(FX_W
ORD word); |
64 | 64 |
65 int32_t GetDefaultFontIndex(); | 65 int32_t GetDefaultFontIndex(); |
66 private: | 66 private: |
67 | 67 |
68 IPVT_FontMap * m_pFontMap; | 68 IPVT_FontMap * m_pFontMap; |
69 }; | 69 }; |
70 #define PBS_SOLID 0 | 70 #define PBS_SOLID 0 |
71 #define PBS_DASH 1 | 71 #define PBS_DASH 1 |
72 #define PBS_BEVELED 2 | 72 #define PBS_BEVELED 2 |
73 #define PBS_INSET 3 | 73 #define PBS_INSET 3 |
74 #define PBS_UNDERLINED 4 | 74 #define PBS_UNDERLINED 4 |
75 class CPVT_GenerateAP | 75 class CPVT_GenerateAP |
76 { | 76 { |
77 public: | 77 public: |
78 | 78 |
79 static FX_BOOL» » » » » » » Generate
TextFieldAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); | 79 static bool»» » » » » » GenerateTextFiel
dAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); |
80 | 80 |
81 static FX_BOOL» » » » » » » Generate
ComboBoxAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); | 81 static bool»» » » » » » GenerateComboBox
AP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); |
82 | 82 |
83 static FX_BOOL» » » » » » » Generate
ListBoxAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); | 83 static bool»» » » » » » GenerateListBoxA
P(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); |
84 | 84 |
85 static CFX_ByteString GenerateEditAP(I
PVT_FontMap * pFontMap, IPDF_VariableText_Iterator * pIterator, | 85 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); | 86 const CPDF_Point & ptOffset, bool bContinuous, FX_WORD SubWord = 0,
const CPVT_WordRange * pVisible = NULL); |
87 | 87 |
88 static CFX_ByteString GenerateBorderAP
(const CPDF_Rect & rect, FX_FLOAT fWidth, | 88 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, | 89 const CPVT_Color & color, const CPVT_Color & crLeftTop, const CPVT_C
olor & crRightBottom, |
90 int32_t nStyle, const CPVT_Dash & dash); | 90 int32_t nStyle, const CPVT_Dash & dash); |
91 | 91 |
92 static CFX_ByteString» » » » » GenerateColorAP(
const CPVT_Color & color, const FX_BOOL & bFillOrStroke); | 92 static CFX_ByteString» » » » » GenerateColorAP(
const CPVT_Color & color, const bool & bFillOrStroke); |
93 }; | 93 }; |
94 | 94 |
95 #endif // CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ | 95 #endif // CORE_INCLUDE_FPDFDOC_FPDF_AP_H_ |
OLD | NEW |