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

#include <cpdfsdk_widget.h>

+ Inheritance diagram for CPDFSDK_Widget:
+ Collaboration diagram for CPDFSDK_Widget:

Public Types

enum  ValueChanged : bool { kValueUnchanged = false , kValueChanged = true }
 

Public Member Functions

 CPDFSDK_Widget (CPDF_Annot *pAnnot, CPDFSDK_PageView *pPageView, CPDFSDK_InteractiveForm *pInteractiveForm)
 
 ~CPDFSDK_Widget () override
 
void OnLoad () override
 
CPDF_Action GetAAction (CPDF_AAction::AActionType eAAT) override
 
bool IsAppearanceValid () override
 
int GetLayoutOrder () 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
 
void DrawAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, CPDF_Annot::AppearanceMode mode) override
 
bool IsSignatureWidget () const
 
void SetRect (const CFX_FloatRect &rect)
 
FormFieldType GetFieldType () const
 
int GetFieldFlags () const
 
int GetRotate () const
 
absl::optional< FX_COLORREFGetFillColor () const
 
absl::optional< FX_COLORREFGetBorderColor () const
 
absl::optional< FX_COLORREFGetTextColor () const
 
float GetFontSize () const
 
int GetSelectedIndex (int nIndex) const
 
WideString GetValue () const
 
WideString GetExportValue () const
 
WideString GetOptionLabel (int nIndex) const
 
WideString GetSelectExportText (int nIndex) const
 
int CountOptions () const
 
bool IsOptionSelected (int nIndex) const
 
int GetTopVisibleIndex () const
 
bool IsChecked () const
 
int GetAlignment () const
 
int GetMaxLen () const
 
void SetCheck (bool bChecked)
 
void SetValue (const WideString &sValue)
 
void SetOptionSelection (int index)
 
void ClearSelection ()
 
void SetTopVisibleIndex (int index)
 
void ResetAppearance (absl::optional< WideString > sValue, ValueChanged bValueChanged)
 
void ResetFieldAppearance ()
 
void UpdateField ()
 
absl::optional< WideStringOnFormat ()
 
bool OnAAction (CPDF_AAction::AActionType type, CFFL_FieldAction *data, const CPDFSDK_PageView *pPageView)
 
CPDF_FormFieldGetFormField () const
 
CPDF_FormControlGetFormControl () const
 
void DrawShadow (CFX_RenderDevice *pDevice, CPDFSDK_PageView *pPageView)
 
void SetAppModified ()
 
void ClearAppModified ()
 
bool IsAppModified () const
 
uint32_t GetAppearanceAge () const
 
uint32_t GetValueAge () const
 
bool IsWidgetAppearanceValid (CPDF_Annot::AppearanceMode mode) const
 
bool IsPushHighlighted () const
 
CFX_Matrix GetMatrix () const
 
CFX_FloatRect GetClientRect () const
 
CFX_FloatRect GetRotatedRect () const
 
CFX_Color GetTextPWLColor () const
 
CFX_Color GetBorderPWLColor () const
 
CFX_Color GetFillPWLColor () const
 
- Public Member Functions inherited from CPDFSDK_BAAnnot
 CPDFSDK_BAAnnot (CPDF_Annot *pAnnot, CPDFSDK_PageView *pPageView)
 
 ~CPDFSDK_BAAnnot () override
 
CPDFSDK_BAAnnotAsBAAnnot () override
 
CPDFSDK_Annot::UnsafeInputHandlersGetUnsafeInputHandlers () override
 
CPDF_Annot::Subtype GetAnnotSubtype () const override
 
CFX_FloatRect GetRect () const override
 
CPDF_AnnotGetPDFAnnot () const override
 
void SetAnnotName (const WideString &sName)
 
WideString GetAnnotName () const
 
void SetFlags (uint32_t nFlags)
 
uint32_t GetFlags () const
 
void SetAppStateOff ()
 
ByteString GetAppState () const
 
void SetBorderWidth (int nWidth)
 
int GetBorderWidth () const
 
void SetBorderStyle (BorderStyle nStyle)
 
BorderStyle GetBorderStyle () const
 
bool IsVisible () const
 
