1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_CXFA_TEXTPIECE_H_ 8 #define XFA_FXFA_CXFA_TEXTPIECE_H_ 9 10 #include <vector> 11 12 #include "core/fxcrt/fx_coordinates.h" 13 #include "core/fxcrt/fx_string.h" 14 #include "core/fxge/fx_dib.h" 15 #include "xfa/fxfa/fxfa_basic.h" 16 17 class CFGAS_GEFont; 18 class CXFA_LinkUserData; 19 20 class CXFA_TextPiece { 21 public: 22 CXFA_TextPiece(); 23 ~CXFA_TextPiece(); 24 25 WideString szText; 26 std::vector<int32_t> Widths; 27 int32_t iChars; 28 int32_t iHorScale; 29 int32_t iVerScale; 30 int32_t iBidiLevel; 31 int32_t iUnderline; 32 XFA_AttributeEnum iPeriod; 33 int32_t iLineThrough; 34 FX_ARGB dwColor; 35 float fFontSize; 36 CFX_RectF rtPiece; 37 RetainPtr<CFGAS_GEFont> pFont; 38 RetainPtr<CXFA_LinkUserData> pLinkData; 39 }; 40 41 #endif // XFA_FXFA_CXFA_TEXTPIECE_H_ 42