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

#include <cpdfxfa_docenvironment.h>

+ Inheritance diagram for CPDFXFA_DocEnvironment:
+ Collaboration diagram for CPDFXFA_DocEnvironment:

Public Member Functions

 CPDFXFA_DocEnvironment (CPDFXFA_Context *)
 
 ~CPDFXFA_DocEnvironment () override
 
void SetChangeMark (CXFA_FFDoc *hDoc) override
 
void InvalidateRect (CXFA_FFPageView *pPageView, const CFX_RectF &rt) override
 
void DisplayCaret (CXFA_FFWidget *hWidget, bool bVisible, const CFX_RectF *pRtAnchor) override
 
bool GetPopupPos (CXFA_FFWidget *hWidget, float fMinPopup, float fMaxPopup, const CFX_RectF &rtAnchor, CFX_RectF *pPopupRect) override
 
bool PopupMenu (CXFA_FFWidget *hWidget, const CFX_PointF &ptPopup) override
 
void OnPageViewEvent (CXFA_FFPageView *pPageView, CXFA_FFDoc::PageViewEvent eEvent) override
 
void WidgetPostAdd (CXFA_FFWidget *hWidget) override
 
void WidgetPreRemove (CXFA_FFWidget *hWidget) override
 
int32_t CountPages (const CXFA_FFDoc *hDoc) const override
 
int32_t GetCurrentPage (const CXFA_FFDoc *hDoc) const override
 
void SetCurrentPage (CXFA_FFDoc *hDoc, int32_t iCurPage) override
 
bool IsCalculationsEnabled (const CXFA_FFDoc *hDoc) const override
 
void SetCalculationsEnabled (CXFA_FFDoc *hDoc, bool bEnabled) override
 
WideString GetTitle (const CXFA_FFDoc *hDoc) const override
 
void SetTitle (CXFA_FFDoc *hDoc, const WideString &wsTitle) override
 
void ExportData (CXFA_FFDoc *hDoc, const WideString &wsFilePath, bool bXDP) override
 
void GotoURL (CXFA_FFDoc *hDoc, const WideString &bsURL) override
 
bool IsValidationsEnabled (const CXFA_FFDoc *hDoc) const override
 
void SetValidationsEnabled (CXFA_FFDoc *hDoc, bool bEnabled) override
 
void SetFocusWidget (CXFA_FFDoc *hDoc, CXFA_FFWidget *hWidget) override
 
void Print (CXFA_FFDoc *hDoc, int32_t nStartPage, int32_t nEndPage, Mask< XFA_PrintOpt > dwOptions) override
 
FX_ARGB GetHighlightColor (const CXFA_FFDoc *hDoc) const override
 
IJS_RuntimeGetIJSRuntime (const CXFA_FFDoc *hDoc) const override
 
CFX_XMLDocumentGetXMLDoc () const override
 
RetainPtr< IFX_SeekableReadStreamOpenLinkedFile (CXFA_FFDoc *hDoc, const WideString &wsLink) override
 
- Public Member Functions inherited from CXFA_FFDoc::CallbackIface
virtual ~CallbackIface ()=default
 

Detailed Description

Definition at line 19 of file cpdfxfa_docenvironment.h.

Constructor & Destructor Documentation

◆ CPDFXFA_DocEnvironment()

CPDFXFA_DocEnvironment::CPDFXFA_DocEnvironment ( CPDFXFA_Context * pContext)
explicit

Definition at line 55 of file cpdfxfa_docenvironment.cpp.

References CPDFXFA_DocEnvironment().

Referenced by CPDFXFA_DocEnvironment().

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

◆ ~CPDFXFA_DocEnvironment()

CPDFXFA_DocEnvironment::~CPDFXFA_DocEnvironment ( )
overridedefault

Member Function Documentation

◆ CountPages()

int32_t CPDFXFA_DocEnvironment::CountPages ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 350 of file cpdfxfa_docenvironment.cpp.

◆ DisplayCaret()

void CPDFXFA_DocEnvironment::DisplayCaret ( CXFA_FFWidget * hWidget,
bool bVisible,
const CFX_RectF * pRtAnchor )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 86 of file cpdfxfa_docenvironment.cpp.

References CFX_FloatRect::bottom, CXFA_FFWidget::GetPageView(), CFX_FloatRect::left, CFX_FloatRect::right, CFX_RectF::ToFloatRect(), and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ ExportData()

◆ GetCurrentPage()

int32_t CPDFXFA_DocEnvironment::GetCurrentPage ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 356 of file cpdfxfa_docenvironment.cpp.

◆ GetHighlightColor()

FX_ARGB CPDFXFA_DocEnvironment::GetHighlightColor ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 604 of file cpdfxfa_docenvironment.cpp.

◆ GetIJSRuntime()

IJS_Runtime * CPDFXFA_DocEnvironment::GetIJSRuntime ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 615 of file cpdfxfa_docenvironment.cpp.

References CPDFSDK_FormFillEnvironment::GetIJSRuntime().

+ Here is the call graph for this function:

◆ GetPopupPos()

bool CPDFXFA_DocEnvironment::GetPopupPos ( CXFA_FFWidget * hWidget,
float fMinPopup,
float fMaxPopup,
const CFX_RectF & rtAnchor,
CFX_RectF * pPopupRect )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 118 of file cpdfxfa_docenvironment.cpp.

