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 CORE_FXCRT_FX_UCD_H_ | 7 #ifndef CORE_FXCRT_FX_UCD_H_ |
8 #define CORE_FXCRT_FX_UCD_H_ | 8 #define CORE_FXCRT_FX_UCD_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_basic.h" | 10 #include "core/fxcrt/fx_basic.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 uint16_t m_wCharCode; | 142 uint16_t m_wCharCode; |
143 uint8_t m_nBreakType; | 143 uint8_t m_nBreakType; |
144 int8_t m_nRotation; | 144 int8_t m_nRotation; |
145 uint32_t m_dwCharProps; | 145 uint32_t m_dwCharProps; |
146 uint32_t m_dwCharStyles; | 146 uint32_t m_dwCharStyles; |
147 int32_t m_iCharWidth; | 147 int32_t m_iCharWidth; |
148 int32_t m_iHorizontalScale; | 148 int32_t m_iHorizontalScale; |
149 int32_t m_iVertialScale; | 149 int32_t m_iVertialScale; |
150 }; | 150 }; |
151 typedef CFX_ArrayTemplate<CFX_Char> CFX_CharArray; | 151 |
152 class CFX_TxtChar : public CFX_Char { | 152 class CFX_TxtChar : public CFX_Char { |
153 public: | 153 public: |
154 CFX_TxtChar() | 154 CFX_TxtChar() |
155 : m_dwStatus(0), | 155 : m_dwStatus(0), |
156 m_iBidiClass(0), | 156 m_iBidiClass(0), |
157 m_iBidiLevel(0), | 157 m_iBidiLevel(0), |
158 m_iBidiPos(0), | 158 m_iBidiPos(0), |
159 m_iBidiOrder(0), | 159 m_iBidiOrder(0), |
160 m_pUserData(nullptr) {} | 160 m_pUserData(nullptr) {} |
161 uint32_t m_dwStatus; | 161 uint32_t m_dwStatus; |
162 int16_t m_iBidiClass; | 162 int16_t m_iBidiClass; |
163 int16_t m_iBidiLevel; | 163 int16_t m_iBidiLevel; |
164 int16_t m_iBidiPos; | 164 int16_t m_iBidiPos; |
165 int16_t m_iBidiOrder; | 165 int16_t m_iBidiOrder; |
166 void* m_pUserData; | 166 void* m_pUserData; |
167 }; | 167 }; |
168 typedef CFX_ArrayTemplate<CFX_TxtChar> CFX_TxtCharArray; | 168 |
169 class CFX_RTFChar : public CFX_Char { | 169 class CFX_RTFChar : public CFX_Char { |
170 public: | 170 public: |
171 CFX_RTFChar(); | 171 CFX_RTFChar(); |
172 CFX_RTFChar(const CFX_RTFChar& other); | 172 CFX_RTFChar(const CFX_RTFChar& other); |
173 | 173 |
174 uint32_t m_dwStatus; | 174 uint32_t m_dwStatus; |
175 int32_t m_iFontSize; | 175 int32_t m_iFontSize; |
176 int32_t m_iFontHeight; | 176 int32_t m_iFontHeight; |
177 int16_t m_iBidiClass; | 177 int16_t m_iBidiClass; |
178 int16_t m_iBidiLevel; | 178 int16_t m_iBidiLevel; |
(...skipping 10 matching lines...) Expand all Loading... |
189 m_iFontHeight(0), | 189 m_iFontHeight(0), |
190 m_iBidiClass(0), | 190 m_iBidiClass(0), |
191 m_iBidiLevel(0), | 191 m_iBidiLevel(0), |
192 m_iBidiPos(0), | 192 m_iBidiPos(0), |
193 m_dwLayoutStyles(0), | 193 m_dwLayoutStyles(0), |
194 m_dwIdentity(0), | 194 m_dwIdentity(0), |
195 m_pUserData(nullptr) {} | 195 m_pUserData(nullptr) {} |
196 | 196 |
197 inline CFX_RTFChar::CFX_RTFChar(const CFX_RTFChar& other) = default; | 197 inline CFX_RTFChar::CFX_RTFChar(const CFX_RTFChar& other) = default; |
198 | 198 |
199 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray; | |
200 #endif // PDF_ENABLE_XFA | 199 #endif // PDF_ENABLE_XFA |
201 | 200 |
202 #endif // CORE_FXCRT_FX_UCD_H_ | 201 #endif // CORE_FXCRT_FX_UCD_H_ |
OLD | NEW |