blob: dd3184f4c41bda49f83e943a2eefc92c4487c6b0 [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
Lei Zhangdd29c252017-06-01 23:55:51 -070018 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp) override;
tsepez4cf55152016-11-02 14:37:54 -070019 bool OnKeyDown(CPDFSDK_Annot* pAnnot,
20 uint32_t nKeyCode,
dsinclair72177da2016-09-15 12:07:23 -070021 uint32_t nFlags) override;
tsepez4cf55152016-11-02 14:37:54 -070022 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override;
23 bool OnLButtonUp(CPDFSDK_PageView* pPageView,
24 CPDFSDK_Annot* pAnnot,
25 uint32_t nFlags,
Dan Sinclairf528eee2017-02-14 11:52:07 -050026 const CFX_PointF& point) override;
tsepez4cf55152016-11-02 14:37:54 -070027 bool IsDataChanged(CPDFSDK_PageView* pPageView) override;
Lei Zhang2b1a2d52015-08-14 22:16:22 -070028 void SaveData(CPDFSDK_PageView* pPageView) override;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070029};
30
Dan Sinclairedbb3192016-03-21 09:08:24 -040031#endif // FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_