| 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 FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ | 7 #ifndef FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| 8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ | 8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 }; | 535 }; |
| 536 | 536 |
| 537 class CFX_Edit_Provider : public CPDF_VariableText::Provider { | 537 class CFX_Edit_Provider : public CPDF_VariableText::Provider { |
| 538 public: | 538 public: |
| 539 explicit CFX_Edit_Provider(IPVT_FontMap* pFontMap); | 539 explicit CFX_Edit_Provider(IPVT_FontMap* pFontMap); |
| 540 ~CFX_Edit_Provider() override; | 540 ~CFX_Edit_Provider() override; |
| 541 | 541 |
| 542 IPVT_FontMap* GetFontMap(); | 542 IPVT_FontMap* GetFontMap(); |
| 543 | 543 |
| 544 // CPDF_VariableText::Provider: | 544 // CPDF_VariableText::Provider: |
| 545 int32_t GetCharWidth(int32_t nFontIndex, | 545 int32_t GetCharWidth(int32_t nFontIndex, uint16_t word) override; |
| 546 uint16_t word, | |
| 547 int32_t nWordStyle) override; | |
| 548 int32_t GetTypeAscent(int32_t nFontIndex) override; | 546 int32_t GetTypeAscent(int32_t nFontIndex) override; |
| 549 int32_t GetTypeDescent(int32_t nFontIndex) override; | 547 int32_t GetTypeDescent(int32_t nFontIndex) override; |
| 550 int32_t GetWordFontIndex(uint16_t word, | 548 int32_t GetWordFontIndex(uint16_t word, |
| 551 int32_t charset, | 549 int32_t charset, |
| 552 int32_t nFontIndex) override; | 550 int32_t nFontIndex) override; |
| 553 int32_t GetDefaultFontIndex() override; | 551 int32_t GetDefaultFontIndex() override; |
| 554 FX_BOOL IsLatinWord(uint16_t word) override; | 552 FX_BOOL IsLatinWord(uint16_t word) override; |
| 555 | 553 |
| 556 private: | 554 private: |
| 557 IPVT_FontMap* m_pFontMap; | 555 IPVT_FontMap* m_pFontMap; |
| 558 }; | 556 }; |
| 559 | 557 |
| 560 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ | 558 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| OLD | NEW |