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: |
dsinclair | 735606d | 2016-10-05 15:47:02 -0700 | [diff] [blame^] | 14 | CFFL_CheckBox(CPDFSDK_FormFillEnvironment* 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, |
dsinclair | 72177da | 2016-09-15 12:07:23 -0700 | [diff] [blame] | 21 | uint32_t nKeyCode, |
| 22 | uint32_t nFlags) override; |
| 23 | FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, |
| 24 | uint32_t nChar, |
| 25 | uint32_t nFlags) override; |
Lei Zhang | 2b1a2d5 | 2015-08-14 22:16:22 -0700 | [diff] [blame] | 26 | FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, |
| 27 | CPDFSDK_Annot* pAnnot, |
dsinclair | 72177da | 2016-09-15 12:07:23 -0700 | [diff] [blame] | 28 | uint32_t nFlags, |
Tom Sepez | 281a9ea | 2016-02-26 14:24:28 -0800 | [diff] [blame] | 29 | const CFX_FloatPoint& point) override; |
Lei Zhang | 2b1a2d5 | 2015-08-14 22:16:22 -0700 | [diff] [blame] | 30 | FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; |
| 31 | void SaveData(CPDFSDK_PageView* pPageView) override; |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 32 | }; |
| 33 | |
Dan Sinclair | edbb319 | 2016-03-21 09:08:24 -0400 | [diff] [blame] | 34 | #endif // FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_ |