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

#include <cpdfsdk_annot.h>

+ Inheritance diagram for CPDFSDK_Annot:
+ Collaboration diagram for CPDFSDK_Annot:

Classes

class  UnsafeInputHandlers
 

Public Member Functions

virtual ~CPDFSDK_Annot ()
 
virtual CPDFSDK_BAAnnotAsBAAnnot ()
 
virtual CPDFXFA_WidgetAsXFAWidget ()
 
virtual UnsafeInputHandlersGetUnsafeInputHandlers ()=0
 
virtual void OnLoad ()
 
virtual int GetLayoutOrder () const
 
virtual CPDF_AnnotGetPDFAnnot () const
 
virtual CPDF_Annot::Subtype GetAnnotSubtype () const =0
 
virtual CFX_FloatRect GetRect () const =0
 
virtual void OnDraw (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, bool bDrawAnnots)=0
 
virtual bool DoHitTest (const CFX_PointF &point)=0
 
virtual CFX_FloatRect GetViewBBox ()=0
 
virtual bool CanUndo ()=0
 
virtual bool CanRedo ()=0
 
virtual bool Undo ()=0
 
virtual bool Redo ()=0
 
virtual WideString GetText ()=0
 
virtual WideString GetSelectedText ()=0
 
virtual void ReplaceAndKeepSelection (const WideString &text)=0
 
virtual void ReplaceSelection (const WideString &text)=0
 
virtual bool SelectAllText ()=0
 
virtual bool SetIndexSelected (int index, bool selected)=0
 
virtual bool IsIndexSelected (int index)=0
 
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 ()
 

Static Public Member Functions

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

 CPDFSDK_Annot (CPDFSDK_PageView *pPageView)
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 

Detailed Description

Definition at line 24 of file cpdfsdk_annot.h.

Constructor & Destructor Documentation

◆ ~CPDFSDK_Annot()

CPDFSDK_Annot::~CPDFSDK_Annot ( )
virtualdefault

◆ CPDFSDK_Annot()

CPDFSDK_Annot::CPDFSDK_Annot ( CPDFSDK_PageView * pPageView)
explicitprotected

Definition at line 12 of file cpdfsdk_annot.cpp.

References CPDFSDK_Annot().

Referenced by CPDFSDK_Annot(), CPDFSDK_BAAnnot::CPDFSDK_BAAnnot(), and CPDFXFA_Widget::CPDFXFA_Widget().

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

Member Function Documentation

◆ AsBAAnnot()

CPDFSDK_BAAnnot * CPDFSDK_Annot::AsBAAnnot ( )
virtual

Reimplemented in CPDFSDK_BAAnnot.

Definition at line 19 of file cpdfsdk_annot.cpp.

◆ AsXFAWidget()

CPDFXFA_Widget * CPDFSDK_Annot::AsXFAWidget ( )
virtual

Reimplemented in CPDFXFA_Widget.

Definition at line 23 of file cpdfsdk_annot.cpp.

Referenced by FORM_GetFocusedAnnot(), and ToXFAWidget().

+ Here is the caller graph for this function:

◆ CanRedo()

virtual bool CPDFSDK_Annot::CanRedo ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::CanRedo().

+ Here is the caller graph for this function:

◆ CanUndo()

virtual bool CPDFSDK_Annot::CanUndo ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::CanUndo().

+ Here is the caller graph for this function:

◆ DoHitTest()

virtual bool CPDFSDK_Annot::DoHitTest ( const CFX_PointF & point)
pure virtual

◆ GetAnnotSubtype()

virtual CPDF_Annot::Subtype CPDFSDK_Annot::GetAnnotSubtype ( ) const
pure virtual

Implemented in CPDFSDK_BAAnnot, and CPDFXFA_Widget.

Referenced by CPWLEditEmbedderTest::CreateAndInitializeFormPDF(), TEST_F(), and ToCPDFSDKWidget().

+ Here is the caller graph for this function:

◆ GetLayoutOrder()

int CPDFSDK_Annot::GetLayoutOrder ( ) const
virtual

Reimplemented in CPDFSDK_BAAnnot, and CPDFSDK_Widget.

Definition at line 123 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_BAAnnot::GetLayoutOrder().

+ Here is the caller graph for this function:

◆ GetPage()

IPDF_Page * CPDFSDK_Annot::GetPage ( )

Definition at line 131 of file cpdfsdk_annot.cpp.

References GetPDFPage().

Referenced by FORM_GetFocusedAnnot(), CPDFSDK_FormFillEnvironment::InvalidateRect(), CPDFSDK_FormFillEnvironment::OutputSelectedRect(), and CPDFSDK_InteractiveForm::UpdateField().

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

◆ GetPageView()

◆ GetPDFAnnot()

CPDF_Annot * CPDFSDK_Annot::GetPDFAnnot ( ) const
virtual

Reimplemented in CPDFSDK_BAAnnot.

Definition at line 127 of file cpdfsdk_annot.cpp.

◆ GetPDFPage()

CPDF_Page * CPDFSDK_Annot::GetPDFPage ( )

Definition at line 140 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_Widget::DoHitTest(), GetPage(), and CFFL_InteractiveFormFiller::QueryWherePopup().

+ Here is the caller graph for this function:

◆ GetRect()

virtual CFX_FloatRect CPDFSDK_Annot::GetRect ( ) const
pure virtual

Implemented in CPDFSDK_BAAnnot, and CPDFXFA_Widget.

