Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: core/fpdfdoc/include/cpdf_variabletext.h

Issue 2338553002: Stop converting widestring -> c_str -> widestring in several places. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfdoc/cpvt_generateap.cpp ('k') | fpdfsdk/cpdfsdk_widget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 10 #include <memory>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void SetFontSize(FX_FLOAT fFontSize) { m_fFontSize = fFontSize; } 101 void SetFontSize(FX_FLOAT fFontSize) { m_fFontSize = fFontSize; }
102 void SetCharArray(int32_t nCharArray) { m_nCharArray = nCharArray; } 102 void SetCharArray(int32_t nCharArray) { m_nCharArray = nCharArray; }
103 void SetAutoFontSize(FX_BOOL bAuto) { m_bAutoFontSize = bAuto; } 103 void SetAutoFontSize(FX_BOOL bAuto) { m_bAutoFontSize = bAuto; }
104 void Initialize(); 104 void Initialize();
105 105
106 FX_BOOL IsValid() const { return m_bInitial; } 106 FX_BOOL IsValid() const { return m_bInitial; }
107 107
108 void RearrangeAll(); 108 void RearrangeAll();
109 void RearrangePart(const CPVT_WordRange& PlaceRange); 109 void RearrangePart(const CPVT_WordRange& PlaceRange);
110 void ResetAll(); 110 void ResetAll();
111 void SetText(const FX_WCHAR* text); 111 void SetText(const CFX_WideString& text);
112 CPVT_WordPlace InsertWord(const CPVT_WordPlace& place, 112 CPVT_WordPlace InsertWord(const CPVT_WordPlace& place,
113 uint16_t word, 113 uint16_t word,
114 int32_t charset, 114 int32_t charset,
115 const CPVT_WordProps* pWordProps); 115 const CPVT_WordProps* pWordProps);
116 CPVT_WordPlace InsertSection(const CPVT_WordPlace& place, 116 CPVT_WordPlace InsertSection(const CPVT_WordPlace& place,
117 const CPVT_SecProps* pSecProps, 117 const CPVT_SecProps* pSecProps,
118 const CPVT_WordProps* pWordProps); 118 const CPVT_WordProps* pWordProps);
119 CPVT_WordPlace InsertText(const CPVT_WordPlace& place, const FX_WCHAR* text); 119 CPVT_WordPlace InsertText(const CPVT_WordPlace& place, const FX_WCHAR* text);
120 CPVT_WordPlace DeleteWords(const CPVT_WordRange& PlaceRange); 120 CPVT_WordPlace DeleteWords(const CPVT_WordRange& PlaceRange);
121 CPVT_WordPlace DeleteWord(const CPVT_WordPlace& place); 121 CPVT_WordPlace DeleteWord(const CPVT_WordPlace& place);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 uint16_t m_wSubWord; 242 uint16_t m_wSubWord;
243 FX_FLOAT m_fFontSize; 243 FX_FLOAT m_fFontSize;
244 FX_BOOL m_bInitial; 244 FX_BOOL m_bInitial;
245 CPDF_VariableText::Provider* m_pVTProvider; 245 CPDF_VariableText::Provider* m_pVTProvider;
246 std::unique_ptr<CPDF_VariableText::Iterator> m_pVTIterator; 246 std::unique_ptr<CPDF_VariableText::Iterator> m_pVTIterator;
247 CFX_FloatRect m_rcPlate; 247 CFX_FloatRect m_rcPlate;
248 CPVT_FloatRect m_rcContent; 248 CPVT_FloatRect m_rcContent;
249 }; 249 };
250 250
251 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ 251 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpvt_generateap.cpp ('k') | fpdfsdk/cpdfsdk_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698