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_ListBox Class Referencefinal

#include <cffl_listbox.h>

+ Inheritance diagram for CFFL_ListBox:
+ Collaboration diagram for CFFL_ListBox:

Public Member Functions

 CFFL_ListBox (CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
 
 ~CFFL_ListBox () override
 
CPWL_Wnd::CreateParams GetCreateParam () override
 
std::unique_ptr< CPWL_WndNewPWLWindow (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 IsDataChanged (const CPDFSDK_PageView *pPageView) override
 
void SaveData (const CPDFSDK_PageView *pPageView) override
 
void GetActionData (const CPDFSDK_PageView *pPageView, CPDF_AAction::AActionType type, CFFL_FieldAction &fa) override
 
void SavePWLWindowState (const CPDFSDK_PageView *pPageView) override
 
void RecreatePWLWindowFromSavedState (const CPDFSDK_PageView *pPageView) override
 
bool SetIndexSelected (int index, bool selected) override
 
bool IsIndexSelected (int index) override
 
- Public Member Functions inherited from CFFL_TextObject
CPWL_WndResetPWLWindow (const CPDFSDK_PageView *pPageView) override
 
CPWL_WndRestorePWLWindow (const CPDFSDK_PageView *pPageView) override
 
- Public Member Functions inherited from CFFL_FormField
 CFFL_FormField (CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
 
 ~CFFL_FormField () override
 
virtual void OnDraw (CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
 
virtual void OnDrawDeactive (CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
 
virtual void OnMouseEnter (CPDFSDK_PageView *pPageView)
 
virtual void OnMouseExit (CPDFSDK_PageView *pPageView)
 
virtual bool OnLButtonDown (CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
virtual bool OnLButtonUp (CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
virtual bool OnLButtonDblClk (CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
virtual bool OnMouseMove (CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
virtual bool OnMouseWheel (CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta)
 
virtual bool OnRButtonDown (CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
virtual bool OnRButtonUp (CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
virtual bool OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)
 
FX_RECT GetViewBBox (const CPDFSDK_PageView *pPageView)
 
WideString GetText ()
 
WideString GetSelectedText ()
 
void ReplaceAndKeepSelection (const WideString &text)
 
void ReplaceSelection (const WideString &text)
 
bool SelectAllText ()
 
bool CanUndo ()
 
bool CanRedo ()
 
bool Undo ()
 
bool Redo ()
 
void SetFocusForAnnot (CPDFSDK_Widget *pWidget, Mask< FWL_EVENTFLAG > nFlag)
 
void KillFocusForAnnot (Mask< FWL_EVENTFLAG > nFlag)
 
void OnTimerFired () override
 
CFX_Matrix GetWindowMatrix (const IPWL_FillerNotify::PerWindowData *pAttached) override
 
void OnSetFocusForEdit (CPWL_Edit *pEdit) override
 
virtual void SetActionData (const CPDFSDK_PageView *pPageView, CPDF_AAction::AActionType type, const CFFL_FieldAction &fa)
 
CFX_Matrix GetCurMatrix ()
 
CFX_FloatRect GetFocusBox (const CPDFSDK_PageView *pPageView)
 
CFX_FloatRect FFLtoPWL (const CFX_FloatRect &rect)
 
CFX_FloatRect PWLtoFFL (const CFX_FloatRect &rect)
 
CFX_PointF FFLtoPWL (const CFX_PointF &point)
 
CFX_PointF PWLtoFFL (const CFX_PointF &point)
 
bool CommitData (const CPDFSDK_PageView *pPageView, Mask< FWL_EVENTFLAG > nFlag)
 
void DestroyPWLWindow (const CPDFSDK_PageView *pPageView)
 
void EscapeFiller (CPDFSDK_PageView *pPageView, bool bDestroyPWLWindow)
 
bool IsValid () const
 
CFX_FloatRect GetPDFAnnotRect () const
 
CPDFSDK_PageViewGetCurPageView ()
 
void SetChangeMark ()
 
CPDFSDK_WidgetGetSDKWidget () const
 
CFFL_PerWindowDataGetPerPWLWindowData (const CPDFSDK_PageView *pPageView)
 
void ResetPWLWindowForValueAge (const CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, uint32_t nValueAge)
 
- Public Member Functions inherited from CPWL_Wnd::ProviderIface
virtual ~ProviderIface ()=default
 
- Public Member Functions inherited from fxcrt::Observable
 Observable ()
 
 Observable (const Observable &that)=delete
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 
- Public Member Functions inherited from CFX_Timer::CallbackIface
virtual ~CallbackIface ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from CFFL_TextObject
 CFFL_TextObject (CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
 
 ~CFFL_TextObject () override
 
CPDF_BAFontMapGetOrCreateFontMap ()
 
- Protected Member Functions inherited from CFFL_FormField
CPWL_WndGetPWLWindow (const CPDFSDK_PageView *pPageView) const
 
CPWL_WndCreateOrUpdatePWLWindow (const CPDFSDK_PageView *pPageView)
 
CPWL_WndResetPWLWindowForValueAgeInternal (const CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, uint32_t nValueAge)
 
void DestroyWindows ()
 
void InvalidateRect (const FX_RECT &rect)
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 
- Protected Attributes inherited from CFFL_FormField
bool m_bValid = false
 
UnownedPtr< CFFL_InteractiveFormFiller > const m_pFormFiller
 
UnownedPtr< CPDFSDK_Widgetm_pWidget
 
std::unique_ptr< CFX_Timerm_pTimer
 
std::map< const CPDFSDK_PageView *, std::unique_ptr< CPWL_Wnd > > m_Maps
 

Detailed Description

Definition at line 18 of file cffl_listbox.h.

Constructor & Destructor Documentation

◆ CFFL_ListBox()

CFFL_ListBox::CFFL_ListBox ( CFFL_InteractiveFormFiller * pFormFiller,
CPDFSDK_Widget * pWidget )

Definition at line 19 of file cffl_listbox.cpp.

References CFFL_TextObject::CFFL_TextObject().

+ Here is the call graph for this function:

◆ ~CFFL_ListBox()

CFFL_ListBox::~CFFL_ListBox ( )
overridedefault

Member Function Documentation

◆ GetActionData()

void CFFL_ListBox::GetActionData ( const CPDFSDK_PageView * pPageView,
CPDF_AAction::AActionType type,
CFFL_FieldAction & fa )
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 149 of file cffl_listbox.cpp.

References CPWL_ListBox::GetCurSel(), CPDF_AAction::kGetFocus, CPDF_AAction::kLoseFocus, and CPDF_AAction::kValidate.

+ Here is the call graph for this function:

◆ GetCreateParam()

CPWL_Wnd::CreateParams CFFL_ListBox::GetCreateParam ( )
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 25 of file cffl_listbox.cpp.

References CPWL_Wnd::CreateParams::dwFlags, CPWL_Wnd::CreateParams::fFontSize, CFFL_FormField::GetCreateParam(), CFFL_TextObject::GetOrCreateFontMap(), and pdfium::form_flags::kChoiceMultiSelect.

+ Here is the call graph for this function:

◆ IsDataChanged()

bool CFFL_ListBox::IsDataChanged ( const CPDFSDK_PageView * pPageView)
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 85 of file cffl_listbox.cpp.

References CPWL_ListBox::GetCount(), and CPWL_ListBox::IsItemSelected().

+ Here is the call graph for this function:

◆ IsIndexSelected()

bool CFFL_ListBox::IsIndexSelected ( int index)
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 223 of file cffl_listbox.cpp.

References CFFL_FormField::GetCurPageView(), CPWL_ListBox::IsItemSelected(), and CFFL_FormField::IsValid().

+ Here is the call graph for this function:

◆ NewPWLWindow()

std::unique_ptr< CPWL_Wnd > CFFL_ListBox::NewPWLWindow ( const CPWL_Wnd::CreateParams & cp,
std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData )
overridevirtual

Implements CFFL_FormField.

Definition at line 42 of file cffl_listbox.cpp.

References CFFL_PerWindowData::SetFormField().

+ Here is the call graph for this function:

◆ OnChar()

bool CFFL_ListBox::OnChar ( CPDFSDK_Widget * pWidget,
uint32_t nChar,
Mask< FWL_EVENTFLAG > nFlags )
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 79 of file cffl_listbox.cpp.

References CFFL_FormField::OnChar().

+ Here is the call graph for this function:

◆ RecreatePWLWindowFromSavedState()

void CFFL_ListBox::RecreatePWLWindowFromSavedState ( const CPDFSDK_PageView * pPageView)
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 191 of file cffl_listbox.cpp.

◆ SaveData()

void CFFL_ListBox::SaveData ( const CPDFSDK_PageView * pPageView)
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 106 of file cffl_listbox.cpp.

References CPWL_ListBox::GetCount(), CPWL_ListBox::GetTopVisibleIndex(), CPWL_ListBox::IsItemSelected(), and CFFL_FormField::SetChangeMark().

+ Here is the call graph for this function:

◆ SavePWLWindowState()

void CFFL_ListBox::SavePWLWindowState ( const CPDFSDK_PageView * pPageView)
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 180 of file cffl_listbox.cpp.

References CPWL_ListBox::GetCount().

+ Here is the call graph for this function:

◆ SetIndexSelected()

bool CFFL_ListBox::SetIndexSelected ( int index,
bool selected )
overridevirtual

Reimplemented from CFFL_FormField.

Definition at line 201 of file cffl_listbox.cpp.

References CPWL_ListBox::Deselect(), CFFL_FormField::GetCurPageView(), CFFL_FormField::IsValid(), CPWL_ListBox::Select(), and CPWL_ListBox::SetCaret().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: