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

#include <cpdfsdk_pageview.h>

+ Inheritance diagram for CPDFSDK_PageView:
+ Collaboration diagram for CPDFSDK_PageView:

Public Member Functions

 CPDFSDK_PageView (CPDFSDK_FormFillEnvironment *pFormFillEnv, IPDF_Page *page)
 
 ~CPDFSDK_PageView ()
 
void ClearPage (CPDF_Page *pPage) override
 
void PageView_OnDraw (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, CPDF_RenderOptions *pOptions, const FX_RECT &pClip)
 
void LoadFXAnnots ()
 
CPDFSDK_AnnotGetFocusAnnot ()
 
CPDFSDK_AnnotGetNextAnnot (CPDFSDK_Annot *pAnnot)
 
CPDFSDK_AnnotGetPrevAnnot (CPDFSDK_Annot *pAnnot)
 
CPDFSDK_AnnotGetFirstFocusableAnnot ()
 
CPDFSDK_AnnotGetLastFocusableAnnot ()
 
bool IsValidAnnot (const CPDF_Annot *p) const
 
bool IsValidSDKAnnot (const CPDFSDK_Annot *p) const
 
std::vector< CPDFSDK_Annot * > GetAnnotList () const
 
CPDFSDK_AnnotGetAnnotByDict (const CPDF_Dictionary *pDict)
 
CPDF_PageGetPDFPage () const
 
CPDF_DocumentGetPDFDocument ()
 
CPDFSDK_FormFillEnvironmentGetFormFillEnv () const
 
WideString GetFocusedFormText ()
 
WideString GetSelectedText ()
 
void ReplaceAndKeepSelection (const WideString &text)
 
void ReplaceSelection (const WideString &text)
 
bool SelectAllText ()
 
bool CanUndo ()
 
bool CanRedo ()
 
bool Undo ()
 
bool Redo ()
 
