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

#include <cxfa_ffdocview.h>

+ Inheritance diagram for CXFA_FFDocView:
+ Collaboration diagram for CXFA_FFDocView:

Classes

class  UpdateScope
 

Public Types

enum class  LayoutStatus : uint8_t { kNone , kStart , kDoing , kEnd }
 

Public Member Functions

 ~CXFA_FFDocView ()
 
void Trace (cppgc::Visitor *visitor) const
 
CXFA_FFDocGetDoc () const
 
int32_t StartLayout ()
 
int32_t DoLayout ()
 
void StopLayout ()
 
void SetLayoutEvent ()
 
bool InLayoutStatus () const
 
LayoutStatus GetLayoutStatus () const
 
void UpdateDocView ()
 
void UpdateUIDisplay (CXFA_Node *pNode, CXFA_FFWidget *pExcept)
 
int32_t CountPageViews () const
 
CXFA_FFPageViewGetPageView (int32_t nIndex) const
 
void ResetNode (CXFA_Node *pNode)
 
CXFA_NodeGetRootSubform ()
 
CXFA_FFWidgetHandlerGetWidgetHandler ()
 
CXFA_FFWidgetGetFocusWidget () const
 
bool SetFocus (CXFA_FFWidget *pNewFocus)
 
CXFA_FFWidgetGetWidgetForNode (CXFA_Node *node)
 
CXFA_FFWidgetGetWidgetByName (const WideString &wsName, CXFA_FFWidget *pRefWidget)
 
CXFA_LayoutProcessorGetLayoutProcessor () const
 
void OnPageViewEvent (CXFA_ViewLayoutItem *pSender, CXFA_FFDoc::PageViewEvent eEvent)
 
void LockUpdate ()
 
void UnlockUpdate ()
 
void InvalidateRect (CXFA_FFPageView *pPageView, const CFX_RectF &rtInvalidate)
 
void RunDocClose ()
 
void ProcessValueChanged (CXFA_Node *node)
 
void SetChangeMark ()
 
void AddValidateNode (CXFA_Node *node)
 
void AddCalculateNodeNotify (CXFA_Node *pNodeChange)
 
void AddCalculateNode (CXFA_Node *node)
 
bool RunLayout ()
 
void AddNewFormNode (CXFA_Node *pNode)
 
void AddIndexChangedSubform (CXFA_Subform *pNode)
 
CXFA_NodeGetFocusNode () const
 
void SetFocusNode (CXFA_Node *pNode)
 
void DeleteLayoutItem (CXFA_FFWidget *pWidget)
 
XFA_EventError ExecEventActivityByDeepFirst (CXFA_Node *pFormNode, XFA_EVENTTYPE eEventType, bool bIsFormReady, bool bRecursive)
 
void AddBindItem (CXFA_BindItems *item)
 
void AddNullTestMsg (const WideString &msg)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Detailed Description

Definition at line 31 of file cxfa_ffdocview.h.

Member Enumeration Documentation

◆ LayoutStatus

enum class CXFA_FFDocView::LayoutStatus : uint8_t
strong
Enumerator
kNone 
kStart 
kDoing 
kEnd 

Definition at line 33 of file cxfa_ffdocview.h.

Constructor & Destructor Documentation

◆ ~CXFA_FFDocView()

CXFA_FFDocView::~CXFA_FFDocView ( )
default

Member Function Documentation

◆ AddBindItem()

void CXFA_FFDocView::AddBindItem ( CXFA_BindItems * item)
inline

Definition at line 101 of file cxfa_ffdocview.h.

Referenced by CXFA_FFNotify::OnNodeReady().

+ Here is the caller graph for this function:

◆ AddCalculateNode()

void CXFA_FFDocView::AddCalculateNode ( CXFA_Node * node)

Definition at line 550 of file cxfa_ffdocview.cpp.

Referenced by CXFA_FFNotify::AddCalcValidate(), CXFA_FFNotify::OnValueChanged(), and ProcessValueChanged().

+ Here is the caller graph for this function:

◆ AddCalculateNodeNotify()

void CXFA_FFDocView::AddCalculateNodeNotify ( CXFA_Node * pNodeChange)

Definition at line 557 of file cxfa_ffdocview.cpp.

Referenced by CXFA_FFNotify::OnValueChanged().

+ Here is the caller graph for this function:

◆ AddIndexChangedSubform()

void CXFA_FFDocView::AddIndexChangedSubform ( CXFA_Subform * pNode)

Definition at line 536 of file cxfa_ffdocview.cpp.

