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 "xfa/fde/cfde_txtedtbuf.h" | 9 #include "xfa/fde/cfde_txtedtbuf.h" |
10 #include "xfa/fde/cfde_txtedtbufiter.h" | 10 #include "xfa/fde/cfde_txtedtbufiter.h" |
| 11 #include "xfa/fde/cfde_txtedtdorecord_deleterange.h" |
| 12 #include "xfa/fde/cfde_txtedtdorecord_insert.h" |
| 13 #include "xfa/fde/cfde_txtedtpage.h" |
| 14 #include "xfa/fde/cfde_txtedtparag.h" |
11 #include "xfa/fde/ifx_chariter.h" | 15 #include "xfa/fde/ifx_chariter.h" |
| 16 #include "xfa/fde/tto/fde_textout.h" |
12 #include "xfa/fgas/layout/fgas_textbreak.h" | 17 #include "xfa/fgas/layout/fgas_textbreak.h" |
13 #include "xfa/fwl/basewidget/fwl_editimp.h" | 18 #include "xfa/fwl/basewidget/fwl_editimp.h" |
14 #include "xfa/fde/cfde_txtedtdorecord_deleterange.h" | |
15 #include "xfa/fde/cfde_txtedtdorecord_insert.h" | |
16 #include "xfa/fde/cfde_txtedtparag.h" | |
17 #include "xfa/fde/cfde_txtedtpage.h" | |
18 #include "xfa/fde/tto/fde_textout.h" | |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const uint32_t kPageWidthMax = 0xffff; | 22 const uint32_t kPageWidthMax = 0xffff; |
23 const uint32_t kUnicodeParagraphSeparator = 0x2029; | 23 const uint32_t kUnicodeParagraphSeparator = 0x2029; |
24 | 24 |
25 } // namespace | 25 } // namespace |
26 | 26 |
27 FDE_TXTEDTPARAMS::FDE_TXTEDTPARAMS() | 27 FDE_TXTEDTPARAMS::FDE_TXTEDTPARAMS() |
28 : fPlateWidth(0), | 28 : fPlateWidth(0), |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1622 m_SelRangePtrArr.RemoveAt(nCountRange); | 1622 m_SelRangePtrArr.RemoveAt(nCountRange); |
1623 DeleteRange_DoRecord(nSelStart, nSelCount, TRUE); | 1623 DeleteRange_DoRecord(nSelStart, nSelCount, TRUE); |
1624 } | 1624 } |
1625 ClearSelection(); | 1625 ClearSelection(); |
1626 m_Param.pEventSink->On_TextChanged(this, m_ChangeInfo); | 1626 m_Param.pEventSink->On_TextChanged(this, m_ChangeInfo); |
1627 m_Param.pEventSink->On_SelChanged(this); | 1627 m_Param.pEventSink->On_SelChanged(this); |
1628 SetCaretPos(nSelStart, TRUE); | 1628 SetCaretPos(nSelStart, TRUE); |
1629 return; | 1629 return; |
1630 } | 1630 } |
1631 } | 1631 } |
OLD | NEW |