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_RTFBREAK_H_ | 7 #ifndef XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ |
8 #define XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ | 8 #define XFA_FGAS_LAYOUT_FGAS_RTFBREAK_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_memory.h" | 12 #include "xfa/fgas/crt/fgas_memory.h" |
13 #include "xfa/fgas/crt/fgas_utils.h" | 13 #include "xfa/fgas/crt/fgas_utils.h" |
14 #include "xfa/fgas/layout/fgas_textbreak.h" | 14 #include "xfa/fgas/layout/fgas_textbreak.h" |
15 #include "xfa/fgas/layout/fgas_unicode.h" | 15 #include "xfa/fgas/layout/fgas_unicode.h" |
16 | 16 |
17 class CFX_ArabicChar; | |
18 class IFX_Unknown; | 17 class IFX_Unknown; |
19 class IFX_Font; | 18 class IFX_Font; |
20 | 19 |
21 #define FX_RTFBREAKPOLICY_None 0x00 | 20 #define FX_RTFBREAKPOLICY_None 0x00 |
22 #define FX_RTFBREAKPOLICY_SpaceBreak 0x01 | 21 #define FX_RTFBREAKPOLICY_SpaceBreak 0x01 |
23 #define FX_RTFBREAKPOLICY_NumberBreak 0x02 | 22 #define FX_RTFBREAKPOLICY_NumberBreak 0x02 |
24 #define FX_RTFBREAKPOLICY_InfixBreak 0x04 | 23 #define FX_RTFBREAKPOLICY_InfixBreak 0x04 |
25 #define FX_RTFBREAKPOLICY_TabBreak 0x08 | 24 #define FX_RTFBREAKPOLICY_TabBreak 0x08 |
26 #define FX_RTFBREAKPOLICY_OrphanPositionedTab 0x10 | 25 #define FX_RTFBREAKPOLICY_OrphanPositionedTab 0x10 |
27 #define FX_RTFBREAK_None 0x00 | 26 #define FX_RTFBREAK_None 0x00 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 FX_BOOL bCharBBox = FALSE) const; | 285 FX_BOOL bCharBBox = FALSE) const; |
287 uint32_t AppendChar_CharCode(FX_WCHAR wch); | 286 uint32_t AppendChar_CharCode(FX_WCHAR wch); |
288 uint32_t AppendChar_Combination(CFX_RTFChar* pCurChar, int32_t iRotation); | 287 uint32_t AppendChar_Combination(CFX_RTFChar* pCurChar, int32_t iRotation); |
289 uint32_t AppendChar_Tab(CFX_RTFChar* pCurChar, int32_t iRotation); | 288 uint32_t AppendChar_Tab(CFX_RTFChar* pCurChar, int32_t iRotation); |
290 uint32_t AppendChar_Control(CFX_RTFChar* pCurChar, int32_t iRotation); | 289 uint32_t AppendChar_Control(CFX_RTFChar* pCurChar, int32_t iRotation); |
291 uint32_t AppendChar_Arabic(CFX_RTFChar* pCurChar, int32_t iRotation); | 290 uint32_t AppendChar_Arabic(CFX_RTFChar* pCurChar, int32_t iRotation); |
292 uint32_t AppendChar_Others(CFX_RTFChar* pCurChar, int32_t iRotation); | 291 uint32_t AppendChar_Others(CFX_RTFChar* pCurChar, int32_t iRotation); |
293 | 292 |
294 protected: | 293 protected: |
295 uint32_t m_dwPolicies; | 294 uint32_t m_dwPolicies; |
296 CFX_ArabicChar* m_pArabicChar; | |
297 int32_t m_iBoundaryStart; | 295 int32_t m_iBoundaryStart; |
298 int32_t m_iBoundaryEnd; | 296 int32_t m_iBoundaryEnd; |
299 uint32_t m_dwLayoutStyles; | 297 uint32_t m_dwLayoutStyles; |
300 FX_BOOL m_bPagination; | 298 FX_BOOL m_bPagination; |
301 FX_BOOL m_bVertical; | 299 FX_BOOL m_bVertical; |
302 FX_BOOL m_bSingleLine; | 300 FX_BOOL m_bSingleLine; |
303 FX_BOOL m_bCharCode; | 301 FX_BOOL m_bCharCode; |
304 IFX_Font* m_pFont; | 302 IFX_Font* m_pFont; |
305 int32_t m_iFontHeight; | 303 int32_t m_iFontHeight; |
306 int32_t m_iFontSize; | 304 int32_t m_iFontSize; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 FX_BOOL EndBreak_SplitLine(CFX_RTFLine* pNextLine, | 344 FX_BOOL EndBreak_SplitLine(CFX_RTFLine* pNextLine, |
347 FX_BOOL bAllChars, | 345 FX_BOOL bAllChars, |
348 uint32_t dwStatus); | 346 uint32_t dwStatus); |
349 void EndBreak_BidiLine(CFX_TPOArray& tpos, uint32_t dwStatus); | 347 void EndBreak_BidiLine(CFX_TPOArray& tpos, uint32_t dwStatus); |
350 void EndBreak_Alignment(CFX_TPOArray& tpos, | 348 void EndBreak_Alignment(CFX_TPOArray& tpos, |
351 FX_BOOL bAllChars, | 349 FX_BOOL bAllChars, |
352 uint32_t dwStatus); | 350 uint32_t dwStatus); |
353 }; | 351 }; |
354 | 352 |
355 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ | 353 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ |
OLD | NEW |