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

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

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: Created 4 years, 6 months 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_txtedtbuf.cpp ('k') | xfa/fde/cfde_txtedtengine.cpp » ('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 #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 "xfa/fde/ifde_txtedtengine.h" 10 #include "xfa/fde/ifde_txtedtengine.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 int32_t GetSelRange(int32_t nIndex, int32_t& nStart); 59 int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
60 void ClearSelection(); 60 void ClearSelection();
61 61
62 FX_BOOL Redo(const IFDE_TxtEdtDoRecord* pRecord); 62 FX_BOOL Redo(const IFDE_TxtEdtDoRecord* pRecord);
63 FX_BOOL Undo(const IFDE_TxtEdtDoRecord* pRecord); 63 FX_BOOL Undo(const IFDE_TxtEdtDoRecord* pRecord);
64 64
65 int32_t StartLayout(); 65 int32_t StartLayout();
66 int32_t DoLayout(IFX_Pause* pPause); 66 int32_t DoLayout(IFX_Pause* pPause);
67 void EndLayout(); 67 void EndLayout();
68 68
69 FX_BOOL Optimize(IFX_Pause* pPause = NULL); 69 FX_BOOL Optimize(IFX_Pause* pPause = nullptr);
70 int32_t CountParags() const; 70 int32_t CountParags() const;
71 CFDE_TxtEdtParag* GetParag(int32_t nParagIndex) const; 71 CFDE_TxtEdtParag* GetParag(int32_t nParagIndex) const;
72 IFX_CharIter* CreateCharIter(); 72 IFX_CharIter* CreateCharIter();
73 CFDE_TxtEdtBuf* GetTextBuf() const; 73 CFDE_TxtEdtBuf* GetTextBuf() const;
74 int32_t GetTextBufLength() const; 74 int32_t GetTextBufLength() const;
75 CFX_TxtBreak* GetTextBreak() const; 75 CFX_TxtBreak* GetTextBreak() const;
76 int32_t GetLineCount() const; 76 int32_t GetLineCount() const;
77 int32_t GetPageLineCount() const; 77 int32_t GetPageLineCount() const;
78 78
79 int32_t Line2Parag(int32_t nStartParag, 79 int32_t Line2Parag(int32_t nStartParag,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 FX_BOOL m_bLock; 169 FX_BOOL m_bLock;
170 int32_t m_nLimit; 170 int32_t m_nLimit;
171 FX_WCHAR m_wcAliasChar; 171 FX_WCHAR m_wcAliasChar;
172 int32_t m_nFirstLineEnd; 172 int32_t m_nFirstLineEnd;
173 FX_BOOL m_bAutoLineEnd; 173 FX_BOOL m_bAutoLineEnd;
174 FX_WCHAR m_wLineEnd; 174 FX_WCHAR m_wLineEnd;
175 FDE_TXTEDT_TEXTCHANGE_INFO m_ChangeInfo; 175 FDE_TXTEDT_TEXTCHANGE_INFO m_ChangeInfo;
176 }; 176 };
177 177
178 #endif // XFA_FDE_CFDE_TXTEDTENGINE_H_ 178 #endif // XFA_FDE_CFDE_TXTEDTENGINE_H_
OLDNEW
« no previous file with comments | « xfa/fde/cfde_txtedtbuf.cpp ('k') | xfa/fde/cfde_txtedtengine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698