1 // Copyright 2016 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 CORE_FPDFDOC_CTYPESET_H_ 8 #define CORE_FPDFDOC_CTYPESET_H_ 9 10 #include "core/fpdfdoc/cpvt_floatrect.h" 11 #include "core/fxcrt/fx_system.h" 12 13 class CPDF_VariableText; 14 class CSection; 15 16 class CTypeset final { 17 public: 18 explicit CTypeset(CSection* pSection); 19 ~CTypeset(); 20 21 CFX_SizeF GetEditSize(FX_FLOAT fFontSize); 22 CPVT_FloatRect Typeset(); 23 CPVT_FloatRect CharArray(); 24 25 private: 26 void SplitLines(bool bTypeset, FX_FLOAT fFontSize); 27 void OutputLines(); 28 29 CPVT_FloatRect m_rcRet; 30 CPDF_VariableText* const m_pVT; 31 CSection* const m_pSection; 32 }; 33 34 #endif // CORE_FPDFDOC_CTYPESET_H_ 35