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

#include <cxfa_ffcombobox.h>

Inheritance diagram for CXFA_FFComboBox:
Collaboration diagram for CXFA_FFComboBox:

Public Member Functions

 ~CXFA_FFComboBox () override
void Trace (cppgc::Visitor *visitor) const override
CXFA_FFComboBoxAsComboBox () override
CFX_RectF GetBBox (FocusOption focus) override
bool LoadWidget () override
void UpdateWidgetProperty () override
bool OnRButtonUp (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnKillFocus (CXFA_FFWidget *pNewWidget) override
bool CanUndo () override
bool CanRedo () override
bool CanCopy () override
bool CanCut () override
bool CanPaste () override
bool CanSelectAll () override
bool Undo () override
bool Redo () override
std::optional< WideStringCopy () override
std::optional< WideStringCut () override
bool Paste (const WideString &wsPaste) override
void SelectAll () override
void Delete () override
void DeSelect () override
WideString GetText () override
FormFieldType GetFormFieldType () override
void OnProcessMessage (CFWL_Message *pMessage) override
void OnProcessEvent (pdfium::CFWL_Event *pEvent) override
void OnDrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void InsertItem (const WideString &wsLabel, int32_t nIndex) override
void DeleteItem (int32_t nIndex) override
void OpenDropDownList ()
void OnTextChanged (CFWL_Widget *pWidget, const WideString &wsChanged)
void OnSelectChanged (CFWL_Widget *pWidget, bool bLButtonUp)
void OnPreOpen (CFWL_Widget *pWidget)
void OnPostOpen (CFWL_Widget *pWidget)
void SetItemState (int32_t nIndex, bool bSelected)
Public Member Functions inherited from CXFA_FFDropDown
 ~CXFA_FFDropDown () override
CXFA_FFDropDownAsDropDown () override
Public Member Functions inherited from CXFA_FFField
 ~CXFA_FFField () override
void Trace (cppgc::Visitor *visitor) const override
CXFA_FFFieldAsField () override
CFX_RectF GetBBox (FocusOption focus) override
void RenderWidget (CFGAS_GEGraphics *pGS, const CFX_Matrix &matrix, HighlightOption highlight) override
bool IsLoaded () override
bool LoadWidget () override
bool PerformLayout () override
bool AcceptsFocusOnButtonDown (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point, CFWL_MessageMouse::MouseCommand command) override
bool OnMouseEnter () override
bool OnMouseExit () override
bool OnLButtonDown (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnLButtonUp (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnLButtonDblClk (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnMouseMove (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnMouseWheel (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point, const CFX_Vector &delta) override
bool OnRButtonDown (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnRButtonUp (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnRButtonDblClk (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool OnSetFocus (CXFA_FFWidget *pOldWidget) override
bool OnKillFocus (CXFA_FFWidget *pNewWidget) override
bool OnKeyDown (XFA_FWL_VKEYCODE dwKeyCode, Mask< XFA_FWL_KeyFlag > dwFlags) override
bool OnChar (uint32_t dwChar, Mask< XFA_FWL_KeyFlag > dwFlags) override
FWL_WidgetHit HitTest (const CFX_PointF &point) override
void OnProcessMessage (pdfium::CFWL_Message *pMessage) override
void OnProcessEvent (pdfium::CFWL_Event *pEvent) override
void OnDrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void UpdateFWL ()
uint32_t UpdateUIProperty ()
Public Member Functions inherited from CXFA_FFWidget
 ~CXFA_FFWidget () override
void Trace (cppgc::Visitor *visitor) const override
CFX_Matrix GetRotateMatrix () override
void DisplayCaret (bool bVisible, const CFX_RectF *pRtAnchor) override
void GetBorderColorAndThickness (FX_ARGB *cr, float *fWidth) override
virtual bool CanDelete ()
virtual bool CanDeSelect ()
CXFA_NodeGetNode () const
CXFA_ContentLayoutItemGetLayoutItem () const
void SetLayoutItem (CXFA_ContentLayoutItem *pItem)
CXFA_FFPageViewGetPageView () const
void SetPageView (CXFA_FFPageView *pPageView)
CXFA_FFDocViewGetDocView () const
void SetDocView (CXFA_FFDocView *pDocView)
CXFA_FFWidgetGetNextFFWidget () const
const CFX_RectFGetWidgetRect () const
const CFX_RectFRecacheWidgetRect () const
void ModifyStatus (Mask< XFA_WidgetStatus > dwAdded, Mask< XFA_WidgetStatus > dwRemoved)
CXFA_FFDocGetDoc ()
CXFA_FFAppGetApp ()
CXFA_FFApp::CallbackIfaceGetAppProvider ()
CFWL_AppGetFWLApp () const
void InvalidateRect ()
bool IsFocused () const
CFX_PointF Rotate2Normal (const CFX_PointF &point)
bool IsLayoutRectEmpty ()
CXFA_LayoutItemGetParent ()
bool IsAncestorOf (CXFA_FFWidget *pWidget)
bool HasEventUnderHandler (XFA_EVENTTYPE eEventType, CXFA_FFWidgetHandler *pHandler)
bool ProcessEventUnderHandler (CXFA_EventParam *params, CXFA_FFWidgetHandler *pHandler)
Public Member Functions inherited from pdfium::IFWL_WidgetDelegate
virtual ~IFWL_WidgetDelegate ()=default

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Public Attributes inherited from CXFA_FFDropDown
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Public Attributes inherited from CXFA_FFField
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Public Attributes inherited from CXFA_FFWidget
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Private Member Functions

bool PtInActiveRect (const CFX_PointF &point) override
bool CommitData () override
bool UpdateFWLData () override
bool IsDataChanged () override

Additional Inherited Members

Public Types inherited from CXFA_FFField
enum  ShapeOption { kSquareShape = 0 , kRoundShape }
Public Types inherited from CXFA_FFWidget
enum  FocusOption { kDoNotDrawFocus = 0 , kDrawFocus }
enum  HighlightOption { kNoHighlight = 0 , kHighlight }
Static Public Member Functions inherited from CXFA_FFWidget
static CXFA_FFWidgetFromLayoutItem (CXFA_LayoutItem *pLayoutItem)
Protected Member Functions inherited from CXFA_FFDropDown
 CXFA_FFDropDown (CXFA_Node *pNode)
Protected Member Functions inherited from CXFA_FFField
 CXFA_FFField (CXFA_Node *pNode)
bool PtInActiveRect (const CFX_PointF &point) override
virtual void SetFWLRect ()
CFWL_WidgetGetNormalWidget ()
const CFWL_WidgetGetNormalWidget () const
void SetNormalWidget (CFWL_Widget *widget)
CFX_PointF FWLToClient (const CFX_PointF &point)
void LayoutCaption ()
void RenderCaption (CFGAS_GEGraphics *pGS, const CFX_Matrix &pMatrix)
int32_t CalculateOverride ()
int32_t CalculateNode (CXFA_Node *pNode)
bool ProcessCommittedData ()
void DrawHighlight (CFGAS_GEGraphics *pGS, const CFX_Matrix &pMatrix, HighlightOption highlight, ShapeOption shape)
void SendMessageToFWLWidget (CFWL_Message *pMessage)
void CapPlacement ()
void CapTopBottomPlacement (const CXFA_Margin *margin, const CFX_RectF &rtWidget, XFA_AttributeValue iCapPlacement)
void CapLeftRightPlacement (const CXFA_Margin *margin, const CFX_RectF &rtWidget, XFA_AttributeValue iCapPlacement)
void SetEditScrollOffset ()
Protected Member Functions inherited from CXFA_FFWidget
 CXFA_FFWidget (CXFA_Node *pNode)
void DrawBorder (CFGAS_GEGraphics *pGS, CXFA_Box *box, const CFX_RectF &rtBorder, const CFX_Matrix &matrix)
void DrawBorderWithFlag (CFGAS_GEGraphics *pGS, CXFA_Box *box, const CFX_RectF &rtBorder, const CFX_Matrix &matrix, bool forceRound)
CFX_RectF GetRectWithoutRotate ()
bool HasVisibleStatus () const
void EventKillFocus ()
bool IsButtonDown ()
void SetButtonDown (bool bSet)
Protected Attributes inherited from CXFA_FFField
CFX_RectF m_UIRect
CFX_RectF m_CaptionRect
Protected Attributes inherited from CXFA_FFWidget
cppgc::Member< CXFA_ContentLayoutItemm_pLayoutItem
cppgc::Member< CXFA_FFDocViewm_pDocView
cppgc::Member< CXFA_FFPageViewm_pPageView
cppgc::Member< CXFA_Node > const m_pNode
CFX_RectF m_WidgetRect

Detailed Description

Definition at line 15 of file cxfa_ffcombobox.h.

Constructor & Destructor Documentation

◆ ~CXFA_FFComboBox()

CXFA_FFComboBox::~CXFA_FFComboBox ( )
overridedefault

Member Function Documentation

◆ AsComboBox()

CXFA_FFComboBox * CXFA_FFComboBox::AsComboBox ( )
overridevirtual

Reimplemented from CXFA_FFDropDown.

Definition at line 42 of file cxfa_ffcombobox.cpp.

◆ CanCopy()

bool CXFA_FFComboBox::CanCopy ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 229 of file cxfa_ffcombobox.cpp.

◆ CanCut()

bool CXFA_FFComboBox::CanCut ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 233 of file cxfa_ffcombobox.cpp.

◆ CanPaste()

bool CXFA_FFComboBox::CanPaste ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 238 of file cxfa_ffcombobox.cpp.

◆ CanRedo()

bool CXFA_FFComboBox::CanRedo ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 224 of file cxfa_ffcombobox.cpp.

◆ CanSelectAll()

bool CXFA_FFComboBox::CanSelectAll ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 242 of file cxfa_ffcombobox.cpp.

◆ CanUndo()

bool CXFA_FFComboBox::CanUndo ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 219 of file cxfa_ffcombobox.cpp.

◆ CommitData()

bool CXFA_FFComboBox::CommitData ( )
overrideprivatevirtual

Reimplemented from CXFA_FFField.

Definition at line 132 of file cxfa_ffcombobox.cpp.

◆ Copy()

std::optional< WideString > CXFA_FFComboBox::Copy ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 256 of file cxfa_ffcombobox.cpp.

◆ Cut()

std::optional< WideString > CXFA_FFComboBox::Cut ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 260 of file cxfa_ffcombobox.cpp.

◆ Delete()

void CXFA_FFComboBox::Delete ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 276 of file cxfa_ffcombobox.cpp.

◆ DeleteItem()

void CXFA_FFComboBox::DeleteItem ( int32_t nIndex)
overridevirtual

Implements CXFA_FFDropDown.

Definition at line 304 of file cxfa_ffcombobox.cpp.

References CXFA_FFWidget::InvalidateRect().

Here is the call graph for this function:

◆ DeSelect()

void CXFA_FFComboBox::DeSelect ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 280 of file cxfa_ffcombobox.cpp.

◆ GetBBox()

CFX_RectF CXFA_FFComboBox::GetBBox ( FocusOption focus)
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 46 of file cxfa_ffcombobox.cpp.

References CFX_RectF::CFX_RectF(), CXFA_FFWidget::GetBBox(), CXFA_FFWidget::kDoNotDrawFocus, and CXFA_FFWidget::kDrawFocus.

Here is the call graph for this function:

◆ GetFormFieldType()

FormFieldType CXFA_FFComboBox::GetFormFieldType ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 288 of file cxfa_ffcombobox.cpp.

◆ GetText()

WideString CXFA_FFComboBox::GetText ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 284 of file cxfa_ffcombobox.cpp.

◆ InsertItem()

void CXFA_FFComboBox::InsertItem ( const WideString & wsLabel,
int32_t nIndex )
overridevirtual

Implements CXFA_FFDropDown.

Definition at line 298 of file cxfa_ffcombobox.cpp.

References CXFA_FFWidget::InvalidateRect().

Here is the call graph for this function:

◆ IsDataChanged()

bool CXFA_FFComboBox::IsDataChanged ( )
overrideprivatevirtual

Reimplemented from CXFA_FFField.

Definition at line 136 of file cxfa_ffcombobox.cpp.

◆ LoadWidget()

bool CXFA_FFComboBox::LoadWidget ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 57 of file cxfa_ffcombobox.cpp.

References pdfium::CFWL_Widget::GetFWLApp(), CXFA_FFField::LoadWidget(), pdfium::CFWL_NoteDriver::RegisterEventTarget(), pdfium::CFWL_Widget::SetAdapterIface(), pdfium::CFWL_ComboBox::SetCurSel(), pdfium::CFWL_Widget::SetDelegate(), CXFA_FFField::SetNormalWidget(), and UpdateWidgetProperty().

Here is the call graph for this function:

◆ OnDrawWidget()

void CXFA_FFComboBox::OnDrawWidget ( CFGAS_GEGraphics * pGraphics,
const CFX_Matrix & matrix )
overridevirtual

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 371 of file cxfa_ffcombobox.cpp.

◆ OnKillFocus()

bool CXFA_FFComboBox::OnKillFocus ( CXFA_FFWidget * pNewWidget)
nodiscardoverridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 121 of file cxfa_ffcombobox.cpp.

References CXFA_FFField::OnKillFocus(), CXFA_FFField::ProcessCommittedData(), and UpdateFWLData().

Here is the call graph for this function:

◆ OnPostOpen()

void CXFA_FFComboBox::OnPostOpen ( CFWL_Widget * pWidget)

Definition at line 335 of file cxfa_ffcombobox.cpp.

References CXFA_EventParam::CXFA_EventParam(), and XFA_EVENT_PostOpen.

Referenced by OnProcessEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnPreOpen()

void CXFA_FFComboBox::OnPreOpen ( CFWL_Widget * pWidget)

Definition at line 330 of file cxfa_ffcombobox.cpp.

References CXFA_EventParam::CXFA_EventParam(), and XFA_EVENT_PreOpen.

Referenced by OnProcessEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnProcessEvent()

void CXFA_FFComboBox::OnProcessEvent ( pdfium::CFWL_Event * pEvent)
overridevirtual

◆ OnProcessMessage()

void CXFA_FFComboBox::OnProcessMessage ( CFWL_Message * pMessage)
overridevirtual

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 340 of file cxfa_ffcombobox.cpp.

◆ OnRButtonUp()

bool CXFA_FFComboBox::OnRButtonUp ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 112 of file cxfa_ffcombobox.cpp.

References CXFA_FFWidget::GetDoc(), and CXFA_FFField::OnRButtonUp().

Here is the call graph for this function:

◆ OnSelectChanged()

void CXFA_FFComboBox::OnSelectChanged ( CFWL_Widget * pWidget,
bool bLButtonUp )

Definition at line 322 of file cxfa_ffcombobox.cpp.

References CXFA_EventParam::CXFA_EventParam(), and XFA_EVENT_Unknown.

Referenced by OnProcessEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnTextChanged()

void CXFA_FFComboBox::OnTextChanged ( CFWL_Widget * pWidget,
const WideString & wsChanged )

Definition at line 314 of file cxfa_ffcombobox.cpp.

References CXFA_EventParam::CXFA_EventParam(), and XFA_EVENT_Unknown.

Referenced by OnProcessEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenDropDownList()

void CXFA_FFComboBox::OpenDropDownList ( )

Definition at line 128 of file cxfa_ffcombobox.cpp.

Referenced by CXFA_FFNotify::OpenDropDownList().

Here is the caller graph for this function:

◆ Paste()

bool CXFA_FFComboBox::Paste ( const WideString & wsPaste)
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 267 of file cxfa_ffcombobox.cpp.

◆ PtInActiveRect()

bool CXFA_FFComboBox::PtInActiveRect ( const CFX_PointF & point)
overrideprivatevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 52 of file cxfa_ffcombobox.cpp.

◆ Redo()

bool CXFA_FFComboBox::Redo ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 251 of file cxfa_ffcombobox.cpp.

◆ SelectAll()

void CXFA_FFComboBox::SelectAll ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 272 of file cxfa_ffcombobox.cpp.

◆ SetItemState()

void CXFA_FFComboBox::SetItemState ( int32_t nIndex,
bool bSelected )

Definition at line 292 of file cxfa_ffcombobox.cpp.

References CXFA_FFWidget::InvalidateRect().

Here is the call graph for this function:

◆ Trace()

void CXFA_FFComboBox::Trace ( cppgc::Visitor * visitor) const
override

Definition at line 37 of file cxfa_ffcombobox.cpp.

◆ Undo()

bool CXFA_FFComboBox::Undo ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 246 of file cxfa_ffcombobox.cpp.

◆ UpdateFWLData()

bool CXFA_FFComboBox::UpdateFWLData ( )
overrideprivatevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 203 of file cxfa_ffcombobox.cpp.

Referenced by OnKillFocus().

Here is the caller graph for this function:

◆ UpdateWidgetProperty()

void CXFA_FFComboBox::UpdateWidgetProperty ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 87 of file cxfa_ffcombobox.cpp.

References CXFA_FFField::UpdateUIProperty().

Referenced by LoadWidget().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_FFComboBox::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 17 of file cxfa_ffcombobox.h.


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