| 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_INCLUDE_CPDF_VARIABLETEXT_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ |
| 8 #define CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ |
| 9 | 9 |
| 10 #include "core/fpdfdoc/cpvt_floatrect.h" | 10 #include "core/fpdfdoc/cpvt_floatrect.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 FX_BOOL ClearEmptySection(const CPVT_WordPlace& place); | 221 FX_BOOL ClearEmptySection(const CPVT_WordPlace& place); |
| 222 void ClearEmptySections(const CPVT_WordRange& PlaceRange); | 222 void ClearEmptySections(const CPVT_WordRange& PlaceRange); |
| 223 void LinkLatterSection(const CPVT_WordPlace& place); | 223 void LinkLatterSection(const CPVT_WordPlace& place); |
| 224 void ClearWords(const CPVT_WordRange& PlaceRange); | 224 void ClearWords(const CPVT_WordRange& PlaceRange); |
| 225 CPVT_WordPlace ClearLeftWord(const CPVT_WordPlace& place); | 225 CPVT_WordPlace ClearLeftWord(const CPVT_WordPlace& place); |
| 226 CPVT_WordPlace ClearRightWord(const CPVT_WordPlace& place); | 226 CPVT_WordPlace ClearRightWord(const CPVT_WordPlace& place); |
| 227 | 227 |
| 228 CPVT_FloatRect Rearrange(const CPVT_WordRange& PlaceRange); | 228 CPVT_FloatRect Rearrange(const CPVT_WordRange& PlaceRange); |
| 229 FX_FLOAT GetAutoFontSize(); | 229 FX_FLOAT GetAutoFontSize(); |
| 230 FX_BOOL IsBigger(FX_FLOAT fFontSize); | 230 bool IsBigger(FX_FLOAT fFontSize) const; |
| 231 CPVT_FloatRect RearrangeSections(const CPVT_WordRange& PlaceRange); | 231 CPVT_FloatRect RearrangeSections(const CPVT_WordRange& PlaceRange); |
| 232 | 232 |
| 233 void ResetSectionArray(); | 233 void ResetSectionArray(); |
| 234 | 234 |
| 235 CPVT_ArrayTemplate<CSection*> m_SectionArray; | 235 CPVT_ArrayTemplate<CSection*> m_SectionArray; |
| 236 int32_t m_nLimitChar; | 236 int32_t m_nLimitChar; |
| 237 int32_t m_nCharArray; | 237 int32_t m_nCharArray; |
| 238 FX_BOOL m_bMultiLine; | 238 FX_BOOL m_bMultiLine; |
| 239 FX_BOOL m_bLimitWidth; | 239 FX_BOOL m_bLimitWidth; |
| 240 FX_BOOL m_bAutoFontSize; | 240 FX_BOOL m_bAutoFontSize; |
| 241 int32_t m_nAlignment; | 241 int32_t m_nAlignment; |
| 242 FX_FLOAT m_fLineLeading; | 242 FX_FLOAT m_fLineLeading; |
| 243 FX_FLOAT m_fCharSpace; | 243 FX_FLOAT m_fCharSpace; |
| 244 int32_t m_nHorzScale; | 244 int32_t m_nHorzScale; |
| 245 uint16_t m_wSubWord; | 245 uint16_t m_wSubWord; |
| 246 FX_FLOAT m_fFontSize; | 246 FX_FLOAT m_fFontSize; |
| 247 FX_BOOL m_bInitial; | 247 FX_BOOL m_bInitial; |
| 248 FX_BOOL m_bRichText; | 248 FX_BOOL m_bRichText; |
| 249 CPDF_VariableText::Provider* m_pVTProvider; | 249 CPDF_VariableText::Provider* m_pVTProvider; |
| 250 CPDF_VariableText::Iterator* m_pVTIterator; | 250 CPDF_VariableText::Iterator* m_pVTIterator; |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ | 253 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ |
| OLD | NEW |