Referenced by TEST_F(), and CPDFSDK_PageView::UpdateView().

+ Here is the caller graph for this function:

◆ GetSelectedText()

virtual WideString CPDFSDK_Annot::GetSelectedText ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::GetSelectedText().

+ Here is the caller graph for this function:

◆ GetText()

virtual WideString CPDFSDK_Annot::GetText ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::GetFocusedFormText().

+ Here is the caller graph for this function:

◆ GetUnsafeInputHandlers()

virtual UnsafeInputHandlers * CPDFSDK_Annot::GetUnsafeInputHandlers ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, and CPDFXFA_Widget.

◆ GetViewBBox()

virtual CFX_FloatRect CPDFSDK_Annot::GetViewBBox ( )
pure virtual

◆ GetXFAPage()

IPDF_Page * CPDFSDK_Annot::GetXFAPage ( )

Definition at line 115 of file cpdfsdk_annot.cpp.

◆ IsIndexSelected()

virtual bool CPDFSDK_Annot::IsIndexSelected ( int index)
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::IsIndexSelected().

+ Here is the caller graph for this function:

◆ OnChar()

bool CPDFSDK_Annot::OnChar ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
uint32_t nChar,
Mask< FWL_EVENTFLAG > nFlags )
static

Definition at line 90 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnChar().

+ Here is the caller graph for this function:

◆ OnDraw()

virtual void CPDFSDK_Annot::OnDraw ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device,
bool bDrawAnnots )
pure virtual

◆ OnKeyDown()

bool CPDFSDK_Annot::OnKeyDown ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
FWL_VKEYCODE nKeyCode,
Mask< FWL_EVENTFLAG > nFlags )
static

Definition at line 97 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnKeyDown().

+ Here is the caller graph for this function:

◆ OnKillFocus()

bool CPDFSDK_Annot::OnKillFocus ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags )
static

Definition at line 110 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_FormFillEnvironment::KillFocusAnnot(), and TEST_F().

+ Here is the caller graph for this function:

◆ OnLButtonDblClk()

bool CPDFSDK_Annot::OnLButtonDblClk ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
static

Definition at line 54 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnLButtonDblClk().

+ Here is the caller graph for this function:

◆ OnLButtonDown()

bool CPDFSDK_Annot::OnLButtonDown ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
static

Definition at line 40 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnLButtonDown().

+ Here is the caller graph for this function:

◆ OnLButtonUp()

bool CPDFSDK_Annot::OnLButtonUp ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
static

Definition at line 47 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnLButtonUp().

+ Here is the caller graph for this function:

◆ OnLoad()

virtual void CPDFSDK_Annot::OnLoad ( )
inlinevirtual

Reimplemented in CPDFSDK_Widget.

Definition at line 62 of file cpdfsdk_annot.h.

◆ OnMouseEnter()

void CPDFSDK_Annot::OnMouseEnter ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags )
static

Definition at line 28 of file cpdfsdk_annot.cpp.

◆ OnMouseExit()

void CPDFSDK_Annot::OnMouseExit ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags )
static

Definition at line 34 of file cpdfsdk_annot.cpp.

◆ OnMouseMove()

bool CPDFSDK_Annot::OnMouseMove ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
static

Definition at line 61 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnMouseMove().

+ Here is the caller graph for this function:

◆ OnMouseWheel()

bool CPDFSDK_Annot::OnMouseWheel ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point,
const CFX_Vector & delta )
static

Definition at line 68 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnMouseWheel().

+ Here is the caller graph for this function:

◆ OnRButtonDown()

bool CPDFSDK_Annot::OnRButtonDown ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
static

Definition at line 76 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnRButtonDown().

+ Here is the caller graph for this function:

◆ OnRButtonUp()

bool CPDFSDK_Annot::OnRButtonUp ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )
static

Definition at line 83 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_PageView::OnRButtonUp().

+ Here is the caller graph for this function:

◆ OnSetFocus()

bool CPDFSDK_Annot::OnSetFocus ( ObservedPtr< CPDFSDK_Annot > & pAnnot,
Mask< FWL_EVENTFLAG > nFlags )
static

Definition at line 104 of file cpdfsdk_annot.cpp.

Referenced by CPDFSDK_FormFillEnvironment::SetFocusAnnot(), and TEST_F().

+ Here is the caller graph for this function:

◆ Redo()

virtual bool CPDFSDK_Annot::Redo ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::Redo().

+ Here is the caller graph for this function:

◆ ReplaceAndKeepSelection()

virtual void CPDFSDK_Annot::ReplaceAndKeepSelection ( const WideString & text)
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::ReplaceAndKeepSelection().

+ Here is the caller graph for this function:

◆ ReplaceSelection()

virtual void CPDFSDK_Annot::ReplaceSelection ( const WideString & text)
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::ReplaceSelection().

+ Here is the caller graph for this function:

◆ SelectAllText()

virtual bool CPDFSDK_Annot::SelectAllText ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::SelectAllText().

+ Here is the caller graph for this function:

◆ SetIndexSelected()

virtual bool CPDFSDK_Annot::SetIndexSelected ( int index,
bool selected )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::SetIndexSelected().

+ Here is the caller graph for this function:

◆ Undo()

virtual bool CPDFSDK_Annot::Undo ( )
pure virtual

Implemented in CPDFSDK_BAAnnot, CPDFSDK_Widget, and CPDFXFA_Widget.

Referenced by CPDFSDK_PageView::Undo().

+ Here is the caller graph for this function:

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