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_FormField Class Referenceabstract

#include <cffl_formfield.h>

+ Inheritance diagram for CFFL_FormField:
+ Collaboration diagram for CFFL_FormField:

Public Member Functions

 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)
 
virtual bool OnChar (CPDFSDK_Widget *pAnnot, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
 
virtual bool SetIndexSelected (int index, bool selected)
 
virtual bool IsIndexSelected (int index)
 
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 GetActionData (const CPDFSDK_PageView *pPageView, CPDF_AAction::AActionType type, CFFL_FieldAction &fa)
 
virtual void SetActionData (const CPDFSDK_PageView *pPageView, CPDF_AAction::AActionType type, const CFFL_FieldAction &fa)
 
virtual CPWL_Wnd::CreateParams GetCreateParam ()
 
virtual std::unique_ptr< CPWL_WndNewPWLWindow (const CPWL_Wnd::CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)=0
 
virtual void SavePWLWindowState (const CPDFSDK_PageView *pPageView)
 
virtual void RecreatePWLWindowFromSavedState (const CPDFSDK_PageView *pPageView)
 
virtual bool IsDataChanged (const CPDFSDK_PageView *pPageView)
 
virtual void SaveData (const CPDFSDK_PageView *pPageView)
 
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
 

Protected Member Functions

virtual CPWL_WndResetPWLWindow (const CPDFSDK_PageView *pPageView)
 
virtual CPWL_WndRestorePWLWindow (const CPDFSDK_PageView *pPageView)
 
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

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
 

Friends

class CPWLComboBoxEmbedderTest
 
class CPWLEditEmbedderTest
 
class CPWLSpecialButtonEmbedderTest
 

Detailed Description

Definition at line 26 of file cffl_formfield.h.

Constructor & Destructor Documentation

◆ CFFL_FormField()

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

Definition at line 19 of file cffl_formfield.cpp.

References CFFL_FormField().

Referenced by CFFL_Button::CFFL_Button(), CFFL_FormField(), and CFFL_TextObject::CFFL_TextObject().

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

◆ ~CFFL_FormField()

CFFL_FormField::~CFFL_FormField ( )
override

Definition at line 25 of file cffl_formfield.cpp.

References DestroyWindows().

+ Here is the call graph for this function:

Member Function Documentation

◆ CanRedo()

bool CFFL_FormField::CanRedo ( )

Definition at line 244 of file cffl_formfield.cpp.

References CPWL_Wnd::CanRedo(), GetCurPageView(), GetPWLWindow(), and IsValid().

Referenced by CFFL_InteractiveFormFiller::CanRedo().

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

◆ CanUndo()

bool CFFL_FormField::CanUndo ( )

Definition at line 236 of file cffl_formfield.cpp.

References CPWL_Wnd::CanUndo(), GetCurPageView(), GetPWLWindow(), and IsValid().

Referenced by CFFL_InteractiveFormFiller::CanUndo().

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

◆ CommitData()

bool CFFL_FormField::CommitData ( const CPDFSDK_PageView * pPageView,
Mask< FWL_EVENTFLAG > nFlag )

Definition at line 474 of file cffl_formfield.cpp.

References IsDataChanged(), ResetPWLWindow(), and SaveData().

Referenced by KillFocusForAnnot(), CFFL_InteractiveFormFiller::OnBeforeKeyStroke(), CFFL_CheckBox::OnChar(), CFFL_RadioButton::OnChar(), CFFL_TextField::OnChar(), CFFL_CheckBox::OnLButtonUp(), and CFFL_RadioButton::OnLButtonUp().

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

◆ CreateOrUpdatePWLWindow()

CPWL_Wnd * CFFL_FormField::CreateOrUpdatePWLWindow ( const CPDFSDK_PageView * pPageView)
protected

Definition at line 363 of file cffl_formfield.cpp.

References CPWL_Wnd::GetAttachedData(), GetCreateParam(), and GetPWLWindow().

Referenced by CPWLSpecialButtonEmbedderTest::FormFillerAndWindowSetup(), CFFL_TextField::OnChar(), OnLButtonDown(), OnMouseWheel(), OnRButtonDown(), and SetFocusForAnnot().

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

◆ DestroyPWLWindow()

void CFFL_FormField::DestroyPWLWindow ( const CPDFSDK_PageView * pPageView)

Definition at line 384 of file cffl_formfield.cpp.

Referenced by EscapeFiller(), CFFL_TextField::OnChar(), CFFL_TextObject::ResetPWLWindow(), and CFFL_TextObject::RestorePWLWindow().

+ Here is the caller graph for this function:

◆ DestroyWindows()

void CFFL_FormField::DestroyWindows ( )
protected

Definition at line 29 of file cffl_formfield.cpp.

Referenced by CFFL_ComboBox::~CFFL_ComboBox(), ~CFFL_FormField(), CFFL_TextField::~CFFL_TextField(), and CFFL_TextObject::~CFFL_TextObject().

+ Here is the caller graph for this function:

◆ EscapeFiller()

void CFFL_FormField::EscapeFiller ( CPDFSDK_PageView * pPageView,
bool bDestroyPWLWindow )

Definition at line 579 of file cffl_formfield.cpp.

References DestroyPWLWindow(), GetViewBBox(), InvalidateRect(), and m_bValid.

Referenced by KillFocusForAnnot(), and CFFL_TextField::OnChar().

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

◆ FFLtoPWL() [1/2]

CFX_FloatRect CFFL_FormField::FFLtoPWL ( const CFX_FloatRect & rect)

Definition at line 458 of file cffl_formfield.cpp.

References GetCurMatrix(), CFX_Matrix::GetInverse(), and CFX_Matrix::TransformRect().

+ Here is the call graph for this function:

◆ FFLtoPWL() [2/2]

CFX_PointF CFFL_FormField::FFLtoPWL ( const CFX_PointF & point)

Definition at line 466 of file cffl_formfield.cpp.

References GetCurMatrix(), CFX_Matrix::GetInverse(), and CFX_Matrix::Transform().

Referenced by OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnMouseWheel(), OnRButtonDown(), and OnRButtonUp().

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

◆ GetActionData()

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

Reimplemented in CFFL_ComboBox, CFFL_ListBox, and CFFL_TextField.

Definition at line 529 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::OnBeforeKeyStroke(), CFFL_InteractiveFormFiller::OnKeyStrokeCommit(), CFFL_InteractiveFormFiller::OnKillFocus(), CFFL_InteractiveFormFiller::OnSetFocus(), and CFFL_InteractiveFormFiller::OnValidate().

+ Here is the caller graph for this function:

◆ GetCreateParam()

CPWL_Wnd::CreateParams CFFL_FormField::GetCreateParam ( )
virtual

Reimplemented in CFFL_ComboBox, CFFL_ListBox, and CFFL_TextField.

Definition at line 309 of file cffl_formfield.cpp.

References CFX_Color::CFX_Color(), CPWL_Dash::CPWL_Dash(), CPWL_Wnd::CreateParams::dwBorderWidth, CPWL_Wnd::CreateParams::dwFlags, CPWL_Wnd::CreateParams::fFontSize, GetPDFAnnotRect(), kBeveled, kDash, CFX_Color::kGray, kInset, pdfium::form_flags::kReadOnly, CPWL_Wnd::CreateParams::nBorderStyle, CFX_Color::operator=(), CFX_FloatRect::operator=(), CPWL_Wnd::CreateParams::rcRectWnd, CPWL_Wnd::CreateParams::sDash, and CPWL_Wnd::CreateParams::sTextColor.

Referenced by CreateOrUpdatePWLWindow(), CFFL_ComboBox::GetCreateParam(), CFFL_ListBox::GetCreateParam(), and CFFL_TextField::GetCreateParam().

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

◆ GetCurMatrix()

CFX_Matrix CFFL_FormField::GetCurMatrix ( )

Definition at line 411 of file cffl_formfield.cpp.

References CFX_Matrix::CFX_Matrix(), CFX_FloatRect::bottom, CFX_Matrix::e, CFX_Matrix::f, CFX_FloatRect::left, CFX_Matrix::operator=(), CFX_FloatRect::right, and CFX_FloatRect::top.

Referenced by FFLtoPWL(), FFLtoPWL(), GetWindowMatrix(), OnDraw(), PWLtoFFL(), and PWLtoFFL().

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

◆ GetCurPageView()

CPDFSDK_PageView * CFFL_FormField::GetCurPageView ( )

Definition at line 444 of file cffl_formfield.cpp.

Referenced by CanRedo(), CanUndo(), GetSelectedText(), GetText(), CFFL_ComboBox::IsIndexSelected(), CFFL_ListBox::IsIndexSelected(), OnChar(), CFFL_TextField::OnChar(), OnKeyDown(), Redo(), ReplaceAndKeepSelection(), ReplaceSelection(), SelectAllText(), CFFL_ComboBox::SetIndexSelected(), CFFL_ListBox::SetIndexSelected(), and Undo().

+ Here is the caller graph for this function:

◆ GetFocusBox()

CFX_FloatRect CFFL_FormField::GetFocusBox ( const CPDFSDK_PageView * pPageView)

Definition at line 448 of file cffl_formfield.cpp.

References CFX_FloatRect::CFX_FloatRect(), CPDF_PageObjectHolder::GetBBox(), CPWL_Wnd::GetFocusRect(), CPDFSDK_PageView::GetPDFPage(), GetPWLWindow(), and PWLtoFFL().

Referenced by GetViewBBox(), and CFFL_InteractiveFormFiller::OnDraw().

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

◆ GetPDFAnnotRect()

CFX_FloatRect CFFL_FormField::GetPDFAnnotRect ( ) const

Definition at line 435 of file cffl_formfield.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::Height(), and CFX_FloatRect::Width().

Referenced by GetCreateParam().

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

◆ GetPerPWLWindowData()

CFFL_PerWindowData * CFFL_FormField::GetPerPWLWindowData ( const CPDFSDK_PageView * pPageView)

Definition at line 544 of file cffl_formfield.cpp.

References CPWL_Wnd::GetAttachedData(), and GetPWLWindow().

Referenced by CFFL_InteractiveFormFiller::OnBeforeKeyStroke().

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

◆ GetPWLWindow()

CPWL_Wnd * CFFL_FormField::GetPWLWindow ( const CPDFSDK_PageView * pPageView) const
protected

◆ GetSDKWidget()

CPDFSDK_Widget * CFFL_FormField::GetSDKWidget ( ) const
inline

Definition at line 136 of file cffl_formfield.h.

Referenced by CPDFSDK_FormFillEnvironment::OutputSelectedRect().

+ Here is the caller graph for this function:

◆ GetSelectedText()

WideString CFFL_FormField::GetSelectedText ( )

Definition at line 198 of file cffl_formfield.cpp.

References fxcrt::WideString::WideString(), GetCurPageView(), GetPWLWindow(), CPWL_Wnd::GetSelectedText(), and IsValid().

Referenced by CFFL_InteractiveFormFiller::GetSelectedText().

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

◆ GetText()

WideString CFFL_FormField::GetText ( )

Definition at line 190 of file cffl_formfield.cpp.

References fxcrt::WideString::WideString(), GetCurPageView(), GetPWLWindow(), CPWL_Wnd::GetText(), and IsValid().

Referenced by CFFL_InteractiveFormFiller::GetText().

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

◆ GetViewBBox()

FX_RECT CFFL_FormField::GetViewBBox ( const CPDFSDK_PageView * pPageView)

Definition at line 39 of file cffl_formfield.cpp.

References GetFocusBox(), CFX_FloatRect::GetOuterRect(), GetPWLWindow(), CFX_FloatRect::Inflate(), CFX_FloatRect::IsEmpty(), CFX_FloatRect::Normalize(), and CFX_FloatRect::Union().

Referenced by EscapeFiller(), CFFL_InteractiveFormFiller::GetViewBBox(), CFFL_Button::OnLButtonDown(), OnLButtonDown(), CFFL_Button::OnLButtonUp(), OnLButtonUp(), CFFL_Button::OnMouseEnter(), CFFL_Button::OnMouseExit(), and SetFocusForAnnot().

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

◆ GetWindowMatrix()

CFX_Matrix CFFL_FormField::GetWindowMatrix ( const IPWL_FillerNotify::PerWindowData * pAttached)
overridevirtual

Implements CPWL_Wnd::ProviderIface.

Definition at line 394 of file cffl_formfield.cpp.

References CFX_Matrix::CFX_Matrix(), GetCurMatrix(), CPDFSDK_PageView::GetCurrentMatrix(), CFFL_PerWindowData::GetPageView(), and CFX_Matrix::operator*().

+ Here is the call graph for this function:

◆ InvalidateRect()

void CFFL_FormField::InvalidateRect ( const FX_RECT & rect)
protected

Definition at line 588 of file cffl_formfield.cpp.

Referenced by EscapeFiller(), CFFL_Button::OnLButtonDown(), OnLButtonDown(), CFFL_Button::OnLButtonUp(), OnLButtonUp(), CFFL_Button::OnMouseEnter(), CFFL_Button::OnMouseExit(), and SetFocusForAnnot().

+ Here is the caller graph for this function:

◆ IsDataChanged()

bool CFFL_FormField::IsDataChanged ( const CPDFSDK_PageView * pPageView)
virtual

Reimplemented in CFFL_CheckBox, CFFL_ComboBox, CFFL_ListBox, CFFL_RadioButton, and CFFL_TextField.

Definition at line 513 of file cffl_formfield.cpp.

Referenced by CommitData().

+ Here is the caller graph for this function:

◆ IsIndexSelected()

bool CFFL_FormField::IsIndexSelected ( int index)
virtual

Reimplemented in CFFL_ComboBox, and CFFL_ListBox.

Definition at line 186 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::IsIndexSelected().

+ Here is the caller graph for this function:

◆ IsValid()

bool CFFL_FormField::IsValid ( ) const

◆ KillFocusForAnnot()

void CFFL_FormField::KillFocusForAnnot ( Mask< FWL_EVENTFLAG > nFlag)

Definition at line 280 of file cffl_formfield.cpp.

References CommitData(), EscapeFiller(), GetPWLWindow(), IsValid(), and CPWL_Wnd::KillFocus().

Referenced by CFFL_InteractiveFormFiller::OnKillFocus().

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

◆ NewPWLWindow()

virtual std::unique_ptr< CPWL_Wnd > CFFL_FormField::NewPWLWindow ( const CPWL_Wnd::CreateParams & cp,
std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData )
pure virtual

◆ OnChar()

bool CFFL_FormField::OnChar ( CPDFSDK_Widget * pAnnot,
uint32_t nChar,
Mask< FWL_EVENTFLAG > nFlags )
virtual

Reimplemented in CFFL_CheckBox, CFFL_ComboBox, CFFL_ListBox, CFFL_RadioButton, and CFFL_TextField.

Definition at line 172 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::OnChar().

Referenced by CFFL_CheckBox::OnChar(), CFFL_ComboBox::OnChar(), CFFL_InteractiveFormFiller::OnChar(), CFFL_ListBox::OnChar(), CFFL_RadioButton::OnChar(), CFFL_TextField::OnChar(), CPWLComboBoxEmbedderTest::TypeTextIntoTextField(), and CPWLEditEmbedderTest::TypeTextIntoTextField().

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

◆ OnDraw()

void CFFL_FormField::OnDraw ( CPDFSDK_PageView * pPageView,
CPDFSDK_Widget * pWidget,
CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device )
virtual

Reimplemented in CFFL_Button.

Definition at line 56 of file cffl_formfield.cpp.

References CPDFSDK_Widget::DrawAppearance(), CPWL_Wnd::DrawAppearance(), GetCurMatrix(), GetPWLWindow(), CFFL_InteractiveFormFiller::IsVisible(), CPDF_Annot::kNormal, and CFX_Matrix::operator*().

Referenced by CFFL_InteractiveFormFiller::OnDraw().

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

◆ OnDrawDeactive()

void CFFL_FormField::OnDrawDeactive ( CPDFSDK_PageView * pPageView,
CPDFSDK_Widget * pWidget,
CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device )
virtual

Reimplemented in CFFL_Button.

Definition at line 72 of file cffl_formfield.cpp.

References CPDFSDK_Widget::DrawAppearance(), and CPDF_Annot::kNormal.

Referenced by CFFL_InteractiveFormFiller::OnDraw().

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

◆ OnKeyDown()

bool CFFL_FormField::OnKeyDown ( FWL_VKEYCODE nKeyCode,
Mask< FWL_EVENTFLAG > nFlags )
virtual

Reimplemented in CFFL_CheckBox, and CFFL_RadioButton.

Definition at line 163 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::OnKeyDown().

Referenced by CFFL_CheckBox::OnKeyDown(), CFFL_InteractiveFormFiller::OnKeyDown(), and CFFL_RadioButton::OnKeyDown().

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

◆ OnLButtonDblClk()

bool CFFL_FormField::OnLButtonDblClk ( CPDFSDK_PageView * pPageView,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
virtual

Definition at line 116 of file cffl_formfield.cpp.

References FFLtoPWL(), GetPWLWindow(), and CPWL_Wnd::OnLButtonDblClk().

Referenced by CFFL_InteractiveFormFiller::OnLButtonDblClk().

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

◆ OnLButtonDown()

bool CFFL_FormField::OnLButtonDown ( CPDFSDK_PageView * pPageView,
CPDFSDK_Widget * pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
virtual

Reimplemented in CFFL_Button.

Definition at line 87 of file cffl_formfield.cpp.

References FX_RECT::Contains(), CreateOrUpdatePWLWindow(), FFLtoPWL(), GetViewBBox(), InvalidateRect(), m_bValid, and CPWL_Wnd::OnLButtonDown().

Referenced by CFFL_InteractiveFormFiller::OnLButtonDown().

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

◆ OnLButtonUp()

bool CFFL_FormField::OnLButtonUp ( CPDFSDK_PageView * pPageView,
CPDFSDK_Widget * pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
virtual

Reimplemented in CFFL_Button, CFFL_CheckBox, and CFFL_RadioButton.

Definition at line 103 of file cffl_formfield.cpp.

References FFLtoPWL(), GetPWLWindow(), GetViewBBox(), InvalidateRect(), and CPWL_Wnd::OnLButtonUp().

Referenced by CFFL_InteractiveFormFiller::OnLButtonUp().

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

◆ OnMouseEnter()

void CFFL_FormField::OnMouseEnter ( CPDFSDK_PageView * pPageView)
virtual

Reimplemented in CFFL_Button.

Definition at line 80 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::OnMouseEnter().

+ Here is the caller graph for this function:

◆ OnMouseExit()

void CFFL_FormField::OnMouseExit ( CPDFSDK_PageView * pPageView)
virtual

Reimplemented in CFFL_Button.

Definition at line 82 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::OnMouseExit().

+ Here is the caller graph for this function:

◆ OnMouseMove()

bool CFFL_FormField::OnMouseMove ( CPDFSDK_PageView * pPageView,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
virtual

Reimplemented in CFFL_Button.

Definition at line 127 of file cffl_formfield.cpp.

References FFLtoPWL(), GetPWLWindow(), and CPWL_Wnd::OnMouseMove().

Referenced by CFFL_InteractiveFormFiller::OnMouseMove().

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

◆ OnMouseWheel()

bool CFFL_FormField::OnMouseWheel ( CPDFSDK_PageView * pPageView,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point,
const CFX_Vector & delta )
virtual

Definition at line 138 of file cffl_formfield.cpp.

References CreateOrUpdatePWLWindow(), FFLtoPWL(), IsValid(), and CPWL_Wnd::OnMouseWheel().

Referenced by CFFL_InteractiveFormFiller::OnMouseWheel().

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

◆ OnRButtonDown()

bool CFFL_FormField::OnRButtonDown ( CPDFSDK_PageView * pPageView,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
virtual

Definition at line 149 of file cffl_formfield.cpp.

References CreateOrUpdatePWLWindow(), FFLtoPWL(), and CPWL_Wnd::OnRButtonDown().

Referenced by CFFL_InteractiveFormFiller::OnRButtonDown().

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

◆ OnRButtonUp()

bool CFFL_FormField::OnRButtonUp ( CPDFSDK_PageView * pPageView,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
virtual

Definition at line 156 of file cffl_formfield.cpp.

References FFLtoPWL(), GetPWLWindow(), and CPWL_Wnd::OnRButtonUp().

Referenced by CFFL_InteractiveFormFiller::OnRButtonUp().

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

◆ OnSetFocusForEdit()

void CFFL_FormField::OnSetFocusForEdit ( CPWL_Edit * pEdit)
overridevirtual

Implements CPWL_Wnd::ProviderIface.

Reimplemented in CFFL_TextField.

Definition at line 407 of file cffl_formfield.cpp.

◆ OnTimerFired()

void CFFL_FormField::OnTimerFired ( )
overridevirtual

Implements CFX_Timer::CallbackIface.

Definition at line 577 of file cffl_formfield.cpp.

◆ PWLtoFFL() [1/2]

CFX_FloatRect CFFL_FormField::PWLtoFFL ( const CFX_FloatRect & rect)

Definition at line 462 of file cffl_formfield.cpp.

References GetCurMatrix(), and CFX_Matrix::TransformRect().

Referenced by GetFocusBox().

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

◆ PWLtoFFL() [2/2]

CFX_PointF CFFL_FormField::PWLtoFFL ( const CFX_PointF & point)

Definition at line 470 of file cffl_formfield.cpp.

References GetCurMatrix(), and CFX_Matrix::Transform().

+ Here is the call graph for this function:

◆ RecreatePWLWindowFromSavedState()

void CFFL_FormField::RecreatePWLWindowFromSavedState ( const CPDFSDK_PageView * pPageView)
virtual

Reimplemented in CFFL_ComboBox, CFFL_ListBox, and CFFL_TextField.

Definition at line 541 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::OnBeforeKeyStroke(), and CFFL_TextObject::RestorePWLWindow().

+ Here is the caller graph for this function:

◆ Redo()

bool CFFL_FormField::Redo ( )

Definition at line 260 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::Redo().

Referenced by CFFL_InteractiveFormFiller::Redo().

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

◆ ReplaceAndKeepSelection()

void CFFL_FormField::ReplaceAndKeepSelection ( const WideString & text)

Definition at line 206 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::ReplaceAndKeepSelection().

Referenced by CFFL_InteractiveFormFiller::ReplaceAndKeepSelection().

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

◆ ReplaceSelection()

void CFFL_FormField::ReplaceSelection ( const WideString & text)

Definition at line 217 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::ReplaceSelection().

Referenced by CFFL_InteractiveFormFiller::ReplaceSelection().

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

◆ ResetPWLWindow()

CPWL_Wnd * CFFL_FormField::ResetPWLWindow ( const CPDFSDK_PageView * pPageView)
protectedvirtual

Reimplemented in CFFL_TextObject.

Definition at line 569 of file cffl_formfield.cpp.

References GetPWLWindow().

Referenced by CommitData(), and ResetPWLWindowForValueAgeInternal().

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

◆ ResetPWLWindowForValueAge()

void CFFL_FormField::ResetPWLWindowForValueAge ( const CPDFSDK_PageView * pPageView,
CPDFSDK_Widget * pWidget,
uint32_t nValueAge )

Definition at line 553 of file cffl_formfield.cpp.

References ResetPWLWindowForValueAgeInternal().

Referenced by CFFL_InteractiveFormFiller::OnBeforeKeyStroke(), CFFL_InteractiveFormFiller::OnButtonUp(), CFFL_InteractiveFormFiller::OnLButtonDown(), CFFL_InteractiveFormFiller::OnMouseEnter(), CFFL_InteractiveFormFiller::OnMouseExit(), and CFFL_InteractiveFormFiller::OnSetFocus().

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

◆ ResetPWLWindowForValueAgeInternal()

CPWL_Wnd * CFFL_FormField::ResetPWLWindowForValueAgeInternal ( const CPDFSDK_PageView * pPageView,
CPDFSDK_Widget * pWidget,
uint32_t nValueAge )
protected

Definition at line 561 of file cffl_formfield.cpp.

References CPDFSDK_Widget::GetValueAge(), ResetPWLWindow(), and RestorePWLWindow().

Referenced by ResetPWLWindowForValueAge().

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

◆ RestorePWLWindow()

CPWL_Wnd * CFFL_FormField::RestorePWLWindow ( const CPDFSDK_PageView * pPageView)
protectedvirtual

Reimplemented in CFFL_TextObject.

Definition at line 573 of file cffl_formfield.cpp.

References GetPWLWindow().

Referenced by ResetPWLWindowForValueAgeInternal().

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

◆ SaveData()

void CFFL_FormField::SaveData ( const CPDFSDK_PageView * pPageView)
virtual

Reimplemented in CFFL_CheckBox, CFFL_ComboBox, CFFL_ListBox, CFFL_RadioButton, and CFFL_TextField.

Definition at line 517 of file cffl_formfield.cpp.

Referenced by CommitData().

+ Here is the caller graph for this function:

◆ SavePWLWindowState()

void CFFL_FormField::SavePWLWindowState ( const CPDFSDK_PageView * pPageView)
virtual

Reimplemented in CFFL_ComboBox, CFFL_ListBox, and CFFL_TextField.

Definition at line 539 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::OnBeforeKeyStroke(), CFFL_InteractiveFormFiller::OnKeyStrokeCommit(), CFFL_InteractiveFormFiller::OnValidate(), and CFFL_TextObject::RestorePWLWindow().

+ Here is the caller graph for this function:

◆ SelectAllText()

bool CFFL_FormField::SelectAllText ( )

Definition at line 228 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::SelectAllText().

Referenced by CFFL_InteractiveFormFiller::SelectAllText().

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

◆ SetActionData()

void CFFL_FormField::SetActionData ( const CPDFSDK_PageView * pPageView,
CPDF_AAction::AActionType type,
const CFFL_FieldAction & fa )
virtual

Reimplemented in CFFL_ComboBox, and CFFL_TextField.

Definition at line 535 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::OnBeforeKeyStroke().

+ Here is the caller graph for this function:

◆ SetChangeMark()

void CFFL_FormField::SetChangeMark ( )

Definition at line 525 of file cffl_formfield.cpp.

Referenced by CFFL_CheckBox::SaveData(), CFFL_ComboBox::SaveData(), CFFL_ListBox::SaveData(), CFFL_RadioButton::SaveData(), and CFFL_TextField::SaveData().

+ Here is the caller graph for this function:

◆ SetFocusForAnnot()

void CFFL_FormField::SetFocusForAnnot ( CPDFSDK_Widget * pWidget,
Mask< FWL_EVENTFLAG > nFlag )

Definition at line 268 of file cffl_formfield.cpp.

References CreateOrUpdatePWLWindow(), GetViewBBox(), InvalidateRect(), m_bValid, and CPWL_Wnd::SetFocus().

Referenced by CFFL_InteractiveFormFiller::OnSetFocus().

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

◆ SetIndexSelected()

bool CFFL_FormField::SetIndexSelected ( int index,
bool selected )
virtual

Reimplemented in CFFL_ComboBox, and CFFL_ListBox.

Definition at line 182 of file cffl_formfield.cpp.

Referenced by CFFL_InteractiveFormFiller::SetIndexSelected().

+ Here is the caller graph for this function:

◆ Undo()

bool CFFL_FormField::Undo ( )

Definition at line 252 of file cffl_formfield.cpp.

References GetCurPageView(), GetPWLWindow(), IsValid(), and CPWL_Wnd::Undo().

Referenced by CFFL_InteractiveFormFiller::Undo().

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

Friends And Related Symbol Documentation

◆ CPWLComboBoxEmbedderTest

friend class CPWLComboBoxEmbedderTest
friend

Definition at line 144 of file cffl_formfield.h.

◆ CPWLEditEmbedderTest

friend class CPWLEditEmbedderTest
friend

Definition at line 145 of file cffl_formfield.h.

◆ CPWLSpecialButtonEmbedderTest

friend class CPWLSpecialButtonEmbedderTest
friend

Definition at line 146 of file cffl_formfield.h.

Member Data Documentation

◆ m_bValid

bool CFFL_FormField::m_bValid = false
protected

◆ m_Maps

std::map<const CPDFSDK_PageView*, std::unique_ptr<CPWL_Wnd> > CFFL_FormField::m_Maps
protected

Definition at line 171 of file cffl_formfield.h.

◆ m_pFormFiller

UnownedPtr<CFFL_InteractiveFormFiller> const CFFL_FormField::m_pFormFiller
protected

Definition at line 168 of file cffl_formfield.h.

◆ m_pTimer

std::unique_ptr<CFX_Timer> CFFL_FormField::m_pTimer
protected

Definition at line 170 of file cffl_formfield.h.

◆ m_pWidget

UnownedPtr<CPDFSDK_Widget> CFFL_FormField::m_pWidget
protected

Definition at line 169 of file cffl_formfield.h.


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