Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cffl_checkbox.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_
8#define FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_
9
10#include <memory>
11
12#include "fpdfsdk/formfiller/cffl_button.h"
13
14class CPWL_CheckBox;
15
16class CFFL_CheckBox final : public CFFL_Button {
17 public:
18 CFFL_CheckBox(CFFL_InteractiveFormFiller* pFormFiller,
19 CPDFSDK_Widget* pWidget);
20 ~CFFL_CheckBox() override;
21
22 // CFFL_Button:
24 const CPWL_Wnd::CreateParams& cp,
25 std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData) override;
26 bool OnKeyDown(FWL_VKEYCODE nKeyCode, Mask<FWL_EVENTFLAG> nFlags) override;
27 bool OnChar(CPDFSDK_Widget* pWidget,
28 uint32_t nChar,
29 Mask<FWL_EVENTFLAG> nFlags) override;
30 bool OnLButtonUp(CPDFSDK_PageView* pPageView,
31 CPDFSDK_Widget* pWidget,
32 Mask<FWL_EVENTFLAG> nFlags,
33 const CFX_PointF& point) override;
34 bool IsDataChanged(const CPDFSDK_PageView* pPageView) override;
35 void SaveData(const CPDFSDK_PageView* pPageView) override;
36
37 private:
38 CPWL_CheckBox* GetPWLCheckBox(const CPDFSDK_PageView* pPageView) const;
39 CPWL_CheckBox* CreateOrUpdatePWLCheckBox(const CPDFSDK_PageView* pPageView);
40};
41
42#endif // FPDFSDK_FORMFILLER_CFFL_CHECKBOX_H_
CFFL_Button(CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
bool OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
~CFFL_CheckBox() override
bool IsDataChanged(const CPDFSDK_PageView *pPageView) override
bool OnKeyDown(FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags) override
std::unique_ptr< CPWL_Wnd > NewPWLWindow(const CPWL_Wnd::CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) override
bool OnChar(CPDFSDK_Widget *pWidget, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags) override
bool OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
void SaveData(const CPDFSDK_PageView *pPageView) override
CFFL_CheckBox(CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
virtual bool OnChar(CPDFSDK_Widget *pAnnot, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
CPWL_Wnd * GetPWLWindow(const CPDFSDK_PageView *pPageView) const
CPWL_Wnd * CreateOrUpdatePWLWindow(const CPDFSDK_PageView *pPageView)
bool CommitData(const CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlag)
virtual bool OnKeyDown(FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)
bool IsValid() const
CPDFSDK_PageView * GetPageView() const
bool IsChecked() const
bool IsChecked() const
bool IsReadOnly() const
Definition cpwl_wnd.cpp:610
@ FWL_VKEY_Space
@ FWL_VKEY_Return
constexpr uint8_t kReturn
Definition ascii.h:20
constexpr uint8_t kSpace
Definition ascii.h:25