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_FFField Class Reference

#include <cxfa_fffield.h>

+ Inheritance diagram for CXFA_FFField:
+ Collaboration diagram for CXFA_FFField:

Public Types

enum  ShapeOption { kSquareShape = 0 , kRoundShape }
 
- Public Types inherited from CXFA_FFWidget
enum  FocusOption { kDoNotDrawFocus = 0 , kDrawFocus }
 
enum  HighlightOption { kNoHighlight = 0 , kHighlight }
 

Public Member Functions

 ~CXFA_FFField () override
 
virtual CXFA_FFDropDownAsDropDown ()
 
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 (CFWL_Message *pMessage) override
 
void OnProcessEvent (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 UpdateFWLData ()
 
virtual void UpdateWidgetProperty ()
 
virtual bool CanUndo ()
 
virtual bool CanRedo ()
 
virtual bool CanCopy ()
 
virtual bool CanCut ()
 
virtual bool CanPaste ()
 
virtual bool CanSelectAll ()
 
virtual bool CanDelete ()
 
virtual bool CanDeSelect ()
 
virtual bool Undo ()
 
virtual bool Redo ()
 
virtual absl::optional< WideStringCopy ()
 
virtual absl::optional< WideStringCut ()
 
virtual bool Paste (const WideString &wsPaste)
 
virtual void SelectAll ()
 
virtual void Delete ()
 
virtual void DeSelect ()
 
virtual WideString GetText ()
 
virtual FormFieldType GetFormFieldType ()
 
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 CFWL_Widget::AdapterIface
virtual ~AdapterIface ()=default
 
- Public Member Functions inherited from IFWL_WidgetDelegate
virtual ~IFWL_WidgetDelegate ()=default
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CXFA_FFWidget
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Protected Member Functions

 CXFA_FFField (CXFA_Node *pNode)
 
bool PtInActiveRect (const CFX_PointF &point) override
 
virtual void SetFWLRect ()
 
virtual bool CommitData ()
 
virtual bool IsDataChanged ()
 
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

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
 

Additional Inherited Members

- Static Public Member Functions inherited from CXFA_FFWidget
static CXFA_FFWidgetFromLayoutItem (CXFA_LayoutItem *pLayoutItem)
 

Detailed Description

Definition at line 18 of file cxfa_fffield.h.

Member Enumeration Documentation

◆ ShapeOption

Enumerator
kSquareShape 
kRoundShape 

Definition at line 20 of file cxfa_fffield.h.

Constructor & Destructor Documentation

◆ ~CXFA_FFField()

CXFA_FFField::~CXFA_FFField ( )
overridedefault

◆ CXFA_FFField()

CXFA_FFField::CXFA_FFField ( CXFA_Node * pNode)
explicitprotected

Definition at line 48 of file cxfa_fffield.cpp.

References CXFA_FFWidget::CXFA_FFWidget().

Referenced by CXFA_FFDropDown::CXFA_FFDropDown(), and CXFA_FFTextEdit::CXFA_FFTextEdit().

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

Member Function Documentation

◆ AcceptsFocusOnButtonDown()

bool CXFA_FFField::AcceptsFocusOnButtonDown ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point,
CFWL_MessageMouse::MouseCommand command )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFImageEdit, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 398 of file cxfa_fffield.cpp.

References GetNormalWidget(), and PtInActiveRect().

Referenced by CXFA_FFImageEdit::AcceptsFocusOnButtonDown().

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

◆ AsDropDown()

CXFA_FFDropDown * CXFA_FFField::AsDropDown ( )
virtual

Reimplemented in CXFA_FFDropDown.

Definition at line 52 of file cxfa_fffield.cpp.

Referenced by ToDropDown().

+ Here is the caller graph for this function:

◆ AsField()

CXFA_FFField * CXFA_FFField::AsField ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 56 of file cxfa_fffield.cpp.

◆ CalculateNode()

int32_t CXFA_FFField::CalculateNode ( CXFA_Node * pNode)
protected

Definition at line 646 of file cxfa_fffield.cpp.