Referenced by CXFA_FFNotify::RunSubformIndexChange().

+ Here is the caller graph for this function:

◆ AddNewFormNode()

void CXFA_FFDocView::AddNewFormNode ( CXFA_Node * pNode)

Definition at line 531 of file cxfa_ffdocview.cpp.

Referenced by CXFA_FFNotify::RunNodeInitialize().

+ Here is the caller graph for this function:

◆ AddNullTestMsg()

void CXFA_FFDocView::AddNullTestMsg ( const WideString & msg)

Definition at line 183 of file cxfa_ffdocview.cpp.

◆ AddValidateNode()

void CXFA_FFDocView::AddValidateNode ( CXFA_Node * node)

Definition at line 601 of file cxfa_ffdocview.cpp.

Referenced by CXFA_FFNotify::AddCalcValidate(), CXFA_Node::ExecuteBoolScript(), CXFA_FFNotify::OnValueChanged(), and ProcessValueChanged().

+ Here is the caller graph for this function:

◆ CountPageViews()

int32_t CXFA_FFDocView::CountPageViews ( ) const

Definition at line 253 of file cxfa_ffdocview.cpp.

References CXFA_LayoutProcessor::CountPages(), and GetLayoutProcessor().

+ Here is the call graph for this function:

◆ DeleteLayoutItem()

void CXFA_FFDocView::DeleteLayoutItem ( CXFA_FFWidget * pWidget)

Definition at line 377 of file cxfa_ffdocview.cpp.

Referenced by CXFA_FFNotify::OnLayoutItemRemoving().

+ Here is the caller graph for this function:

◆ DoLayout()

int32_t CXFA_FFDocView::DoLayout ( )

Definition at line 134 of file cxfa_ffdocview.cpp.

References CXFA_LayoutProcessor::DoLayout(), GetLayoutProcessor(), and kDoing.

+ Here is the call graph for this function:

◆ ExecEventActivityByDeepFirst()

XFA_EventError CXFA_FFDocView::ExecEventActivityByDeepFirst ( CXFA_Node * pFormNode,
XFA_EVENTTYPE eEventType,
bool bIsFormReady,
bool bRecursive )

Definition at line 414 of file cxfa_ffdocview.cpp.

References CXFA_EventParam::CXFA_EventParam(), ExecEventActivityByDeepFirst(), CXFA_Object::GetElementType(), CXFA_Node::GetFirstContainerChild(), CXFA_Node::GetNextContainerSibling(), CXFA_Node::IsWidgetReady(), kNotExist, CXFA_EventParam::m_bIsFormReady, XFA_EVENT_IndexChange, XFA_EventErrorAccumulate(), and XFA_ProcessEvent().

Referenced by ExecEventActivityByDeepFirst(), CXFA_FFNotify::ExecEventByDeepFirst(), RunDocClose(), StartLayout(), StopLayout(), and UpdateDocView().

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

◆ GetDoc()

CXFA_FFDoc * CXFA_FFDocView::GetDoc ( ) const
inline

Definition at line 51 of file cxfa_ffdocview.h.

Referenced by CXFA_Node::ExecuteBoolScript(), CXFA_Node::FindSplitPos(), CXFA_FFWidget::GetFWLApp(), CXFA_Node::ProcessValidate(), and XFA_ProcessEvent().

+ Here is the caller graph for this function:

◆ GetFocusNode()

CXFA_Node * CXFA_FFDocView::GetFocusNode ( ) const
inline

Definition at line 93 of file cxfa_ffdocview.h.

Referenced by CXFA_FFNotify::GetFocusWidgetNode().

+ Here is the caller graph for this function:

◆ GetFocusWidget()

CXFA_FFWidget * CXFA_FFDocView::GetFocusWidget ( ) const
inline

Definition at line 69 of file cxfa_ffdocview.h.

Referenced by CPDFXFA_Widget::OnChangedFocus().

+ Here is the caller graph for this function:

◆ GetLayoutProcessor()

CXFA_LayoutProcessor * CXFA_FFDocView::GetLayoutProcessor ( ) const

Definition at line 267 of file cxfa_ffdocview.cpp.

Referenced by CountPageViews(), DoLayout(), GetPageView(), CXFA_FFWidget::GetParent(), GetWidgetForNode(), RunLayout(), and StartLayout().

+ Here is the caller graph for this function:

◆ GetLayoutStatus()

LayoutStatus CXFA_FFDocView::GetLayoutStatus ( ) const
inline

Definition at line 58 of file cxfa_ffdocview.h.

