#include "fpdfsdk/formfiller/cffl_listbox.h"
#include <utility>
#include "constants/form_flags.h"
#include "core/fpdfdoc/cpdf_bafontmap.h"
#include "core/fxcrt/containers/contains.h"
#include "fpdfsdk/cpdfsdk_widget.h"
#include "fpdfsdk/formfiller/cffl_interactiveformfiller.h"
#include "fpdfsdk/formfiller/cffl_perwindowdata.h"
#include "fpdfsdk/pwl/cpwl_list_box.h"
CFFL_ListBox::CFFL_ListBox(CFFL_InteractiveFormFiller* pFormFiller,
CPDFSDK_Widget* pWidget)
: … { … }
CFFL_ListBox::~CFFL_ListBox() = default;
CPWL_Wnd::CreateParams CFFL_ListBox::GetCreateParam() { … }
std::unique_ptr<CPWL_Wnd> CFFL_ListBox::NewPWLWindow(
const CPWL_Wnd::CreateParams& cp,
std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData) { … }
bool CFFL_ListBox::OnChar(CPDFSDK_Widget* pWidget,
uint32_t nChar,
Mask<FWL_EVENTFLAG> nFlags) { … }
bool CFFL_ListBox::IsDataChanged(const CPDFSDK_PageView* pPageView) { … }
void CFFL_ListBox::SaveData(const CPDFSDK_PageView* pPageView) { … }
void CFFL_ListBox::GetActionData(const CPDFSDK_PageView* pPageView,
CPDF_AAction::AActionType type,
CFFL_FieldAction& fa) { … }
void CFFL_ListBox::SavePWLWindowState(const CPDFSDK_PageView* pPageView) { … }
void CFFL_ListBox::RecreatePWLWindowFromSavedState(
const CPDFSDK_PageView* pPageView) { … }
bool CFFL_ListBox::SetIndexSelected(int index, bool selected) { … }
bool CFFL_ListBox::IsIndexSelected(int index) { … }
CPWL_ListBox* CFFL_ListBox::GetPWLListBox(
const CPDFSDK_PageView* pPageView) const { … }
CPWL_ListBox* CFFL_ListBox::CreateOrUpdatePWLListBox(
const CPDFSDK_PageView* pPageView) { … }