References fxcrt::WideString::FromASCII(), CXFA_FFWidget::GetAppProvider(), CXFA_Node::GetCalculateIfExists(), CXFA_FFWidget::GetDoc(), CXFA_Script::GetExpression(), CXFA_Calculate::GetMessageText(), CXFA_Calculate::GetOverride(), CXFA_Calculate::GetScriptIfExists(), fxcrt::WideString::IsEmpty(), CXFA_Node::IsUserInteractive(), kOK, kUserInteractive, kWarning, kYes, kYesNo, CXFA_FFApp::CallbackIface::MsgBox(), fxcrt::WideString::operator+=(), CXFA_Node::SetFlag(), and XFA_VERSION_204.

Referenced by CalculateOverride().

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

◆ CalculateOverride()

int32_t CXFA_FFField::CalculateOverride ( )
protected

Definition at line 624 of file cxfa_fffield.cpp.

References CalculateNode(), CXFA_Node::GetExclGroupFirstMember(), CXFA_Node::GetExclGroupNextMember(), and CXFA_Node::IsWidgetReady().

Referenced by ProcessCommittedData().

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

◆ CapLeftRightPlacement()

void CXFA_FFField::CapLeftRightPlacement ( const CXFA_Margin * margin,
const CFX_RectF & rtWidget,
XFA_AttributeValue iCapPlacement )
protected

Definition at line 317 of file cxfa_fffield.cpp.

References CFX_RectF::height, CFX_RectF::left, m_CaptionRect, m_UIRect, CFX_RectF::top, CFX_RectF::width, and XFA_RectWithoutMargin().

Referenced by CapPlacement().

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

◆ CapPlacement()

◆ CapTopBottomPlacement()

void CXFA_FFField::CapTopBottomPlacement ( const CXFA_Margin * margin,
const CFX_RectF & rtWidget,
XFA_AttributeValue iCapPlacement )
protected

Definition at line 291 of file cxfa_fffield.cpp.

References CFX_RectF::height, CFX_RectF::left, m_CaptionRect, m_UIRect, CFX_RectF::top, CFX_RectF::width, and XFA_RectWithoutMargin().

Referenced by CapPlacement().

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

◆ CommitData()

bool CXFA_FFField::CommitData ( )
protectedvirtual

Reimplemented in CXFA_FFCheckButton, CXFA_FFComboBox, CXFA_FFDateTimeEdit, CXFA_FFImageEdit, CXFA_FFListBox, and CXFA_FFTextEdit.

Definition at line 707 of file cxfa_fffield.cpp.

Referenced by ProcessCommittedData().

+ Here is the caller graph for this function:

◆ DrawHighlight()

void CXFA_FFField::DrawHighlight ( CFGAS_GEGraphics * pGS,
const CFX_Matrix & pMatrix,
HighlightOption highlight,
ShapeOption shape )
protected

Definition at line 101 of file cxfa_fffield.cpp.

References CFGAS_GEPath::AddEllipse(), CFGAS_GEPath::AddRectangle(), CFGAS_GEGraphics::FillPath(), CXFA_FFWidget::GetDoc(), CFX_RectF::height, CXFA_FFWidget::kNoHighlight, kRoundShape, CFX_FillRenderOptions::kWinding, CFX_RectF::left, m_UIRect, CFGAS_GEGraphics::SetFillColor(), CFX_RectF::top, and CFX_RectF::width.

Referenced by RenderWidget(), and CXFA_FFSignature::RenderWidget().

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

◆ FWLToClient()

CFX_PointF CXFA_FFField::FWLToClient ( const CFX_PointF & point)
protected

Definition at line 392 of file cxfa_fffield.cpp.

References GetNormalWidget(), and CFWL_Widget::GetWidgetRect().

Referenced by CXFA_FFSignature::HitTest(), CXFA_FFImageEdit::OnLButtonDown(), CXFA_FFTextEdit::OnLButtonDown(), CXFA_FFCheckButton::OnLButtonUp(), and CXFA_FFTextEdit::OnRButtonDown().

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

◆ GetBBox()

CFX_RectF CXFA_FFField::GetBBox ( FocusOption focus)
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 65 of file cxfa_fffield.cpp.

