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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 | 611 |
612 void
OnMouseDown(const CPDF_Point & point,FX_BOOL bShift,FX_BOOL bCtrl); | 612 void
OnMouseDown(const CPDF_Point & point,FX_BOOL bShift,FX_BOOL bCtrl); |
613 void
OnMouseMove(const CPDF_Point & point,FX_BOOL bShift,FX_BOOL bCtrl); | 613 void
OnMouseMove(const CPDF_Point & point,FX_BOOL bShift,FX_BOOL bCtrl); |
614 void
OnVK_UP(FX_BOOL bShift,FX_BOOL bCtrl); | 614 void
OnVK_UP(FX_BOOL bShift,FX_BOOL bCtrl); |
615 void
OnVK_DOWN(FX_BOOL bShift,FX_BOOL bCtrl); | 615 void
OnVK_DOWN(FX_BOOL bShift,FX_BOOL bCtrl); |
616 void
OnVK_LEFT(FX_BOOL bShift,FX_BOOL bCtrl); | 616 void
OnVK_LEFT(FX_BOOL bShift,FX_BOOL bCtrl); |
617 void
OnVK_RIGHT(FX_BOOL bShift,FX_BOOL bCtrl); | 617 void
OnVK_RIGHT(FX_BOOL bShift,FX_BOOL bCtrl); |
618 void
OnVK_HOME(FX_BOOL bShift,FX_BOOL bCtrl); | 618 void
OnVK_HOME(FX_BOOL bShift,FX_BOOL bCtrl); |
619 void
OnVK_END(FX_BOOL bShift,FX_BOOL bCtrl); | 619 void
OnVK_END(FX_BOOL bShift,FX_BOOL bCtrl); |
620 | 620 |
621 » void» » » » » » » » »
SetText(FX_LPCWSTR text,int32_t charset = DEFAULT_CHARSET, | 621 » void» » » » » » » » »
SetText(const FX_WCHAR* text,int32_t charset = DEFAULT_CHARSET, |
622
const CPVT_SecProps * pSecProps = NULL,const CPVT_WordPr
ops * pWordProps = NULL); | 622
const CPVT_SecProps * pSecProps = NULL,const CPVT_WordPr
ops * pWordProps = NULL); |
623 FX_BOOL
InsertWord(FX_WORD word, int32_t charset = DEFAULT_CHARSET, const CPVT_WordProps
* pWordProps = NULL); | 623 FX_BOOL
InsertWord(FX_WORD word, int32_t charset = DEFAULT_CHARSET, const CPVT_WordProps
* pWordProps = NULL); |
624 FX_BOOL
InsertReturn(const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWord
Props = NULL); | 624 FX_BOOL
InsertReturn(const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWord
Props = NULL); |
625 FX_BOOL
Backspace(); | 625 FX_BOOL
Backspace(); |
626 FX_BOOL
Delete(); | 626 FX_BOOL
Delete(); |
627 FX_BOOL
Clear(); | 627 FX_BOOL
Clear(); |
628 FX_BOOL
Empty(); | 628 FX_BOOL
Empty(); |
629 » FX_BOOL»» » » » » » » »
InsertText(FX_LPCWSTR text, int32_t charset = DEFAULT_CHARSET, | 629 » FX_BOOL»» » » » » » » »
InsertText(const FX_WCHAR* text, int32_t charset = DEFAULT_CHARSET, |
630
const CPVT_SecProps * pSecProps = NULL,const CPVT_WordPr
ops * pWordProps = NULL); | 630
const CPVT_SecProps * pSecProps = NULL,const CPVT_WordPr
ops * pWordProps = NULL); |
631 FX_BOOL
Redo(); | 631 FX_BOOL
Redo(); |
632 FX_BOOL
Undo(); | 632 FX_BOOL
Undo(); |
633 » CPVT_WordPlace» » » » » » » DoInsert
Text(const CPVT_WordPlace& place, FX_LPCWSTR text, int32_t charset, | 633 » CPVT_WordPlace» » » » » » » DoInsert
Text(const CPVT_WordPlace& place, const FX_WCHAR* text, int32_t charset, |
634
const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordPro
ps); | 634
const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordPro
ps); |
635 int32_t GetCharS
etFromUnicode(FX_WORD word, int32_t nOldCharset); | 635 int32_t GetCharS
etFromUnicode(FX_WORD word, int32_t nOldCharset); |
636 | 636 |
637 int32_t WordPlac
eToWordIndex(const CPVT_WordPlace & place) const; | 637 int32_t WordPlac
eToWordIndex(const CPVT_WordPlace & place) const; |
638 CPVT_WordPlace WordInde
xToWordPlace(int32_t index) const; | 638 CPVT_WordPlace WordInde
xToWordPlace(int32_t index) const; |
639 | 639 |
640 CPVT_WordPlace GetLineB
eginPlace(const CPVT_WordPlace & place) const; | 640 CPVT_WordPlace GetLineB
eginPlace(const CPVT_WordPlace & place) const; |
641 CPVT_WordPlace GetLineE
ndPlace(const CPVT_WordPlace & place) const; | 641 CPVT_WordPlace GetLineE
ndPlace(const CPVT_WordPlace & place) const; |
642 CPVT_WordPlace GetSecti
onBeginPlace(const CPVT_WordPlace & place) const; | 642 CPVT_WordPlace GetSecti
onBeginPlace(const CPVT_WordPlace & place) const; |
643 CPVT_WordPlace GetSecti
onEndPlace(const CPVT_WordPlace & place) const; | 643 CPVT_WordPlace GetSecti
onEndPlace(const CPVT_WordPlace & place) const; |
(...skipping 28 matching lines...) Expand all Loading... |
672 void
RearrangePart(const CPVT_WordRange & range); | 672 void
RearrangePart(const CPVT_WordRange & range); |
673 void
Paint(); | 673 void
Paint(); |
674 void
ScrollToCaret(); | 674 void
ScrollToCaret(); |
675 void
SetScrollInfo(); | 675 void
SetScrollInfo(); |
676 void
SetScrollPosX(FX_FLOAT fx); | 676 void
SetScrollPosX(FX_FLOAT fx); |
677 void
SetScrollPosY(FX_FLOAT fy); | 677 void
SetScrollPosY(FX_FLOAT fy); |
678 void
SetScrollLimit(); | 678 void
SetScrollLimit(); |
679 void
SetContentChanged(); | 679 void
SetContentChanged(); |
680 void
EnableNotify(FX_BOOL bNotify); | 680 void
EnableNotify(FX_BOOL bNotify); |
681 | 681 |
682 » void» » » » » » » » »
SetText(FX_LPCWSTR text,int32_t charset, | 682 » void» » » » » » » » »
SetText(const FX_WCHAR* text,int32_t charset, |
683
const CPVT_SecProps * pSecProps,const CPVT_WordProps * p
WordProps,FX_BOOL bAddUndo, FX_BOOL bPaint); | 683
const CPVT_SecProps * pSecProps,const CPVT_WordProps * p
WordProps,FX_BOOL bAddUndo, FX_BOOL bPaint); |
684 FX_BOOL
InsertWord(FX_WORD word, int32_t charset, const CPVT_WordProps * pWordProps,FX_B
OOL bAddUndo, FX_BOOL bPaint); | 684 FX_BOOL
InsertWord(FX_WORD word, int32_t charset, const CPVT_WordProps * pWordProps,FX_B
OOL bAddUndo, FX_BOOL bPaint); |
685 FX_BOOL
InsertReturn(const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProps,F
X_BOOL bAddUndo, FX_BOOL bPaint); | 685 FX_BOOL
InsertReturn(const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProps,F
X_BOOL bAddUndo, FX_BOOL bPaint); |
686 FX_BOOL
Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint); | 686 FX_BOOL
Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint); |
687 FX_BOOL
Delete(FX_BOOL bAddUndo, FX_BOOL bPaint); | 687 FX_BOOL
Delete(FX_BOOL bAddUndo, FX_BOOL bPaint); |
688 FX_BOOL
Clear(FX_BOOL bAddUndo, FX_BOOL bPaint); | 688 FX_BOOL
Clear(FX_BOOL bAddUndo, FX_BOOL bPaint); |
689 » FX_BOOL»» » » » » » » »
InsertText(FX_LPCWSTR text, int32_t charset, | 689 » FX_BOOL»» » » » » » » »
InsertText(const FX_WCHAR* text, int32_t charset, |
690
const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProp
s,FX_BOOL bAddUndo, FX_BOOL bPaint); | 690
const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProp
s,FX_BOOL bAddUndo, FX_BOOL bPaint); |
691 FX_BOOL
SetRichTextProps(EDIT_PROPS_E eProps, | 691 FX_BOOL
SetRichTextProps(EDIT_PROPS_E eProps, |
692
const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordPro
ps); | 692
const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordPro
ps); |
693 FX_BOOL
SetSecProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place, | 693 FX_BOOL
SetSecProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place, |
694
const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordPro
ps, const CPVT_WordRange & wr, FX_BOOL bAddUndo); | 694
const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordPro
ps, const CPVT_WordRange & wr, FX_BOOL bAddUndo); |
695 FX_BOOL
SetWordProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place, | 695 FX_BOOL
SetWordProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place, |
696
const CPVT_WordProps * pWordProps, const CPVT_WordRange & wr, FX
_BOOL bAddUndo); | 696
const CPVT_WordProps * pWordProps, const CPVT_WordRange & wr, FX
_BOOL bAddUndo); |
697 void
PaintSetProps(EDIT_PROPS_E eProps, const CPVT_WordRange & wr); | 697 void
PaintSetProps(EDIT_PROPS_E eProps, const CPVT_WordRange & wr); |
698 void
PaintInsertText(const CPVT_WordPlace & wpOld, const CPVT_WordPlace & wpNew); | 698 void
PaintInsertText(const CPVT_WordPlace & wpOld, const CPVT_WordPlace & wpNew); |
699 | 699 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 int32_t GetTypeDescent(int32_t nFontInde
x); | 808 int32_t GetTypeDescent(int32_t nFontInde
x); |
809 int32_t GetWordFontIndex(FX_WORD word, i
nt32_t charset, int32_t nFontIndex); | 809 int32_t GetWordFontIndex(FX_WORD word, i
nt32_t charset, int32_t nFontIndex); |
810 int32_t GetDefaultFontIndex(); | 810 int32_t GetDefaultFontIndex(); |
811 FX_BOOL IsLatinWord(FX_WORD word
); | 811 FX_BOOL IsLatinWord(FX_WORD word
); |
812 | 812 |
813 private: | 813 private: |
814 IFX_Edit_FontMap* m_pFontMap; | 814 IFX_Edit_FontMap* m_pFontMap; |
815 }; | 815 }; |
816 | 816 |
817 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ | 817 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ |
OLD | NEW |