Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: fpdfsdk/fxedit/include/fxet_edit.h

Issue 1863163002: Move code from fpdfsdk/include to the sub directories. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fxedit/include/fx_edit.h ('k') | fpdfsdk/fxedit/include/fxet_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FXEDIT_INCLUDE_FXET_EDIT_H_
8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ 8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_
9 9
10 #include "core/fpdfdoc/include/cpvt_secprops.h" 10 #include "core/fpdfdoc/include/cpvt_secprops.h"
11 #include "core/fpdfdoc/include/cpvt_wordprops.h" 11 #include "core/fpdfdoc/include/cpvt_wordprops.h"
12 #include "fpdfsdk/include/fxedit/fx_edit.h" 12 #include "fpdfsdk/fxedit/include/fx_edit.h"
13 13
14 class CFX_Edit; 14 class CFX_Edit;
15 class CFX_Edit_Iterator; 15 class CFX_Edit_Iterator;
16 class CFX_Edit_Provider; 16 class CFX_Edit_Provider;
17 17
18 #define FX_EDIT_IsFloatZero(f) (f < 0.0001 && f > -0.0001) 18 #define FX_EDIT_IsFloatZero(f) (f < 0.0001 && f > -0.0001)
19 #define FX_EDIT_IsFloatEqual(fa, fb) FX_EDIT_IsFloatZero(fa - fb) 19 #define FX_EDIT_IsFloatEqual(fa, fb) FX_EDIT_IsFloatZero(fa - fb)
20 #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))
21 #define FX_EDIT_IsFloatSmaller(fa, fb) \ 21 #define FX_EDIT_IsFloatSmaller(fa, fb) \
22 (fa < fb && !FX_EDIT_IsFloatEqual(fa, fb)) 22 (fa < fb && !FX_EDIT_IsFloatEqual(fa, fb))
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 707
708 void SetCaret(const CPVT_WordPlace& place); 708 void SetCaret(const CPVT_WordPlace& place);
709 void SetCaretInfo(); 709 void SetCaretInfo();
710 void SetCaretOrigin(); 710 void SetCaretOrigin();
711 void SetCaretChange(); 711 void SetCaretChange();
712 712
713 CPVT_WordRange GetLatinWordsRange(const CPVT_WordPlace& place) const; 713 CPVT_WordRange GetLatinWordsRange(const CPVT_WordPlace& place) const;
714 CPVT_WordRange CombineWordRange(const CPVT_WordRange& wr1, 714 CPVT_WordRange CombineWordRange(const CPVT_WordRange& wr1,
715 const CPVT_WordRange& wr2); 715 const CPVT_WordRange& wr2);
716 716
717
718 void BeginGroupUndo(const CFX_WideString& sTitle); 717 void BeginGroupUndo(const CFX_WideString& sTitle);
719 void EndGroupUndo(); 718 void EndGroupUndo();
720 void AddEditUndoItem(CFX_Edit_UndoItem* pEditUndoItem); 719 void AddEditUndoItem(CFX_Edit_UndoItem* pEditUndoItem);
721 720
722 void SetPageInfo(const CPVT_WordPlace& place); 721 void SetPageInfo(const CPVT_WordPlace& place);
723 CPVT_WordPlace SearchPageEndPlace(const CPVT_WordPlace& wpPageBegin, 722 CPVT_WordPlace SearchPageEndPlace(const CPVT_WordPlace& wpPageBegin,
724 const CFX_FloatPoint& point) const; 723 const CFX_FloatPoint& point) const;
725 FX_FLOAT GetLineTop(const CPVT_WordPlace& place) const; 724 FX_FLOAT GetLineTop(const CPVT_WordPlace& place) const;
726 FX_FLOAT GetLineBottom(const CPVT_WordPlace& place) const; 725 FX_FLOAT GetLineBottom(const CPVT_WordPlace& place) const;
727 726
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 int32_t GetWordFontIndex(uint16_t word, 793 int32_t GetWordFontIndex(uint16_t word,
795 int32_t charset, 794 int32_t charset,
796 int32_t nFontIndex) override; 795 int32_t nFontIndex) override;
797 int32_t GetDefaultFontIndex() override; 796 int32_t GetDefaultFontIndex() override;
798 FX_BOOL IsLatinWord(uint16_t word) override; 797 FX_BOOL IsLatinWord(uint16_t word) override;
799 798
800 private: 799 private:
801 IPVT_FontMap* m_pFontMap; 800 IPVT_FontMap* m_pFontMap;
802 }; 801 };
803 802
804 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ 803 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fxedit/include/fx_edit.h ('k') | fpdfsdk/fxedit/include/fxet_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698