| 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_FDE_IFDE_TXTEDTENGINE_H_ | 7 #ifndef XFA_FDE_IFDE_TXTEDTENGINE_H_ |
| 8 #define XFA_FDE_IFDE_TXTEDTENGINE_H_ | 8 #define XFA_FDE_IFDE_TXTEDTENGINE_H_ |
| 9 | 9 |
| 10 #include "core/fxge/include/fx_dib.h" | 10 #include "core/fxge/include/fx_dib.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 nHorzScale(100), | 104 nHorzScale(100), |
| 105 fCharSpace(0), | 105 fCharSpace(0), |
| 106 pEventSink(nullptr) {} | 106 pEventSink(nullptr) {} |
| 107 | 107 |
| 108 FX_FLOAT fPlateWidth; | 108 FX_FLOAT fPlateWidth; |
| 109 FX_FLOAT fPlateHeight; | 109 FX_FLOAT fPlateHeight; |
| 110 int32_t nLineCount; | 110 int32_t nLineCount; |
| 111 uint32_t dwLayoutStyles; | 111 uint32_t dwLayoutStyles; |
| 112 uint32_t dwAlignment; | 112 uint32_t dwAlignment; |
| 113 uint32_t dwMode; | 113 uint32_t dwMode; |
| 114 IFX_Font* pFont; | 114 CFX_GEFont* pFont; |
| 115 FX_FLOAT fFontSize; | 115 FX_FLOAT fFontSize; |
| 116 FX_ARGB dwFontColor; | 116 FX_ARGB dwFontColor; |
| 117 FX_FLOAT fLineSpace; | 117 FX_FLOAT fLineSpace; |
| 118 FX_FLOAT fTabWidth; | 118 FX_FLOAT fTabWidth; |
| 119 FX_BOOL bTabEquidistant; | 119 FX_BOOL bTabEquidistant; |
| 120 FX_WCHAR wDefChar; | 120 FX_WCHAR wDefChar; |
| 121 FX_WCHAR wLineBreakChar; | 121 FX_WCHAR wLineBreakChar; |
| 122 int32_t nCharRotation; | 122 int32_t nCharRotation; |
| 123 int32_t nLineEnd; | 123 int32_t nLineEnd; |
| 124 int32_t nHorzScale; | 124 int32_t nHorzScale; |
| 125 FX_FLOAT fCharSpace; | 125 FX_FLOAT fCharSpace; |
| 126 CFWL_EditImp* pEventSink; | 126 CFWL_EditImp* pEventSink; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 enum FDE_TXTEDT_TEXTCHANGE_TYPE { | 129 enum FDE_TXTEDT_TEXTCHANGE_TYPE { |
| 130 FDE_TXTEDT_TEXTCHANGE_TYPE_Insert = 0, | 130 FDE_TXTEDT_TEXTCHANGE_TYPE_Insert = 0, |
| 131 FDE_TXTEDT_TEXTCHANGE_TYPE_Delete, | 131 FDE_TXTEDT_TEXTCHANGE_TYPE_Delete, |
| 132 FDE_TXTEDT_TEXTCHANGE_TYPE_Replace, | 132 FDE_TXTEDT_TEXTCHANGE_TYPE_Replace, |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 struct FDE_TXTEDT_TEXTCHANGE_INFO { | 135 struct FDE_TXTEDT_TEXTCHANGE_INFO { |
| 136 int32_t nChangeType; | 136 int32_t nChangeType; |
| 137 CFX_WideString wsInsert; | 137 CFX_WideString wsInsert; |
| 138 CFX_WideString wsDelete; | 138 CFX_WideString wsDelete; |
| 139 CFX_WideString wsPrevText; | 139 CFX_WideString wsPrevText; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // XFA_FDE_IFDE_TXTEDTENGINE_H_ | 142 #endif // XFA_FDE_IFDE_TXTEDTENGINE_H_ |
| OLD | NEW |