Referenced by CXFA_FFNotify::GetLayoutStatus(), CXFA_FFNotify::OnChildAdded(), CXFA_FFNotify::OnChildRemoved(), CXFA_FFNotify::OnLayoutItemAdded(), CXFA_FFNotify::OnValueChanging(), and CXFA_Node::ProcessValidate().

+ Here is the caller graph for this function:

◆ GetPageView()

CXFA_FFPageView * CXFA_FFDocView::GetPageView ( int32_t nIndex) const

Definition at line 258 of file cxfa_ffdocview.cpp.

References GetLayoutProcessor(), CXFA_LayoutProcessor::GetPage(), and CXFA_ViewLayoutItem::GetPageView().

Referenced by CPDFXFA_Page::GetXFAPageView(), and CXFA_FFNotify::OnLayoutItemAdded().

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

◆ GetRootSubform()

CXFA_Node * CXFA_FFDocView::GetRootSubform ( )

Definition at line 724 of file cxfa_ffdocview.cpp.

Referenced by ResetNode(), CPDFXFA_Context::SendPostSaveToXFADoc(), and CPDFXFA_Context::SendPreSaveToXFADoc().

+ Here is the caller graph for this function:

◆ GetWidgetByName()

CXFA_FFWidget * CXFA_FFDocView::GetWidgetByName ( const WideString & wsName,
CXFA_FFWidget * pRefWidget )

Definition at line 458 of file cxfa_ffdocview.cpp.

References CFXJSE_Engine::EventParamScope, CXFA_FFWidget::GetNode(), GetWidgetForNode(), CXFA_Node::IsWidgetReady(), and fxcrt::operator+().

+ Here is the call graph for this function:

◆ GetWidgetForNode()

CXFA_FFWidget * CXFA_FFDocView::GetWidgetForNode ( CXFA_Node * node)

Definition at line 313 of file cxfa_ffdocview.cpp.

References GetFFWidget(), CXFA_LayoutProcessor::GetLayoutItem(), GetLayoutProcessor(), and ToContentLayoutItem().

Referenced by GetWidgetByName(), SetFocusNode(), and UpdateUIDisplay().

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

◆ GetWidgetHandler()

CXFA_FFWidgetHandler * CXFA_FFDocView::GetWidgetHandler ( )

Definition at line 318 of file cxfa_ffdocview.cpp.

Referenced by CPDFXFA_Page::DrawFocusAnnot(), CXFA_FFNotify::HandleWidgetEvent(), CPDFXFA_Page::HasFormFieldAtPoint(), CPDFXFA_Context::SendPostSaveToXFADoc(), and CPDFXFA_Context::SendPreSaveToXFADoc().

+ Here is the caller graph for this function:

◆ InLayoutStatus()

bool CXFA_FFDocView::InLayoutStatus ( ) const
inline

Definition at line 57 of file cxfa_ffdocview.h.

Referenced by CXFA_FFNotify::OnChildAdded(), and CXFA_FFNotify::OnChildRemoved().

+ Here is the caller graph for this function:

◆ InvalidateRect()

void CXFA_FFDocView::InvalidateRect ( CXFA_FFPageView * pPageView,
const CFX_RectF & rtInvalidate )

Definition at line 493 of file cxfa_ffdocview.cpp.

◆ LockUpdate()

void CXFA_FFDocView::LockUpdate ( )
inline

Definition at line 77 of file cxfa_ffdocview.h.

Referenced by RunLayout(), and UpdateDocView().

+ Here is the caller graph for this function:

◆ OnPageViewEvent()

void CXFA_FFDocView::OnPageViewEvent ( CXFA_ViewLayoutItem * pSender,
CXFA_FFDoc::PageViewEvent eEvent )

Definition at line 487 of file cxfa_ffdocview.cpp.

References CXFA_ViewLayoutItem::GetPageView().

Referenced by CXFA_FFNotify::OnPageViewEvent().

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

◆ ProcessValueChanged()

void CXFA_FFDocView::ProcessValueChanged ( CXFA_Node * node)

Definition at line 610 of file cxfa_ffdocview.cpp.

References AddCalculateNode(), and AddValidateNode().

+ Here is the call graph for this function:

◆ ResetNode()

void CXFA_FFDocView::ResetNode ( CXFA_Node * pNode)

Definition at line 287 of file cxfa_ffdocview.cpp.