References CFX_RectF::CFX_RectF(), CXFA_FFWidget::GetBBox(), CXFA_FFWidget::GetRotateMatrix(), CXFA_FFWidget::kDoNotDrawFocus, and m_UIRect.

+ Here is the call graph for this function:

◆ GetNormalWidget() [1/2]

CFWL_Widget * CXFA_FFField::GetNormalWidget ( )
protected

Definition at line 123 of file cxfa_fffield.cpp.

Referenced by AcceptsFocusOnButtonDown(), FWLToClient(), HitTest(), IsLoaded(), OnChar(), OnKeyDown(), OnKillFocus(), OnLButtonDblClk(), OnLButtonUp(), OnMouseEnter(), OnMouseExit(), OnMouseMove(), OnMouseWheel(), OnRButtonDblClk(), OnRButtonUp(), OnSetFocus(), PerformLayout(), PtInActiveRect(), RenderWidget(), SetEditScrollOffset(), SetFWLRect(), and UpdateFWL().

+ Here is the caller graph for this function:

◆ GetNormalWidget() [2/2]

const CFWL_Widget * CXFA_FFField::GetNormalWidget ( ) const
protected

Definition at line 127 of file cxfa_fffield.cpp.

◆ HitTest()

FWL_WidgetHit CXFA_FFField::HitTest ( const CFX_PointF & point)
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 563 of file cxfa_fffield.cpp.

References Border, Client, CFX_RectF::Contains(), GetNormalWidget(), CXFA_FFWidget::GetRectWithoutRotate(), m_CaptionRect, Titlebar, and Unknown.

+ Here is the call graph for this function:

◆ IsDataChanged()

bool CXFA_FFField::IsDataChanged ( )
protectedvirtual

Reimplemented in CXFA_FFCheckButton, CXFA_FFComboBox, CXFA_FFDateTimeEdit, CXFA_FFListBox, and CXFA_FFTextEdit.

Definition at line 711 of file cxfa_fffield.cpp.

Referenced by ProcessCommittedData().

+ Here is the caller graph for this function:

◆ IsLoaded()

bool CXFA_FFField::IsLoaded ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Definition at line 135 of file cxfa_fffield.cpp.

References GetNormalWidget(), and CXFA_FFWidget::IsLoaded().

+ Here is the call graph for this function:

◆ LayoutCaption()

void CXFA_FFField::LayoutCaption ( )
protected

Definition at line 579 of file cxfa_fffield.cpp.

References CFX_RectF::height, CXFA_TextLayout::Layout(), and m_CaptionRect.

Referenced by CXFA_FFCheckButton::PerformLayout(), and PerformLayout().

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

◆ LoadWidget()

bool CXFA_FFField::LoadWidget ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFImageEdit, CXFA_FFListBox, CXFA_FFNumericEdit, CXFA_FFPasswordEdit, CXFA_FFPushButton, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 139 of file cxfa_fffield.cpp.

References PerformLayout().

Referenced by CXFA_FFBarcode::LoadWidget(), CXFA_FFCheckButton::LoadWidget(), CXFA_FFComboBox::LoadWidget(), CXFA_FFDateTimeEdit::LoadWidget(), CXFA_FFImageEdit::LoadWidget(), CXFA_FFListBox::LoadWidget(), CXFA_FFNumericEdit::LoadWidget(), CXFA_FFPasswordEdit::LoadWidget(), CXFA_FFPushButton::LoadWidget(), CXFA_FFSignature::LoadWidget(), and CXFA_FFTextEdit::LoadWidget().

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

◆ OnChar()

bool CXFA_FFField::OnChar ( uint32_t dwChar,
Mask< XFA_FWL_KeyFlag > dwFlags )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 547 of file cxfa_fffield.cpp.

References CXFA_FFWidget::GetDoc(), GetNormalWidget(), CFWL_MessageKey::kChar, pdfium::ascii::kTab, and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnDrawWidget()

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

Implements IFWL_WidgetDelegate.

Reimplemented in CXFA_FFImageEdit, CXFA_FFListBox, CXFA_FFPushButton, and CXFA_FFTextEdit.

