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 XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 int32_t CountSelRanges(); | 113 int32_t CountSelRanges(); |
114 int32_t GetSelRange(int32_t nIndex, int32_t& nStart); | 114 int32_t GetSelRange(int32_t nIndex, int32_t& nStart); |
115 FWL_Error ClearSelections(); | 115 FWL_Error ClearSelections(); |
116 int32_t GetLimit(); | 116 int32_t GetLimit(); |
117 FWL_Error SetLimit(int32_t nLimit); | 117 FWL_Error SetLimit(int32_t nLimit); |
118 FWL_Error SetAliasChar(FX_WCHAR wAlias); | 118 FWL_Error SetAliasChar(FX_WCHAR wAlias); |
119 FWL_Error SetFormatString(const CFX_WideString& wsFormat); | 119 FWL_Error SetFormatString(const CFX_WideString& wsFormat); |
120 FWL_Error Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen); | 120 FWL_Error Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen); |
121 FWL_Error DeleteSelections(); | 121 FWL_Error DeleteSelections(); |
122 FWL_Error DeleteRange(int32_t nStart, int32_t nCount = -1); | 122 FWL_Error DeleteRange(int32_t nStart, int32_t nCount = -1); |
123 FWL_Error ReplaceSelections(const CFX_WideStringC& wsReplace); | |
124 FWL_Error Replace(int32_t nStart, | 123 FWL_Error Replace(int32_t nStart, |
125 int32_t nLen, | 124 int32_t nLen, |
126 const CFX_WideStringC& wsReplace); | 125 const CFX_WideStringC& wsReplace); |
127 FWL_Error DoClipboard(int32_t iCmd); | 126 FWL_Error DoClipboard(int32_t iCmd); |
128 FX_BOOL Copy(CFX_WideString& wsCopy); | 127 FX_BOOL Copy(CFX_WideString& wsCopy); |
129 FX_BOOL Cut(CFX_WideString& wsCut); | 128 FX_BOOL Cut(CFX_WideString& wsCut); |
130 FX_BOOL Paste(const CFX_WideString& wsPaste); | 129 FX_BOOL Paste(const CFX_WideString& wsPaste); |
131 FX_BOOL Delete(); | 130 FX_BOOL Delete(); |
132 FX_BOOL Redo(const CFX_ByteStringC& bsRecord); | 131 FX_BOOL Redo(const CFX_ByteStringC& bsRecord); |
133 FX_BOOL Undo(const CFX_ByteStringC& bsRecord); | 132 FX_BOOL Undo(const CFX_ByteStringC& bsRecord); |
(...skipping 10 matching lines...) Expand all Loading... |
144 FX_BOOL GetSuggestWords(CFX_PointF pointf, | 143 FX_BOOL GetSuggestWords(CFX_PointF pointf, |
145 std::vector<CFX_ByteString>& sSuggest); | 144 std::vector<CFX_ByteString>& sSuggest); |
146 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 145 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, |
147 const CFX_ByteStringC& bsReplace); | 146 const CFX_ByteStringC& bsReplace); |
148 | 147 |
149 protected: | 148 protected: |
150 IFWL_Edit(); | 149 IFWL_Edit(); |
151 }; | 150 }; |
152 | 151 |
153 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ | 152 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
OLD | NEW |