• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The PDFium Authors
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/widestring.h"
11 #include "xfa/fxfa/cxfa_fftextedit.h"
12 
13 namespace pdfium {
14 class CFWL_Widget;
15 }  // namespace pdfium
16 
17 class CXFA_FFNumericEdit final : 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(pdfium::CFWL_Event* pEvent) override;
26 
27  private:
28   bool OnValidate(CFWL_Widget* pWidget, const WideString& wsText);
29 };
30 
31 #endif  // XFA_FXFA_CXFA_FFNUMERICEDIT_H_
32