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 "xfa/fde/cfde_txtedtengine.h" | 7 #include "xfa/fde/cfde_txtedtengine.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "third_party/base/ptr_util.h" | 11 #include "third_party/base/ptr_util.h" |
12 #include "xfa/fde/cfde_txtedtbuf.h" | 12 #include "xfa/fde/cfde_txtedtbuf.h" |
13 #include "xfa/fde/cfde_txtedtbufiter.h" | 13 #include "xfa/fde/cfde_txtedtbufiter.h" |
14 #include "xfa/fde/cfde_txtedtdorecord_deleterange.h" | 14 #include "xfa/fde/cfde_txtedtdorecord_deleterange.h" |
15 #include "xfa/fde/cfde_txtedtdorecord_insert.h" | 15 #include "xfa/fde/cfde_txtedtdorecord_insert.h" |
16 #include "xfa/fde/cfde_txtedtpage.h" | 16 #include "xfa/fde/cfde_txtedtpage.h" |
17 #include "xfa/fde/cfde_txtedtparag.h" | 17 #include "xfa/fde/cfde_txtedtparag.h" |
18 #include "xfa/fde/ifx_chariter.h" | 18 #include "xfa/fde/ifx_chariter.h" |
19 #include "xfa/fde/tto/fde_textout.h" | 19 #include "xfa/fde/tto/fde_textout.h" |
20 #include "xfa/fgas/layout/fgas_textbreak.h" | 20 #include "xfa/fgas/layout/fgas_textbreak.h" |
21 #include "xfa/fwl/core/cfwl_edit.h" | 21 #include "xfa/fwl/cfwl_edit.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const uint32_t kPageWidthMax = 0xffff; | 25 const uint32_t kPageWidthMax = 0xffff; |
26 const uint32_t kUnicodeParagraphSeparator = 0x2029; | 26 const uint32_t kUnicodeParagraphSeparator = 0x2029; |
27 | 27 |
28 } // namespace | 28 } // namespace |
29 | 29 |
30 FDE_TXTEDTPARAMS::FDE_TXTEDTPARAMS() | 30 FDE_TXTEDTPARAMS::FDE_TXTEDTPARAMS() |
31 : fPlateWidth(0), | 31 : fPlateWidth(0), |
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 m_SelRangePtrArr.RemoveAt(nCountRange); | 1610 m_SelRangePtrArr.RemoveAt(nCountRange); |
1611 DeleteRange_DoRecord(nSelStart, nSelCount, true); | 1611 DeleteRange_DoRecord(nSelStart, nSelCount, true); |
1612 } | 1612 } |
1613 ClearSelection(); | 1613 ClearSelection(); |
1614 m_Param.pEventSink->OnTextChanged(m_ChangeInfo); | 1614 m_Param.pEventSink->OnTextChanged(m_ChangeInfo); |
1615 m_Param.pEventSink->OnSelChanged(); | 1615 m_Param.pEventSink->OnSelChanged(); |
1616 SetCaretPos(nSelStart, true); | 1616 SetCaretPos(nSelStart, true); |
1617 return; | 1617 return; |
1618 } | 1618 } |
1619 } | 1619 } |
OLD | NEW |