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

#include <cpdfxfa_page.h>

+ Inheritance diagram for CPDFXFA_Page:
+ Collaboration diagram for CPDFXFA_Page:

Public Member Functions

CPDF_PageAsPDFPage () override
 
CPDFXFA_PageAsXFAPage () override
 
CPDF_DocumentGetDocument () const override
 
float GetPageWidth () const override
 
float GetPageHeight () const override
 
CFX_Matrix GetDisplayMatrix (const FX_RECT &rect, int iRotate) const override
 
absl::optional< CFX_PointFDeviceToPage (const FX_RECT &rect, int rotate, const CFX_PointF &device_point) const override
 
absl::optional< CFX_PointFPageToDevice (const FX_RECT &rect, int rotate, const CFX_PointF &page_point) const override
 
bool LoadPage ()
 
void LoadPDFPageFromDict (RetainPtr< CPDF_Dictionary > pPageDict)
 
int GetPageIndex () const
 
void SetXFAPageViewIndex (int index)
 
CXFA_FFPageViewGetXFAPageView () const
 
CPDFSDK_AnnotGetNextXFAAnnot (CPDFSDK_Annot *pSDKAnnot) const
 
CPDFSDK_AnnotGetPrevXFAAnnot (CPDFSDK_Annot *pSDKAnnot) const
 
CPDFSDK_AnnotGetFirstXFAAnnot (CPDFSDK_PageView *page_view) const
 
CPDFSDK_AnnotGetLastXFAAnnot (CPDFSDK_PageView *page_view) const
 
int HasFormFieldAtPoint (const CFX_PointF &point) const
 
void DrawFocusAnnot (CFX_RenderDevice *pDevice, CPDFSDK_Annot *pAnnot, const CFX_Matrix &mtUser2Device, const FX_RECT &rtClip)
 
- Public Member Functions inherited from IPDF_Page
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Private Member Functions

 ~CPDFXFA_Page () override
 

Additional Inherited Members

- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 

Detailed Description

Definition at line 24 of file cpdfxfa_page.h.

Member Function Documentation

◆ ~CPDFXFA_Page()

CPDFXFA_Page::~CPDFXFA_Page ( )
overrideprivatedefault

◆ AsPDFPage()

CPDF_Page * CPDFXFA_Page::AsPDFPage ( )
overridevirtual

Implements IPDF_Page.

Definition at line 81 of file cpdfxfa_page.cpp.

◆ AsXFAPage()

CPDFXFA_Page * CPDFXFA_Page::AsXFAPage ( )
overridevirtual

Implements IPDF_Page.

Definition at line 85 of file cpdfxfa_page.cpp.

◆ DeviceToPage()

absl::optional< CFX_PointF > CPDFXFA_Page::DeviceToPage ( const FX_RECT & rect,
int rotate,
const CFX_PointF & device_point ) const
overridevirtual

Implements IPDF_Page.

Definition at line 175 of file cpdfxfa_page.cpp.

References GetDisplayMatrix(), CFX_Matrix::GetInverse(), GetXFAPageView(), and CFX_Matrix::Transform().

+ Here is the call graph for this function:

◆ DrawFocusAnnot()

◆ GetDisplayMatrix()

CFX_Matrix CPDFXFA_Page::GetDisplayMatrix ( const FX_RECT & rect,
int iRotate ) const
overridevirtual

Implements IPDF_Page.

Definition at line 199 of file cpdfxfa_page.cpp.

References CFX_Matrix::CFX_Matrix(), CXFA_FFPageView::GetDisplayMatrix(), GetXFAPageView(), and kXFAFull.

Referenced by DeviceToPage(), and PageToDevice().

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

◆ GetDocument()

CPDF_Document * CPDFXFA_Page::GetDocument ( ) const
overridevirtual

Implements IPDF_Page.

Definition at line 89 of file cpdfxfa_page.cpp.

◆ GetFirstXFAAnnot()

CPDFSDK_Annot * CPDFXFA_Page::GetFirstXFAAnnot ( CPDFSDK_PageView * page_view) const

Definition at line 242 of file cpdfxfa_page.cpp.

References GetXFAPageView(), and CXFA_FFWidget::IteratorIface::MoveToFirst().

+ Here is the call graph for this function:

◆ GetLastXFAAnnot()

CPDFSDK_Annot * CPDFXFA_Page::GetLastXFAAnnot ( CPDFSDK_PageView * page_view) const

