| 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/src/fee/src/fee/fde_txtedtengine.h" | 7 #include "xfa/src/fee/fde_txtedtengine.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "xfa/src/fee/include/ifde_txtedtbuf.h" | 11 #include "xfa/src/fee/fde_txtedtbuf.h" |
| 12 #include "xfa/src/fee/include/ifde_txtedtengine.h" | 12 #include "xfa/src/fee/fde_txtedtparag.h" |
| 13 #include "xfa/src/fee/include/ifde_txtedtpage.h" | 13 #include "xfa/src/fee/ifde_txtedtbuf.h" |
| 14 #include "xfa/src/fee/src/fee/fde_txtedtbuf.h" | 14 #include "xfa/src/fee/ifde_txtedtengine.h" |
| 15 #include "xfa/src/fee/src/fee/fde_txtedtparag.h" | 15 #include "xfa/src/fee/ifde_txtedtpage.h" |
| 16 #include "xfa/src/fdp/include/fde_tto.h" | 16 #include "xfa/src/fdp/include/fde_tto.h" |
| 17 | 17 |
| 18 #define FDE_PAGEWIDTH_MAX 0xFFFF | 18 #define FDE_PAGEWIDTH_MAX 0xFFFF |
| 19 #define FDE_TXTPLATESIZE (1024 * 12) | 19 #define FDE_TXTPLATESIZE (1024 * 12) |
| 20 #define FDE_UNICODE_PARAGRAPH_SPERATOR (0x2029) | 20 #define FDE_UNICODE_PARAGRAPH_SPERATOR (0x2029) |
| 21 #define FDE_TXTEDT_DORECORD_INS 0 | 21 #define FDE_TXTEDT_DORECORD_INS 0 |
| 22 #define FDE_TXTEDT_DORECORD_DEL 1 | 22 #define FDE_TXTEDT_DORECORD_DEL 1 |
| 23 | 23 |
| 24 IFDE_TxtEdtEngine* IFDE_TxtEdtEngine::Create() { | 24 IFDE_TxtEdtEngine* IFDE_TxtEdtEngine::Create() { |
| 25 return new CFDE_TxtEdtEngine(); | 25 return new CFDE_TxtEdtEngine(); |
| (...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1774 int32_t nEngine = 0; | 1774 int32_t nEngine = 0; |
| 1775 ArchiveLoader >> nEngine; | 1775 ArchiveLoader >> nEngine; |
| 1776 m_pEngine = (CFDE_TxtEdtEngine*)(uintptr_t)nEngine; | 1776 m_pEngine = (CFDE_TxtEdtEngine*)(uintptr_t)nEngine; |
| 1777 int32_t iSel = 0; | 1777 int32_t iSel = 0; |
| 1778 ArchiveLoader >> iSel; | 1778 ArchiveLoader >> iSel; |
| 1779 m_bSel = !!iSel; | 1779 m_bSel = !!iSel; |
| 1780 ArchiveLoader >> m_nIndex; | 1780 ArchiveLoader >> m_nIndex; |
| 1781 ArchiveLoader >> m_nCaret; | 1781 ArchiveLoader >> m_nCaret; |
| 1782 ArchiveLoader >> m_wsRange; | 1782 ArchiveLoader >> m_wsRange; |
| 1783 } | 1783 } |
| OLD | NEW |