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

#include <cpdfxfa_widget.h>

+ Inheritance diagram for CPDFXFA_Widget:
+ Collaboration diagram for CPDFXFA_Widget:

Public Member Functions

 CPDFXFA_Widget (CXFA_FFWidget *pXFAFFWidget, CPDFSDK_PageView *pPageView)
 
 ~CPDFXFA_Widget () override
 
CPDFXFA_WidgetAsXFAWidget () override
 
CPDFSDK_Annot::UnsafeInputHandlersGetUnsafeInputHandlers () override
 
CPDF_Annot::Subtype GetAnnotSubtype () const override
 
CFX_FloatRect GetRect () const override
 
void OnDraw (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, bool bDrawAnnots) override
 
bool DoHitTest (const CFX_PointF &point) override
 
CFX_FloatRect GetViewBBox () override
 
bool CanUndo () override
 
bool CanRedo () override
 
bool Undo () override
 
bool Redo () override
 
WideString GetText () override
 
WideString GetSelectedText () override
 
void ReplaceAndKeepSelection (const WideString &text) override
 
void ReplaceSelection (const WideString &text) override
 
bool SelectAllText () override
 
bool SetIndexSelected (int index, bool selected) override
 
bool IsIndexSelected (int index) override
 
CXFA_FFWidgetGetXFAFFWidget () const
 
bool OnChangedFocus ()
 
- Public Member Functions inherited from CPDFSDK_Annot
virtual ~CPDFSDK_Annot ()
 
virtual CPDFSDK_BAAnnotAsBAAnnot ()
 
virtual void OnLoad ()
 
virtual int GetLayoutOrder () const
 
virtual CPDF_AnnotGetPDFAnnot () const
 
IPDF_PageGetPage ()
 
CPDF_PageGetPDFPage ()
 
IPDF_PageGetXFAPage ()
 
CPDFSDK_PageViewGetPageView () const
 
- 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 ()
 

Private Member Functions

void OnMouseEnter (Mask< FWL_EVENTFLAG > nFlags) override
 
void OnMouseExit (Mask< FWL_EVENTFLAG > nFlags) override
 
bool OnLButtonDown (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
 
bool OnLButtonUp (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
 
bool OnLButtonDblClk (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
 
bool OnMouseMove (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
 
bool OnMouseWheel (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta) override
 
bool OnRButtonDown (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
 
bool OnRButtonUp (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
 
bool OnChar (uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags) override
 
bool OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags) override
 
bool OnSetFocus (Mask< FWL_EVENTFLAG > nFlags) override
 
bool OnKillFocus (Mask< FWL_EVENTFLAG > nFlags) override
 

Additional Inherited Members

- Static Public Member Functions inherited from CPDFSDK_Annot
static void OnMouseEnter (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
 
static void OnMouseExit (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
 
static bool OnLButtonDown (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
static bool OnLButtonUp (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
static bool OnLButtonDblClk (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
static bool OnMouseMove (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
static bool OnMouseWheel (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta)
 
static bool OnRButtonDown (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
static bool OnRButtonUp (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
static bool OnChar (ObservedPtr< CPDFSDK_Annot > &pAnnot, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
 
static bool OnKeyDown (ObservedPtr< CPDFSDK_Annot > &pAnnot, FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)
 
static bool OnSetFocus (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
 
static bool OnKillFocus (ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
 
- Protected Member Functions inherited from CPDFSDK_Annot
 CPDFSDK_Annot (CPDFSDK_PageView *pPageView)
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 

Detailed Description

Definition at line 19 of file cpdfxfa_widget.h.

Constructor & Destructor Documentation

◆ CPDFXFA_Widget()

CPDFXFA_Widget::CPDFXFA_Widget ( CXFA_FFWidget * pXFAFFWidget,
CPDFSDK_PageView * pPageView )

Definition at line 218 of file cpdfxfa_widget.cpp.

References CPDFSDK_Annot::CPDFSDK_Annot(), and CPDFXFA_Widget().

Referenced by CPDFXFA_Widget().

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

◆ ~CPDFXFA_Widget()

CPDFXFA_Widget::~CPDFXFA_Widget ( )
overridedefault

Member Function Documentation

◆ AsXFAWidget()

CPDFXFA_Widget * CPDFXFA_Widget::AsXFAWidget ( )
overridevirtual

Reimplemented from CPDFSDK_Annot.

Definition at line 224 of file cpdfxfa_widget.cpp.

◆ CanRedo()

bool CPDFXFA_Widget::CanRedo ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 385 of file cpdfxfa_widget.cpp.

References CXFA_FFWidgetHandler::CanRedo(), and GetXFAFFWidget().

+ Here is the call graph for this function:

◆ CanUndo()

bool CPDFXFA_Widget::CanUndo ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 380 of file cpdfxfa_widget.cpp.

References CXFA_FFWidgetHandler::CanUndo(), and GetXFAFFWidget().

+ Here is the call graph for this function:

◆ DoHitTest()

bool CPDFXFA_Widget::DoHitTest ( const CFX_PointF & point)
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 255 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), CXFA_FFWidgetHandler::HitTest(), and Unknown.

+ Here is the call graph for this function:

◆ GetAnnotSubtype()

CPDF_Annot::Subtype CPDFXFA_Widget::GetAnnotSubtype ( ) const
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 232 of file cpdfxfa_widget.cpp.

References CPDF_Annot::XFAWIDGET.

◆ GetRect()

CFX_FloatRect CPDFXFA_Widget::GetRect ( ) const
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 236 of file cpdfxfa_widget.cpp.

References CXFA_ContentLayoutItem::GetAbsoluteRect(), CXFA_FFWidget::GetLayoutItem(), GetXFAFFWidget(), and CFX_RectF::ToFloatRect().

+ Here is the call graph for this function:

◆ GetSelectedText()

WideString CPDFXFA_Widget::GetSelectedText ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 407 of file cpdfxfa_widget.cpp.

References fxcrt::WideString::WideString(), CXFA_FFWidgetHandler::GetSelectedText(), and GetXFAFFWidget().

+ Here is the call graph for this function:

◆ GetText()

WideString CPDFXFA_Widget::GetText ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 400 of file cpdfxfa_widget.cpp.

References fxcrt::WideString::WideString(), CXFA_FFWidgetHandler::GetText(), and GetXFAFFWidget().

+ Here is the call graph for this function:

◆ GetUnsafeInputHandlers()

CPDFSDK_Annot::UnsafeInputHandlers * CPDFXFA_Widget::GetUnsafeInputHandlers ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 228 of file cpdfxfa_widget.cpp.

◆ GetViewBBox()

CFX_FloatRect CPDFXFA_Widget::GetViewBBox ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 276 of file cpdfxfa_widget.cpp.

References CXFA_FFWidget::GetBBox(), CXFA_Node::GetFFWidgetType(), CXFA_FFWidget::GetNode(), GetXFAFFWidget(), CFX_FloatRect::Inflate(), CXFA_FFWidget::kDoNotDrawFocus, CXFA_FFWidget::kDrawFocus, kSignature, and CFX_RectF::ToFloatRect().

+ Here is the call graph for this function:

◆ GetXFAFFWidget()

CXFA_FFWidget * CPDFXFA_Widget::GetXFAFFWidget ( ) const
inline

Definition at line 47 of file cpdfxfa_widget.h.

Referenced by CanRedo(), CanUndo(), DoHitTest(), CPDFXFA_Page::DrawFocusAnnot(), GetRect(), GetSelectedText(), GetText(), GetViewBBox(), OnChangedFocus(), OnDraw(), OnMouseEnter(), OnMouseExit(), Redo(), ReplaceSelection(), SelectAllText(), and Undo().

+ Here is the caller graph for this function:

◆ IsIndexSelected()

bool CPDFXFA_Widget::IsIndexSelected ( int index)
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 435 of file cpdfxfa_widget.cpp.

◆ OnChangedFocus()

bool CPDFXFA_Widget::OnChangedFocus ( )

Definition at line 264 of file cpdfxfa_widget.cpp.

References CXFA_FFDocView::GetFocusWidget(), GetXFAFFWidget(), and CXFA_FFDocView::SetFocus().

+ Here is the call graph for this function:

◆ OnChar()

bool CPDFXFA_Widget::OnChar ( uint32_t nChar,
Mask< FWL_EVENTFLAG > nFlags )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 354 of file cpdfxfa_widget.cpp.

◆ OnDraw()

void CPDFXFA_Widget::OnDraw ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device,
bool bDrawAnnots )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 240 of file cpdfxfa_widget.cpp.

References CFGAS_GEGraphics::CFGAS_GEGraphics(), CPDFSDK_Annot::GetPageView(), GetXFAFFWidget(), and CXFA_FFWidgetHandler::RenderWidget().

+ Here is the call graph for this function:

◆ OnKeyDown()

bool CPDFXFA_Widget::OnKeyDown ( FWL_VKEYCODE nKeyCode,
Mask< FWL_EVENTFLAG > nFlags )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 360 of file cpdfxfa_widget.cpp.

◆ OnKillFocus()

bool CPDFXFA_Widget::OnKillFocus ( Mask< FWL_EVENTFLAG > nFlags)
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 373 of file cpdfxfa_widget.cpp.

References CXFA_FFDocView::SetFocus().

+ Here is the call graph for this function:

◆ OnLButtonDblClk()

bool CPDFXFA_Widget::OnLButtonDblClk ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 317 of file cpdfxfa_widget.cpp.

◆ OnLButtonDown()

bool CPDFXFA_Widget::OnLButtonDown ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 303 of file cpdfxfa_widget.cpp.

◆ OnLButtonUp()

bool CPDFXFA_Widget::OnLButtonUp ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 310 of file cpdfxfa_widget.cpp.

◆ OnMouseEnter()

void CPDFXFA_Widget::OnMouseEnter ( Mask< FWL_EVENTFLAG > nFlags)
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 291 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), and CXFA_FFWidgetHandler::OnMouseEnter().

+ Here is the call graph for this function:

◆ OnMouseExit()

void CPDFXFA_Widget::OnMouseExit ( Mask< FWL_EVENTFLAG > nFlags)
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 297 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), and CXFA_FFWidgetHandler::OnMouseExit().

+ Here is the call graph for this function:

◆ OnMouseMove()

bool CPDFXFA_Widget::OnMouseMove ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 324 of file cpdfxfa_widget.cpp.

◆ OnMouseWheel()

bool CPDFXFA_Widget::OnMouseWheel ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point,
const CFX_Vector & delta )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 331 of file cpdfxfa_widget.cpp.

◆ OnRButtonDown()

bool CPDFXFA_Widget::OnRButtonDown ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 340 of file cpdfxfa_widget.cpp.

◆ OnRButtonUp()

bool CPDFXFA_Widget::OnRButtonUp ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 347 of file cpdfxfa_widget.cpp.

◆ OnSetFocus()

bool CPDFXFA_Widget::OnSetFocus ( Mask< FWL_EVENTFLAG > nFlags)
overrideprivatevirtual

Implements CPDFSDK_Annot::UnsafeInputHandlers.

Definition at line 369 of file cpdfxfa_widget.cpp.

◆ Redo()

bool CPDFXFA_Widget::Redo ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 395 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), and CXFA_FFWidgetHandler::Redo().

+ Here is the call graph for this function:

◆ ReplaceAndKeepSelection()

void CPDFXFA_Widget::ReplaceAndKeepSelection ( const WideString & text)
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 414 of file cpdfxfa_widget.cpp.

References ReplaceSelection().

+ Here is the call graph for this function:

◆ ReplaceSelection()

void CPDFXFA_Widget::ReplaceSelection ( const WideString & text)
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 420 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), and CXFA_FFWidgetHandler::PasteText().

Referenced by ReplaceAndKeepSelection().

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

◆ SelectAllText()

bool CPDFXFA_Widget::SelectAllText ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 426 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), and CXFA_FFWidgetHandler::SelectAllText().

+ Here is the call graph for this function:

◆ SetIndexSelected()

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

Implements CPDFSDK_Annot.

Definition at line 431 of file cpdfxfa_widget.cpp.

◆ Undo()

bool CPDFXFA_Widget::Undo ( )
overridevirtual

Implements CPDFSDK_Annot.

Definition at line 390 of file cpdfxfa_widget.cpp.

References GetXFAFFWidget(), and CXFA_FFWidgetHandler::Undo().

+ Here is the call graph for this function:

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