Definition at line 252 of file cpdfxfa_page.cpp.

References GetXFAPageView(), and CXFA_FFWidget::IteratorIface::MoveToLast().

+ Here is the call graph for this function:

◆ GetNextXFAAnnot()

CPDFSDK_Annot * CPDFXFA_Page::GetNextXFAAnnot ( CPDFSDK_Annot * pSDKAnnot) const

Definition at line 222 of file cpdfxfa_page.cpp.

References CPDFSDK_Annot::GetPageView(), GetXFAPageView(), and CXFA_FFWidget::IteratorIface::MoveToNext().

+ Here is the call graph for this function:

◆ GetPageHeight()

float CPDFXFA_Page::GetPageHeight ( ) const
overridevirtual

Implements IPDF_Page.

Definition at line 153 of file cpdfxfa_page.cpp.

References CXFA_FFPageView::GetPageViewRect(), GetXFAPageView(), CFX_RectF::height, and kXFAFull.

+ Here is the call graph for this function:

◆ GetPageIndex()

int CPDFXFA_Page::GetPageIndex ( ) const
inline

Definition at line 46 of file cpdfxfa_page.h.

◆ GetPageWidth()

float CPDFXFA_Page::GetPageWidth ( ) const
overridevirtual

Implements IPDF_Page.

Definition at line 131 of file cpdfxfa_page.cpp.

References CXFA_FFPageView::GetPageViewRect(), GetXFAPageView(), kXFAFull, and CFX_RectF::width.

+ Here is the call graph for this function:

◆ GetPrevXFAAnnot()

CPDFSDK_Annot * CPDFXFA_Page::GetPrevXFAAnnot ( CPDFSDK_Annot * pSDKAnnot) const

Definition at line 232 of file cpdfxfa_page.cpp.

References CPDFSDK_Annot::GetPageView(), GetXFAPageView(), and CXFA_FFWidget::IteratorIface::MoveToPrevious().

+ Here is the call graph for this function:

◆ GetXFAPageView()

CXFA_FFPageView * CPDFXFA_Page::GetXFAPageView ( ) const

Definition at line 105 of file cpdfxfa_page.cpp.

References CXFA_FFDocView::GetPageView().

Referenced by DeviceToPage(), DrawFocusAnnot(), GetDisplayMatrix(), GetFirstXFAAnnot(), GetLastXFAAnnot(), GetNextXFAAnnot(), GetPageHeight(), GetPageWidth(), GetPrevXFAAnnot(), HasFormFieldAtPoint(), LoadPage(), and PageToDevice().

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

◆ HasFormFieldAtPoint()

int CPDFXFA_Page::HasFormFieldAtPoint ( const CFX_PointF & point) const

Definition at line 262 of file cpdfxfa_page.cpp.

References CFX_FloatRect::Contains(), CXFA_FFPageView::GetDocView(), CXFA_FFWidget::GetFormFieldType(), CXFA_FFDocView::GetWidgetHandler(), CXFA_FFWidget::GetWidgetRect(), GetXFAPageView(), CFX_FloatRect::Inflate(), kViewable, CXFA_FFPageWidgetIterator::MoveToNext(), and CFX_RectF::ToFloatRect().

+ Here is the call graph for this function:

◆ LoadPage()

bool CPDFXFA_Page::LoadPage ( )

Definition at line 111 of file cpdfxfa_page.cpp.

References GetXFAPageView(), kAcroForm, kNone, kXFAForeground, and kXFAFull.

+ Here is the call graph for this function:

◆ LoadPDFPageFromDict()

void CPDFXFA_Page::LoadPDFPageFromDict ( RetainPtr< CPDF_Dictionary > pPageDict)

Definition at line 123 of file cpdfxfa_page.cpp.

◆ PageToDevice()

absl::optional< CFX_PointF > CPDFXFA_Page::PageToDevice ( const FX_RECT & rect,
int rotate,
const CFX_PointF & page_point ) const
overridevirtual

Implements IPDF_Page.

Definition at line 187 of file cpdfxfa_page.cpp.

References GetDisplayMatrix(), GetXFAPageView(), and CFX_Matrix::Transform().

+ Here is the call graph for this function:

◆ SetXFAPageViewIndex()

void CPDFXFA_Page::SetXFAPageViewIndex ( int index)
inline

Definition at line 47 of file cpdfxfa_page.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDFXFA_Page::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 26 of file cpdfxfa_page.h.


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