CPDF_Action GetAction () const
 
CPDF_AAction GetAAction () const
 
CPDF_Dest GetDestination () const
 
- Public Member Functions inherited from CPDFSDK_Annot
virtual ~CPDFSDK_Annot ()
 
virtual CPDFXFA_WidgetAsXFAWidget ()
 
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_BAAnnot
const CPDF_DictionaryGetAnnotDict () const
 
RetainPtr< CPDF_DictionaryGetMutableAnnotDict ()
 
RetainPtr< CPDF_DictionaryGetAPDict ()
 
void ClearCachedAnnotAP ()
 
bool IsFocusableAnnot (const CPDF_Annot::Subtype &annot_type) const
 
- 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 43 of file cpdfsdk_widget.h.

Member Enumeration Documentation

◆ ValueChanged

Enumerator
kValueUnchanged 
kValueChanged 

Definition at line 45 of file cpdfsdk_widget.h.

Constructor & Destructor Documentation

◆ CPDFSDK_Widget()

CPDFSDK_Widget::CPDFSDK_Widget ( CPDF_Annot * pAnnot,
CPDFSDK_PageView * pPageView,
CPDFSDK_InteractiveForm * pInteractiveForm )

Definition at line 47 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::CPDFSDK_BAAnnot(), and CPDFSDK_Widget().

Referenced by CPDFSDK_Widget().

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

◆ ~CPDFSDK_Widget()

CPDFSDK_Widget::~CPDFSDK_Widget ( )
override

Definition at line 53 of file cpdfsdk_widget.cpp.

References CFFL_InteractiveFormFiller::OnDelete().

+ Here is the call graph for this function:

Member Function Documentation

◆ CanRedo()

bool CPDFSDK_Widget::CanRedo ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 854 of file cpdfsdk_widget.cpp.

References CFFL_InteractiveFormFiller::CanRedo(), and IsSignatureWidget().

+ Here is the call graph for this function:

◆ CanUndo()

bool CPDFSDK_Widget::CanUndo ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 850 of file cpdfsdk_widget.cpp.

References CFFL_InteractiveFormFiller::CanUndo(), and IsSignatureWidget().

+ Here is the call graph for this function:

◆ ClearAppModified()

void CPDFSDK_Widget::ClearAppModified ( )

Definition at line 623 of file cpdfsdk_widget.cpp.

◆ ClearSelection()

void CPDFSDK_Widget::ClearSelection ( )

Definition at line 609 of file cpdfsdk_widget.cpp.

References CPDF_FormField::ClearSelection(), GetFormField(), and kDoNotNotify.

+ Here is the call graph for this function:

◆ CountOptions()

int CPDFSDK_Widget::CountOptions ( ) const

Definition at line 532 of file cpdfsdk_widget.cpp.

References CPDF_FormField::CountOptions(), and GetFormField().

+ Here is the call graph for this function:

◆ DoHitTest()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 705 of file cpdfsdk_widget.cpp.

References CFX_FloatRect::Contains(), GetFieldFlags(), GetFieldType(), CPDFSDK_Annot::GetPDFPage(), GetViewBBox(), IsSignatureWidget(), CPDFSDK_BAAnnot::IsVisible(), pdfium::access_permissions::kFillForm, pdfium::access_permissions::kModifyAnnotation, kPushButton, and pdfium::form_flags::kReadOnly.

+ Here is the call graph for this function:

◆ DrawAppearance()

void CPDFSDK_Widget::DrawAppearance ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device,
CPDF_Annot::AppearanceMode mode )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 909 of file cpdfsdk_widget.cpp.

References CFX_Path::AppendFloatRect(), CPDFSDK_BAAnnot::DrawAppearance(), CFX_RenderDevice::DrawPath(), CFX_FillRenderOptions::EvenOddOptions(), GetFieldType(), CPDFSDK_BAAnnot::GetRect(), IsWidgetAppearanceValid(), kCheckBox, CPDF_Annot::kNormal, kRadioButton, and CFX_GraphStateData::m_LineWidth.

Referenced by CFFL_Button::OnDraw(), CFFL_FormField::OnDraw(), CFFL_InteractiveFormFiller::OnDraw(), OnDraw(), and CFFL_FormField::OnDrawDeactive().

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

◆ DrawShadow()

void CPDFSDK_Widget::DrawShadow ( CFX_RenderDevice * pDevice,
CPDFSDK_PageView * pPageView )

Definition at line 936 of file cpdfsdk_widget.cpp.

References CFX_FloatRect::bottom, CPDFSDK_PageView::GetCurrentMatrix(), GetFieldType(), CPDFSDK_BAAnnot::GetRect(), CFX_FloatRect::left, CFX_FloatRect::Normalize(), CFX_FloatRect::right, CFX_FloatRect::top, and CFX_Matrix::Transform().

Referenced by CFFL_InteractiveFormFiller::OnDraw().

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

◆ GetAAction()

CPDF_Action CPDFSDK_Widget::GetAAction ( CPDF_AAction::AActionType eAAT)
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 1084 of file cpdfsdk_widget.cpp.

References CPDF_AAction::GetAction(), CPDF_FormField::GetAdditionalAction(), GetFormField(), CPDF_AAction::HasDict(), CPDF_AAction::kButtonDown, CPDF_AAction::kButtonUp, CPDF_AAction::kCalculate, CPDF_AAction::kCursorEnter, CPDF_AAction::kCursorExit, CPDF_AAction::kFormat, CPDF_AAction::kGetFocus, CPDF_AAction::kKeyStroke, CPDF_AAction::kLoseFocus, CPDF_AAction::kPageClose, CPDF_AAction::kPageInvisible, CPDF_AAction::kPageOpen, CPDF_AAction::kPageVisible, and CPDF_AAction::kValidate.

Referenced by OnAAction().

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

◆ GetAlignment()

int CPDFSDK_Widget::GetAlignment ( ) const

Definition at line 571 of file cpdfsdk_widget.cpp.

References CPDF_FormControl::GetControlAlignment(), and GetFormControl().

+ Here is the call graph for this function:

◆ GetAppearanceAge()

uint32_t CPDFSDK_Widget::GetAppearanceAge ( ) const
inline

Definition at line 137 of file cpdfsdk_widget.h.

◆ GetBorderColor()

absl::optional< FX_COLORREF > CPDFSDK_Widget::GetBorderColor ( ) const

Definition at line 450 of file cpdfsdk_widget.cpp.

References CFX_Color::TypeAndARGB::argb, ArgbToColorRef(), CPDF_FormControl::GetColorARGB(), GetFormControl(), and pdfium::appearance::kBC.

+ Here is the call graph for this function:

◆ GetBorderPWLColor()

CFX_Color CPDFSDK_Widget::GetBorderPWLColor ( ) const

Definition at line 1029 of file cpdfsdk_widget.cpp.

References GetFormControl(), and CPDF_FormControl::GetOriginalBorderColor().

+ Here is the call graph for this function:

◆ GetClientRect()

CFX_FloatRect CPDFSDK_Widget::GetClientRect ( ) const

Definition at line 961 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::GetBorderStyle(), CPDFSDK_BAAnnot::GetBorderWidth(), CFX_FloatRect::GetDeflated(), GetRotatedRect(), kBeveled, and kInset.

+ Here is the call graph for this function:

◆ GetExportValue()

WideString CPDFSDK_Widget::GetExportValue ( ) const

Definition at line 507 of file cpdfsdk_widget.cpp.

References CPDF_FormControl::GetExportValue(), and GetFormControl().

Referenced by FPDFAnnot_GetFormFieldExportValue().

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

◆ GetFieldFlags()

int CPDFSDK_Widget::GetFieldFlags ( ) const

Definition at line 410 of file cpdfsdk_widget.cpp.

References CPDF_FormField::GetFieldFlags(), and GetFormField().

Referenced by DoHitTest(), and CFFL_InteractiveFormFiller::IsReadOnly().

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

◆ GetFieldType()

FormFieldType CPDFSDK_Widget::GetFieldType ( ) const

Definition at line 385 of file cpdfsdk_widget.cpp.

References CPDF_FormField::GetFieldType(), GetFormField(), and kUnknown.

