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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_edit.h

Issue 1453373006: Kill dead IFWL_*::Initialize() variants dead. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebased Created 5 years, 1 month 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
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 _FWL_EDIT_H 7 #ifndef _FWL_EDIT_H
8 #define _FWL_EDIT_H 8 #define _FWL_EDIT_H
9 class CFWL_WidgetImpProperties; 9 class CFWL_WidgetImpProperties;
10 class IFWL_Widget; 10 class IFWL_Widget;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 END_FWL_EVENT_DEF 106 END_FWL_EVENT_DEF
107 class IFWL_EditDP : public IFWL_DataProvider {}; 107 class IFWL_EditDP : public IFWL_DataProvider {};
108 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0) 108 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0)
109 #define FWL_EDT_FIND_FLAGS_Next (1L << 0) 109 #define FWL_EDT_FIND_FLAGS_Next (1L << 0)
110 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1) 110 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1)
111 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2) 111 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2)
112 typedef struct _FWL_HEDTFIND { void* pData; } * FWL_HEDTFIND; 112 typedef struct _FWL_HEDTFIND { void* pData; } * FWL_HEDTFIND;
113 class IFWL_Edit : public IFWL_Widget { 113 class IFWL_Edit : public IFWL_Widget {
114 public: 114 public:
115 static IFWL_Edit* Create(); 115 static IFWL_Edit* Create();
116 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL);
117 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 116 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties,
118 IFWL_Widget* pOuter = NULL); 117 IFWL_Widget* pOuter);
119 FWL_ERR SetText(const CFX_WideString& wsText); 118 FWL_ERR SetText(const CFX_WideString& wsText);
120 int32_t GetTextLength() const; 119 int32_t GetTextLength() const;
121 FWL_ERR GetText(CFX_WideString& wsText, 120 FWL_ERR GetText(CFX_WideString& wsText,
122 int32_t nStart = 0, 121 int32_t nStart = 0,
123 int32_t nCount = -1) const; 122 int32_t nCount = -1) const;
124 FWL_ERR ClearText(); 123 FWL_ERR ClearText();
125 int32_t GetCaretPos() const; 124 int32_t GetCaretPos() const;
126 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE); 125 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE);
127 FWL_ERR AddSelRange(int32_t nStart, int32_t nCount = -1); 126 FWL_ERR AddSelRange(int32_t nStart, int32_t nCount = -1);
128 int32_t CountSelRanges(); 127 int32_t CountSelRanges();
(...skipping 28 matching lines...) Expand all
157 FWL_ERR SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize); 156 FWL_ERR SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize);
158 void SetScrollOffset(FX_FLOAT fScrollOffset); 157 void SetScrollOffset(FX_FLOAT fScrollOffset);
159 FX_BOOL GetSuggestWords(CFX_PointF pointf, CFX_ByteStringArray& sSuggest); 158 FX_BOOL GetSuggestWords(CFX_PointF pointf, CFX_ByteStringArray& sSuggest);
160 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, 159 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf,
161 const CFX_ByteStringC& bsReplace); 160 const CFX_ByteStringC& bsReplace);
162 161
163 protected: 162 protected:
164 IFWL_Edit(); 163 IFWL_Edit();
165 }; 164 };
166 #endif 165 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_datetimepicker.h ('k') | xfa/include/fwl/basewidget/fwl_listbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698