| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |