Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cffl_interactiveformfiller.h>
Classes | |
class | CallbackIface |
Static Public Member Functions | |
static bool | IsVisible (CPDFSDK_Widget *pWidget) |
static bool | IsReadOnly (CPDFSDK_Widget *pWidget) |
static bool | IsValidAnnot (const CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget) |
Private Member Functions | |
void | InvalidateRect (PerWindowData *pWidgetData, const CFX_FloatRect &rect) override |
void | OutputSelectedRect (PerWindowData *pWidgetData, const CFX_FloatRect &rect) override |
bool | IsSelectionImplemented () const override |
void | SetCursor (CursorStyle nCursorStyle) override |
void | QueryWherePopup (const PerWindowData *pAttached, float fPopupMin, float fPopupMax, bool *bBottom, float *fPopupRet) override |
BeforeKeystrokeResult | OnBeforeKeyStroke (const PerWindowData *pAttached, WideString &strChange, const WideString &strChangeEx, int nSelStart, int nSelEnd, bool bKeyDown, Mask< FWL_EVENTFLAG > nFlag) override |
bool | OnPopupPreOpen (const PerWindowData *pAttached, Mask< FWL_EVENTFLAG > nFlag) override |
bool | OnPopupPostOpen (const PerWindowData *pAttached, Mask< FWL_EVENTFLAG > nFlag) override |
Additional Inherited Members | |
Public Types inherited from IPWL_FillerNotify | |
enum | CursorStyle { kArrow = 0 , kNESW = 1 , kNWSE = 2 , kVBeam = 3 , kHBeam = 4 , kHand = 5 } |
Definition at line 26 of file cffl_interactiveformfiller.h.
|
explicit |
Definition at line 30 of file cffl_interactiveformfiller.cpp.
References CFFL_InteractiveFormFiller().
Referenced by CFFL_InteractiveFormFiller().
|
overridedefault |
bool CFFL_InteractiveFormFiller::Annot_HitTest | ( | const CPDFSDK_Widget * | pWidget, |
const CFX_PointF & | point ) |
Definition at line 36 of file cffl_interactiveformfiller.cpp.
References CPDFSDK_BAAnnot::GetRect().
bool CFFL_InteractiveFormFiller::CanRedo | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 564 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::CanRedo().
Referenced by CPDFSDK_Widget::CanRedo().
bool CFFL_InteractiveFormFiller::CanUndo | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 559 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::CanUndo().
Referenced by CPDFSDK_Widget::CanUndo().
|
inline |
Definition at line 123 of file cffl_interactiveformfiller.h.
Referenced by CPWLComboBoxEmbedderTest::FormFillerAndWindowSetup(), CPWLEditEmbedderTest::FormFillerAndWindowSetup(), and CPWLSpecialButtonEmbedderTest::FormFillerAndWindowSetup().
CPDFSDK_PageView * CFFL_InteractiveFormFiller::GetOrCreatePageView | ( | IPDF_Page * | pPage | ) |
Definition at line 445 of file cffl_interactiveformfiller.cpp.
CPDFSDK_PageView * CFFL_InteractiveFormFiller::GetPageView | ( | IPDF_Page * | pPage | ) |
Definition at line 450 of file cffl_interactiveformfiller.cpp.
WideString CFFL_InteractiveFormFiller::GetSelectedText | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 529 of file cffl_interactiveformfiller.cpp.
References fxcrt::WideString::WideString(), and CFFL_FormField::GetSelectedText().
Referenced by CPDFSDK_Widget::GetSelectedText().
WideString CFFL_InteractiveFormFiller::GetText | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 524 of file cffl_interactiveformfiller.cpp.
References fxcrt::WideString::WideString(), and CFFL_FormField::GetText().
Referenced by CPDFSDK_Widget::GetText().
CFX_Timer::HandlerIface * CFFL_InteractiveFormFiller::GetTimerHandler | ( | ) |
Definition at line 454 of file cffl_interactiveformfiller.cpp.
FX_RECT CFFL_InteractiveFormFiller::GetViewBBox | ( | const CPDFSDK_PageView * | pPageView, |
CPDFSDK_Widget * | pWidget ) |
Definition at line 41 of file cffl_interactiveformfiller.cpp.
References CFX_FloatRect::GetOuterRect(), CPDFSDK_BAAnnot::GetPDFAnnot(), CPDF_Annot::GetRect(), CFFL_FormField::GetViewBBox(), CFX_FloatRect::Inflate(), CFX_FloatRect::IsEmpty(), and CFX_FloatRect::Normalize().
Referenced by CPDFSDK_Widget::GetViewBBox(), and OnLButtonUp().
Definition at line 440 of file cffl_interactiveformfiller.cpp.
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 587 of file cffl_interactiveformfiller.cpp.
References CFFL_PerWindowData::GetWidget().
bool CFFL_InteractiveFormFiller::IsIndexSelected | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
int | index ) |
Definition at line 282 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::IsIndexSelected().
Referenced by CPDFSDK_Widget::IsIndexSelected().
|
static |
Definition at line 466 of file cffl_interactiveformfiller.cpp.
References CPDFSDK_Widget::GetFieldFlags(), and pdfium::form_flags::kReadOnly.
Referenced by OnDraw().
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 610 of file cffl_interactiveformfiller.cpp.
|
static |
Definition at line 894 of file cffl_interactiveformfiller.cpp.
References CPDFSDK_BAAnnot::GetPDFAnnot(), and CPDFSDK_PageView::IsValidAnnot().
Referenced by OnBeforeKeyStroke(), OnButtonUp(), and OnLButtonDown().
|
static |
Definition at line 462 of file cffl_interactiveformfiller.cpp.
References CPDFSDK_BAAnnot::IsVisible().
Referenced by CFFL_FormField::OnDraw(), and OnDraw().
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 900 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bKeyDown, CFFL_FieldAction::bModifier, CFFL_FieldAction::bRC, CFFL_FieldAction::bShift, CFFL_FieldAction::bWillCommit, CFFL_FormField::CommitData(), CFFL_FormField::GetActionData(), CFFL_PerWindowData::GetPageView(), CFFL_FormField::GetPerPWLWindowData(), CFFL_PerWindowData::GetWidget(), CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), IsValidAnnot(), CPDF_AAction::kKeyStroke, CFFL_FieldAction::nSelEnd, CFFL_FieldAction::nSelStart, CFFL_FormField::RecreatePWLWindowFromSavedState(), CFFL_FormField::ResetPWLWindowForValueAge(), CFFL_FormField::SavePWLWindowState(), and CFFL_FormField::SetActionData().
bool CFFL_InteractiveFormFiller::OnButtonUp | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
const CPDFSDK_PageView * | pPageView, | ||
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 241 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bModifier, CFFL_FieldAction::bShift, CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), IsValidAnnot(), and CFFL_FormField::ResetPWLWindowForValueAge().
Referenced by OnLButtonUp().
void CFFL_InteractiveFormFiller::OnCalculate | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget | ) |
Definition at line 746 of file cffl_interactiveformfiller.cpp.
void CFFL_InteractiveFormFiller::OnChange | ( | ) |
Definition at line 458 of file cffl_interactiveformfiller.cpp.
bool CFFL_InteractiveFormFiller::OnChar | ( | CPDFSDK_Widget * | pWidget, |
uint32_t | nChar, | ||
Mask< FWL_EVENTFLAG > | nFlags ) |
Definition at line 343 of file cffl_interactiveformfiller.cpp.
References pdfium::ascii::kTab, and CFFL_FormField::OnChar().
Referenced by CPDFSDK_Widget::OnChar().
void CFFL_InteractiveFormFiller::OnDelete | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 92 of file cffl_interactiveformfiller.cpp.
Referenced by CPDFSDK_Widget::~CPDFSDK_Widget().
void CFFL_InteractiveFormFiller::OnDraw | ( | CPDFSDK_PageView * | pPageView, |
CPDFSDK_Widget * | pWidget, | ||
CFX_RenderDevice * | pDevice, | ||
const CFX_Matrix & | mtUser2Device ) |
Definition at line 58 of file cffl_interactiveformfiller.cpp.
References CPDFSDK_Widget::DrawAppearance(), CFX_DrawUtils::DrawFocusRect(), CPDFSDK_Widget::DrawShadow(), CFFL_FormField::GetFocusBox(), CFX_FloatRect::IsEmpty(), IsReadOnly(), CFFL_FormField::IsValid(), IsVisible(), CPDF_Annot::kNormal, CFFL_FormField::OnDraw(), and CFFL_FormField::OnDrawDeactive().
Referenced by CPDFSDK_Widget::OnDraw().
void CFFL_InteractiveFormFiller::OnFormat | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget | ) |
Definition at line 755 of file cffl_interactiveformfiller.cpp.
bool CFFL_InteractiveFormFiller::OnKeyDown | ( | CPDFSDK_Widget * | pWidget, |
FWL_VKEYCODE | nKeyCode, | ||
Mask< FWL_EVENTFLAG > | nFlags ) |
Definition at line 336 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::OnKeyDown().
Referenced by CPDFSDK_Widget::OnKeyDown().
bool CFFL_InteractiveFormFiller::OnKeyStrokeCommit | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
const CPDFSDK_PageView * | pPageView, | ||
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 679 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bKeyDown, CFFL_FieldAction::bModifier, CFFL_FieldAction::bRC, CFFL_FieldAction::bShift, CFFL_FieldAction::bWillCommit, CFFL_FormField::GetActionData(), CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), CPDF_AAction::kKeyStroke, and CFFL_FormField::SavePWLWindowState().
bool CFFL_InteractiveFormFiller::OnKillFocus | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 399 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bModifier, CFFL_FieldAction::bShift, CFFL_FormField::GetActionData(), CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), CFFL_FormField::KillFocusForAnnot(), and CPDF_AAction::kLoseFocus.
Referenced by CPDFSDK_Widget::OnKillFocus().
bool CFFL_InteractiveFormFiller::OnLButtonDblClk | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point ) |
Definition at line 289 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::OnLButtonDblClk().
Referenced by CPDFSDK_Widget::OnLButtonDblClk().
bool CFFL_InteractiveFormFiller::OnLButtonDown | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point ) |
Definition at line 163 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bModifier, CFFL_FieldAction::bShift, CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), IsValidAnnot(), CFFL_FormField::OnLButtonDown(), and CFFL_FormField::ResetPWLWindowForValueAge().
Referenced by CPDFSDK_Widget::OnLButtonDown().
bool CFFL_InteractiveFormFiller::OnLButtonUp | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point ) |
Definition at line 203 of file cffl_interactiveformfiller.cpp.
References FX_RECT::Contains(), GetViewBBox(), OnButtonUp(), and CFFL_FormField::OnLButtonUp().
Referenced by CPDFSDK_Widget::OnLButtonUp().
void CFFL_InteractiveFormFiller::OnMouseEnter | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 96 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bModifier, CFFL_FieldAction::bShift, CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), CFFL_FormField::OnMouseEnter(), and CFFL_FormField::ResetPWLWindowForValueAge().
Referenced by CPDFSDK_Widget::OnMouseEnter().
void CFFL_InteractiveFormFiller::OnMouseExit | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 129 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bModifier, CFFL_FieldAction::bShift, CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), CFFL_FormField::OnMouseExit(), and CFFL_FormField::ResetPWLWindowForValueAge().
Referenced by CPDFSDK_Widget::OnMouseExit().
bool CFFL_InteractiveFormFiller::OnMouseMove | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point ) |
Definition at line 298 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::OnMouseMove().
Referenced by CPDFSDK_Widget::OnMouseMove().
bool CFFL_InteractiveFormFiller::OnMouseWheel | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point, | ||
const CFX_Vector & | delta ) |
Definition at line 307 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::OnMouseWheel().
Referenced by CPDFSDK_Widget::OnMouseWheel().
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 993 of file cffl_interactiveformfiller.cpp.
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 979 of file cffl_interactiveformfiller.cpp.
bool CFFL_InteractiveFormFiller::OnRButtonDown | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point ) |
Definition at line 318 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::OnRButtonDown().
Referenced by CPDFSDK_Widget::OnRButtonDown().
bool CFFL_InteractiveFormFiller::OnRButtonUp | ( | CPDFSDK_PageView * | pPageView, |
ObservedPtr< CPDFSDK_Widget > & | pWidget, | ||
Mask< FWL_EVENTFLAG > | nFlags, | ||
const CFX_PointF & | point ) |
Definition at line 327 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::OnRButtonUp().
Referenced by CPDFSDK_Widget::OnRButtonUp().
void CFFL_InteractiveFormFiller::OnSetFieldInputFocus | ( | const WideString & | text | ) |
Definition at line 436 of file cffl_interactiveformfiller.cpp.
bool CFFL_InteractiveFormFiller::OnSetFocus | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 353 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bModifier, CFFL_FieldAction::bShift, CFFL_FormField::GetActionData(), CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), CPDF_AAction::kGetFocus, CFFL_FormField::ResetPWLWindowForValueAge(), and CFFL_FormField::SetFocusForAnnot().
Referenced by CPWLComboBoxEmbedderTest::FormFillerAndWindowSetup(), CPWLEditEmbedderTest::FormFillerAndWindowSetup(), CPWLSpecialButtonEmbedderTest::FormFillerAndWindowSetup(), and CPDFSDK_Widget::OnSetFocus().
bool CFFL_InteractiveFormFiller::OnValidate | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
const CPDFSDK_PageView * | pPageView, | ||
Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 713 of file cffl_interactiveformfiller.cpp.
References CFFL_FieldAction::bKeyDown, CFFL_FieldAction::bModifier, CFFL_FieldAction::bRC, CFFL_FieldAction::bShift, CFFL_FormField::GetActionData(), CPWL_Wnd::IsCTRLKeyDown(), CPWL_Wnd::IsSHIFTKeyDown(), CPDF_AAction::kValidate, and CFFL_FormField::SavePWLWindowState().
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 597 of file cffl_interactiveformfiller.cpp.
References CFFL_PerWindowData::GetFormField().
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 618 of file cffl_interactiveformfiller.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CPDF_Page::GetPageHeight(), CPDF_Page::GetPageWidth(), CPDFSDK_Annot::GetPDFPage(), CPDFSDK_BAAnnot::GetRect(), CPDFSDK_Widget::GetRotate(), CFFL_PerWindowData::GetWidget(), CFX_FloatRect::left, CFX_FloatRect::Normalize(), CFX_FloatRect::right, and CFX_FloatRect::top.
bool CFFL_InteractiveFormFiller::Redo | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 574 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::Redo().
Referenced by CPDFSDK_Widget::Redo().
void CFFL_InteractiveFormFiller::ReplaceAndKeepSelection | ( | CPDFSDK_Widget * | pWidget, |
const WideString & | text ) |
Definition at line 535 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::ReplaceAndKeepSelection().
Referenced by CPDFSDK_Widget::ReplaceAndKeepSelection().
void CFFL_InteractiveFormFiller::ReplaceSelection | ( | CPDFSDK_Widget * | pWidget, |
const WideString & | text ) |
Definition at line 545 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::ReplaceSelection().
Referenced by CPDFSDK_Widget::ReplaceSelection().
bool CFFL_InteractiveFormFiller::SelectAllText | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 554 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::SelectAllText().
Referenced by CPDFSDK_Widget::SelectAllText().
|
overrideprivatevirtual |
Implements IPWL_FillerNotify.
Definition at line 614 of file cffl_interactiveformfiller.cpp.
bool CFFL_InteractiveFormFiller::SetIndexSelected | ( | ObservedPtr< CPDFSDK_Widget > & | pWidget, |
int | index, | ||
bool | selected ) |
Definition at line 274 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::SetIndexSelected().
Referenced by CPDFSDK_Widget::SetIndexSelected().
bool CFFL_InteractiveFormFiller::Undo | ( | CPDFSDK_Widget * | pWidget | ) |
Definition at line 569 of file cffl_interactiveformfiller.cpp.
References CFFL_FormField::Undo().
Referenced by CPDFSDK_Widget::Undo().