| 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_FXFA_APP_XFA_FFTEXTEDIT_H_ |    7 #ifndef XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ | 
|    8 #define XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ |    8 #define XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ | 
|    9  |    9  | 
|   10 #include <vector> |   10 #include <vector> | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|   37   FX_BOOL Paste(const CFX_WideString& wsPaste) override; |   37   FX_BOOL Paste(const CFX_WideString& wsPaste) override; | 
|   38   FX_BOOL SelectAll() override; |   38   FX_BOOL SelectAll() override; | 
|   39   FX_BOOL Delete() override; |   39   FX_BOOL Delete() override; | 
|   40   FX_BOOL DeSelect() override; |   40   FX_BOOL DeSelect() override; | 
|   41   FX_BOOL GetSuggestWords(CFX_PointF pointf, |   41   FX_BOOL GetSuggestWords(CFX_PointF pointf, | 
|   42                           std::vector<CFX_ByteString>& sSuggest) override; |   42                           std::vector<CFX_ByteString>& sSuggest) override; | 
|   43   FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, |   43   FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 
|   44                                 const CFX_ByteStringC& bsReplace) override; |   44                                 const CFX_ByteStringC& bsReplace) override; | 
|   45  |   45  | 
|   46   // IFWL_WidgetDelegate: |   46   // IFWL_WidgetDelegate: | 
|   47   int32_t OnProcessMessage(CFWL_Message* pMessage) override; |   47   void OnProcessMessage(CFWL_Message* pMessage) override; | 
|   48   FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; |   48   void OnProcessEvent(CFWL_Event* pEvent) override; | 
|   49   FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |   49   void OnDrawWidget(CFX_Graphics* pGraphics, | 
|   50                        const CFX_Matrix* pMatrix = NULL) override; |   50                     const CFX_Matrix* pMatrix = NULL) override; | 
|   51  |   51  | 
|   52   void OnTextChanged(IFWL_Widget* pWidget, |   52   void OnTextChanged(IFWL_Widget* pWidget, | 
|   53                      const CFX_WideString& wsChanged, |   53                      const CFX_WideString& wsChanged, | 
|   54                      const CFX_WideString& wsPrevText); |   54                      const CFX_WideString& wsPrevText); | 
|   55   void OnTextFull(IFWL_Widget* pWidget); |   55   void OnTextFull(IFWL_Widget* pWidget); | 
|   56   FX_BOOL CheckWord(const CFX_ByteStringC& sWord); |   56   FX_BOOL CheckWord(const CFX_ByteStringC& sWord); | 
|   57   FX_BOOL GetSuggestWords(const CFX_ByteStringC& sWord, |   57   FX_BOOL GetSuggestWords(const CFX_ByteStringC& sWord, | 
|   58                           std::vector<CFX_ByteString>& sSuggest); |   58                           std::vector<CFX_ByteString>& sSuggest); | 
|   59  |   59  | 
|   60  protected: |   60  protected: | 
|   61   uint32_t GetAlignment(); |   61   uint32_t GetAlignment(); | 
|   62   FX_BOOL CommitData() override; |   62   FX_BOOL CommitData() override; | 
|   63   FX_BOOL UpdateFWLData() override; |   63   FX_BOOL UpdateFWLData() override; | 
|   64   FX_BOOL IsDataChanged() override; |   64   FX_BOOL IsDataChanged() override; | 
|   65   void ValidateNumberField(const CFX_WideString& wsText); |   65   void ValidateNumberField(const CFX_WideString& wsText); | 
|   66  |   66  | 
|   67   IFWL_WidgetDelegate* m_pOldDelegate; |   67   IFWL_WidgetDelegate* m_pOldDelegate; | 
|   68 }; |   68 }; | 
|   69  |   69  | 
|   70 class CXFA_FFNumericEdit : public CXFA_FFTextEdit { |   70 class CXFA_FFNumericEdit : public CXFA_FFTextEdit { | 
|   71  public: |   71  public: | 
|   72   CXFA_FFNumericEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |   72   CXFA_FFNumericEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 
|   73   virtual ~CXFA_FFNumericEdit(); |   73   virtual ~CXFA_FFNumericEdit(); | 
|   74   virtual FX_BOOL LoadWidget(); |   74   virtual FX_BOOL LoadWidget(); | 
|   75   virtual void UpdateWidgetProperty(); |   75   virtual void UpdateWidgetProperty(); | 
|   76   virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); |   76   virtual void OnProcessEvent(CFWL_Event* pEvent); | 
|   77  |   77  | 
|   78  public: |   78  public: | 
|   79   FX_BOOL OnValidate(IFWL_Widget* pWidget, CFX_WideString& wsText); |   79   FX_BOOL OnValidate(IFWL_Widget* pWidget, CFX_WideString& wsText); | 
|   80 }; |   80 }; | 
|   81 class CXFA_FFPasswordEdit : public CXFA_FFTextEdit { |   81 class CXFA_FFPasswordEdit : public CXFA_FFTextEdit { | 
|   82  public: |   82  public: | 
|   83   CXFA_FFPasswordEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |   83   CXFA_FFPasswordEdit(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 
|   84   virtual ~CXFA_FFPasswordEdit(); |   84   virtual ~CXFA_FFPasswordEdit(); | 
|   85   virtual FX_BOOL LoadWidget(); |   85   virtual FX_BOOL LoadWidget(); | 
|   86   virtual void UpdateWidgetProperty(); |   86   virtual void UpdateWidgetProperty(); | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  125   virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); |  125   virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); | 
|  126   virtual FX_BOOL CommitData(); |  126   virtual FX_BOOL CommitData(); | 
|  127   virtual FX_BOOL UpdateFWLData(); |  127   virtual FX_BOOL UpdateFWLData(); | 
|  128   virtual FX_BOOL IsDataChanged(); |  128   virtual FX_BOOL IsDataChanged(); | 
|  129  |  129  | 
|  130  public: |  130  public: | 
|  131   void OnSelectChanged(IFWL_Widget* pWidget, |  131   void OnSelectChanged(IFWL_Widget* pWidget, | 
|  132                        int32_t iYear, |  132                        int32_t iYear, | 
|  133                        int32_t iMonth, |  133                        int32_t iMonth, | 
|  134                        int32_t iDay); |  134                        int32_t iDay); | 
|  135   virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); |  135   virtual void OnProcessEvent(CFWL_Event* pEvent); | 
|  136 }; |  136 }; | 
|  137  |  137  | 
|  138 #endif  // XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ |  138 #endif  // XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ | 
| OLD | NEW |