| 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE) override; | 473 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE) override; |
| 474 void SetMultiLine(FX_BOOL bMultiLine = TRUE, FX_BOOL bPaint = TRUE) override; | 474 void SetMultiLine(FX_BOOL bMultiLine = TRUE, FX_BOOL bPaint = TRUE) override; |
| 475 void SetAutoReturn(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; | 475 void SetAutoReturn(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; |
| 476 void SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; | 476 void SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; |
| 477 void SetAutoScroll(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; | 477 void SetAutoScroll(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; |
| 478 void SetFontSize(FX_FLOAT fFontSize, FX_BOOL bPaint = TRUE) override; | 478 void SetFontSize(FX_FLOAT fFontSize, FX_BOOL bPaint = TRUE) override; |
| 479 void SetTextOverflow(FX_BOOL bAllowed = FALSE, | 479 void SetTextOverflow(FX_BOOL bAllowed = FALSE, |
| 480 FX_BOOL bPaint = TRUE) override; | 480 FX_BOOL bPaint = TRUE) override; |
| 481 FX_BOOL IsRichText() const override; | 481 FX_BOOL IsRichText() const override; |
| 482 void SetRichText(FX_BOOL bRichText = TRUE, FX_BOOL bPaint = TRUE) override; | 482 void SetRichText(FX_BOOL bRichText = TRUE, FX_BOOL bPaint = TRUE) override; |
| 483 FX_BOOL SetRichFontSize(FX_FLOAT fFontSize) override; | |
| 484 FX_BOOL SetRichFontIndex(int32_t nFontIndex) override; | |
| 485 FX_BOOL SetRichTextColor(FX_COLORREF dwColor) override; | |
| 486 FX_BOOL SetRichTextScript(CPDF_VariableText::ScriptType nScriptType) override; | |
| 487 FX_BOOL SetRichTextBold(FX_BOOL bBold = TRUE) override; | |
| 488 FX_BOOL SetRichTextItalic(FX_BOOL bItalic = TRUE) override; | |
| 489 FX_BOOL SetRichTextUnderline(FX_BOOL bUnderline = TRUE) override; | |
| 490 FX_BOOL SetRichTextCrossout(FX_BOOL bCrossout = TRUE) override; | |
| 491 FX_BOOL SetRichTextCharSpace(FX_FLOAT fCharSpace) override; | |
| 492 FX_BOOL SetRichTextHorzScale(int32_t nHorzScale = 100) override; | |
| 493 FX_BOOL SetRichTextLineLeading(FX_FLOAT fLineLeading) override; | |
| 494 FX_BOOL SetRichTextLineIndent(FX_FLOAT fLineIndent) override; | |
| 495 FX_BOOL SetRichTextAlignment(int32_t nAlignment) override; | |
| 496 void OnMouseDown(const CFX_FloatPoint& point, | 483 void OnMouseDown(const CFX_FloatPoint& point, |
| 497 FX_BOOL bShift, | 484 FX_BOOL bShift, |
| 498 FX_BOOL bCtrl) override; | 485 FX_BOOL bCtrl) override; |
| 499 void OnMouseMove(const CFX_FloatPoint& point, | 486 void OnMouseMove(const CFX_FloatPoint& point, |
| 500 FX_BOOL bShift, | 487 FX_BOOL bShift, |
| 501 FX_BOOL bCtrl) override; | 488 FX_BOOL bCtrl) override; |
| 502 void OnVK_UP(FX_BOOL bShift, FX_BOOL bCtrl) override; | 489 void OnVK_UP(FX_BOOL bShift, FX_BOOL bCtrl) override; |
| 503 void OnVK_DOWN(FX_BOOL bShift, FX_BOOL bCtrl) override; | 490 void OnVK_DOWN(FX_BOOL bShift, FX_BOOL bCtrl) override; |
| 504 void OnVK_LEFT(FX_BOOL bShift, FX_BOOL bCtrl) override; | 491 void OnVK_LEFT(FX_BOOL bShift, FX_BOOL bCtrl) override; |
| 505 void OnVK_RIGHT(FX_BOOL bShift, FX_BOOL bCtrl) override; | 492 void OnVK_RIGHT(FX_BOOL bShift, FX_BOOL bCtrl) override; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 CFX_WideString GetRangeText(const CPVT_WordRange& range) const override; | 531 CFX_WideString GetRangeText(const CPVT_WordRange& range) const override; |
| 545 int32_t GetHorzScale() const override; | 532 int32_t GetHorzScale() const override; |
| 546 FX_FLOAT GetCharSpace() const override; | 533 FX_FLOAT GetCharSpace() const override; |
| 547 int32_t GetTotalWords() const override; | 534 int32_t GetTotalWords() const override; |
| 548 void SetSel(int32_t nStartChar, int32_t nEndChar) override; | 535 void SetSel(int32_t nStartChar, int32_t nEndChar) override; |
| 549 void GetSel(int32_t& nStartChar, int32_t& nEndChar) const override; | 536 void GetSel(int32_t& nStartChar, int32_t& nEndChar) const override; |
| 550 void SelectAll() override; | 537 void SelectAll() override; |
| 551 void SelectNone() override; | 538 void SelectNone() override; |
| 552 FX_BOOL IsSelected() const override; | 539 FX_BOOL IsSelected() const override; |
| 553 void Paint() override; | 540 void Paint() override; |
| 554 void EnableNotify(FX_BOOL bNotify) override; | |
| 555 void EnableRefresh(FX_BOOL bRefresh) override; | 541 void EnableRefresh(FX_BOOL bRefresh) override; |
| 556 void RefreshWordRange(const CPVT_WordRange& wr) override; | 542 void RefreshWordRange(const CPVT_WordRange& wr) override; |
| 557 void SetCaret(int32_t nPos) override; | 543 void SetCaret(int32_t nPos) override; |
| 558 CPVT_WordRange GetWholeWordRange() const override; | 544 CPVT_WordRange GetWholeWordRange() const override; |
| 559 CPVT_WordRange GetSelectWordRange() const override; | 545 CPVT_WordRange GetSelectWordRange() const override; |
| 560 void EnableUndo(FX_BOOL bUndo) override; | 546 void EnableUndo(FX_BOOL bUndo) override; |
| 561 void EnableOprNotify(FX_BOOL bNotify) override; | 547 void EnableOprNotify(FX_BOOL bNotify) override; |
| 562 FX_BOOL IsTextFull() const override; | 548 FX_BOOL IsTextFull() const override; |
| 563 FX_BOOL IsTextOverflow() const; | 549 FX_BOOL IsTextOverflow() const; |
| 564 FX_BOOL CanUndo() const override; | 550 FX_BOOL CanUndo() const override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 FX_BOOL bPaint); | 593 FX_BOOL bPaint); |
| 608 FX_BOOL Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint); | 594 FX_BOOL Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint); |
| 609 FX_BOOL Delete(FX_BOOL bAddUndo, FX_BOOL bPaint); | 595 FX_BOOL Delete(FX_BOOL bAddUndo, FX_BOOL bPaint); |
| 610 FX_BOOL Clear(FX_BOOL bAddUndo, FX_BOOL bPaint); | 596 FX_BOOL Clear(FX_BOOL bAddUndo, FX_BOOL bPaint); |
| 611 FX_BOOL InsertText(const FX_WCHAR* text, | 597 FX_BOOL InsertText(const FX_WCHAR* text, |
| 612 int32_t charset, | 598 int32_t charset, |
| 613 const CPVT_SecProps* pSecProps, | 599 const CPVT_SecProps* pSecProps, |
| 614 const CPVT_WordProps* pWordProps, | 600 const CPVT_WordProps* pWordProps, |
| 615 FX_BOOL bAddUndo, | 601 FX_BOOL bAddUndo, |
| 616 FX_BOOL bPaint); | 602 FX_BOOL bPaint); |
| 617 FX_BOOL SetRichTextProps(EDIT_PROPS_E eProps, | |
| 618 const CPVT_SecProps* pSecProps, | |
| 619 const CPVT_WordProps* pWordProps); | |
| 620 FX_BOOL SetSecProps(EDIT_PROPS_E eProps, | 603 FX_BOOL SetSecProps(EDIT_PROPS_E eProps, |
| 621 const CPVT_WordPlace& place, | 604 const CPVT_WordPlace& place, |
| 622 const CPVT_SecProps* pSecProps, | 605 const CPVT_SecProps* pSecProps, |
| 623 const CPVT_WordProps* pWordProps, | 606 const CPVT_WordProps* pWordProps, |
| 624 const CPVT_WordRange& wr, | 607 const CPVT_WordRange& wr, |
| 625 FX_BOOL bAddUndo); | 608 FX_BOOL bAddUndo); |
| 626 FX_BOOL SetWordProps(EDIT_PROPS_E eProps, | 609 FX_BOOL SetWordProps(EDIT_PROPS_E eProps, |
| 627 const CPVT_WordPlace& place, | 610 const CPVT_WordPlace& place, |
| 628 const CPVT_WordProps* pWordProps, | 611 const CPVT_WordProps* pWordProps, |
| 629 const CPVT_WordRange& wr, | 612 const CPVT_WordRange& wr, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 std::unique_ptr<IFX_Edit_Iterator> m_pIterator; | 661 std::unique_ptr<IFX_Edit_Iterator> m_pIterator; |
| 679 CFX_Edit_Refresh m_Refresh; | 662 CFX_Edit_Refresh m_Refresh; |
| 680 CFX_FloatPoint m_ptCaret; | 663 CFX_FloatPoint m_ptCaret; |
| 681 CFX_Edit_Undo m_Undo; | 664 CFX_Edit_Undo m_Undo; |
| 682 int32_t m_nAlignment; | 665 int32_t m_nAlignment; |
| 683 FX_BOOL m_bNotifyFlag; | 666 FX_BOOL m_bNotifyFlag; |
| 684 FX_BOOL m_bEnableOverflow; | 667 FX_BOOL m_bEnableOverflow; |
| 685 FX_BOOL m_bEnableRefresh; | 668 FX_BOOL m_bEnableRefresh; |
| 686 CFX_FloatRect m_rcOldContent; | 669 CFX_FloatRect m_rcOldContent; |
| 687 FX_BOOL m_bEnableUndo; | 670 FX_BOOL m_bEnableUndo; |
| 688 FX_BOOL m_bNotify; | |
| 689 FX_BOOL m_bOprNotify; | 671 FX_BOOL m_bOprNotify; |
| 690 CFX_Edit_GroupUndoItem* m_pGroupUndoItem; | 672 CFX_Edit_GroupUndoItem* m_pGroupUndoItem; |
| 691 }; | 673 }; |
| 692 | 674 |
| 693 class CFX_Edit_Iterator : public IFX_Edit_Iterator { | 675 class CFX_Edit_Iterator : public IFX_Edit_Iterator { |
| 694 public: | 676 public: |
| 695 CFX_Edit_Iterator(CFX_Edit* pEdit, CPDF_VariableText::Iterator* pVTIterator); | 677 CFX_Edit_Iterator(CFX_Edit* pEdit, CPDF_VariableText::Iterator* pVTIterator); |
| 696 ~CFX_Edit_Iterator() override; | 678 ~CFX_Edit_Iterator() override; |
| 697 | 679 |
| 698 // IFX_Edit_Iterator | 680 // IFX_Edit_Iterator |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 int32_t charset, | 714 int32_t charset, |
| 733 int32_t nFontIndex) override; | 715 int32_t nFontIndex) override; |
| 734 int32_t GetDefaultFontIndex() override; | 716 int32_t GetDefaultFontIndex() override; |
| 735 FX_BOOL IsLatinWord(uint16_t word) override; | 717 FX_BOOL IsLatinWord(uint16_t word) override; |
| 736 | 718 |
| 737 private: | 719 private: |
| 738 IPVT_FontMap* m_pFontMap; | 720 IPVT_FontMap* m_pFontMap; |
| 739 }; | 721 }; |
| 740 | 722 |
| 741 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ | 723 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| OLD | NEW |