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