Definition at line 756 of file cxfa_fffield.cpp.

◆ OnKeyDown()

bool CXFA_FFField::OnKeyDown ( XFA_FWL_VKEYCODE dwKeyCode,
Mask< XFA_FWL_KeyFlag > dwFlags )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 536 of file cxfa_fffield.cpp.

References CXFA_FFWidget::GetDoc(), GetNormalWidget(), CFWL_MessageKey::kKeyDown, and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnKillFocus()

bool CXFA_FFField::OnKillFocus ( CXFA_FFWidget * pNewWidget)
nodiscardoverridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFListBox, and CXFA_FFTextEdit.

Definition at line 526 of file cxfa_fffield.cpp.

References CFWL_MessageKillFocus::CFWL_MessageKillFocus(), CXFA_FFWidget::GetLayoutItem(), GetNormalWidget(), CXFA_FFWidget::InvalidateRect(), kFocused, CXFA_FFWidget::OnKillFocus(), and SendMessageToFWLWidget().

Referenced by CXFA_FFComboBox::OnKillFocus(), and CXFA_FFListBox::OnKillFocus().

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

◆ OnLButtonDblClk()

bool CXFA_FFField::OnLButtonDblClk ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 438 of file cxfa_fffield.cpp.

References GetNormalWidget(), and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnLButtonDown()

bool CXFA_FFField::OnLButtonDown ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFImageEdit, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 412 of file cxfa_fffield.cpp.

References SendMessageToFWLWidget(), and CXFA_FFWidget::SetButtonDown().

+ Here is the call graph for this function:

◆ OnLButtonUp()

bool CXFA_FFField::OnLButtonUp ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 422 of file cxfa_fffield.cpp.

References GetNormalWidget(), CXFA_FFWidget::IsButtonDown(), SendMessageToFWLWidget(), and CXFA_FFWidget::SetButtonDown().

+ Here is the call graph for this function:

◆ OnMouseEnter()

bool CXFA_FFField::OnMouseEnter ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 370 of file cxfa_fffield.cpp.

References GetNormalWidget(), CFWL_MessageMouse::kEnter, and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnMouseExit()

bool CXFA_FFField::OnMouseExit ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 381 of file cxfa_fffield.cpp.

References GetNormalWidget(), CFWL_MessageMouse::kLeave, and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnMouseMove()

bool CXFA_FFField::OnMouseMove ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 450 of file cxfa_fffield.cpp.

References GetNormalWidget(), and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnMouseWheel()

bool CXFA_FFField::OnMouseWheel ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point,
const CFX_Vector & delta )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 462 of file cxfa_fffield.cpp.

References GetNormalWidget(), and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnProcessEvent()

void CXFA_FFField::OnProcessEvent ( CFWL_Event * pEvent)
overridevirtual

Implements IFWL_WidgetDelegate.

Reimplemented in CXFA_FFImageEdit, CXFA_FFListBox, CXFA_FFNumericEdit, CXFA_FFPushButton, and CXFA_FFTextEdit.

Definition at line 722 of file cxfa_fffield.cpp.

References CXFA_EventParam::CXFA_EventParam(), CFWL_Event::Click, CFWL_EventMouse::GetCommand(), CFWL_Event::GetType(), CFWL_MessageMouse::kEnter, CFWL_MessageMouse::kLeave, CFWL_MessageMouse::kLeftButtonDown, CFWL_MessageMouse::kLeftButtonUp, CFWL_Event::Mouse, XFA_EVENT_Click, XFA_EVENT_MouseDown, XFA_EVENT_MouseEnter, XFA_EVENT_MouseExit, and XFA_EVENT_MouseUp.

Referenced by CXFA_FFCheckButton::OnProcessEvent(), CXFA_FFComboBox::OnProcessEvent(), CXFA_FFImageEdit::OnProcessEvent(), CXFA_FFListBox::OnProcessEvent(), CXFA_FFPushButton::OnProcessEvent(), and CXFA_FFTextEdit::OnProcessEvent().

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

◆ OnProcessMessage()

void CXFA_FFField::OnProcessMessage ( CFWL_Message * pMessage)
overridevirtual

