#include "fpdfsdk/formfiller/cffl_combobox.h"
#include <utility>
#include "constants/form_flags.h"
#include "core/fpdfdoc/cpdf_bafontmap.h"
#include "fpdfsdk/cpdfsdk_widget.h"
#include "fpdfsdk/formfiller/cffl_interactiveformfiller.h"
#include "fpdfsdk/formfiller/cffl_perwindowdata.h"
#include "fpdfsdk/pwl/cpwl_combo_box.h"
#include "fpdfsdk/pwl/cpwl_edit.h"
CFFL_ComboBox::CFFL_ComboBox(CFFL_InteractiveFormFiller* pFormFiller,
CPDFSDK_Widget* pWidget)
: … { … }
CFFL_ComboBox::~CFFL_ComboBox() { … }
CPWL_Wnd::CreateParams CFFL_ComboBox::GetCreateParam() { … }
std::unique_ptr<CPWL_Wnd> CFFL_ComboBox::NewPWLWindow(
const CPWL_Wnd::CreateParams& cp,
std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData) { … }
bool CFFL_ComboBox::OnChar(CPDFSDK_Widget* pWidget,
uint32_t nChar,
Mask<FWL_EVENTFLAG> nFlags) { … }
bool CFFL_ComboBox::IsDataChanged(const CPDFSDK_PageView* pPageView) { … }
void CFFL_ComboBox::SaveData(const CPDFSDK_PageView* pPageView) { … }
void CFFL_ComboBox::GetActionData(const CPDFSDK_PageView* pPageView,
CPDF_AAction::AActionType type,
CFFL_FieldAction& fa) { … }
void CFFL_ComboBox::SetActionData(const CPDFSDK_PageView* pPageView,
CPDF_AAction::AActionType type,
const CFFL_FieldAction& fa) { … }
void CFFL_ComboBox::SavePWLWindowState(const CPDFSDK_PageView* pPageView) { … }
void CFFL_ComboBox::RecreatePWLWindowFromSavedState(
const CPDFSDK_PageView* pPageView) { … }
bool CFFL_ComboBox::SetIndexSelected(int index, bool selected) { … }
bool CFFL_ComboBox::IsIndexSelected(int index) { … }
#ifdef PDF_ENABLE_XFA
bool CFFL_ComboBox::IsFieldFull(const CPDFSDK_PageView* pPageView) { … }
#endif
void CFFL_ComboBox::OnSetFocusForEdit(CPWL_Edit* pEdit) { … }
WideString CFFL_ComboBox::GetSelectExportText() { … }
CPWL_ComboBox* CFFL_ComboBox::GetPWLComboBox(
const CPDFSDK_PageView* pPageView) const { … }
CPWL_ComboBox* CFFL_ComboBox::CreateOrUpdatePWLComboBox(
const CPDFSDK_PageView* pPageView) { … }