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
CXFA_FFDoc Class Reference

#include <cxfa_ffdoc.h>

+ Inheritance diagram for CXFA_FFDoc:
+ Collaboration diagram for CXFA_FFDoc:

Classes

class  CallbackIface
 

Public Types

enum class  PageViewEvent { kPostAdded = 1 , kPostRemoved = 3 , kStopLayout = 4 }
 

Public Member Functions

 ~CXFA_FFDoc ()
 
void PreFinalize ()
 
void Trace (cppgc::Visitor *visitor) const
 
bool OpenDoc (CFX_XMLDocument *pXML)
 
void SetChangeMark ()
 
void InvalidateRect (CXFA_FFPageView *pPageView, const CFX_RectF &rt)
 
void DisplayCaret (CXFA_FFWidget *hWidget, bool bVisible, const CFX_RectF *pRtAnchor)
 
bool GetPopupPos (CXFA_FFWidget *hWidget, float fMinPopup, float fMaxPopup, const CFX_RectF &rtAnchor, CFX_RectF *pPopupRect) const
 
bool PopupMenu (CXFA_FFWidget *hWidget, const CFX_PointF &ptPopup)
 
void OnPageViewEvent (CXFA_FFPageView *pPageView, PageViewEvent eEvent)
 
void WidgetPostAdd (CXFA_FFWidget *hWidget)
 
void WidgetPreRemove (CXFA_FFWidget *hWidget)
 
int32_t CountPages () const
 
int32_t GetCurrentPage () const
 
void SetCurrentPage (int32_t iCurPage)
 
bool IsCalculationsEnabled () const
 
void SetCalculationsEnabled (bool bEnabled)
 
WideString GetTitle () const
 
void SetTitle (const WideString &wsTitle)
 
void ExportData (const WideString &wsFilePath, bool bXDP)
 
void GotoURL (const WideString &bsURL)
 
bool IsValidationsEnabled () const
 
void SetValidationsEnabled (bool bEnabled)
 
void SetFocusWidget (CXFA_FFWidget *hWidget)
 
void Print (int32_t nStartPage, int32_t nEndPage, Mask< XFA_PrintOpt > dwOptions)
 
FX_ARGB GetHighlightColor () const
 
IJS_RuntimeGetIJSRuntime () const
 
CFX_XMLDocumentGetXMLDocument () const
 
RetainPtr< IFX_SeekableReadStreamOpenLinkedFile (const WideString &wsLink)
 
CXFA_FFDocViewCreateDocView ()
 
FormType GetFormType () const
 
cppgc::Heap * GetHeap () const
 
CXFA_DocumentGetXFADoc () const
 
CXFA_FFAppGetApp () const
 
CPDF_DocumentGetPDFDoc () const
 
CXFA_FFDocViewGetDocView (CXFA_LayoutProcessor *pLayout)
 
CXFA_FFDocViewGetDocView ()
 
RetainPtr< CFGAS_GEFontGetPDFFont (const WideString &family, uint32_t styles, bool strict)
 
RetainPtr< CFX_DIBitmapGetPDFNamedImage (WideStringView wsName, int32_t &iImageXDpi, int32_t &iImageYDpi)
 
bool SavePackage (CXFA_Node *pNode, const RetainPtr< IFX_SeekableStream > &pFile)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Detailed Description

Definition at line 55 of file cxfa_ffdoc.h.

Member Enumeration Documentation

◆ PageViewEvent

enum class CXFA_FFDoc::PageViewEvent
strong
Enumerator
kPostAdded 
kPostRemoved 
kStopLayout 

Definition at line 59 of file cxfa_ffdoc.h.

Constructor & Destructor Documentation

◆ ~CXFA_FFDoc()

CXFA_FFDoc::~CXFA_FFDoc ( )
default

Member Function Documentation

◆ CountPages()

int32_t CXFA_FFDoc::CountPages ( ) const

Definition at line 153 of file cxfa_ffdoc.cpp.

◆ CreateDocView()

CXFA_FFDocView * CXFA_FFDoc::CreateDocView ( )

Definition at line 104 of file cxfa_ffdoc.cpp.

◆ DisplayCaret()

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

Definition at line 121 of file cxfa_ffdoc.cpp.