Implements IFWL_WidgetDelegate.

Reimplemented in CXFA_FFImageEdit, CXFA_FFListBox, CXFA_FFPushButton, and CXFA_FFTextEdit.

Definition at line 720 of file cxfa_fffield.cpp.

◆ OnRButtonDblClk()

bool CXFA_FFField::OnRButtonDblClk ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature.

Definition at line 499 of file cxfa_fffield.cpp.

References GetNormalWidget(), and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ OnRButtonDown()

bool CXFA_FFField::OnRButtonDown ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 473 of file cxfa_fffield.cpp.

References SendMessageToFWLWidget(), and CXFA_FFWidget::SetButtonDown().

+ Here is the call graph for this function:

◆ OnRButtonUp()

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

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 484 of file cxfa_fffield.cpp.

References GetNormalWidget(), CXFA_FFWidget::IsButtonDown(), SendMessageToFWLWidget(), and CXFA_FFWidget::SetButtonDown().

Referenced by CXFA_FFComboBox::OnRButtonUp(), and CXFA_FFTextEdit::OnRButtonUp().

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

◆ OnSetFocus()

bool CXFA_FFField::OnSetFocus ( CXFA_FFWidget * pOldWidget)
nodiscardoverridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFTextEdit.

Definition at line 511 of file cxfa_fffield.cpp.

References CFWL_MessageSetFocus::CFWL_MessageSetFocus(), CXFA_FFWidget::GetLayoutItem(), GetNormalWidget(), CXFA_FFWidget::InvalidateRect(), kFocused, CXFA_FFWidget::OnSetFocus(), and SendMessageToFWLWidget().

+ Here is the call graph for this function:

◆ PerformLayout()

bool CXFA_FFField::PerformLayout ( )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFPushButton.

Definition at line 167 of file cxfa_fffield.cpp.

References CapPlacement(), GetNormalWidget(), LayoutCaption(), CXFA_FFWidget::PerformLayout(), SetEditScrollOffset(), SetFWLRect(), and CFWL_Widget::Update().

Referenced by LoadWidget().

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

◆ ProcessCommittedData()

bool CXFA_FFField::ProcessCommittedData ( )
protected

Definition at line 610 of file cxfa_fffield.cpp.

References CalculateOverride(), CommitData(), and IsDataChanged().

Referenced by CXFA_FFComboBox::OnKillFocus(), CXFA_FFListBox::OnKillFocus(), CXFA_FFTextEdit::OnKillFocus(), and CXFA_FFCheckButton::OnProcessEvent().

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

◆ PtInActiveRect()

bool CXFA_FFField::PtInActiveRect ( const CFX_PointF & point)
overrideprotectedvirtual

Reimplemented from CXFA_FFWidget.

Definition at line 574 of file cxfa_fffield.cpp.

References CFX_RectF::Contains(), GetNormalWidget(), and CFWL_Widget::GetWidgetRect().

Referenced by AcceptsFocusOnButtonDown(), CXFA_FFImageEdit::AcceptsFocusOnButtonDown(), and CXFA_FFTextEdit::AcceptsFocusOnButtonDown().

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

◆ RenderCaption()

void CXFA_FFField::RenderCaption ( CFGAS_GEGraphics * pGS,
const CFX_Matrix & pMatrix )
protected

Definition at line 588 of file cxfa_fffield.cpp.

References CFX_Matrix::CFX_Matrix(), CFX_Matrix::Concat(), CXFA_FFWidget::GetRectWithoutRotate(), CFGAS_GEGraphics::GetRenderDevice(), CFX_RectF::Intersect(), CXFA_TextLayout::IsLoaded(), CXFA_Caption::IsVisible(), CXFA_TextLayout::Layout(), CFX_RectF::left, m_CaptionRect, CFX_RectF::operator=(), CFX_RectF::top, and CFX_Matrix::TransformRect().

Referenced by CXFA_FFBarcode::RenderWidget(), CXFA_FFCheckButton::RenderWidget(), RenderWidget(), CXFA_FFImageEdit::RenderWidget(), and CXFA_FFSignature::RenderWidget().

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

◆ RenderWidget()

