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 class CXFA_WidgetAcc; 16 17 class CXFA_FFNumericEdit : public CXFA_FFTextEdit { 18 public: 19 explicit CXFA_FFNumericEdit(CXFA_Node* pNode); 20 ~CXFA_FFNumericEdit() override; 21 22 // CXFA_FFTextEdit 23 bool LoadWidget() override; 24 void UpdateWidgetProperty() override; 25 void OnProcessEvent(CFWL_Event* pEvent) override; 26 27 private: 28 bool OnValidate(CFWL_Widget* pWidget, WideString& wsText); 29 }; 30 31 #endif // XFA_FXFA_CXFA_FFNUMERICEDIT_H_ 32