#include "fpdfsdk/formfiller/cffl_checkbox.h"
#include <utility>
#include "constants/ascii.h"
#include "core/fpdfdoc/cpdf_formcontrol.h"
#include "core/fxcrt/check.h"
#include "fpdfsdk/cpdfsdk_widget.h"
#include "fpdfsdk/formfiller/cffl_formfield.h"
#include "fpdfsdk/pwl/cpwl_special_button.h"
#include "public/fpdf_fwlevent.h"
CFFL_CheckBox::CFFL_CheckBox(CFFL_InteractiveFormFiller* pFormFiller,
CPDFSDK_Widget* pWidget)
: … { … }
CFFL_CheckBox::~CFFL_CheckBox() = default;
std::unique_ptr<CPWL_Wnd> CFFL_CheckBox::NewPWLWindow(
const CPWL_Wnd::CreateParams& cp,
std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData) { … }
bool CFFL_CheckBox::OnKeyDown(FWL_VKEYCODE nKeyCode,
Mask<FWL_EVENTFLAG> nFlags) { … }
bool CFFL_CheckBox::OnChar(CPDFSDK_Widget* pWidget,
uint32_t nChar,
Mask<FWL_EVENTFLAG> nFlags) { … }
bool CFFL_CheckBox::OnLButtonUp(CPDFSDK_PageView* pPageView,
CPDFSDK_Widget* pWidget,
Mask<FWL_EVENTFLAG> nFlags,
const CFX_PointF& point) { … }
bool CFFL_CheckBox::IsDataChanged(const CPDFSDK_PageView* pPageView) { … }
void CFFL_CheckBox::SaveData(const CPDFSDK_PageView* pPageView) { … }
CPWL_CheckBox* CFFL_CheckBox::GetPWLCheckBox(
const CPDFSDK_PageView* pPageView) const { … }
CPWL_CheckBox* CFFL_CheckBox::CreateOrUpdatePWLCheckBox(
const CPDFSDK_PageView* pPageView) { … }