14d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Copyright 2016 PDFium Authors. All rights reserved. 24d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Use of this source code is governed by a BSD-style license that can be 34d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// found in the LICENSE file. 44d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 54d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 64d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 74d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#ifndef CORE_FPDFDOC_CPVT_WORD_H_ 84d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#define CORE_FPDFDOC_CPVT_WORD_H_ 94d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 104d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fpdfdoc/cpvt_wordplace.h" 114d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fxcrt/fx_system.h" 124d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 1333357cad1fd1321a2b38d2963e2585f27ce980a2Philip P. Moltmannclass CPVT_Word { 1433357cad1fd1321a2b38d2963e2585f27ce980a2Philip P. Moltmann public: 154d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann CPVT_Word(); 164d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 174d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann uint16_t Word; 184d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t nCharset; 194d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann CPVT_WordPlace WordPlace; 2033357cad1fd1321a2b38d2963e2585f27ce980a2Philip P. Moltmann CFX_PointF ptWord; 21d904c1ec7e8d1d86ed56f0dd252435d12cd345aePhilip P. Moltmann float fAscent; 22d904c1ec7e8d1d86ed56f0dd252435d12cd345aePhilip P. Moltmann float fDescent; 23d904c1ec7e8d1d86ed56f0dd252435d12cd345aePhilip P. Moltmann float fWidth; 244d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t nFontIndex; 25d904c1ec7e8d1d86ed56f0dd252435d12cd345aePhilip P. Moltmann float fFontSize; 264d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann}; 274d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 284d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmanninline CPVT_Word::CPVT_Word() 294d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann : Word(0), 304d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann nCharset(0), 314d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann fAscent(0.0f), 324d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann fDescent(0.0f), 334d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann fWidth(0.0f), 344d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann nFontIndex(-1), 354d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann fFontSize(0.0f) {} 364d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 374d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#endif // CORE_FPDFDOC_CPVT_WORD_H_ 38