• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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 FPDFSDK_FORMFILLER_CFFL_RADIOBUTTON_H_
8 #define FPDFSDK_FORMFILLER_CFFL_RADIOBUTTON_H_
9 
10 #include "fpdfsdk/formfiller/cffl_button.h"
11 
12 class CPWL_RadioButton;
13 
14 class CFFL_RadioButton : public CFFL_Button {
15  public:
16   CFFL_RadioButton(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Widget* pWidget);
17   ~CFFL_RadioButton() override;
18 
19   // CFFL_Button:
20   CPWL_Wnd* NewPDFWindow(const CPWL_Wnd::CreateParams& cp) override;
21   bool OnKeyDown(CPDFSDK_Annot* pAnnot,
22                  uint32_t nKeyCode,
23                  uint32_t nFlags) override;
24   bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override;
25   bool OnLButtonUp(CPDFSDK_PageView* pPageView,
26                    CPDFSDK_Annot* pAnnot,
27                    uint32_t nFlags,
28                    const CFX_PointF& point) override;
29   bool IsDataChanged(CPDFSDK_PageView* pPageView) override;
30   void SaveData(CPDFSDK_PageView* pPageView) override;
31 
32  private:
33   CPWL_RadioButton* GetRadioButton(CPDFSDK_PageView* pPageView, bool bNew);
34 };
35 
36 #endif  // FPDFSDK_FORMFILLER_CFFL_RADIOBUTTON_H_
37