bool OnFocus (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnLButtonDown (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnLButtonUp (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnLButtonDblClk (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnRButtonDown (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnRButtonUp (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnChar (uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
 
bool OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)
 
bool OnMouseMove (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
 
bool OnMouseWheel (Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta)
 
bool SetIndexSelected (int index, bool selected)
 
bool IsIndexSelected (int index)
 
const CFX_MatrixGetCurrentMatrix () const
 
void UpdateRects (const std::vector< CFX_FloatRect > &rects)
 
void UpdateView (CPDFSDK_Annot *pAnnot)
 
int GetPageIndex () const
 
void SetValid (bool bValid)
 
bool IsValid () const
 
bool IsLocked () const
 
void SetBeingDestroyed ()
 
bool IsBeingDestroyed () const
 
- Public Member Functions inherited from CPDF_Page::View
- 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 

Detailed Description

Definition at line 31 of file cpdfsdk_pageview.h.

Constructor & Destructor Documentation

◆ CPDFSDK_PageView()

CPDFSDK_PageView::CPDFSDK_PageView ( CPDFSDK_FormFillEnvironment * pFormFillEnv,
IPDF_Page * page )

Definition at line 35 of file cpdfsdk_pageview.cpp.

References CPDFSDK_PageView(), IPDF_Page::AsXFAPage(), CPDF_InteractiveForm::FixPageFields(), CPDFSDK_FormFillEnvironment::GetInteractiveForm(), CPDFSDK_InteractiveForm::GetInteractiveForm(), CPDF_Page::SetView(), and ToPDFPage().

Referenced by CPDFSDK_PageView().

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

◆ ~CPDFSDK_PageView()

CPDFSDK_PageView::~CPDFSDK_PageView ( )

Definition at line 49 of file cpdfsdk_pageview.cpp.

Member Function Documentation

◆ CanRedo()

bool CPDFSDK_PageView::CanRedo ( )

Definition at line 311 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::CanRedo(), and GetFocusAnnot().

Referenced by FORM_CanRedo().

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

◆ CanUndo()

bool CPDFSDK_PageView::CanUndo ( )

Definition at line 306 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::CanUndo(), and GetFocusAnnot().

Referenced by FORM_CanUndo().

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

◆ ClearPage()

void CPDFSDK_PageView::ClearPage ( CPDF_Page * pPage)
overridevirtual

Implements CPDF_Page::View.

Definition at line 66 of file cpdfsdk_pageview.cpp.

References GetFormFillEnv(), IsBeingDestroyed(), and CPDFSDK_FormFillEnvironment::RemovePageView().

+ Here is the call graph for this function:

◆ GetAnnotByDict()

CPDFSDK_Annot * CPDFSDK_PageView::GetAnnotByDict ( const CPDF_Dictionary * pDict)

Definition at line 210 of file cpdfsdk_pageview.cpp.

Referenced by CPDFSDK_InteractiveForm::GetWidget().

+ Here is the caller graph for this function:

◆ GetAnnotList()

std::vector< CPDFSDK_Annot * > CPDFSDK_PageView::GetAnnotList ( ) const

Definition at line 202 of file cpdfsdk_pageview.cpp.

◆ GetCurrentMatrix()

const CFX_Matrix & CPDFSDK_PageView::GetCurrentMatrix ( ) const
inline

Definition at line 94 of file cpdfsdk_pageview.h.

Referenced by CPDFSDK_Widget::DrawShadow(), and CFFL_FormField::GetWindowMatrix().

+ Here is the caller graph for this function:

◆ GetFirstFocusableAnnot()

CPDFSDK_Annot * CPDFSDK_PageView::GetFirstFocusableAnnot ( )

Definition at line 262 of file cpdfsdk_pageview.cpp.

References CPDFSDK_AnnotIterator::GetFirstAnnot(), and GetFormFillEnv().

+ Here is the call graph for this function:

◆ GetFocusAnnot()

CPDFSDK_Annot * CPDFSDK_PageView::GetFocusAnnot ( )

Definition at line 608 of file cpdfsdk_pageview.cpp.

References IsValidSDKAnnot().

Referenced by CanRedo(), CanUndo(), GetFocusedFormText(), GetSelectedText(), IsIndexSelected(), OnKeyDown(), Redo(), ReplaceAndKeepSelection(), ReplaceSelection(), SelectAllText(), SetIndexSelected(), and Undo().

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

◆ GetFocusedFormText()

WideString CPDFSDK_PageView::GetFocusedFormText ( )

Definition at line 237 of file cpdfsdk_pageview.cpp.

References fxcrt::WideString::WideString(), GetFocusAnnot(), and CPDFSDK_Annot::GetText().

Referenced by FORM_GetFocusedText().

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

◆ GetFormFillEnv()

CPDFSDK_FormFillEnvironment * CPDFSDK_PageView::GetFormFillEnv ( ) const
inline

Definition at line 65 of file cpdfsdk_pageview.h.

Referenced by ClearPage(), GetFirstFocusableAnnot(), GetLastFocusableAnnot(), GetNextAnnot(), GetPrevAnnot(), CPDFSDK_Widget::OnAAction(), and OnKeyDown().

+ Here is the caller graph for this function:

◆ GetLastFocusableAnnot()

CPDFSDK_Annot * CPDFSDK_PageView::GetLastFocusableAnnot ( )

Definition at line 272 of file cpdfsdk_pageview.cpp.

References GetFormFillEnv(), and CPDFSDK_AnnotIterator::GetLastAnnot().

+ Here is the call graph for this function:

◆ GetNextAnnot()

CPDFSDK_Annot * CPDFSDK_PageView::GetNextAnnot ( CPDFSDK_Annot * pAnnot)

Definition at line 242 of file cpdfsdk_pageview.cpp.

References GetFormFillEnv(), and CPDFSDK_AnnotIterator::GetNextAnnot().

+ Here is the call graph for this function:

◆ GetPageIndex()

int CPDFSDK_PageView::GetPageIndex ( ) const

Definition at line 589 of file cpdfsdk_pageview.cpp.

Referenced by FORM_GetFocusedAnnot().

+ Here is the caller graph for this function:

◆ GetPDFDocument()

CPDF_Document * CPDFSDK_PageView::GetPDFDocument ( )

Definition at line 190 of file cpdfsdk_pageview.cpp.

◆ GetPDFPage()

CPDF_Page * CPDFSDK_PageView::GetPDFPage ( ) const

Definition at line 194 of file cpdfsdk_pageview.cpp.

Referenced by CFFL_FormField::GetFocusBox(), and LoadFXAnnots().

+ Here is the caller graph for this function:

◆ GetPrevAnnot()

CPDFSDK_Annot * CPDFSDK_PageView::GetPrevAnnot ( CPDFSDK_Annot * pAnnot)

Definition at line 252 of file cpdfsdk_pageview.cpp.

References GetFormFillEnv(), and CPDFSDK_AnnotIterator::GetPrevAnnot().

+ Here is the call graph for this function:

◆ GetSelectedText()

WideString CPDFSDK_PageView::GetSelectedText ( )

Definition at line 282 of file cpdfsdk_pageview.cpp.

References fxcrt::WideString::WideString(), GetFocusAnnot(), and CPDFSDK_Annot::GetSelectedText().

Referenced by FORM_GetSelectedText().

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

◆ IsBeingDestroyed()

bool CPDFSDK_PageView::IsBeingDestroyed ( ) const
inline

Definition at line 104 of file cpdfsdk_pageview.h.

Referenced by ClearPage(), and CPDFSDK_FormFillEnvironment::RemovePageView().

+ Here is the caller graph for this function:

◆ IsIndexSelected()

bool CPDFSDK_PageView::IsIndexSelected ( int index)

Definition at line 486 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::IsIndexSelected().

Referenced by FORM_IsIndexSelected().

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

◆ IsLocked()

bool CPDFSDK_PageView::IsLocked ( ) const
inline

Definition at line 102 of file cpdfsdk_pageview.h.

Referenced by CPDFSDK_FormFillEnvironment::RemovePageView().

+ Here is the caller graph for this function:

◆ IsValid()

bool CPDFSDK_PageView::IsValid ( ) const
inline

Definition at line 101 of file cpdfsdk_pageview.h.

Referenced by FORM_GetFocusedAnnot(), and FORM_SetFocusedAnnot().

+ Here is the caller graph for this function:

◆ IsValidAnnot()

bool CPDFSDK_PageView::IsValidAnnot ( const CPDF_Annot * p) const

Definition at line 600 of file cpdfsdk_pageview.cpp.

Referenced by CFFL_InteractiveFormFiller::IsValidAnnot().

+ Here is the caller graph for this function:

◆ IsValidSDKAnnot()

bool CPDFSDK_PageView::IsValidSDKAnnot ( const CPDFSDK_Annot * p) const

Definition at line 604 of file cpdfsdk_pageview.cpp.

Referenced by GetFocusAnnot(), and CPDFSDK_FormFillEnvironment::RemovePageView().

+ Here is the caller graph for this function:

◆ LoadFXAnnots()

void CPDFSDK_PageView::LoadFXAnnots ( )

Definition at line 537 of file cpdfsdk_pageview.cpp.

References CheckForUnsupportedAnnot(), GetPDFPage(), CPDF_InteractiveForm::IsUpdateAPEnabled(), and CPDF_InteractiveForm::SetUpdateAP().

Referenced by CPDFSDK_FormFillEnvironment::GetOrCreatePageView().

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

◆ OnChar()

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

Definition at line 491 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnChar().

+ Here is the call graph for this function:

◆ OnFocus()

bool CPDFSDK_PageView::OnFocus ( Mask< FWL_EVENTFLAG > nFlags,
const CFX_PointF & point )

Definition at line 326 of file cpdfsdk_pageview.cpp.

◆ OnKeyDown()

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

Definition at line 496 of file cpdfsdk_pageview.cpp.

References FWL_VKEY_Tab, GetFocusAnnot(), GetFormFillEnv(), CPWL_Wnd::IsALTKeyDown(), CPWL_Wnd::IsCTRLKeyDown(), CPDFSDK_Annot::OnKeyDown(), and CPDFSDK_FormFillEnvironment::SetFocusAnnot().

+ Here is the call graph for this function:

◆ OnLButtonDblClk()

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

Definition at line 368 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnLButtonDblClk().

+ Here is the call graph for this function:

◆ OnLButtonDown()

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

Definition at line 338 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnLButtonDown().

+ Here is the call graph for this function:

◆ OnLButtonUp()

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

Definition at line 356 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnLButtonUp().

+ Here is the call graph for this function:

◆ OnMouseMove()

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

Definition at line 418 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnMouseMove().

+ Here is the call graph for this function:

◆ OnMouseWheel()

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

Definition at line 471 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnMouseWheel().

+ Here is the call graph for this function:

◆ OnRButtonDown()

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

Definition at line 386 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnRButtonDown().

+ Here is the call graph for this function:

◆ OnRButtonUp()

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

Definition at line 402 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::OnRButtonUp().

+ Here is the call graph for this function:

◆ PageView_OnDraw()

void CPDFSDK_PageView::PageView_OnDraw ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device,
CPDF_RenderOptions * pOptions,
const FX_RECT & pClip )

Definition at line 71 of file cpdfsdk_pageview.cpp.

References CPDFSDK_AnnotIteration::CreateForDrawing(), and CFX_Matrix::operator=().

+ Here is the call graph for this function:

◆ Redo()

bool CPDFSDK_PageView::Redo ( )

Definition at line 321 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::Redo().

Referenced by FORM_Redo().

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

◆ ReplaceAndKeepSelection()

void CPDFSDK_PageView::ReplaceAndKeepSelection ( const WideString & text)

Definition at line 289 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::ReplaceAndKeepSelection().

Referenced by FORM_ReplaceAndKeepSelection().

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

◆ ReplaceSelection()

void CPDFSDK_PageView::ReplaceSelection ( const WideString & text)

Definition at line 295 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::ReplaceSelection().

Referenced by FORM_ReplaceSelection().

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

◆ SelectAllText()

bool CPDFSDK_PageView::SelectAllText ( )

Definition at line 301 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::SelectAllText().

Referenced by FORM_SelectAllText().

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

◆ SetBeingDestroyed()

void CPDFSDK_PageView::SetBeingDestroyed ( )
inline

Definition at line 103 of file cpdfsdk_pageview.h.

Referenced by CPDFSDK_FormFillEnvironment::RemovePageView().

+ Here is the caller graph for this function:

◆ SetIndexSelected()

bool CPDFSDK_PageView::SetIndexSelected ( int index,
bool selected )

Definition at line 481 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::SetIndexSelected().

Referenced by FORM_SetIndexSelected().

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

◆ SetValid()

void CPDFSDK_PageView::SetValid ( bool bValid)
inline

Definition at line 100 of file cpdfsdk_pageview.h.

Referenced by FORM_OnAfterLoadPage(), and FORM_OnBeforeClosePage().

+ Here is the caller graph for this function:

◆ Undo()

bool CPDFSDK_PageView::Undo ( )

Definition at line 316 of file cpdfsdk_pageview.cpp.

References GetFocusAnnot(), and CPDFSDK_Annot::Undo().

Referenced by FORM_Undo().

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

◆ UpdateRects()

void CPDFSDK_PageView::UpdateRects ( const std::vector< CFX_FloatRect > & rects)

Definition at line 579 of file cpdfsdk_pageview.cpp.

◆ UpdateView()

void CPDFSDK_PageView::UpdateView ( CPDFSDK_Annot * pAnnot)

Definition at line 584 of file cpdfsdk_pageview.cpp.

References CPDFSDK_Annot::GetRect().

+ Here is the call graph for this function:

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