Referenced by DoHitTest(), DrawAppearance(), DrawShadow(), IsSignatureWidget(), IsWidgetAppearanceValid(), CPDFSDK_FormFillEnvironment::KillFocusAnnot(), and OnLoad().

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

◆ GetFillColor()

absl::optional< FX_COLORREF > CPDFSDK_Widget::GetFillColor ( ) const

Definition at line 440 of file cpdfsdk_widget.cpp.

References CFX_Color::TypeAndARGB::argb, ArgbToColorRef(), CPDF_FormControl::GetColorARGB(), GetFormControl(), and pdfium::appearance::kBG.

+ Here is the call graph for this function:

◆ GetFillPWLColor()

CFX_Color CPDFSDK_Widget::GetFillPWLColor ( ) const

Definition at line 1034 of file cpdfsdk_widget.cpp.

References GetFormControl(), and CPDF_FormControl::GetOriginalBackgroundColor().

+ Here is the call graph for this function:

◆ GetFontSize()

float CPDFSDK_Widget::GetFontSize ( ) const

Definition at line 473 of file cpdfsdk_widget.cpp.

References CPDF_FormControl::GetDefaultAppearance(), and GetFormControl().

Referenced by FPDFAnnot_GetFontSize().

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

◆ GetFormControl()

CPDF_FormControl * CPDFSDK_Widget::GetFormControl ( ) const

Definition at line 423 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::GetAnnotDict(), and CPDF_InteractiveForm::GetControlByDict().

Referenced by GetAlignment(), GetBorderColor(), GetBorderPWLColor(), GetExportValue(), GetFillColor(), GetFillPWLColor(), GetFontSize(), GetFormField(), GetMatrix(), GetRotate(), GetRotatedRect(), GetTextColor(), GetTextPWLColor(), IsChecked(), IsPushHighlighted(), and SetCheck().

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

◆ GetFormField()

CPDF_FormField * CPDFSDK_Widget::GetFormField ( ) const

Definition at line 418 of file cpdfsdk_widget.cpp.

References CPDF_FormControl::GetField(), and GetFormControl().

Referenced by ClearSelection(), CountOptions(), GetAAction(), GetFieldFlags(), GetFieldType(), GetMaxLen(), GetOptionLabel(), GetSelectedIndex(), GetSelectExportText(), GetTopVisibleIndex(), GetValue(), IsOptionSelected(), OnAAction(), OnFormat(), ResetFieldAppearance(), SetOptionSelection(), SetValue(), and UpdateField().

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

◆ GetLayoutOrder()

int CPDFSDK_Widget::GetLayoutOrder ( ) const
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 406 of file cpdfsdk_widget.cpp.

◆ GetMatrix()

CFX_Matrix CPDFSDK_Widget::GetMatrix ( ) const

Definition at line 997 of file cpdfsdk_widget.cpp.

References CFX_Matrix::CFX_Matrix(), GetFormControl(), CPDFSDK_BAAnnot::GetRect(), CPDF_FormControl::GetRotation(), CFX_FloatRect::Height(), CFX_Matrix::operator=(), and CFX_FloatRect::Width().

+ Here is the call graph for this function:

◆ GetMaxLen()

int CPDFSDK_Widget::GetMaxLen ( ) const

Definition at line 576 of file cpdfsdk_widget.cpp.

References GetFormField(), and CPDF_FormField::GetMaxLen().

+ Here is the call graph for this function:

◆ GetOptionLabel()

WideString CPDFSDK_Widget::GetOptionLabel ( int nIndex) const

Definition at line 512 of file cpdfsdk_widget.cpp.

References GetFormField(), and CPDF_FormField::GetOptionLabel().

+ Here is the call graph for this function:

◆ GetRotate()

int CPDFSDK_Widget::GetRotate ( ) const

Definition at line 429 of file cpdfsdk_widget.cpp.

References GetFormControl(), and CPDF_FormControl::GetRotation().

Referenced by CFFL_InteractiveFormFiller::QueryWherePopup().

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

◆ GetRotatedRect()

CFX_FloatRect CPDFSDK_Widget::GetRotatedRect ( ) const

Definition at line 975 of file cpdfsdk_widget.cpp.

