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 #include "fpdfsdk/fxedit/include/fxet_edit.h" | 7 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 CFX_Edit::CFX_Edit(CPDF_VariableText* pVT) | 749 CFX_Edit::CFX_Edit(CPDF_VariableText* pVT) |
750 : m_pVT(pVT), | 750 : m_pVT(pVT), |
751 m_pNotify(nullptr), | 751 m_pNotify(nullptr), |
752 m_pOprNotify(nullptr), | 752 m_pOprNotify(nullptr), |
753 m_wpCaret(-1, -1, -1), | 753 m_wpCaret(-1, -1, -1), |
754 m_wpOldCaret(-1, -1, -1), | 754 m_wpOldCaret(-1, -1, -1), |
755 m_SelState(), | 755 m_SelState(), |
756 m_ptScrollPos(0, 0), | 756 m_ptScrollPos(0, 0), |
757 m_ptRefreshScrollPos(0, 0), | 757 m_ptRefreshScrollPos(0, 0), |
758 m_bEnableScroll(FALSE), | 758 m_bEnableScroll(FALSE), |
759 m_pIterator(nullptr), | |
760 m_ptCaret(0.0f, 0.0f), | 759 m_ptCaret(0.0f, 0.0f), |
761 m_Undo(kEditUndoMaxItems), | 760 m_Undo(kEditUndoMaxItems), |
762 m_nAlignment(0), | 761 m_nAlignment(0), |
763 m_bNotifyFlag(FALSE), | 762 m_bNotifyFlag(FALSE), |
764 m_bEnableOverflow(FALSE), | 763 m_bEnableOverflow(FALSE), |
765 m_bEnableRefresh(TRUE), | 764 m_bEnableRefresh(TRUE), |
766 m_rcOldContent(0.0f, 0.0f, 0.0f, 0.0f), | 765 m_rcOldContent(0.0f, 0.0f, 0.0f, 0.0f), |
767 m_bEnableUndo(TRUE), | 766 m_bEnableUndo(TRUE), |
768 m_bNotify(TRUE), | 767 m_bNotify(TRUE), |
769 m_bOprNotify(FALSE), | 768 m_bOprNotify(FALSE), |
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2973 if (m_bOprNotify && m_pOprNotify) | 2972 if (m_bOprNotify && m_pOprNotify) |
2974 m_pOprNotify->OnAddUndo(pEditUndoItem); | 2973 m_pOprNotify->OnAddUndo(pEditUndoItem); |
2975 } | 2974 } |
2976 } | 2975 } |
2977 | 2976 |
2978 void CFX_Edit::AddUndoItem(IFX_Edit_UndoItem* pUndoItem) { | 2977 void CFX_Edit::AddUndoItem(IFX_Edit_UndoItem* pUndoItem) { |
2979 m_Undo.AddItem(pUndoItem); | 2978 m_Undo.AddItem(pUndoItem); |
2980 if (m_bOprNotify && m_pOprNotify) | 2979 if (m_bOprNotify && m_pOprNotify) |
2981 m_pOprNotify->OnAddUndo(pUndoItem); | 2980 m_pOprNotify->OnAddUndo(pUndoItem); |
2982 } | 2981 } |
OLD | NEW |