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

Side by Side Diff: xfa/fde/cfde_txtedtdorecord_deleterange.cpp

Issue 2559173002: Move xfa/fwl/core to xfa/fwl. (Closed)
Patch Set: Created 4 years 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/fpdfxfa/cxfa_fwladaptertimermgr.h ('k') | xfa/fde/cfde_txtedtdorecord_insert.cpp » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "xfa/fde/cfde_txtedtdorecord_deleterange.h" 7 #include "xfa/fde/cfde_txtedtdorecord_deleterange.h"
8 8
9 #include "xfa/fde/cfde_txtedtengine.h" 9 #include "xfa/fde/cfde_txtedtengine.h"
10 #include "xfa/fwl/core/cfwl_edit.h" 10 #include "xfa/fwl/cfwl_edit.h"
11 11
12 CFDE_TxtEdtDoRecord_DeleteRange::CFDE_TxtEdtDoRecord_DeleteRange( 12 CFDE_TxtEdtDoRecord_DeleteRange::CFDE_TxtEdtDoRecord_DeleteRange(
13 CFDE_TxtEdtEngine* pEngine, 13 CFDE_TxtEdtEngine* pEngine,
14 int32_t nIndex, 14 int32_t nIndex,
15 int32_t nCaret, 15 int32_t nCaret,
16 const CFX_WideString& wsRange, 16 const CFX_WideString& wsRange,
17 bool bSel) 17 bool bSel)
18 : m_pEngine(pEngine), 18 : m_pEngine(pEngine),
19 m_bSel(bSel), 19 m_bSel(bSel),
20 m_nIndex(nIndex), 20 m_nIndex(nIndex),
(...skipping 25 matching lines...) Expand all
46 if (m_bSel) 46 if (m_bSel)
47 m_pEngine->RemoveSelRange(m_nIndex, m_wsRange.GetLength()); 47 m_pEngine->RemoveSelRange(m_nIndex, m_wsRange.GetLength());
48 48
49 FDE_TXTEDTPARAMS& Param = m_pEngine->m_Param; 49 FDE_TXTEDTPARAMS& Param = m_pEngine->m_Param;
50 m_pEngine->m_ChangeInfo.nChangeType = FDE_TXTEDT_TEXTCHANGE_TYPE_Insert; 50 m_pEngine->m_ChangeInfo.nChangeType = FDE_TXTEDT_TEXTCHANGE_TYPE_Insert;
51 m_pEngine->m_ChangeInfo.wsDelete = m_wsRange; 51 m_pEngine->m_ChangeInfo.wsDelete = m_wsRange;
52 Param.pEventSink->OnTextChanged(m_pEngine->m_ChangeInfo); 52 Param.pEventSink->OnTextChanged(m_pEngine->m_ChangeInfo);
53 m_pEngine->SetCaretPos(m_nIndex, true); 53 m_pEngine->SetCaretPos(m_nIndex, true);
54 return true; 54 return true;
55 } 55 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h ('k') | xfa/fde/cfde_txtedtdorecord_insert.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698