| 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_SRC_FGAS_LAYOUT_FGAS_RTFBREAK_H_ | 7 #ifndef XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ |
| 8 #define XFA_SRC_FGAS_LAYOUT_FGAS_RTFBREAK_H_ | 8 #define XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_ucd.h" | 10 #include "core/include/fxcrt/fx_ucd.h" |
| 11 #include "core/include/fxge/fx_ge.h" | 11 #include "core/include/fxge/fx_ge.h" |
| 12 #include "xfa/src/fgas/crt/fgas_memory.h" | 12 #include "xfa/fgas/crt/fgas_memory.h" |
| 13 #include "xfa/src/fgas/crt/fgas_utils.h" | 13 #include "xfa/fgas/crt/fgas_utils.h" |
| 14 #include "xfa/src/fgas/layout/fgas_textbreak.h" | 14 #include "xfa/fgas/layout/fgas_textbreak.h" |
| 15 #include "xfa/src/fgas/layout/fgas_unicode.h" | 15 #include "xfa/fgas/layout/fgas_unicode.h" |
| 16 | 16 |
| 17 class IFX_Unknown; | 17 class IFX_Unknown; |
| 18 class IFX_Font; | 18 class IFX_Font; |
| 19 | 19 |
| 20 #define FX_RTFBREAKPOLICY_None 0x00 | 20 #define FX_RTFBREAKPOLICY_None 0x00 |
| 21 #define FX_RTFBREAKPOLICY_SpaceBreak 0x01 | 21 #define FX_RTFBREAKPOLICY_SpaceBreak 0x01 |
| 22 #define FX_RTFBREAKPOLICY_NumberBreak 0x02 | 22 #define FX_RTFBREAKPOLICY_NumberBreak 0x02 |
| 23 #define FX_RTFBREAKPOLICY_InfixBreak 0x04 | 23 #define FX_RTFBREAKPOLICY_InfixBreak 0x04 |
| 24 #define FX_RTFBREAKPOLICY_TabBreak 0x08 | 24 #define FX_RTFBREAKPOLICY_TabBreak 0x08 |
| 25 #define FX_RTFBREAKPOLICY_OrphanPositionedTab 0x10 | 25 #define FX_RTFBREAKPOLICY_OrphanPositionedTab 0x10 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 const FX_RTFTEXTOBJ* pText, | 227 const FX_RTFTEXTOBJ* pText, |
| 228 FXTEXT_CHARPOS* pCharPos, | 228 FXTEXT_CHARPOS* pCharPos, |
| 229 FX_BOOL bCharCode = FALSE, | 229 FX_BOOL bCharCode = FALSE, |
| 230 CFX_WideString* pWSForms = NULL, | 230 CFX_WideString* pWSForms = NULL, |
| 231 FX_AdjustCharDisplayPos pAdjustPos = NULL) const = 0; | 231 FX_AdjustCharDisplayPos pAdjustPos = NULL) const = 0; |
| 232 virtual int32_t GetCharRects(const FX_RTFTEXTOBJ* pText, | 232 virtual int32_t GetCharRects(const FX_RTFTEXTOBJ* pText, |
| 233 CFX_RectFArray& rtArray, | 233 CFX_RectFArray& rtArray, |
| 234 FX_BOOL bCharBBox = FALSE) const = 0; | 234 FX_BOOL bCharBBox = FALSE) const = 0; |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 #endif // XFA_SRC_FGAS_LAYOUT_FGAS_RTFBREAK_H_ | 237 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ |
| OLD | NEW |