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

Side by Side Diff: xfa/fwl/basewidget/ifwl_edit.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 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 | « xfa/fwl/basewidget/ifwl_datetimepicker.h ('k') | xfa/fwl/basewidget/ifwl_listbox.h » ('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 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 class IFWL_EditDP : public IFWL_DataProvider {}; 98 class IFWL_EditDP : public IFWL_DataProvider {};
99 99
100 class IFWL_Edit : public IFWL_Widget { 100 class IFWL_Edit : public IFWL_Widget {
101 public: 101 public:
102 static IFWL_Edit* Create(const CFWL_WidgetImpProperties& properties, 102 static IFWL_Edit* Create(const CFWL_WidgetImpProperties& properties,
103 IFWL_Widget* pOuter); 103 IFWL_Widget* pOuter);
104 static IFWL_Edit* CreateComboEdit(const CFWL_WidgetImpProperties& properties, 104 static IFWL_Edit* CreateComboEdit(const CFWL_WidgetImpProperties& properties,
105 IFWL_Widget* pOuter); 105 IFWL_Widget* pOuter);
106 106
107 FWL_ERR SetText(const CFX_WideString& wsText); 107 FWL_Error SetText(const CFX_WideString& wsText);
108 int32_t GetTextLength() const; 108 int32_t GetTextLength() const;
109 FWL_ERR GetText(CFX_WideString& wsText, 109 FWL_Error GetText(CFX_WideString& wsText,
110 int32_t nStart = 0, 110 int32_t nStart = 0,
111 int32_t nCount = -1) const; 111 int32_t nCount = -1) const;
112 FWL_ERR ClearText(); 112 FWL_Error ClearText();
113 int32_t GetCaretPos() const; 113 int32_t GetCaretPos() const;
114 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE); 114 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE);
115 FWL_ERR AddSelRange(int32_t nStart, int32_t nCount = -1); 115 FWL_Error AddSelRange(int32_t nStart, int32_t nCount = -1);
116 int32_t CountSelRanges(); 116 int32_t CountSelRanges();
117 int32_t GetSelRange(int32_t nIndex, int32_t& nStart); 117 int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
118 FWL_ERR ClearSelections(); 118 FWL_Error ClearSelections();
119 int32_t GetLimit(); 119 int32_t GetLimit();
120 FWL_ERR SetLimit(int32_t nLimit); 120 FWL_Error SetLimit(int32_t nLimit);
121 FWL_ERR SetAliasChar(FX_WCHAR wAlias); 121 FWL_Error SetAliasChar(FX_WCHAR wAlias);
122 FWL_ERR SetFormatString(const CFX_WideString& wsFormat); 122 FWL_Error SetFormatString(const CFX_WideString& wsFormat);
123 FWL_ERR Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen); 123 FWL_Error Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen);
124 FWL_ERR DeleteSelections(); 124 FWL_Error DeleteSelections();
125 FWL_ERR DeleteRange(int32_t nStart, int32_t nCount = -1); 125 FWL_Error DeleteRange(int32_t nStart, int32_t nCount = -1);
126 FWL_ERR ReplaceSelections(const CFX_WideStringC& wsReplace); 126 FWL_Error ReplaceSelections(const CFX_WideStringC& wsReplace);
127 FWL_ERR Replace(int32_t nStart, 127 FWL_Error Replace(int32_t nStart,
128 int32_t nLen, 128 int32_t nLen,
129 const CFX_WideStringC& wsReplace); 129 const CFX_WideStringC& wsReplace);
130 FWL_ERR DoClipboard(int32_t iCmd); 130 FWL_Error DoClipboard(int32_t iCmd);
131 FX_BOOL Copy(CFX_WideString& wsCopy); 131 FX_BOOL Copy(CFX_WideString& wsCopy);
132 FX_BOOL Cut(CFX_WideString& wsCut); 132 FX_BOOL Cut(CFX_WideString& wsCut);
133 FX_BOOL Paste(const CFX_WideString& wsPaste); 133 FX_BOOL Paste(const CFX_WideString& wsPaste);
134 FX_BOOL Delete(); 134 FX_BOOL Delete();
135 FX_BOOL Redo(const CFX_ByteStringC& bsRecord); 135 FX_BOOL Redo(const CFX_ByteStringC& bsRecord);
136 FX_BOOL Undo(const CFX_ByteStringC& bsRecord); 136 FX_BOOL Undo(const CFX_ByteStringC& bsRecord);
137 FX_BOOL Undo(); 137 FX_BOOL Undo();
138 FX_BOOL Redo(); 138 FX_BOOL Redo();
139 FX_BOOL CanUndo(); 139 FX_BOOL CanUndo();
140 FX_BOOL CanRedo(); 140 FX_BOOL CanRedo();
141 FWL_ERR SetTabWidth(FX_FLOAT fTabWidth, FX_BOOL bEquidistant); 141 FWL_Error SetTabWidth(FX_FLOAT fTabWidth, FX_BOOL bEquidistant);
142 FWL_ERR SetOuter(IFWL_Widget* pOuter); 142 FWL_Error SetOuter(IFWL_Widget* pOuter);
143 FWL_ERR SetNumberRange(int32_t iMin, int32_t iMax); 143 FWL_Error SetNumberRange(int32_t iMin, int32_t iMax);
144 FWL_ERR SetBackColor(uint32_t dwColor); 144 FWL_Error SetBackColor(uint32_t dwColor);
145 FWL_ERR SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize); 145 FWL_Error SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize);
146 void SetScrollOffset(FX_FLOAT fScrollOffset); 146 void SetScrollOffset(FX_FLOAT fScrollOffset);
147 FX_BOOL GetSuggestWords(CFX_PointF pointf, 147 FX_BOOL GetSuggestWords(CFX_PointF pointf,
148 std::vector<CFX_ByteString>& sSuggest); 148 std::vector<CFX_ByteString>& sSuggest);
149 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, 149 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf,
150 const CFX_ByteStringC& bsReplace); 150 const CFX_ByteStringC& bsReplace);
151 151
152 protected: 152 protected:
153 IFWL_Edit(); 153 IFWL_Edit();
154 }; 154 };
155 155
156 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ 156 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_datetimepicker.h ('k') | xfa/fwl/basewidget/ifwl_listbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698