| 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 FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_ | 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_ |
| 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_ | 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_ |
| 9 | 9 |
| 10 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" | 10 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
| 11 | 11 |
| 12 class CFFL_CheckBox : public CFFL_Button { | 12 class CFFL_CheckBox : public CFFL_Button { |
| 13 public: | 13 public: |
| 14 CFFL_CheckBox(CPDFDoc_Environment* pApp, CPDFSDK_Widget* pWidget); | 14 CFFL_CheckBox(CPDFDoc_Environment* pApp, CPDFSDK_Widget* pWidget); |
| 15 ~CFFL_CheckBox() override; | 15 ~CFFL_CheckBox() override; |
| 16 | 16 |
| 17 // CFFL_Button | 17 // CFFL_Button |
| 18 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, | 18 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, |
| 19 CPDFSDK_PageView* pPageView) override; | 19 CPDFSDK_PageView* pPageView) override; |
| 20 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, | 20 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, |
| 21 FX_UINT nKeyCode, | 21 FX_UINT nKeyCode, |
| 22 FX_UINT nFlags) override; | 22 FX_UINT nFlags) override; |
| 23 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags) override; | 23 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags) override; |
| 24 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, | 24 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, |
| 25 CPDFSDK_Annot* pAnnot, | 25 CPDFSDK_Annot* pAnnot, |
| 26 FX_UINT nFlags, | 26 FX_UINT nFlags, |
| 27 const CPDF_Point& point) override; | 27 const CFX_FloatPoint& point) override; |
| 28 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; | 28 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; |
| 29 void SaveData(CPDFSDK_PageView* pPageView) override; | 29 void SaveData(CPDFSDK_PageView* pPageView) override; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_ | 32 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_ |
| OLD | NEW |