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 #ifndef XFA_FDE_CFDE_TXTEDTENGINE_H_ | 7 #ifndef XFA_FDE_CFDE_TXTEDTENGINE_H_ |
8 #define XFA_FDE_CFDE_TXTEDTENGINE_H_ | 8 #define XFA_FDE_CFDE_TXTEDTENGINE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int32_t GetSelRange(int32_t nIndex, int32_t* nStart) const; | 62 int32_t GetSelRange(int32_t nIndex, int32_t* nStart) const; |
63 void ClearSelection(); | 63 void ClearSelection(); |
64 | 64 |
65 bool Redo(const IFDE_TxtEdtDoRecord* pRecord); | 65 bool Redo(const IFDE_TxtEdtDoRecord* pRecord); |
66 bool Undo(const IFDE_TxtEdtDoRecord* pRecord); | 66 bool Undo(const IFDE_TxtEdtDoRecord* pRecord); |
67 | 67 |
68 int32_t StartLayout(); | 68 int32_t StartLayout(); |
69 int32_t DoLayout(IFX_Pause* pPause); | 69 int32_t DoLayout(IFX_Pause* pPause); |
70 void EndLayout(); | 70 void EndLayout(); |
71 | 71 |
72 bool Optimize(IFX_Pause* pPause = nullptr); | |
73 int32_t CountParags() const; | 72 int32_t CountParags() const; |
74 CFDE_TxtEdtParag* GetParag(int32_t nParagIndex) const; | 73 CFDE_TxtEdtParag* GetParag(int32_t nParagIndex) const; |
75 IFX_CharIter* CreateCharIter(); | 74 IFX_CharIter* CreateCharIter(); |
76 CFDE_TxtEdtBuf* GetTextBuf() const; | 75 CFDE_TxtEdtBuf* GetTextBuf() const; |
77 int32_t GetTextBufLength() const; | 76 int32_t GetTextBufLength() const; |
78 CFX_TxtBreak* GetTextBreak() const; | 77 CFX_TxtBreak* GetTextBreak() const; |
79 int32_t GetLineCount() const; | 78 int32_t GetLineCount() const; |
80 int32_t GetPageLineCount() const; | 79 int32_t GetPageLineCount() const; |
81 | 80 |
82 int32_t Line2Parag(int32_t nStartParag, | 81 int32_t Line2Parag(int32_t nStartParag, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 bool m_bLock; | 165 bool m_bLock; |
167 int32_t m_nLimit; | 166 int32_t m_nLimit; |
168 FX_WCHAR m_wcAliasChar; | 167 FX_WCHAR m_wcAliasChar; |
169 int32_t m_nFirstLineEnd; | 168 int32_t m_nFirstLineEnd; |
170 bool m_bAutoLineEnd; | 169 bool m_bAutoLineEnd; |
171 FX_WCHAR m_wLineEnd; | 170 FX_WCHAR m_wLineEnd; |
172 FDE_TXTEDT_TEXTCHANGE_INFO m_ChangeInfo; | 171 FDE_TXTEDT_TEXTCHANGE_INFO m_ChangeInfo; |
173 }; | 172 }; |
174 | 173 |
175 #endif // XFA_FDE_CFDE_TXTEDTENGINE_H_ | 174 #endif // XFA_FDE_CFDE_TXTEDTENGINE_H_ |
OLD | NEW |