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