| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFDOC_CPVT_WORDINFO_H_ | 7 #ifndef CORE_FPDFDOC_CPVT_WORDINFO_H_ |
| 8 #define CORE_FPDFDOC_CPVT_WORDINFO_H_ | 8 #define CORE_FPDFDOC_CPVT_WORDINFO_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fpdfdoc/cpvt_wordprops.h" | 12 #include "core/fpdfdoc/cpvt_wordprops.h" |
| 13 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/fx_system.h" |
| 14 | 14 |
| 15 struct CPVT_WordInfo { | 15 struct CPVT_WordInfo { |
| 16 CPVT_WordInfo(); | 16 CPVT_WordInfo(); |
| 17 CPVT_WordInfo(uint16_t word, | 17 CPVT_WordInfo(uint16_t word, |
| 18 int32_t charset, | 18 int32_t charset, |
| 19 int32_t fontIndex, | 19 int32_t fontIndex, |
| 20 CPVT_WordProps* pProps); | 20 CPVT_WordProps* pProps); |
| 21 CPVT_WordInfo(const CPVT_WordInfo& word); | 21 CPVT_WordInfo(const CPVT_WordInfo& word); |
| 22 ~CPVT_WordInfo(); | 22 ~CPVT_WordInfo(); |
| 23 | 23 |
| 24 void operator=(const CPVT_WordInfo& word); | 24 void operator=(const CPVT_WordInfo& word); |
| 25 | 25 |
| 26 uint16_t Word; | 26 uint16_t Word; |
| 27 int32_t nCharset; | 27 int32_t nCharset; |
| 28 FX_FLOAT fWordX; | 28 FX_FLOAT fWordX; |
| 29 FX_FLOAT fWordY; | 29 FX_FLOAT fWordY; |
| 30 FX_FLOAT fWordTail; | 30 FX_FLOAT fWordTail; |
| 31 int32_t nFontIndex; | 31 int32_t nFontIndex; |
| 32 std::unique_ptr<CPVT_WordProps> pWordProps; | 32 std::unique_ptr<CPVT_WordProps> pWordProps; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 #endif // CORE_FPDFDOC_CPVT_WORDINFO_H_ | 35 #endif // CORE_FPDFDOC_CPVT_WORDINFO_H_ |
| OLD | NEW |