References CXFA_ReadyNodeIterator::CXFA_ReadyNodeIterator(), CXFA_Object::GetElementType(), GetRootSubform(), CXFA_ReadyNodeIterator::MoveToNext(), and CXFA_ReadyNodeIterator::SkipTree().

Referenced by CXFA_FFNotify::ResetData().

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

◆ RunDocClose()

void CXFA_FFDocView::RunDocClose ( )

Definition at line 541 of file cxfa_ffdocview.cpp.

References ExecEventActivityByDeepFirst(), and XFA_EVENT_DocClose.

+ Here is the call graph for this function:

◆ RunLayout()

bool CXFA_FFDocView::RunLayout ( )

Definition at line 498 of file cxfa_ffdocview.cpp.

References CXFA_LayoutProcessor::DoLayout(), GetLayoutProcessor(), CXFA_LayoutProcessor::IncrementLayout(), LockUpdate(), CXFA_LayoutProcessor::StartLayout(), and UnlockUpdate().

Referenced by StopLayout(), and UpdateDocView().

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

◆ SetChangeMark()

void CXFA_FFDocView::SetChangeMark ( )

Definition at line 717 of file cxfa_ffdocview.cpp.

References kEnd.

Referenced by CXFA_FFNotify::OnValueChanged().

+ Here is the caller graph for this function:

◆ SetFocus()

bool CXFA_FFDocView::SetFocus ( CXFA_FFWidget * pNewFocus)

Definition at line 326 of file cxfa_ffdocview.cpp.

References CXFA_FFWidget::GetLayoutItem(), CXFA_FFWidget::GetNode(), CXFA_FFWidget::IsLoaded(), kFocused, kVisible, CXFA_FFWidget::LoadWidget(), and CXFA_ContentLayoutItem::TestStatusBits().

Referenced by CPDFXFA_Widget::OnChangedFocus(), CPDFXFA_Widget::OnKillFocus(), and SetFocusNode().

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

◆ SetFocusNode()

void CXFA_FFDocView::SetFocusNode ( CXFA_Node * pNode)

Definition at line 365 of file cxfa_ffdocview.cpp.

References GetWidgetForNode(), kEnd, and SetFocus().

Referenced by CXFA_FFNotify::SetFocusWidgetNode().

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

◆ SetLayoutEvent()

void CXFA_FFDocView::SetLayoutEvent ( )
inline

Definition at line 56 of file cxfa_ffdocview.h.

◆ StartLayout()

int32_t CXFA_FFDocView::StartLayout ( )

Definition at line 111 of file cxfa_ffdocview.cpp.

References ExecEventActivityByDeepFirst(), GetLayoutProcessor(), kStart, CXFA_LayoutProcessor::StartLayout(), and XFA_EVENT_Ready.

+ Here is the call graph for this function:

◆ StopLayout()

void CXFA_FFDocView::StopLayout ( )

Definition at line 143 of file cxfa_ffdocview.cpp.

References ExecEventActivityByDeepFirst(), kEnd, RunLayout(), XFA_EVENT_DocReady, and XFA_EVENT_Ready.

+ Here is the call graph for this function:

◆ Trace()

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

Definition at line 93 of file cxfa_ffdocview.cpp.

◆ UnlockUpdate()

void CXFA_FFDocView::UnlockUpdate ( )
inline

Definition at line 78 of file cxfa_ffdocview.h.

Referenced by RunLayout(), and UpdateDocView().

+ Here is the caller graph for this function:

◆ UpdateDocView()

void CXFA_FFDocView::UpdateDocView ( )

Definition at line 211 of file cxfa_ffdocview.cpp.

References ExecEventActivityByDeepFirst(), LockUpdate(), RunLayout(), UnlockUpdate(), and XFA_EVENT_Ready.

Referenced by CPDFXFA_Context::SendPostSaveToXFADoc(), and CPDFXFA_Context::SendPreSaveToXFADoc().

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

◆ UpdateUIDisplay()

void CXFA_FFDocView::UpdateUIDisplay ( CXFA_Node * pNode,
CXFA_FFWidget * pExcept )

Definition at line 238 of file cxfa_ffdocview.cpp.

References CXFA_Node::GetFFWidgetType(), CXFA_FFWidget::GetNextFFWidget(), GetWidgetForNode(), CXFA_FFWidget::InvalidateRect(), CXFA_FFWidget::IsFocused(), CXFA_FFWidget::IsLoaded(), kCheckButton, and CXFA_FFWidget::UpdateFWLData().

Referenced by CXFA_Node::ProcessCalculate().

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

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_FFDocView::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 46 of file cxfa_ffdocview.h.


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