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_INCLUDE_CPDF_VARIABLETEXT_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ |
8 #define CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 int32_t nWordStyle); | 70 int32_t nWordStyle); |
71 virtual int32_t GetTypeAscent(int32_t nFontIndex); | 71 virtual int32_t GetTypeAscent(int32_t nFontIndex); |
72 virtual int32_t GetTypeDescent(int32_t nFontIndex); | 72 virtual int32_t GetTypeDescent(int32_t nFontIndex); |
73 virtual int32_t GetWordFontIndex(uint16_t word, | 73 virtual int32_t GetWordFontIndex(uint16_t word, |
74 int32_t charset, | 74 int32_t charset, |
75 int32_t nFontIndex); | 75 int32_t nFontIndex); |
76 virtual FX_BOOL IsLatinWord(uint16_t word); | 76 virtual FX_BOOL IsLatinWord(uint16_t word); |
77 virtual int32_t GetDefaultFontIndex(); | 77 virtual int32_t GetDefaultFontIndex(); |
78 | 78 |
79 private: | 79 private: |
80 IPVT_FontMap* m_pFontMap; | 80 IPVT_FontMap* const m_pFontMap; |
81 }; | 81 }; |
82 | 82 |
83 CPDF_VariableText(); | 83 CPDF_VariableText(); |
84 ~CPDF_VariableText() override; | 84 ~CPDF_VariableText() override; |
85 | 85 |
86 void SetProvider(CPDF_VariableText::Provider* pProvider); | 86 void SetProvider(CPDF_VariableText::Provider* pProvider); |
87 CPDF_VariableText::Iterator* GetIterator(); | 87 CPDF_VariableText::Iterator* GetIterator(); |
88 | 88 |
89 // CPDF_EditContainer. | 89 // CPDF_EditContainer. |
90 void SetPlateRect(const CFX_FloatRect& rect) override { | 90 void SetPlateRect(const CFX_FloatRect& rect) override { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 int32_t m_nHorzScale; | 245 int32_t m_nHorzScale; |
246 uint16_t m_wSubWord; | 246 uint16_t m_wSubWord; |
247 FX_FLOAT m_fFontSize; | 247 FX_FLOAT m_fFontSize; |
248 FX_BOOL m_bInitial; | 248 FX_BOOL m_bInitial; |
249 FX_BOOL m_bRichText; | 249 FX_BOOL m_bRichText; |
250 CPDF_VariableText::Provider* m_pVTProvider; | 250 CPDF_VariableText::Provider* m_pVTProvider; |
251 std::unique_ptr<CPDF_VariableText::Iterator> m_pVTIterator; | 251 std::unique_ptr<CPDF_VariableText::Iterator> m_pVTIterator; |
252 }; | 252 }; |
253 | 253 |
254 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ | 254 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ |
OLD | NEW |