References CFX_FloatRect::CFX_FloatRect(), GetFormControl(), CPDFSDK_BAAnnot::GetRect(), CPDF_FormControl::GetRotation(), CFX_FloatRect::Height(), CFX_FloatRect::operator=(), and CFX_FloatRect::Width().

Referenced by GetClientRect().

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

◆ GetSelectedIndex()

int CPDFSDK_Widget::GetSelectedIndex ( int nIndex) const

Definition at line 481 of file cpdfsdk_widget.cpp.

References GetFormField(), and CPDF_FormField::GetSelectedIndex().

+ Here is the call graph for this function:

◆ GetSelectedText()

WideString CPDFSDK_Widget::GetSelectedText ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 872 of file cpdfsdk_widget.cpp.

References fxcrt::WideString::WideString(), CFFL_InteractiveFormFiller::GetSelectedText(), and IsSignatureWidget().

+ Here is the call graph for this function:

◆ GetSelectExportText()

WideString CPDFSDK_Widget::GetSelectExportText ( int nIndex) const

Definition at line 517 of file cpdfsdk_widget.cpp.

References fxcrt::WideString::WideString(), GetFormField(), CPDF_FormField::GetOptionLabel(), CPDF_FormField::GetOptionValue(), and fxcrt::WideString::IsEmpty().

+ Here is the call graph for this function:

◆ GetText()

WideString CPDFSDK_Widget::GetText ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 866 of file cpdfsdk_widget.cpp.

References fxcrt::WideString::WideString(), CFFL_InteractiveFormFiller::GetText(), and IsSignatureWidget().

+ Here is the call graph for this function:

◆ GetTextColor()

absl::optional< FX_COLORREF > CPDFSDK_Widget::GetTextColor ( ) const

Definition at line 459 of file cpdfsdk_widget.cpp.

References CPDF_FormControl::GetDefaultAppearance(), and GetFormControl().

+ Here is the call graph for this function:

◆ GetTextPWLColor()

CFX_Color CPDFSDK_Widget::GetTextPWLColor ( ) const

Definition at line 1022 of file cpdfsdk_widget.cpp.

References GetFormControl().

+ Here is the call graph for this function:

◆ GetTopVisibleIndex()

int CPDFSDK_Widget::GetTopVisibleIndex ( ) const

Definition at line 554 of file cpdfsdk_widget.cpp.

References GetFormField(), and CPDF_FormField::GetTopVisibleIndex().

+ Here is the call graph for this function:

◆ GetValue()

WideString CPDFSDK_Widget::GetValue ( ) const

Definition at line 495 of file cpdfsdk_widget.cpp.

References GetFormField(), and CPDF_FormField::GetValue().

+ Here is the call graph for this function:

◆ GetValueAge()

uint32_t CPDFSDK_Widget::GetValueAge ( ) const
inline

Definition at line 138 of file cpdfsdk_widget.h.

Referenced by CFFL_FormField::ResetPWLWindowForValueAgeInternal().

+ Here is the caller graph for this function:

◆ GetViewBBox()

CFX_FloatRect CPDFSDK_Widget::GetViewBBox ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 722 of file cpdfsdk_widget.cpp.

References CFX_FloatRect::CFX_FloatRect(), CPDFSDK_Annot::GetPageView(), CFFL_InteractiveFormFiller::GetViewBBox(), and IsSignatureWidget().

Referenced by DoHitTest().

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

◆ IsAppearanceValid()

bool CPDFSDK_Widget::IsAppearanceValid ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 396 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::IsAppearanceValid().

+ Here is the call graph for this function:

◆ IsAppModified()

bool CPDFSDK_Widget::IsAppModified ( ) const

Definition at line 627 of file cpdfsdk_widget.cpp.

◆ IsChecked()

bool CPDFSDK_Widget::IsChecked ( ) const

Definition at line 559 of file cpdfsdk_widget.cpp.

References GetFormControl(), and CPDF_FormControl::IsChecked().

Referenced by FPDFAnnot_IsChecked(), CFFL_CheckBox::OnChar(), and CFFL_CheckBox::OnLButtonUp().

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

◆ IsIndexSelected()

bool CPDFSDK_Widget::IsIndexSelected ( int index)
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 903 of file cpdfsdk_widget.cpp.