Referenced by CXFA_FFWidget::DisplayCaret().

+ Here is the caller graph for this function:

◆ ExportData()

void CXFA_FFDoc::ExportData ( const WideString & wsFilePath,
bool bXDP )

Definition at line 181 of file cxfa_ffdoc.cpp.

◆ GetApp()

CXFA_FFApp * CXFA_FFDoc::GetApp ( ) const
inline

Definition at line 168 of file cxfa_ffdoc.h.

Referenced by CXFA_FFWidget::GetApp(), CXFA_Node::GetFGASFont(), CXFA_TextParser::GetFont(), and CXFA_FFWidget::GetFWLApp().

+ Here is the caller graph for this function:

◆ GetCurrentPage()

int32_t CXFA_FFDoc::GetCurrentPage ( ) const

Definition at line 157 of file cxfa_ffdoc.cpp.

◆ GetDocView() [1/2]

CXFA_FFDocView * CXFA_FFDoc::GetDocView ( )

Definition at line 229 of file cxfa_ffdoc.cpp.

◆ GetDocView() [2/2]

CXFA_FFDocView * CXFA_FFDoc::GetDocView ( CXFA_LayoutProcessor * pLayout)

Definition at line 224 of file cxfa_ffdoc.cpp.

◆ GetFormType()

FormType CXFA_FFDoc::GetFormType ( ) const
inline

Definition at line 165 of file cxfa_ffdoc.h.

Referenced by CXFA_Document::GetFormType().

+ Here is the caller graph for this function:

◆ GetHeap()

cppgc::Heap * CXFA_FFDoc::GetHeap ( ) const
inline

Definition at line 166 of file cxfa_ffdoc.h.

◆ GetHighlightColor()

FX_ARGB CXFA_FFDoc::GetHighlightColor ( ) const

Definition at line 207 of file cxfa_ffdoc.cpp.

◆ GetIJSRuntime()

IJS_Runtime * CXFA_FFDoc::GetIJSRuntime ( ) const

Definition at line 211 of file cxfa_ffdoc.cpp.

Referenced by CFXJSE_Engine::GlobalPropertyGetter(), CFXJSE_Engine::GlobalPropertySetter(), and CFXJSE_Engine::NormalPropertyGetter().

+ Here is the caller graph for this function:

◆ GetPDFDoc()

CPDF_Document * CXFA_FFDoc::GetPDFDoc ( ) const
inline

Definition at line 169 of file cxfa_ffdoc.h.

Referenced by CXFA_FontMgr::GetFont().

+ Here is the caller graph for this function:

◆ GetPDFFont()

RetainPtr< CFGAS_GEFont > CXFA_FFDoc::GetPDFFont ( const WideString & family,
uint32_t styles,
bool strict )

Definition at line 268 of file cxfa_ffdoc.cpp.

Referenced by CXFA_FontMgr::GetFont().

+ Here is the caller graph for this function:

◆ GetPDFNamedImage()

RetainPtr< CFX_DIBitmap > CXFA_FFDoc::GetPDFNamedImage ( WideStringView wsName,
int32_t & iImageXDpi,
int32_t & iImageYDpi )

Definition at line 277 of file cxfa_ffdoc.cpp.

◆ GetPopupPos()

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

Definition at line 127 of file cxfa_ffdoc.cpp.

Referenced by CXFA_FWLAdapterWidgetMgr::GetPopupPos().

+ Here is the caller graph for this function:

◆ GetTitle()

WideString CXFA_FFDoc::GetTitle ( ) const

Definition at line 173 of file cxfa_ffdoc.cpp.

◆ GetXFADoc()

CXFA_Document * CXFA_FFDoc::GetXFADoc ( ) const
inline

Definition at line 167 of file cxfa_ffdoc.h.

Referenced by CXFA_Node::ExecuteBoolScript(), CPDFXFA_DocEnvironment::ExportData(), CXFA_Node::FindSplitPos(), XFAJSEmbedderTest::GetXFADocument(), CXFA_Node::ProcessValidate(), and SavePackage().

+ Here is the caller graph for this function:

◆ GetXMLDocument()

CFX_XMLDocument * CXFA_FFDoc::GetXMLDocument ( ) const

