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

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

Issue 1954593004: CFX_ArabicChar contains only static methods, no need to instantiate. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: re-namespace Created 4 years, 7 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/fgas/layout/fgas_rtfbreak.cpp ('k') | 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"
11 #include "core/fxge/include/fx_ge.h" 11 #include "core/fxge/include/fx_ge.h"
12 #include "xfa/fgas/crt/fgas_utils.h" 12 #include "xfa/fgas/crt/fgas_utils.h"
13 #include "xfa/fgas/layout/fgas_unicode.h" 13 #include "xfa/fgas/layout/fgas_unicode.h"
14 14
15 class CFX_ArabicChar;
16 class CFX_Char; 15 class CFX_Char;
17 class CFX_TxtChar; 16 class CFX_TxtChar;
18 class CFX_TxtPiece; 17 class CFX_TxtPiece;
19 class IFX_Font; 18 class IFX_Font;
20 class IFX_TxtAccess; 19 class IFX_TxtAccess;
21 20
22 #define FX_TXTBREAKPOLICY_None 0x00 21 #define FX_TXTBREAKPOLICY_None 0x00
23 #define FX_TXTBREAKPOLICY_Pagination 0x01 22 #define FX_TXTBREAKPOLICY_Pagination 0x01
24 #define FX_TXTBREAKPOLICY_SpaceBreak 0x02 23 #define FX_TXTBREAKPOLICY_SpaceBreak 0x02
25 #define FX_TXTBREAKPOLICY_NumberBreak 0x04 24 #define FX_TXTBREAKPOLICY_NumberBreak 0x04
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void AppendChar_PageLoad(CFX_Char* pCurChar, uint32_t dwProps); 262 void AppendChar_PageLoad(CFX_Char* pCurChar, uint32_t dwProps);
264 uint32_t AppendChar_Combination(CFX_Char* pCurChar, int32_t iRotation); 263 uint32_t AppendChar_Combination(CFX_Char* pCurChar, int32_t iRotation);
265 uint32_t AppendChar_Tab(CFX_Char* pCurChar, int32_t iRotation); 264 uint32_t AppendChar_Tab(CFX_Char* pCurChar, int32_t iRotation);
266 uint32_t AppendChar_Control(CFX_Char* pCurChar, int32_t iRotation); 265 uint32_t AppendChar_Control(CFX_Char* pCurChar, int32_t iRotation);
267 uint32_t AppendChar_Arabic(CFX_Char* pCurChar, int32_t iRotation); 266 uint32_t AppendChar_Arabic(CFX_Char* pCurChar, int32_t iRotation);
268 uint32_t AppendChar_Others(CFX_Char* pCurChar, int32_t iRotation); 267 uint32_t AppendChar_Others(CFX_Char* pCurChar, int32_t iRotation);
269 268
270 protected: 269 protected:
271 uint32_t m_dwPolicies; 270 uint32_t m_dwPolicies;
272 FX_BOOL m_bPagination; 271 FX_BOOL m_bPagination;
273 CFX_ArabicChar* m_pArabicChar;
274 int32_t m_iLineWidth; 272 int32_t m_iLineWidth;
275 uint32_t m_dwLayoutStyles; 273 uint32_t m_dwLayoutStyles;
276 FX_BOOL m_bVertical; 274 FX_BOOL m_bVertical;
277 FX_BOOL m_bArabicContext; 275 FX_BOOL m_bArabicContext;
278 FX_BOOL m_bArabicShapes; 276 FX_BOOL m_bArabicShapes;
279 FX_BOOL m_bRTL; 277 FX_BOOL m_bRTL;
280 FX_BOOL m_bSingleLine; 278 FX_BOOL m_bSingleLine;
281 FX_BOOL m_bCombText; 279 FX_BOOL m_bCombText;
282 int32_t m_iArabicContext; 280 int32_t m_iArabicContext;
283 int32_t m_iCurArabicContext; 281 int32_t m_iCurArabicContext;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 int32_t GetBreakPos(CFX_TxtCharArray& ca, 325 int32_t GetBreakPos(CFX_TxtCharArray& ca,
328 int32_t& iEndPos, 326 int32_t& iEndPos,
329 FX_BOOL bAllChars = FALSE, 327 FX_BOOL bAllChars = FALSE,
330 FX_BOOL bOnlyBrk = FALSE); 328 FX_BOOL bOnlyBrk = FALSE);
331 void SplitTextLine(CFX_TxtLine* pCurLine, 329 void SplitTextLine(CFX_TxtLine* pCurLine,
332 CFX_TxtLine* pNextLine, 330 CFX_TxtLine* pNextLine,
333 FX_BOOL bAllChars = FALSE); 331 FX_BOOL bAllChars = FALSE);
334 }; 332 };
335 333
336 #endif // XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 334 #endif // XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_rtfbreak.cpp ('k') | xfa/fgas/layout/fgas_textbreak.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698