| 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_INCLUDE_FWL_BASEWIDGET_FWL_EDIT_H_ | 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_EDIT_H_ | 
| 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_EDIT_H_ | 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_EDIT_H_ | 
| 9 | 9 | 
| 10 #include <vector> | 10 #include <vector> | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 103 BEGIN_FWL_EVENT_DEF(CFWL_EvtEdtGetSuggestWords, FWL_EVTHASH_EDT_GetSuggestWords) | 103 BEGIN_FWL_EVENT_DEF(CFWL_EvtEdtGetSuggestWords, FWL_EVTHASH_EDT_GetSuggestWords) | 
| 104 FX_BOOL bSuggestWords; | 104 FX_BOOL bSuggestWords; | 
| 105 CFX_ByteString bsWord; | 105 CFX_ByteString bsWord; | 
| 106 std::vector<CFX_ByteString> bsArraySuggestWords; | 106 std::vector<CFX_ByteString> bsArraySuggestWords; | 
| 107 END_FWL_EVENT_DEF | 107 END_FWL_EVENT_DEF | 
| 108 class IFWL_EditDP : public IFWL_DataProvider {}; | 108 class IFWL_EditDP : public IFWL_DataProvider {}; | 
| 109 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0) | 109 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0) | 
| 110 #define FWL_EDT_FIND_FLAGS_Next (1L << 0) | 110 #define FWL_EDT_FIND_FLAGS_Next (1L << 0) | 
| 111 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1) | 111 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1) | 
| 112 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2) | 112 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2) | 
| 113 typedef struct _FWL_HEDTFIND { void* pData; } * FWL_HEDTFIND; | 113 typedef struct FWL_HEDTFIND_ { void* pData; } * FWL_HEDTFIND; | 
| 114 | 114 | 
| 115 class IFWL_Edit : public IFWL_Widget { | 115 class IFWL_Edit : public IFWL_Widget { | 
| 116  public: | 116  public: | 
| 117   static IFWL_Edit* Create(const CFWL_WidgetImpProperties& properties, | 117   static IFWL_Edit* Create(const CFWL_WidgetImpProperties& properties, | 
| 118                            IFWL_Widget* pOuter); | 118                            IFWL_Widget* pOuter); | 
| 119   static IFWL_Edit* CreateComboEdit(const CFWL_WidgetImpProperties& properties, | 119   static IFWL_Edit* CreateComboEdit(const CFWL_WidgetImpProperties& properties, | 
| 120                                     IFWL_Widget* pOuter); | 120                                     IFWL_Widget* pOuter); | 
| 121 | 121 | 
| 122   FWL_ERR SetText(const CFX_WideString& wsText); | 122   FWL_ERR SetText(const CFX_WideString& wsText); | 
| 123   int32_t GetTextLength() const; | 123   int32_t GetTextLength() const; | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 162   FX_BOOL GetSuggestWords(CFX_PointF pointf, | 162   FX_BOOL GetSuggestWords(CFX_PointF pointf, | 
| 163                           std::vector<CFX_ByteString>& sSuggest); | 163                           std::vector<CFX_ByteString>& sSuggest); | 
| 164   FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 164   FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 
| 165                                 const CFX_ByteStringC& bsReplace); | 165                                 const CFX_ByteStringC& bsReplace); | 
| 166 | 166 | 
| 167  protected: | 167  protected: | 
| 168   IFWL_Edit(); | 168   IFWL_Edit(); | 
| 169 }; | 169 }; | 
| 170 | 170 | 
| 171 #endif  // XFA_INCLUDE_FWL_BASEWIDGET_FWL_EDIT_H_ | 171 #endif  // XFA_INCLUDE_FWL_BASEWIDGET_FWL_EDIT_H_ | 
| OLD | NEW | 
|---|