References CFFL_InteractiveFormFiller::IsIndexSelected(), and IsSignatureWidget().

+ Here is the call graph for this function:

◆ IsOptionSelected()

bool CPDFSDK_Widget::IsOptionSelected ( int nIndex) const

Definition at line 537 of file cpdfsdk_widget.cpp.

References GetFormField(), and CPDF_FormField::IsItemSelected().

+ Here is the call graph for this function:

◆ IsPushHighlighted()

bool CPDFSDK_Widget::IsPushHighlighted ( ) const

Definition at line 381 of file cpdfsdk_widget.cpp.

References GetFormControl(), CPDF_FormControl::GetHighlightingMode(), and CPDF_FormControl::kPush.

Referenced by CFFL_Button::OnDraw().

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

◆ IsSignatureWidget()

bool CPDFSDK_Widget::IsSignatureWidget ( ) const

Definition at line 414 of file cpdfsdk_widget.cpp.

References GetFieldType(), and kSignature.

Referenced by CanRedo(), CanUndo(), DoHitTest(), GetSelectedText(), GetText(), GetViewBBox(), IsIndexSelected(), OnChar(), OnDraw(), OnKeyDown(), OnKillFocus(), OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), OnLoad(), OnMouseEnter(), OnMouseExit(), OnMouseMove(), OnMouseWheel(), OnRButtonDown(), OnRButtonUp(), OnSetFocus(), Redo(), ReplaceAndKeepSelection(), ReplaceSelection(), SelectAllText(), SetIndexSelected(), and Undo().

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

◆ IsWidgetAppearanceValid()

bool CPDFSDK_Widget::IsWidgetAppearanceValid ( CPDF_Annot::AppearanceMode mode) const

Definition at line 341 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::GetAppState(), GetFieldType(), CPDF_Dictionary::GetStreamFor(), kCheckBox, kComboBox, CPDF_Annot::kDown, kListBox, kPushButton, kRadioButton, CPDF_Annot::kRollover, kSignature, and kTextField.

Referenced by DrawAppearance(), and CFFL_Button::OnDraw().

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

◆ OnAAction()

bool CPDFSDK_Widget::OnAAction ( CPDF_AAction::AActionType type,
CFFL_FieldAction * data,
const CPDFSDK_PageView * pPageView )

Definition at line 1039 of file cpdfsdk_widget.cpp.

References CPDFSDK_FormFillEnvironment::DoActionField(), GetAAction(), GetFormField(), CPDFSDK_PageView::GetFormFillEnv(), CPDF_Action::GetType(), and CPDF_Action::kUnknown.

+ Here is the call graph for this function:

◆ OnChar()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 817 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnChar().

+ Here is the call graph for this function:

◆ OnDraw()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 693 of file cpdfsdk_widget.cpp.

References DrawAppearance(), CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), CPDF_Annot::kNormal, and CFFL_InteractiveFormFiller::OnDraw().

+ Here is the call graph for this function:

◆ OnFormat()

absl::optional< WideString > CPDFSDK_Widget::OnFormat ( )

Definition at line 681 of file cpdfsdk_widget.cpp.

References GetFormField().

+ Here is the call graph for this function:

◆ OnKeyDown()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 822 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnKeyDown().

+ Here is the call graph for this function:

