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/fpdfdoc/include/ipdf_variabletext_provider.h" |
10 #include "core/include/fpdfdoc/fpdf_vt.h" | 11 #include "core/include/fpdfdoc/fpdf_vt.h" |
11 #include "fpdfsdk/include/fxedit/fx_edit.h" | 12 #include "fpdfsdk/include/fxedit/fx_edit.h" |
12 | 13 |
13 class CFX_Edit; | 14 class CFX_Edit; |
14 class CFX_Edit_Iterator; | 15 class CFX_Edit_Iterator; |
15 class CFX_Edit_Provider; | 16 class CFX_Edit_Provider; |
16 | 17 |
17 #define FX_EDIT_IsFloatZero(f) (f < 0.0001 && f > -0.0001) | 18 #define FX_EDIT_IsFloatZero(f) (f < 0.0001 && f > -0.0001) |
18 #define FX_EDIT_IsFloatEqual(fa, fb) FX_EDIT_IsFloatZero(fa - fb) | 19 #define FX_EDIT_IsFloatEqual(fa, fb) FX_EDIT_IsFloatZero(fa - fb) |
19 #define FX_EDIT_IsFloatBigger(fa, fb) (fa > fb && !FX_EDIT_IsFloatEqual(fa, fb)) | 20 #define FX_EDIT_IsFloatBigger(fa, fb) (fa > fb && !FX_EDIT_IsFloatEqual(fa, fb)) |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 int32_t charset, | 808 int32_t charset, |
808 int32_t nFontIndex) override; | 809 int32_t nFontIndex) override; |
809 int32_t GetDefaultFontIndex() override; | 810 int32_t GetDefaultFontIndex() override; |
810 FX_BOOL IsLatinWord(uint16_t word) override; | 811 FX_BOOL IsLatinWord(uint16_t word) override; |
811 | 812 |
812 private: | 813 private: |
813 IFX_Edit_FontMap* m_pFontMap; | 814 IFX_Edit_FontMap* m_pFontMap; |
814 }; | 815 }; |
815 | 816 |
816 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ | 817 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ |
OLD | NEW |