void CXFA_FFField::RenderWidget ( CFGAS_GEGraphics * pGS,
const CFX_Matrix & matrix,
HighlightOption highlight )
overridevirtual

Reimplemented from CXFA_FFWidget.

Reimplemented in CXFA_FFImageEdit, CXFA_FFPushButton, and CXFA_FFSignature.

Definition at line 81 of file cxfa_fffield.cpp.

References CFX_Matrix::CFX_Matrix(), CFX_Matrix::Concat(), DrawHighlight(), CXFA_FFWidget::GetApp(), GetNormalWidget(), CXFA_FFWidget::GetRotateMatrix(), CFWL_Widget::GetWidgetRect(), CXFA_FFWidget::HasVisibleStatus(), kSquareShape, CFX_RectF::left, RenderCaption(), CXFA_FFWidget::RenderWidget(), and CFX_RectF::top.

+ Here is the call graph for this function:

◆ SendMessageToFWLWidget()

void CXFA_FFField::SendMessageToFWLWidget ( CFWL_Message * pMessage)
protected

Definition at line 715 of file cxfa_fffield.cpp.

References CXFA_FFWidget::GetApp().

Referenced by OnChar(), OnKeyDown(), OnKillFocus(), CXFA_FFTextEdit::OnKillFocus(), OnLButtonDblClk(), OnLButtonDown(), CXFA_FFImageEdit::OnLButtonDown(), CXFA_FFTextEdit::OnLButtonDown(), CXFA_FFCheckButton::OnLButtonUp(), OnLButtonUp(), OnMouseEnter(), OnMouseExit(), OnMouseMove(), OnMouseWheel(), OnRButtonDblClk(), OnRButtonDown(), CXFA_FFTextEdit::OnRButtonDown(), OnRButtonUp(), OnSetFocus(), and CXFA_FFTextEdit::OnSetFocus().

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

◆ SetEditScrollOffset()

void CXFA_FFField::SetEditScrollOffset ( )
protected

Definition at line 145 of file cxfa_fffield.cpp.

References CXFA_ContentLayoutItem::GetFFWidget(), CXFA_FFWidget::GetLayoutItem(), GetNormalWidget(), CFX_RectF::height, kNumericEdit, kPasswordEdit, kTextEdit, m_UIRect, CFWL_Edit::SetScrollOffset(), and ToField().

Referenced by CXFA_FFTextEdit::OnKillFocus(), and PerformLayout().

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

◆ SetFWLRect()

void CXFA_FFField::SetFWLRect ( )
protectedvirtual

Reimplemented in CXFA_FFImageEdit.

Definition at line 357 of file cxfa_fffield.cpp.

References CXFA_FFWidget::GetDoc(), GetNormalWidget(), CFX_RectF::height, m_UIRect, CFWL_Widget::SetWidgetRect(), and CFX_RectF::width.

Referenced by CXFA_FFCheckButton::PerformLayout(), PerformLayout(), and CXFA_FFPushButton::PerformLayout().

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

◆ SetNormalWidget()

void CXFA_FFField::SetNormalWidget ( CFWL_Widget * widget)
protected

◆ Trace()

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

Definition at line 60 of file cxfa_fffield.cpp.

◆ UpdateFWL()

void CXFA_FFField::UpdateFWL ( )

Definition at line 345 of file cxfa_fffield.cpp.

References GetNormalWidget(), and CFWL_Widget::Update().

+ Here is the call graph for this function:

◆ UpdateUIProperty()

uint32_t CXFA_FFField::UpdateUIProperty ( )

Definition at line 350 of file cxfa_fffield.cpp.

References CXFA_Object::GetElementType().

Referenced by CXFA_FFComboBox::UpdateWidgetProperty(), CXFA_FFDateTimeEdit::UpdateWidgetProperty(), CXFA_FFNumericEdit::UpdateWidgetProperty(), CXFA_FFPasswordEdit::UpdateWidgetProperty(), and CXFA_FFTextEdit::UpdateWidgetProperty().

+ 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_FFField::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 22 of file cxfa_fffield.h.

◆ m_CaptionRect

◆ m_UIRect


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