1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FXFA_CXFA_FFNUMERICEDIT_H_
8 #define XFA_FXFA_CXFA_FFNUMERICEDIT_H_
9 
10 #include "core/fxcrt/fx_string.h"
11 #include "xfa/fxfa/cxfa_fftextedit.h"
12 
13 class CFWL_Event;
14 class CFWL_Widget;
15 
16 class CXFA_FFNumericEdit final : public CXFA_FFTextEdit {
17  public:
18   explicit CXFA_FFNumericEdit(CXFA_Node* pNode);
19   ~CXFA_FFNumericEdit() override;
20 
21   // CXFA_FFTextEdit
22   bool LoadWidget() override;
23   void UpdateWidgetProperty() override;
24   void OnProcessEvent(CFWL_Event* pEvent) override;
25 
26  private:
27   bool OnValidate(CFWL_Widget* pWidget, WideString& wsText);
28 };
29 
30 #endif  // XFA_FXFA_CXFA_FFNUMERICEDIT_H_
31