| 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 _FWL_EDIT_LIGHT_H | 7 #ifndef FWL_LIGHTWIDGET_EDIT_H_ |
| 8 #define _FWL_EDIT_LIGHT_H | 8 #define FWL_LIGHTWIDGET_EDIT_H_ |
| 9 class CFWL_Widget; | 9 |
| 10 #include <vector> |
| 11 |
| 12 #include "xfa/include/fwl/lightwidget/widget.h" |
| 13 |
| 10 class CFWL_WidgetProperties; | 14 class CFWL_WidgetProperties; |
| 11 class CFWL_Edit; | 15 |
| 12 class CFWL_Edit : public CFWL_Widget { | 16 class CFWL_Edit : public CFWL_Widget { |
| 13 public: | 17 public: |
| 14 static CFWL_Edit* Create(); | 18 static CFWL_Edit* Create(); |
| 15 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 19 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
| 16 FWL_ERR SetText(const CFX_WideString& wsText); | 20 FWL_ERR SetText(const CFX_WideString& wsText); |
| 17 int32_t GetTextLength() const; | 21 int32_t GetTextLength() const; |
| 18 FWL_ERR GetText(CFX_WideString& wsText, | 22 FWL_ERR GetText(CFX_WideString& wsText, |
| 19 int32_t nStart = 0, | 23 int32_t nStart = 0, |
| 20 int32_t nCount = -1) const; | 24 int32_t nCount = -1) const; |
| 21 FWL_ERR ClearText(); | 25 FWL_ERR ClearText(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 45 FWL_ERR SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize); | 49 FWL_ERR SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize); |
| 46 FX_BOOL CanUndo(); | 50 FX_BOOL CanUndo(); |
| 47 FX_BOOL CanRedo(); | 51 FX_BOOL CanRedo(); |
| 48 FX_BOOL Undo(); | 52 FX_BOOL Undo(); |
| 49 FX_BOOL Redo(); | 53 FX_BOOL Redo(); |
| 50 FX_BOOL Copy(CFX_WideString& wsCopy); | 54 FX_BOOL Copy(CFX_WideString& wsCopy); |
| 51 FX_BOOL Cut(CFX_WideString& wsCut); | 55 FX_BOOL Cut(CFX_WideString& wsCut); |
| 52 FX_BOOL Paste(const CFX_WideString& wsPaste); | 56 FX_BOOL Paste(const CFX_WideString& wsPaste); |
| 53 FX_BOOL Delete(); | 57 FX_BOOL Delete(); |
| 54 void SetScrollOffset(FX_FLOAT fScrollOffset); | 58 void SetScrollOffset(FX_FLOAT fScrollOffset); |
| 55 FX_BOOL GetSuggestWords(CFX_PointF pointf, CFX_ByteStringArray& sSuggest); | 59 FX_BOOL GetSuggestWords(CFX_PointF pointf, |
| 60 std::vector<CFX_ByteString>& sSuggest); |
| 56 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 61 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, |
| 57 const CFX_ByteStringC& bsReplace); | 62 const CFX_ByteStringC& bsReplace); |
| 58 CFWL_Edit(); | 63 CFWL_Edit(); |
| 59 virtual ~CFWL_Edit(); | 64 virtual ~CFWL_Edit(); |
| 60 }; | 65 }; |
| 61 #endif | 66 |
| 67 #endif // FWL_LIGHTWIDGET_EDIT_H_ |
| OLD | NEW |