◆ OnKillFocus()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 839 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::GetPDFAnnot(), CPDFSDK_BAAnnot::IsFocusableAnnot(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnKillFocus().

+ Here is the call graph for this function:

◆ OnLButtonDblClk()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 766 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnLButtonDblClk().

+ Here is the call graph for this function:

◆ OnLButtonDown()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 746 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnLButtonDown().

+ Here is the call graph for this function:

◆ OnLButtonUp()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 756 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnLButtonUp().

+ Here is the call graph for this function:

◆ OnLoad()

void CPDFSDK_Widget::OnLoad ( )
overridevirtual

Reimplemented from CPDFSDK_Annot.

Definition at line 1056 of file cpdfsdk_widget.cpp.

References GetFieldType(), IsSignatureWidget(), kComboBox, and kTextField.

+ Here is the call graph for this function:

◆ OnMouseEnter()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 730 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnMouseEnter().

+ Here is the call graph for this function:

◆ OnMouseExit()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 738 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnMouseExit().

+ Here is the call graph for this function:

◆ OnMouseMove()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 776 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnMouseMove().

+ Here is the call graph for this function:

◆ OnMouseWheel()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 786 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnMouseWheel().

+ Here is the call graph for this function:

◆ OnRButtonDown()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 797 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnRButtonDown().

+ Here is the call graph for this function:

◆ OnRButtonUp()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 807 of file cpdfsdk_widget.cpp.

References CPDFSDK_Annot::GetPageView(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnRButtonUp().

+ Here is the call graph for this function:

◆ OnSetFocus()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 828 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::GetPDFAnnot(), CPDFSDK_BAAnnot::IsFocusableAnnot(), IsSignatureWidget(), and CFFL_InteractiveFormFiller::OnSetFocus().

+ Here is the call graph for this function:

◆ Redo()

bool CPDFSDK_Widget::Redo ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 862 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::Redo().

+ Here is the call graph for this function:

◆ ReplaceAndKeepSelection()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 878 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::ReplaceAndKeepSelection().

+ Here is the call graph for this function:

◆ ReplaceSelection()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 885 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::ReplaceSelection().

+ Here is the call graph for this function:

◆ ResetAppearance()

void CPDFSDK_Widget::ResetAppearance ( absl::optional< WideString > sValue,
ValueChanged bValueChanged )

Definition at line 646 of file cpdfsdk_widget.cpp.

◆ ResetFieldAppearance()

void CPDFSDK_Widget::ResetFieldAppearance ( )

Definition at line 687 of file cpdfsdk_widget.cpp.

References GetFormField().

+ Here is the call graph for this function:

◆ SelectAllText()

bool CPDFSDK_Widget::SelectAllText ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 892 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::SelectAllText().

+ Here is the call graph for this function:

◆ SetAppModified()

void CPDFSDK_Widget::SetAppModified ( )

Definition at line 619 of file cpdfsdk_widget.cpp.

◆ SetCheck()

void CPDFSDK_Widget::SetCheck ( bool bChecked)

Definition at line 581 of file cpdfsdk_widget.cpp.

References CPDF_FormField::CheckControl(), CPDF_FormField::GetControlIndex(), CPDF_FormControl::GetField(), GetFormControl(), and kDoNotNotify.

+ Here is the call graph for this function:

◆ SetIndexSelected()

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

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 897 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::SetIndexSelected().

+ Here is the call graph for this function:

◆ SetOptionSelection()

void CPDFSDK_Widget::SetOptionSelection ( int index)

Definition at line 601 of file cpdfsdk_widget.cpp.

References GetFormField(), kDoNotNotify, and CPDF_FormField::SetItemSelection().

+ Here is the call graph for this function:

◆ SetRect()

void CPDFSDK_Widget::SetRect ( const CFX_FloatRect & rect)

Definition at line 390 of file cpdfsdk_widget.cpp.

References CPDFSDK_BAAnnot::GetMutableAnnotDict(), and pdfium::annotation::kRect.

+ Here is the call graph for this function:

◆ SetTopVisibleIndex()

void CPDFSDK_Widget::SetTopVisibleIndex ( int index)

Definition at line 617 of file cpdfsdk_widget.cpp.

◆ SetValue()

void CPDFSDK_Widget::SetValue ( const WideString & sValue)

Definition at line 593 of file cpdfsdk_widget.cpp.

References GetFormField(), kDoNotNotify, and CPDF_FormField::SetValue().

+ Here is the call graph for this function:

◆ Undo()

bool CPDFSDK_Widget::Undo ( )
overridevirtual

Reimplemented from CPDFSDK_BAAnnot.

Definition at line 858 of file cpdfsdk_widget.cpp.

References IsSignatureWidget(), and CFFL_InteractiveFormFiller::Undo().

+ Here is the call graph for this function:

◆ UpdateField()

void CPDFSDK_Widget::UpdateField ( )

Definition at line 930 of file cpdfsdk_widget.cpp.

References GetFormField().

+ Here is the call graph for this function:

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