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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_EditCtrl.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 | « fpdfsdk/pdfwindow/PWL_Edit.cpp ('k') | fpdfsdk/pdfwindow/PWL_EditCtrl.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_
8 #define FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void IOnSetCaret(FX_BOOL bVisible, 98 void IOnSetCaret(FX_BOOL bVisible,
99 const CFX_FloatPoint& ptHead, 99 const CFX_FloatPoint& ptHead,
100 const CFX_FloatPoint& ptFoot, 100 const CFX_FloatPoint& ptFoot,
101 const CPVT_WordPlace& place); 101 const CPVT_WordPlace& place);
102 void IOnCaretChange(const CPVT_SecProps& secProps, 102 void IOnCaretChange(const CPVT_SecProps& secProps,
103 const CPVT_WordProps& wordProps); 103 const CPVT_WordProps& wordProps);
104 void IOnContentChange(const CFX_FloatRect& rcContent); 104 void IOnContentChange(const CFX_FloatRect& rcContent);
105 void IOnInvalidateRect(CFX_FloatRect* pRect); 105 void IOnInvalidateRect(CFX_FloatRect* pRect);
106 106
107 protected: 107 protected:
108 void InsertText(const FX_WCHAR* csText); 108 void InsertText(const CFX_WideString& wsText);
109 void SetText(const FX_WCHAR* csText); 109 void SetText(const CFX_WideString& wsText);
110 void CopyText(); 110 void CopyText();
111 void PasteText(); 111 void PasteText();
112 void CutText(); 112 void CutText();
113 void ShowVScrollBar(FX_BOOL bShow); 113 void ShowVScrollBar(FX_BOOL bShow);
114 void InsertWord(uint16_t word, int32_t nCharset); 114 void InsertWord(uint16_t word, int32_t nCharset);
115 void InsertReturn(); 115 void InsertReturn();
116 116
117 FX_BOOL IsWndHorV(); 117 FX_BOOL IsWndHorV();
118 118
119 void Delete(); 119 void Delete();
(...skipping 11 matching lines...) Expand all
131 FX_BOOL m_bMouseDown; 131 FX_BOOL m_bMouseDown;
132 132
133 private: 133 private:
134 void CreateEditCaret(const PWL_CREATEPARAM& cp); 134 void CreateEditCaret(const PWL_CREATEPARAM& cp);
135 135
136 int32_t m_nCharSet; 136 int32_t m_nCharSet;
137 int32_t m_nCodePage; 137 int32_t m_nCodePage;
138 }; 138 };
139 139
140 #endif // FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_ 140 #endif // FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Edit.cpp ('k') | fpdfsdk/pdfwindow/PWL_EditCtrl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698