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 "../../include/fxedit/fxet_stub.h" | 7 #include "fpdfsdk/include/fxedit/fxet_edit.h" |
8 #include "../../include/fxedit/fxet_edit.h" | 8 #include "fpdfsdk/include/fxedit/fxet_stub.h" |
9 | 9 |
10 #define FX_EDIT_UNDO_MAXITEM 10000 | 10 #define FX_EDIT_UNDO_MAXITEM 10000 |
11 | 11 |
12 /* ---------------------------- CFX_Edit_Iterator ---------------------------- | 12 /* ---------------------------- CFX_Edit_Iterator ---------------------------- |
13 */ | 13 */ |
14 | 14 |
15 CFX_Edit_Iterator::CFX_Edit_Iterator(CFX_Edit* pEdit, | 15 CFX_Edit_Iterator::CFX_Edit_Iterator(CFX_Edit* pEdit, |
16 IPDF_VariableText_Iterator* pVTIterator) | 16 IPDF_VariableText_Iterator* pVTIterator) |
17 : m_pEdit(pEdit), m_pVTIterator(pVTIterator) {} | 17 : m_pEdit(pEdit), m_pVTIterator(pVTIterator) {} |
18 | 18 |
(...skipping 3105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3124 if (m_bOprNotify && m_pOprNotify) | 3124 if (m_bOprNotify && m_pOprNotify) |
3125 m_pOprNotify->OnAddUndo(pEditUndoItem); | 3125 m_pOprNotify->OnAddUndo(pEditUndoItem); |
3126 } | 3126 } |
3127 } | 3127 } |
3128 | 3128 |
3129 void CFX_Edit::AddUndoItem(IFX_Edit_UndoItem* pUndoItem) { | 3129 void CFX_Edit::AddUndoItem(IFX_Edit_UndoItem* pUndoItem) { |
3130 m_Undo.AddItem(pUndoItem); | 3130 m_Undo.AddItem(pUndoItem); |
3131 if (m_bOprNotify && m_pOprNotify) | 3131 if (m_bOprNotify && m_pOprNotify) |
3132 m_pOprNotify->OnAddUndo(pUndoItem); | 3132 m_pOprNotify->OnAddUndo(pUndoItem); |
3133 } | 3133 } |
OLD | NEW |