Definition at line 215 of file cxfa_ffdoc.cpp.

◆ GotoURL()

void CXFA_FFDoc::GotoURL ( const WideString & bsURL)

Definition at line 185 of file cxfa_ffdoc.cpp.

◆ InvalidateRect()

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

Definition at line 116 of file cxfa_ffdoc.cpp.

◆ IsCalculationsEnabled()

bool CXFA_FFDoc::IsCalculationsEnabled ( ) const

Definition at line 165 of file cxfa_ffdoc.cpp.

◆ IsValidationsEnabled()

bool CXFA_FFDoc::IsValidationsEnabled ( ) const

Definition at line 189 of file cxfa_ffdoc.cpp.

Referenced by XFA_ProcessEvent().

+ Here is the caller graph for this function:

◆ OnPageViewEvent()

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

Definition at line 140 of file cxfa_ffdoc.cpp.

◆ OpenDoc()

bool CXFA_FFDoc::OpenDoc ( CFX_XMLDocument * pXML)

Definition at line 233 of file cxfa_ffdoc.cpp.

References fxcrt::WideString::EqualsASCII(), kXFAForeground, and kXFAFull.

+ Here is the call graph for this function:

◆ OpenLinkedFile()

RetainPtr< IFX_SeekableReadStream > CXFA_FFDoc::OpenLinkedFile ( const WideString & wsLink)

Definition at line 219 of file cxfa_ffdoc.cpp.

◆ PopupMenu()

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

Definition at line 136 of file cxfa_ffdoc.cpp.

◆ PreFinalize()

void CXFA_FFDoc::PreFinalize ( )

Definition at line 78 of file cxfa_ffdoc.cpp.

◆ Print()

void CXFA_FFDoc::Print ( int32_t nStartPage,
int32_t nEndPage,
Mask< XFA_PrintOpt > dwOptions )

Definition at line 201 of file cxfa_ffdoc.cpp.

◆ SavePackage()

bool CXFA_FFDoc::SavePackage ( CXFA_Node * pNode,
const RetainPtr< IFX_SeekableStream > & pFile )

Definition at line 322 of file cxfa_ffdoc.cpp.

References CXFA_DataExporter::Export(), CXFA_Document::GetRoot(), and GetXFADoc().

Referenced by CPDFXFA_DocEnvironment::ExportData().

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

◆ SetCalculationsEnabled()

void CXFA_FFDoc::SetCalculationsEnabled ( bool bEnabled)

Definition at line 169 of file cxfa_ffdoc.cpp.

◆ SetChangeMark()

void CXFA_FFDoc::SetChangeMark ( )

Definition at line 112 of file cxfa_ffdoc.cpp.

◆ SetCurrentPage()

void CXFA_FFDoc::SetCurrentPage ( int32_t iCurPage)

Definition at line 161 of file cxfa_ffdoc.cpp.

◆ SetFocusWidget()

void CXFA_FFDoc::SetFocusWidget ( CXFA_FFWidget * hWidget)

Definition at line 197 of file cxfa_ffdoc.cpp.

Referenced by CXFA_FFNotify::OpenDropDownList().

+ Here is the caller graph for this function:

◆ SetTitle()

void CXFA_FFDoc::SetTitle ( const WideString & wsTitle)

Definition at line 177 of file cxfa_ffdoc.cpp.

◆ SetValidationsEnabled()

void CXFA_FFDoc::SetValidationsEnabled ( bool bEnabled)

Definition at line 193 of file cxfa_ffdoc.cpp.

◆ Trace()

void CXFA_FFDoc::Trace ( cppgc::Visitor * visitor) const

Definition at line 86 of file cxfa_ffdoc.cpp.

◆ WidgetPostAdd()

void CXFA_FFDoc::WidgetPostAdd ( CXFA_FFWidget * hWidget)

Definition at line 145 of file cxfa_ffdoc.cpp.

◆ WidgetPreRemove()

void CXFA_FFDoc::WidgetPreRemove ( CXFA_FFWidget * hWidget)

Definition at line 149 of file cxfa_ffdoc.cpp.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_FFDoc::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 122 of file cxfa_ffdoc.h.


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