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

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

Issue 2535723010: Rename IFX_Stream to IFGAS_Stream. (Closed)
Patch Set: rename more to IFGAS, {} 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 | « xfa/fde/cfde_txtedtengine.h ('k') | xfa/fde/css/fde_css.h » ('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 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
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return ((m_nLineCount - 1) / m_nPageLineCount) + 1; 100 return ((m_nLineCount - 1) / m_nPageLineCount) + 1;
101 } 101 }
102 102
103 IFDE_TxtEdtPage* CFDE_TxtEdtEngine::GetPage(int32_t nIndex) { 103 IFDE_TxtEdtPage* CFDE_TxtEdtEngine::GetPage(int32_t nIndex) {
104 if (m_PagePtrArray.GetSize() <= nIndex) { 104 if (m_PagePtrArray.GetSize() <= nIndex) {
105 return nullptr; 105 return nullptr;
106 } 106 }
107 return m_PagePtrArray[nIndex]; 107 return m_PagePtrArray[nIndex];
108 } 108 }
109 109
110 void CFDE_TxtEdtEngine::SetTextByStream(IFX_Stream* pStream) { 110 void CFDE_TxtEdtEngine::SetTextByStream(IFGAS_Stream* pStream) {
111 ResetEngine(); 111 ResetEngine();
112 int32_t nIndex = 0; 112 int32_t nIndex = 0;
113 if (pStream && pStream->GetLength()) { 113 if (pStream && pStream->GetLength()) {
114 int32_t nStreamLength = pStream->GetLength(); 114 int32_t nStreamLength = pStream->GetLength();
115 bool bValid = true; 115 bool bValid = true;
116 if (m_nLimit > 0 && nStreamLength > m_nLimit) { 116 if (m_nLimit > 0 && nStreamLength > m_nLimit) {
117 bValid = false; 117 bValid = false;
118 } 118 }
119 bool bPreIsCR = false; 119 bool bPreIsCR = false;
120 if (bValid) { 120 if (bValid) {
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 m_SelRangePtrArr.RemoveAt(nCountRange); 1616 m_SelRangePtrArr.RemoveAt(nCountRange);
1617 DeleteRange_DoRecord(nSelStart, nSelCount, true); 1617 DeleteRange_DoRecord(nSelStart, nSelCount, true);
1618 } 1618 }
1619 ClearSelection(); 1619 ClearSelection();
1620 m_Param.pEventSink->On_TextChanged(this, m_ChangeInfo); 1620 m_Param.pEventSink->On_TextChanged(this, m_ChangeInfo);
1621 m_Param.pEventSink->On_SelChanged(this); 1621 m_Param.pEventSink->On_SelChanged(this);
1622 SetCaretPos(nSelStart, true); 1622 SetCaretPos(nSelStart, true);
1623 return; 1623 return;
1624 } 1624 }
1625 } 1625 }
OLDNEW
« no previous file with comments | « xfa/fde/cfde_txtedtengine.h ('k') | xfa/fde/css/fde_css.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698