| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |