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

#include <cxfa_ffwidget.h>

+ Inheritance diagram for CXFA_FFWidget:
+ Collaboration diagram for CXFA_FFWidget:

Classes

class  IteratorIface
 

Public Types

enum  FocusOption { kDoNotDrawFocus = 0 , kDrawFocus }
 
enum  HighlightOption { kNoHighlight = 0 , kHighlight }
 

Public Member Functions

 ~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 CXFA_FFFieldAsField ()
 
virtual CFX_RectF GetBBox (FocusOption focus)
 
virtual void RenderWidget (CFGAS_GEGraphics *pGS, const CFX_Matrix &matrix, HighlightOption highlight)
 
virtual bool IsLoaded ()
 
virtual bool LoadWidget ()
 
virtual bool PerformLayout ()
 
virtual bool UpdateFWLData ()
 
virtual void UpdateWidgetProperty ()
 
virtual bool AcceptsFocusOnButtonDown (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point, CFWL_MessageMouse::MouseCommand command)
 
virtual bool OnMouseEnter ()
 
virtual bool OnMouseExit ()
 
virtual bool OnLButtonDown (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnLButtonUp (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnLButtonDblClk (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnMouseMove (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnMouseWheel (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point, const CFX_Vector &delta)
 
virtual bool OnRButtonDown (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnRButtonUp (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnRButtonDblClk (Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point)
 
virtual bool OnSetFocus (CXFA_FFWidget *pOldWidget)
 
virtual bool OnKillFocus (CXFA_FFWidget *pNewWidget)
 
virtual bool OnKeyDown (XFA_FWL_VKEYCODE dwKeyCode, Mask< XFA_FWL_KeyFlag > dwFlags)
 
virtual bool OnChar (uint32_t dwChar, Mask< XFA_FWL_KeyFlag > dwFlags)
 
virtual FWL_WidgetHit HitTest (const CFX_PointF &point)
 
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
 

Static Public Member Functions

static CXFA_FFWidgetFromLayoutItem (CXFA_LayoutItem *pLayoutItem)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Protected Member Functions

 CXFA_FFWidget (CXFA_Node *pNode)
 
virtual bool PtInActiveRect (const CFX_PointF &point)
 
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

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 65 of file cxfa_ffwidget.h.

Member Enumeration Documentation

◆ FocusOption

Enumerator
kDoNotDrawFocus 
kDrawFocus 

Definition at line 68 of file cxfa_ffwidget.h.

◆ HighlightOption

Enumerator
kNoHighlight 
kHighlight 

Definition at line 69 of file cxfa_ffwidget.h.

Constructor & Destructor Documentation

◆ ~CXFA_FFWidget()

CXFA_FFWidget::~CXFA_FFWidget ( )
overridedefault

◆ CXFA_FFWidget()

CXFA_FFWidget::CXFA_FFWidget ( CXFA_Node * pNode)
explicitprotected

Definition at line 217 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFField::CXFA_FFField().

+ Here is the caller graph for this function:

Member Function Documentation

◆ AcceptsFocusOnButtonDown()

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

Reimplemented in CXFA_FFBarcode, CXFA_FFField, CXFA_FFImageEdit, CXFA_FFSignature, CXFA_FFText, and CXFA_FFTextEdit.

Definition at line 371 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnLButtonDown(), and CXFA_FFWidgetHandler::OnRButtonDown().

+ Here is the caller graph for this function:

◆ AsField()

CXFA_FFField * CXFA_FFWidget::AsField ( )
virtual

Reimplemented in CXFA_FFField.

Definition at line 278 of file cxfa_ffwidget.cpp.

Referenced by ToField().

+ Here is the caller graph for this function:

◆ CanCopy()

bool CXFA_FFWidget::CanCopy ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 467 of file cxfa_ffwidget.cpp.

Referenced by CanDeSelect(), and CXFA_FFWidgetHandler::GetSelectedText().

+ Here is the caller graph for this function:

◆ CanCut()

bool CXFA_FFWidget::CanCut ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 471 of file cxfa_ffwidget.cpp.

Referenced by CanDelete().

+ Here is the caller graph for this function:

◆ CanDelete()

bool CXFA_FFWidget::CanDelete ( )
virtual

Definition at line 483 of file cxfa_ffwidget.cpp.

References CanCut().

+ Here is the call graph for this function:

◆ CanDeSelect()

bool CXFA_FFWidget::CanDeSelect ( )
virtual

Definition at line 487 of file cxfa_ffwidget.cpp.

References CanCopy().

+ Here is the call graph for this function:

◆ CanPaste()

bool CXFA_FFWidget::CanPaste ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 475 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::PasteText().

+ Here is the caller graph for this function:

◆ CanRedo()

bool CXFA_FFWidget::CanRedo ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 463 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::CanRedo().

+ Here is the caller graph for this function:

◆ CanSelectAll()

bool CXFA_FFWidget::CanSelectAll ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 479 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::SelectAllText().

+ Here is the caller graph for this function:

◆ CanUndo()

bool CXFA_FFWidget::CanUndo ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 459 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::CanUndo().

+ Here is the caller graph for this function:

◆ Copy()

absl::optional< WideString > CXFA_FFWidget::Copy ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 499 of file cxfa_ffwidget.cpp.

◆ Cut()

absl::optional< WideString > CXFA_FFWidget::Cut ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 503 of file cxfa_ffwidget.cpp.

◆ Delete()

void CXFA_FFWidget::Delete ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 513 of file cxfa_ffwidget.cpp.

◆ DeSelect()

void CXFA_FFWidget::DeSelect ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 515 of file cxfa_ffwidget.cpp.

◆ DisplayCaret()

void CXFA_FFWidget::DisplayCaret ( bool bVisible,
const CFX_RectF * pRtAnchor )
overridevirtual

Implements CFWL_Widget::AdapterIface.

Definition at line 569 of file cxfa_ffwidget.cpp.

References CXFA_FFDoc::DisplayCaret(), and GetDoc().

+ Here is the call graph for this function:

◆ DrawBorder()

void CXFA_FFWidget::DrawBorder ( CFGAS_GEGraphics * pGS,
CXFA_Box * box,
const CFX_RectF & rtBorder,
const CFX_Matrix & matrix )
protected

Definition at line 340 of file cxfa_ffwidget.cpp.

References CXFA_Box::Draw().

Referenced by CXFA_FFArc::RenderWidget(), CXFA_FFRectangle::RenderWidget(), and RenderWidget().

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

◆ DrawBorderWithFlag()

void CXFA_FFWidget::DrawBorderWithFlag ( CFGAS_GEGraphics * pGS,
CXFA_Box * box,
const CFX_RectF & rtBorder,
const CFX_Matrix & matrix,
bool forceRound )
protected

Definition at line 348 of file cxfa_ffwidget.cpp.

References CXFA_Box::Draw().

+ Here is the call graph for this function:

◆ EventKillFocus()

void CXFA_FFWidget::EventKillFocus ( )
protected

Definition at line 635 of file cxfa_ffwidget.cpp.

References CXFA_EventParam::CXFA_EventParam(), CXFA_ContentLayoutItem::ClearStatusBits(), GetLayoutItem(), kAccess, CXFA_ContentLayoutItem::TestStatusBits(), and XFA_EVENT_Exit.

Referenced by OnKillFocus().

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

◆ FromLayoutItem()

CXFA_FFWidget * CXFA_FFWidget::FromLayoutItem ( CXFA_LayoutItem * pLayoutItem)
static

Definition at line 210 of file cxfa_ffwidget.cpp.

References GetFFWidget(), CXFA_LayoutItem::GetFormNode(), CXFA_Object::HasCreatedUIWidget(), and ToContentLayoutItem().

Referenced by CXFA_FFPageWidgetIterator::GetCurrentWidget(), CXFA_FFNotify::OnLayoutItemAdded(), CXFA_FFNotify::OnLayoutItemRemoving(), and CXFA_FFNotify::OpenDropDownList().

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

◆ GetApp()

CXFA_FFApp * CXFA_FFWidget::GetApp ( )

Definition at line 623 of file cxfa_ffwidget.cpp.

References CXFA_FFDoc::GetApp(), and GetDoc().

Referenced by GetAppProvider(), CXFA_FFCheckButton::RenderWidget(), CXFA_FFField::RenderWidget(), CXFA_FFPushButton::RenderWidget(), and CXFA_FFField::SendMessageToFWLWidget().

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

◆ GetAppProvider()

CXFA_FFApp::CallbackIface * CXFA_FFWidget::GetAppProvider ( )

Definition at line 627 of file cxfa_ffwidget.cpp.

References GetApp(), and CXFA_FFApp::GetAppProvider().

Referenced by CXFA_FFField::CalculateNode().

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

◆ GetBBox()

CFX_RectF CXFA_FFWidget::GetBBox ( FocusOption focus)
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFField.

Definition at line 282 of file cxfa_ffwidget.cpp.

References CFX_RectF::CFX_RectF().

Referenced by CPDFXFA_Page::DrawFocusAnnot(), CXFA_FFComboBox::GetBBox(), CXFA_FFDateTimeEdit::GetBBox(), CXFA_FFField::GetBBox(), CPDFXFA_Widget::GetViewBBox(), and InvalidateRect().

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

◆ GetBorderColorAndThickness()

void CXFA_FFWidget::GetBorderColorAndThickness ( FX_ARGB * cr,
float * fWidth )
overridevirtual

Implements CFWL_Widget::AdapterIface.

Definition at line 573 of file cxfa_ffwidget.cpp.

References CXFA_Stroke::GetColor(), GetNode(), CXFA_Stroke::GetThickness(), and CXFA_Node::GetUIBorder().

+ Here is the call graph for this function:

◆ GetDoc()

◆ GetDocView()

CXFA_FFDocView * CXFA_FFWidget::GetDocView ( ) const
inline

Definition at line 163 of file cxfa_ffwidget.h.

Referenced by GetParent(), and CXFA_FFCheckButton::OnProcessEvent().

+ Here is the caller graph for this function:

◆ GetFormFieldType()

FormFieldType CXFA_FFWidget::GetFormFieldType ( )
virtual

Reimplemented in CXFA_FFCheckButton, CXFA_FFComboBox, CXFA_FFImageEdit, CXFA_FFListBox, CXFA_FFPushButton, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 521 of file cxfa_ffwidget.cpp.

Referenced by CPDFXFA_Page::HasFormFieldAtPoint().

+ Here is the caller graph for this function:

◆ GetFWLApp()

CFWL_App * CXFA_FFWidget::GetFWLApp ( ) const

Definition at line 228 of file cxfa_ffwidget.cpp.

References CXFA_FFDoc::GetApp(), CXFA_FFDocView::GetDoc(), CXFA_FFPageView::GetDocView(), CXFA_FFApp::GetFWLApp(), and GetPageView().

+ Here is the call graph for this function:

◆ GetLayoutItem()

◆ GetNextFFWidget()

CXFA_FFWidget * CXFA_FFWidget::GetNextFFWidget ( ) const

Definition at line 232 of file cxfa_ffwidget.cpp.

References GetFFWidget(), GetLayoutItem(), and CXFA_ContentLayoutItem::GetNext().

Referenced by CXFA_FFNotify::OnValueChanged(), CXFA_FFNotify::OnValueChanging(), CXFA_FFNotify::OnWidgetListItemAdded(), CXFA_FFNotify::OnWidgetListItemRemoved(), and CXFA_FFDocView::UpdateUIDisplay().

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

◆ GetNode()

◆ GetPageView()

CXFA_FFPageView * CXFA_FFWidget::GetPageView ( ) const
inline

Definition at line 161 of file cxfa_ffwidget.h.

Referenced by CPDFXFA_DocEnvironment::DisplayCaret(), GetFWLApp(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFNotify::OnLayoutItemAdded(), CPDFXFA_DocEnvironment::PopupMenu(), CPDFXFA_DocEnvironment::WidgetPostAdd(), and CPDFXFA_DocEnvironment::WidgetPreRemove().

+ Here is the caller graph for this function:

◆ GetParent()

CXFA_LayoutItem * CXFA_FFWidget::GetParent ( )

Definition at line 592 of file cxfa_ffwidget.cpp.

References GetDocView(), CXFA_LayoutProcessor::GetLayoutItem(), and CXFA_FFDocView::GetLayoutProcessor().

Referenced by OnKillFocus(), and OnSetFocus().

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

◆ GetRectWithoutRotate()

CFX_RectF CXFA_FFWidget::GetRectWithoutRotate ( )
protected

◆ GetRotateMatrix()

CFX_Matrix CXFA_FFWidget::GetRotateMatrix ( )
overridevirtual

◆ GetText()

WideString CXFA_FFWidget::GetText ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 517 of file cxfa_ffwidget.cpp.

References fxcrt::WideString::WideString().

Referenced by CXFA_FFWidgetHandler::GetText().

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

◆ GetWidgetRect()

const CFX_RectF & CXFA_FFWidget::GetWidgetRect ( ) const

Definition at line 236 of file cxfa_ffwidget.cpp.

References GetLayoutItem(), kRectCached, m_WidgetRect, RecacheWidgetRect(), and CXFA_ContentLayoutItem::TestStatusBits().

Referenced by GetRectWithoutRotate(), CPDFXFA_Page::HasFormFieldAtPoint(), CXFA_FFNotify::OnLayoutItemAdded(), and PtInActiveRect().

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

◆ HasEventUnderHandler()

bool CXFA_FFWidget::HasEventUnderHandler ( XFA_EVENTTYPE eEventType,
CXFA_FFWidgetHandler * pHandler )

Definition at line 325 of file cxfa_ffwidget.cpp.

References GetNode(), CXFA_FFWidgetHandler::HasEvent(), and CXFA_Node::IsWidgetReady().

+ Here is the call graph for this function:

◆ HasVisibleStatus()

bool CXFA_FFWidget::HasVisibleStatus ( ) const
protected

Definition at line 631 of file cxfa_ffwidget.cpp.

References GetLayoutItem(), kVisible, and CXFA_ContentLayoutItem::TestStatusBits().

Referenced by CXFA_FFArc::RenderWidget(), CXFA_FFBarcode::RenderWidget(), CXFA_FFCheckButton::RenderWidget(), CXFA_FFExclGroup::RenderWidget(), CXFA_FFField::RenderWidget(), CXFA_FFImage::RenderWidget(), CXFA_FFImageEdit::RenderWidget(), CXFA_FFLine::RenderWidget(), CXFA_FFPushButton::RenderWidget(), CXFA_FFRectangle::RenderWidget(), CXFA_FFSignature::RenderWidget(), CXFA_FFText::RenderWidget(), and RenderWidget().

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

◆ HitTest()

FWL_WidgetHit CXFA_FFWidget::HitTest ( const CFX_PointF & point)
virtual

Reimplemented in CXFA_FFField, CXFA_FFSignature, and CXFA_FFText.

Definition at line 455 of file cxfa_ffwidget.cpp.

References Unknown.

Referenced by CXFA_FFWidgetHandler::HitTest().

+ Here is the caller graph for this function:

◆ InvalidateRect()

void CXFA_FFWidget::InvalidateRect ( )

◆ IsAncestorOf()

bool CXFA_FFWidget::IsAncestorOf ( CXFA_FFWidget * pWidget)

Definition at line 601 of file cxfa_ffwidget.cpp.

References GetNode().

Referenced by OnKillFocus(), and OnSetFocus().

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

◆ IsButtonDown()

bool CXFA_FFWidget::IsButtonDown ( )
protected

Definition at line 645 of file cxfa_ffwidget.cpp.

References GetLayoutItem(), kButtonDown, and CXFA_ContentLayoutItem::TestStatusBits().

Referenced by CXFA_FFCheckButton::OnLButtonUp(), CXFA_FFField::OnLButtonUp(), CXFA_FFText::OnLButtonUp(), and CXFA_FFField::OnRButtonUp().

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

◆ IsFocused()

bool CXFA_FFWidget::IsFocused ( ) const
inline

Definition at line 177 of file cxfa_ffwidget.h.

References GetLayoutItem(), kFocused, and CXFA_ContentLayoutItem::TestStatusBits().

Referenced by CXFA_FFTextEdit::OnLButtonDown(), CXFA_FFTextEdit::OnRButtonDown(), CXFA_FFTextEdit::OnSetFocus(), CXFA_FFDateTimeEdit::UpdateFWLData(), CXFA_FFTextEdit::UpdateFWLData(), and CXFA_FFDocView::UpdateUIDisplay().

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

◆ IsLayoutRectEmpty()

bool CXFA_FFWidget::IsLayoutRectEmpty ( )

Definition at line 587 of file cxfa_ffwidget.cpp.

References GetRectWithoutRotate(), CFX_RectF::height, and CFX_RectF::width.

+ Here is the call graph for this function:

◆ IsLoaded()

bool CXFA_FFWidget::IsLoaded ( )
virtual

Reimplemented in CXFA_FFField, CXFA_FFImage, and CXFA_FFText.

Definition at line 305 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFField::IsLoaded(), CXFA_FFNotify::OnLayoutItemAdded(), CXFA_FFNotify::OnValueChanged(), CXFA_FFNotify::OnValueChanging(), CXFA_FFNotify::OnWidgetListItemAdded(), CXFA_FFNotify::OnWidgetListItemRemoved(), CXFA_FFNotify::OpenDropDownList(), CXFA_FFDocView::SetFocus(), and CXFA_FFDocView::UpdateUIDisplay().

+ Here is the caller graph for this function:

◆ LoadWidget()

bool CXFA_FFWidget::LoadWidget ( )
virtual

Reimplemented in CXFA_FFBarcode, CXFA_FFCheckButton, CXFA_FFComboBox, CXFA_FFDateTimeEdit, CXFA_FFField, CXFA_FFImage, CXFA_FFImageEdit, CXFA_FFListBox, CXFA_FFNumericEdit, CXFA_FFPasswordEdit, CXFA_FFPushButton, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 309 of file cxfa_ffwidget.cpp.

References PerformLayout().

Referenced by CXFA_FFImage::LoadWidget(), CXFA_FFNotify::OnLayoutItemAdded(), and CXFA_FFDocView::SetFocus().

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

◆ ModifyStatus()

void CXFA_FFWidget::ModifyStatus ( Mask< XFA_WidgetStatus > dwAdded,
Mask< XFA_WidgetStatus > dwRemoved )

Definition at line 272 of file cxfa_ffwidget.cpp.

References CXFA_ContentLayoutItem::ClearStatusBits(), GetLayoutItem(), and CXFA_ContentLayoutItem::SetStatusBits().

Referenced by CXFA_FFNotify::OnLayoutItemAdded().

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

◆ OnChar()

bool CXFA_FFWidget::OnChar ( uint32_t dwChar,
Mask< XFA_FWL_KeyFlag > dwFlags )
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 451 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnChar().

+ Here is the caller graph for this function:

◆ OnKeyDown()

bool CXFA_FFWidget::OnKeyDown ( XFA_FWL_VKEYCODE dwKeyCode,
Mask< XFA_FWL_KeyFlag > dwFlags )
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 446 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnKeyDown().

+ Here is the caller graph for this function:

◆ OnKillFocus()

bool CXFA_FFWidget::OnKillFocus ( CXFA_FFWidget * pNewWidget)
nodiscardvirtual

Reimplemented in CXFA_FFComboBox, CXFA_FFField, CXFA_FFListBox, and CXFA_FFTextEdit.

Definition at line 432 of file cxfa_ffwidget.cpp.

References CXFA_ContentLayoutItem::ClearStatusBits(), EventKillFocus(), GetFFWidget(), GetLayoutItem(), GetParent(), IsAncestorOf(), kFocused, OnKillFocus(), and ToContentLayoutItem().

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

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

◆ OnLButtonDblClk()

bool CXFA_FFWidget::OnLButtonDblClk ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 388 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnLButtonDblClk().

+ Here is the caller graph for this function:

◆ OnLButtonDown()

bool CXFA_FFWidget::OnLButtonDown ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFField, CXFA_FFImageEdit, CXFA_FFSignature, CXFA_FFText, and CXFA_FFTextEdit.

Definition at line 378 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnLButtonDown().

+ Here is the caller graph for this function:

◆ OnLButtonUp()

bool CXFA_FFWidget::OnLButtonUp ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFCheckButton, CXFA_FFField, CXFA_FFSignature, and CXFA_FFText.

Definition at line 383 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnLButtonUp().

+ Here is the caller graph for this function:

◆ OnMouseEnter()

bool CXFA_FFWidget::OnMouseEnter ( )
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 363 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnMouseEnter().

+ Here is the caller graph for this function:

◆ OnMouseExit()

bool CXFA_FFWidget::OnMouseExit ( )
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 367 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnMouseExit().

+ Here is the caller graph for this function:

◆ OnMouseMove()

bool CXFA_FFWidget::OnMouseMove ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFField, CXFA_FFSignature, and CXFA_FFText.

Definition at line 393 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnMouseMove().

+ Here is the caller graph for this function:

◆ OnMouseWheel()

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

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 398 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnMouseWheel().

+ Here is the caller graph for this function:

◆ OnRButtonDblClk()

bool CXFA_FFWidget::OnRButtonDblClk ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFSignature.

Definition at line 414 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnRButtonDblClk().

+ Here is the caller graph for this function:

◆ OnRButtonDown()

bool CXFA_FFWidget::OnRButtonDown ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFField, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 404 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnRButtonDown().

+ Here is the caller graph for this function:

◆ OnRButtonUp()

bool CXFA_FFWidget::OnRButtonUp ( Mask< XFA_FWL_KeyFlag > dwFlags,
const CFX_PointF & point )
nodiscardvirtual

Reimplemented in CXFA_FFComboBox, CXFA_FFField, CXFA_FFSignature, and CXFA_FFTextEdit.

Definition at line 409 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::OnRButtonUp().

+ Here is the caller graph for this function:

◆ OnSetFocus()

bool CXFA_FFWidget::OnSetFocus ( CXFA_FFWidget * pOldWidget)
nodiscardvirtual

Reimplemented in CXFA_FFField, and CXFA_FFTextEdit.

Definition at line 419 of file cxfa_ffwidget.cpp.

References CXFA_EventParam::CXFA_EventParam(), GetFFWidget(), GetLayoutItem(), GetParent(), IsAncestorOf(), kFocused, OnSetFocus(), CXFA_ContentLayoutItem::SetStatusBits(), ToContentLayoutItem(), and XFA_EVENT_Enter.

Referenced by CXFA_FFField::OnSetFocus(), CXFA_FFTextEdit::OnSetFocus(), and OnSetFocus().

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

◆ Paste()

bool CXFA_FFWidget::Paste ( const WideString & wsPaste)
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 507 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::PasteText().

+ Here is the caller graph for this function:

◆ PerformLayout()

bool CXFA_FFWidget::PerformLayout ( )
virtual

Reimplemented in CXFA_FFCheckButton, CXFA_FFField, CXFA_FFPushButton, and CXFA_FFText.

Definition at line 314 of file cxfa_ffwidget.cpp.

References RecacheWidgetRect().

Referenced by LoadWidget(), CXFA_FFNotify::OnLayoutItemAdded(), CXFA_FFNotify::OnValueChanged(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFField::PerformLayout(), CXFA_FFPushButton::PerformLayout(), and CXFA_FFText::PerformLayout().

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

◆ ProcessEventUnderHandler()

bool CXFA_FFWidget::ProcessEventUnderHandler ( CXFA_EventParam * params,
CXFA_FFWidgetHandler * pHandler )

Definition at line 331 of file cxfa_ffwidget.cpp.

References GetNode(), CXFA_Node::IsWidgetReady(), kSuccess, and CXFA_FFWidgetHandler::ProcessEvent().

+ Here is the call graph for this function:

◆ PtInActiveRect()

bool CXFA_FFWidget::PtInActiveRect ( const CFX_PointF & point)
protectedvirtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFField.

Definition at line 615 of file cxfa_ffwidget.cpp.

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

+ Here is the call graph for this function:

◆ RecacheWidgetRect()

const CFX_RectF & CXFA_FFWidget::RecacheWidgetRect ( ) const

Definition at line 242 of file cxfa_ffwidget.cpp.

References CXFA_ContentLayoutItem::GetAbsoluteRect(), GetLayoutItem(), kRectCached, m_WidgetRect, CFX_RectF::operator=(), and CXFA_ContentLayoutItem::SetStatusBits().

Referenced by GetWidgetRect(), CXFA_FFNotify::OnLayoutItemAdded(), and PerformLayout().

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

◆ Redo()

bool CXFA_FFWidget::Redo ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 495 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::Redo().

+ Here is the caller graph for this function:

◆ RenderWidget()

void CXFA_FFWidget::RenderWidget ( CFGAS_GEGraphics * pGS,
const CFX_Matrix & matrix,
HighlightOption highlight )
virtual

◆ Rotate2Normal()

CFX_PointF CXFA_FFWidget::Rotate2Normal ( const CFX_PointF & point)

Definition at line 525 of file cxfa_ffwidget.cpp.

References CFX_Matrix::GetInverse(), GetRotateMatrix(), CFX_Matrix::IsIdentity(), and CFX_Matrix::Transform().

Referenced by CXFA_FFWidgetHandler::HitTest(), CXFA_FFWidgetHandler::OnLButtonDblClk(), CXFA_FFWidgetHandler::OnLButtonDown(), CXFA_FFWidgetHandler::OnLButtonUp(), CXFA_FFWidgetHandler::OnMouseMove(), CXFA_FFWidgetHandler::OnMouseWheel(), CXFA_FFWidgetHandler::OnRButtonDblClk(), CXFA_FFWidgetHandler::OnRButtonDown(), and CXFA_FFWidgetHandler::OnRButtonUp().

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

◆ SelectAll()

void CXFA_FFWidget::SelectAll ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 511 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::SelectAllText().

+ Here is the caller graph for this function:

◆ SetButtonDown()

void CXFA_FFWidget::SetButtonDown ( bool bSet)
protected

Definition at line 649 of file cxfa_ffwidget.cpp.

References CXFA_ContentLayoutItem::ClearStatusBits(), GetLayoutItem(), kButtonDown, and CXFA_ContentLayoutItem::SetStatusBits().

Referenced by CXFA_FFField::OnLButtonDown(), CXFA_FFImageEdit::OnLButtonDown(), CXFA_FFText::OnLButtonDown(), CXFA_FFTextEdit::OnLButtonDown(), CXFA_FFCheckButton::OnLButtonUp(), CXFA_FFField::OnLButtonUp(), CXFA_FFText::OnLButtonUp(), CXFA_FFField::OnRButtonDown(), CXFA_FFTextEdit::OnRButtonDown(), and CXFA_FFField::OnRButtonUp().

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

◆ SetDocView()

void CXFA_FFWidget::SetDocView ( CXFA_FFDocView * pDocView)
inline

Definition at line 164 of file cxfa_ffwidget.h.

◆ SetLayoutItem()

void CXFA_FFWidget::SetLayoutItem ( CXFA_ContentLayoutItem * pItem)
inline

Definition at line 160 of file cxfa_ffwidget.h.

◆ SetPageView()

void CXFA_FFWidget::SetPageView ( CXFA_FFPageView * pPageView)
inline

Definition at line 162 of file cxfa_ffwidget.h.

Referenced by CXFA_FFNotify::OnLayoutItemAdded().

+ Here is the caller graph for this function:

◆ Trace()

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

Definition at line 221 of file cxfa_ffwidget.cpp.

◆ Undo()

bool CXFA_FFWidget::Undo ( )
virtual

Reimplemented in CXFA_FFComboBox, CXFA_FFDateTimeEdit, and CXFA_FFTextEdit.

Definition at line 491 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFWidgetHandler::Undo().

+ Here is the caller graph for this function:

◆ UpdateFWLData()

bool CXFA_FFWidget::UpdateFWLData ( )
virtual

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

Definition at line 319 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFDocView::UpdateUIDisplay().

+ Here is the caller graph for this function:

◆ UpdateWidgetProperty()

void CXFA_FFWidget::UpdateWidgetProperty ( )
virtual

Reimplemented in CXFA_FFBarcode, CXFA_FFCheckButton, CXFA_FFComboBox, CXFA_FFDateTimeEdit, CXFA_FFNumericEdit, CXFA_FFPasswordEdit, CXFA_FFPushButton, and CXFA_FFTextEdit.

Definition at line 323 of file cxfa_ffwidget.cpp.

Referenced by CXFA_FFNotify::OnValueChanged().

+ Here is the caller graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_FFWidget::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 85 of file cxfa_ffwidget.h.

◆ m_pDocView

cppgc::Member<CXFA_FFDocView> CXFA_FFWidget::m_pDocView
protected

Definition at line 210 of file cxfa_ffwidget.h.

◆ m_pLayoutItem

cppgc::Member<CXFA_ContentLayoutItem> CXFA_FFWidget::m_pLayoutItem
protected

Definition at line 209 of file cxfa_ffwidget.h.

◆ m_pNode

cppgc::Member<CXFA_Node> const CXFA_FFWidget::m_pNode
protected

Definition at line 212 of file cxfa_ffwidget.h.

◆ m_pPageView

cppgc::Member<CXFA_FFPageView> CXFA_FFWidget::m_pPageView
protected

Definition at line 211 of file cxfa_ffwidget.h.

◆ m_WidgetRect

CFX_RectF CXFA_FFWidget::m_WidgetRect
mutableprotected

Definition at line 213 of file cxfa_ffwidget.h.

Referenced by GetWidgetRect(), and RecacheWidgetRect().


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