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_INCLUDE_FXEDIT_FXET_EDIT_H_ | 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ |
8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ | 8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ |
9 | 9 |
10 #include "core/include/fpdfdoc/fpdf_vt.h" | 10 #include "core/include/fpdfdoc/fpdf_vt.h" |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 IFX_Edit* GetEdit() const override; | 807 IFX_Edit* GetEdit() const override; |
808 | 808 |
809 private: | 809 private: |
810 CFX_Edit* m_pEdit; | 810 CFX_Edit* m_pEdit; |
811 IPDF_VariableText_Iterator* m_pVTIterator; | 811 IPDF_VariableText_Iterator* m_pVTIterator; |
812 }; | 812 }; |
813 | 813 |
814 class CFX_Edit_Provider : public IPDF_VariableText_Provider { | 814 class CFX_Edit_Provider : public IPDF_VariableText_Provider { |
815 public: | 815 public: |
816 CFX_Edit_Provider(IFX_Edit_FontMap* pFontMap); | 816 CFX_Edit_Provider(IFX_Edit_FontMap* pFontMap); |
817 virtual ~CFX_Edit_Provider(); | 817 ~CFX_Edit_Provider() override; |
818 | 818 |
819 IFX_Edit_FontMap* GetFontMap(); | 819 IFX_Edit_FontMap* GetFontMap(); |
820 | 820 |
821 int32_t GetCharWidth(int32_t nFontIndex, FX_WORD word, int32_t nWordStyle); | 821 // IPDF_VariableText_Provider: |
822 int32_t GetTypeAscent(int32_t nFontIndex); | 822 int32_t GetCharWidth(int32_t nFontIndex, |
823 int32_t GetTypeDescent(int32_t nFontIndex); | 823 FX_WORD word, |
824 int32_t GetWordFontIndex(FX_WORD word, int32_t charset, int32_t nFontIndex); | 824 int32_t nWordStyle) override; |
825 int32_t GetDefaultFontIndex(); | 825 int32_t GetTypeAscent(int32_t nFontIndex) override; |
826 FX_BOOL IsLatinWord(FX_WORD word); | 826 int32_t GetTypeDescent(int32_t nFontIndex) override; |
| 827 int32_t GetWordFontIndex(FX_WORD word, |
| 828 int32_t charset, |
| 829 int32_t nFontIndex) override; |
| 830 int32_t GetDefaultFontIndex() override; |
| 831 FX_BOOL IsLatinWord(FX_WORD word) override; |
827 | 832 |
828 private: | 833 private: |
829 IFX_Edit_FontMap* m_pFontMap; | 834 IFX_Edit_FontMap* m_pFontMap; |
830 }; | 835 }; |
831 | 836 |
832 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ | 837 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ |
OLD | NEW |