John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 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. |
Lei Zhang | a6d9f0e | 2015-06-13 00:48:38 -0700 | [diff] [blame] | 4 | |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
Dan Sinclair | edbb319 | 2016-03-21 09:08:24 -0400 | [diff] [blame^] | 7 | #ifndef FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_ |
| 8 | #define FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_ |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 9 | |
Dan Sinclair | edbb319 | 2016-03-21 09:08:24 -0400 | [diff] [blame^] | 10 | #include "fpdfsdk/formfiller/cffl_formfiller.h" |
Tom Sepez | 245c80e | 2015-04-08 16:19:33 -0700 | [diff] [blame] | 11 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 12 | class CFFL_CheckBox : public CFFL_Button { |
| 13 | public: |
| 14 | CFFL_CheckBox(CPDFDoc_Environment* pApp, CPDFSDK_Widget* pWidget); |
Lei Zhang | 2b1a2d5 | 2015-08-14 22:16:22 -0700 | [diff] [blame] | 15 | ~CFFL_CheckBox() override; |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 16 | |
Lei Zhang | 2b1a2d5 | 2015-08-14 22:16:22 -0700 | [diff] [blame] | 17 | // CFFL_Button |
| 18 | CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, |
| 19 | CPDFSDK_PageView* pPageView) override; |
| 20 | FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, |
| 21 | FX_UINT nKeyCode, |
| 22 | 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, |
| 25 | CPDFSDK_Annot* pAnnot, |
| 26 | FX_UINT nFlags, |
Tom Sepez | 281a9ea | 2016-02-26 14:24:28 -0800 | [diff] [blame] | 27 | const CFX_FloatPoint& point) override; |
Lei Zhang | 2b1a2d5 | 2015-08-14 22:16:22 -0700 | [diff] [blame] | 28 | FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; |
| 29 | void SaveData(CPDFSDK_PageView* pPageView) override; |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 30 | }; |
| 31 | |
Dan Sinclair | edbb319 | 2016-03-21 09:08:24 -0400 | [diff] [blame^] | 32 | #endif // FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_ |