References CFX_RectF::bottom(), CXFA_FFWidget::GetNode(), CXFA_FFWidget::GetPageView(), CXFA_Node::GetRotate(), CFX_RectF::height, CFX_RectF::left, CFX_RectF::right(), CFX_RectF::top, and CFX_RectF::width.

+ Here is the call graph for this function:

◆ GetTitle()

WideString CPDFXFA_DocEnvironment::GetTitle ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 398 of file cpdfxfa_docenvironment.cpp.

References fxcrt::WideString::WideString(), and fxcrt::WideString::FromDefANSI().

+ Here is the call graph for this function:

◆ GetXMLDoc()

CFX_XMLDocument * CPDFXFA_DocEnvironment::GetXMLDoc ( ) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 624 of file cpdfxfa_docenvironment.cpp.

◆ GotoURL()

void CPDFXFA_DocEnvironment::GotoURL ( CXFA_FFDoc * hDoc,
const WideString & bsURL )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 521 of file cpdfxfa_docenvironment.cpp.

◆ InvalidateRect()

void CPDFXFA_DocEnvironment::InvalidateRect ( CXFA_FFPageView * pPageView,
const CFX_RectF & rt )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 67 of file cpdfxfa_docenvironment.cpp.

References CPDFSDK_FormFillEnvironment::Invalidate(), CFX_RectF::ToFloatRect(), and CFX_FloatRect::ToFxRect().

+ Here is the call graph for this function:

◆ IsCalculationsEnabled()

bool CPDFXFA_DocEnvironment::IsCalculationsEnabled ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 382 of file cpdfxfa_docenvironment.cpp.

◆ IsValidationsEnabled()

bool CPDFXFA_DocEnvironment::IsValidationsEnabled ( const CXFA_FFDoc * hDoc) const
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 536 of file cpdfxfa_docenvironment.cpp.

◆ OnPageViewEvent()

void CPDFXFA_DocEnvironment::OnPageViewEvent ( CXFA_FFPageView * pPageView,
CXFA_FFDoc::PageViewEvent eEvent )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 281 of file cpdfxfa_docenvironment.cpp.

◆ OpenLinkedFile()

RetainPtr< IFX_SeekableReadStream > CPDFXFA_DocEnvironment::OpenLinkedFile ( CXFA_FFDoc * hDoc,
const WideString & wsLink )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 628 of file cpdfxfa_docenvironment.cpp.

References AsFPDFWideString(), and fxcrt::WideString::ToUTF16LE().

+ Here is the call graph for this function:

◆ PopupMenu()

bool CPDFXFA_DocEnvironment::PopupMenu ( CXFA_FFWidget * hWidget,
const CFX_PointF & ptPopup )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 247 of file cpdfxfa_docenvironment.cpp.

References CXFA_FFWidget::GetPageView().

+ Here is the call graph for this function:

◆ Print()

void CPDFXFA_DocEnvironment::Print ( CXFA_FFDoc * hDoc,
int32_t nStartPage,
int32_t nEndPage,
Mask< XFA_PrintOpt > dwOptions )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 580 of file cpdfxfa_docenvironment.cpp.

References _IPDF_JsPlatform::Doc_print, CPDFSDK_FormFillEnvironment::GetFormFillInfo(), kAsImage, kCanCancel, kPrintAnnot, kReverseOrder, kShowDialog, kShrinkPage, and _FPDF_FORMFILLINFO::m_pJsPlatform.

+ Here is the call graph for this function:

◆ SetCalculationsEnabled()

void CPDFXFA_DocEnvironment::SetCalculationsEnabled ( CXFA_FFDoc * hDoc,
bool bEnabled )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 390 of file cpdfxfa_docenvironment.cpp.

◆ SetChangeMark()

void CPDFXFA_DocEnvironment::SetChangeMark ( CXFA_FFDoc * hDoc)
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 62 of file cpdfxfa_docenvironment.cpp.

◆ SetCurrentPage()

void CPDFXFA_DocEnvironment::SetCurrentPage ( CXFA_FFDoc * hDoc,
int32_t iCurPage )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 367 of file cpdfxfa_docenvironment.cpp.

◆ SetFocusWidget()

void CPDFXFA_DocEnvironment::SetFocusWidget ( CXFA_FFDoc * hDoc,
CXFA_FFWidget * hWidget )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 554 of file cpdfxfa_docenvironment.cpp.

◆ SetTitle()

void CPDFXFA_DocEnvironment::SetTitle ( CXFA_FFDoc * hDoc,
const WideString & wsTitle )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 414 of file cpdfxfa_docenvironment.cpp.

◆ SetValidationsEnabled()

void CPDFXFA_DocEnvironment::SetValidationsEnabled ( CXFA_FFDoc * hDoc,
bool bEnabled )
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 545 of file cpdfxfa_docenvironment.cpp.

◆ WidgetPostAdd()

void CPDFXFA_DocEnvironment::WidgetPostAdd ( CXFA_FFWidget * hWidget)
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 317 of file cpdfxfa_docenvironment.cpp.

References CXFA_FFWidget::GetPageView().

+ Here is the call graph for this function:

◆ WidgetPreRemove()

void CPDFXFA_DocEnvironment::WidgetPreRemove ( CXFA_FFWidget * hWidget)
overridevirtual

Implements CXFA_FFDoc::CallbackIface.

Definition at line 333 of file cpdfxfa_docenvironment.cpp.

References CXFA_FFWidget::GetPageView().

+ Here is the call graph for this function:

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