blob: 0c62d5741bb7b2d1377e4de5293dee279c2421a9 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// 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 Zhanga6d9f0e2015-06-13 00:48:38 -07004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Dan Sinclairedbb3192016-03-21 09:08:24 -04007#ifndef FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_
8#define FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07009
Dan Sinclairedbb3192016-03-21 09:08:24 -040010#include "fpdfsdk/formfiller/cffl_formfiller.h"
Tom Sepez245c80e2015-04-08 16:19:33 -070011
Nico Weber9d8ec5a2015-08-04 13:00:21 -070012class CFFL_CheckBox : public CFFL_Button {
13 public:
dsinclair735606d2016-10-05 15:47:02 -070014 CFFL_CheckBox(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Widget* pWidget);
Lei Zhang2b1a2d52015-08-14 22:16:22 -070015 ~CFFL_CheckBox() override;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070016
Lei Zhang2b1a2d52015-08-14 22:16:22 -070017 // CFFL_Button
18 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp,
19 CPDFSDK_PageView* pPageView) override;
20 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot,
dsinclair72177da2016-09-15 12:07:23 -070021 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 Zhang2b1a2d52015-08-14 22:16:22 -070026 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView,
27 CPDFSDK_Annot* pAnnot,
dsinclair72177da2016-09-15 12:07:23 -070028 uint32_t nFlags,
Tom Sepez281a9ea2016-02-26 14:24:28 -080029 const CFX_FloatPoint& point) override;
Lei Zhang2b1a2d52015-08-14 22:16:22 -070030 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override;
31 void SaveData(CPDFSDK_PageView* pPageView) override;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070032};
33
Dan Sinclairedbb3192016-03-21 09:08:24 -040034#endif // FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_