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

Side by Side Diff: xfa/fgas/layout/fgas_textbreak.h

Issue 2053963002: Avoid casts via correct types in fgas_textbreak (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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 | « no previous file | xfa/fgas/layout/fgas_textbreak.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_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 7 #ifndef XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
8 #define XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 8 #define XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
9 9
10 #include "core/fxcrt/include/fx_ucd.h" 10 #include "core/fxcrt/include/fx_ucd.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void ClearBreakPieces(); 255 void ClearBreakPieces();
256 void Reset(); 256 void Reset();
257 int32_t GetDisplayPos(const FX_TXTRUN* pTxtRun, 257 int32_t GetDisplayPos(const FX_TXTRUN* pTxtRun,
258 FXTEXT_CHARPOS* pCharPos, 258 FXTEXT_CHARPOS* pCharPos,
259 FX_BOOL bCharCode = FALSE, 259 FX_BOOL bCharCode = FALSE,
260 CFX_WideString* pWSForms = NULL, 260 CFX_WideString* pWSForms = NULL,
261 FX_AdjustCharDisplayPos pAdjustPos = NULL) const; 261 FX_AdjustCharDisplayPos pAdjustPos = NULL) const;
262 int32_t GetCharRects(const FX_TXTRUN* pTxtRun, 262 int32_t GetCharRects(const FX_TXTRUN* pTxtRun,
263 CFX_RectFArray& rtArray, 263 CFX_RectFArray& rtArray,
264 FX_BOOL bCharBBox = FALSE) const; 264 FX_BOOL bCharBBox = FALSE) const;
265 void AppendChar_PageLoad(CFX_Char* pCurChar, uint32_t dwProps); 265 void AppendChar_PageLoad(CFX_TxtChar* pCurChar, uint32_t dwProps);
266 uint32_t AppendChar_Combination(CFX_Char* pCurChar, int32_t iRotation); 266 uint32_t AppendChar_Combination(CFX_TxtChar* pCurChar, int32_t iRotation);
267 uint32_t AppendChar_Tab(CFX_Char* pCurChar, int32_t iRotation); 267 uint32_t AppendChar_Tab(CFX_TxtChar* pCurChar, int32_t iRotation);
268 uint32_t AppendChar_Control(CFX_Char* pCurChar, int32_t iRotation); 268 uint32_t AppendChar_Control(CFX_TxtChar* pCurChar, int32_t iRotation);
269 uint32_t AppendChar_Arabic(CFX_Char* pCurChar, int32_t iRotation); 269 uint32_t AppendChar_Arabic(CFX_TxtChar* pCurChar, int32_t iRotation);
270 uint32_t AppendChar_Others(CFX_Char* pCurChar, int32_t iRotation); 270 uint32_t AppendChar_Others(CFX_TxtChar* pCurChar, int32_t iRotation);
271 271
272 private: 272 private:
273 void SetBreakStatus(); 273 void SetBreakStatus();
274 int32_t GetLineRotation(uint32_t dwStyles) const; 274 int32_t GetLineRotation(uint32_t dwStyles) const;
275 CFX_TxtChar* GetLastChar(int32_t index, FX_BOOL bOmitChar = TRUE) const; 275 CFX_TxtChar* GetLastChar(int32_t index, FX_BOOL bOmitChar = TRUE) const;
276 CFX_TxtLine* GetTxtLine(FX_BOOL bReady) const; 276 CFX_TxtLine* GetTxtLine(FX_BOOL bReady) const;
277 CFX_TxtPieceArray* GetTxtPieces(FX_BOOL bReady) const; 277 CFX_TxtPieceArray* GetTxtPieces(FX_BOOL bReady) const;
278 FX_CHARTYPE GetUnifiedCharType(FX_CHARTYPE dwType) const; 278 FX_CHARTYPE GetUnifiedCharType(FX_CHARTYPE dwType) const;
279 void ResetArabicContext(); 279 void ResetArabicContext();
280 void ResetContextCharStyles(); 280 void ResetContextCharStyles();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 CFX_TxtLine* m_pTxtLine2; 329 CFX_TxtLine* m_pTxtLine2;
330 CFX_TxtLine* m_pCurLine; 330 CFX_TxtLine* m_pCurLine;
331 int32_t m_iReady; 331 int32_t m_iReady;
332 int32_t m_iTolerance; 332 int32_t m_iTolerance;
333 int32_t m_iHorScale; 333 int32_t m_iHorScale;
334 int32_t m_iVerScale; 334 int32_t m_iVerScale;
335 int32_t m_iCharSpace; 335 int32_t m_iCharSpace;
336 }; 336 };
337 337
338 #endif // XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 338 #endif // XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fgas/layout/fgas_textbreak.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698