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

#include <cxfa_layoutitem.h>

+ Inheritance diagram for CXFA_LayoutItem:
+ Collaboration diagram for CXFA_LayoutItem:

Public Member Functions

 ~CXFA_LayoutItem () override
 
void PreFinalize ()
 
void Trace (cppgc::Visitor *visitor) const override
 
bool IsViewLayoutItem () const
 
bool IsContentLayoutItem () const
 
CXFA_ViewLayoutItemAsViewLayoutItem ()
 
const CXFA_ViewLayoutItemAsViewLayoutItem () const
 
CXFA_ContentLayoutItemAsContentLayoutItem ()
 
const CXFA_ContentLayoutItemAsContentLayoutItem () const
 
const CXFA_ViewLayoutItemGetPage () const
 
CXFA_NodeGetFormNode () const
 
void SetFormNode (CXFA_Node *pNode)
 
- Public Member Functions inherited from fxjs::GCedTreeNode< T >
- Public Member Functions inherited from fxcrt::TreeNodeBase< T >
 TreeNodeBase ()=default
 
virtual ~TreeNodeBase ()=default
 
T * GetParent () const
 
T * GetFirstChild () const
 
T * GetLastChild () const
 
T * GetNextSibling () const
 
T * GetPrevSibling () const
 
bool HasChild (const T *child) const
 
T * GetNthChild (int32_t n)
 
void AppendFirstChild (T *child)
 
void AppendLastChild (T *child)
 
void InsertBefore (T *child, T *other)
 
void InsertAfter (T *child, T *other)
 
void RemoveChild (T *child)
 
void RemoveAllChildren ()
 
void RemoveSelfIfParented ()
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Protected Types

enum  ItemType { kViewItem , kContentItem }
 

Protected Member Functions

 CXFA_LayoutItem (CXFA_Node *pNode, ItemType type)
 
- Protected Member Functions inherited from fxjs::GCedTreeNode< T >
 GCedTreeNode ()=default
 
 GCedTreeNode (const GCedTreeNode &that)=delete
 
GCedTreeNodeoperator= (const GCedTreeNode &that)=delete
 

Detailed Description

Definition at line 20 of file cxfa_layoutitem.h.

Member Enumeration Documentation

◆ ItemType

enum CXFA_LayoutItem::ItemType
protected
Enumerator
kViewItem 
kContentItem 

Definition at line 44 of file cxfa_layoutitem.h.

Constructor & Destructor Documentation

◆ ~CXFA_LayoutItem()

CXFA_LayoutItem::~CXFA_LayoutItem ( )
overridedefault

◆ CXFA_LayoutItem()

CXFA_LayoutItem::CXFA_LayoutItem ( CXFA_Node * pNode,
ItemType type )
protected

Definition at line 36 of file cxfa_layoutitem.cpp.

References CXFA_LayoutItem().

Referenced by CXFA_LayoutItem().

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

Member Function Documentation

◆ AsContentLayoutItem() [1/2]

CXFA_ContentLayoutItem * CXFA_LayoutItem::AsContentLayoutItem ( )

Definition at line 64 of file cxfa_layoutitem.cpp.

References IsContentLayoutItem().

Referenced by CXFA_ContentLayoutItem::GetAbsoluteRect(), CXFA_ViewLayoutProcessor::SyncLayoutData(), and ToContentLayoutItem().

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

◆ AsContentLayoutItem() [2/2]

const CXFA_ContentLayoutItem * CXFA_LayoutItem::AsContentLayoutItem ( ) const

Definition at line 69 of file cxfa_layoutitem.cpp.

References IsContentLayoutItem().

+ Here is the call graph for this function:

◆ AsViewLayoutItem() [1/2]

CXFA_ViewLayoutItem * CXFA_LayoutItem::AsViewLayoutItem ( )

Definition at line 55 of file cxfa_layoutitem.cpp.

References IsViewLayoutItem().

Referenced by GetPage(), and ToViewLayoutItem().

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

◆ AsViewLayoutItem() [2/2]

const CXFA_ViewLayoutItem * CXFA_LayoutItem::AsViewLayoutItem ( ) const

Definition at line 59 of file cxfa_layoutitem.cpp.

References IsViewLayoutItem().

+ Here is the call graph for this function:

◆ GetFormNode()

◆ GetPage()

const CXFA_ViewLayoutItem * CXFA_LayoutItem::GetPage ( ) const

Definition at line 75 of file cxfa_layoutitem.cpp.

References AsViewLayoutItem().

+ Here is the call graph for this function:

◆ IsContentLayoutItem()

bool CXFA_LayoutItem::IsContentLayoutItem ( ) const
inline

Definition at line 33 of file cxfa_layoutitem.h.

References kContentItem.

Referenced by AsContentLayoutItem(), AsContentLayoutItem(), and CXFA_ContentLayoutProcessor::DoLayoutPageArea().

+ Here is the caller graph for this function:

◆ IsViewLayoutItem()

bool CXFA_LayoutItem::IsViewLayoutItem ( ) const
inline

Definition at line 32 of file cxfa_layoutitem.h.

References kViewItem.

Referenced by AsViewLayoutItem(), and AsViewLayoutItem().

+ Here is the caller graph for this function:

◆ PreFinalize()

void CXFA_LayoutItem::PreFinalize ( )

Definition at line 41 of file cxfa_layoutitem.cpp.

◆ SetFormNode()

void CXFA_LayoutItem::SetFormNode ( CXFA_Node * pNode)

Definition at line 84 of file cxfa_layoutitem.cpp.

◆ Trace()

void CXFA_LayoutItem::Trace ( cppgc::Visitor * visitor) const
overridevirtual

Reimplemented from fxjs::GCedTreeNode< T >.

Reimplemented in CXFA_ViewLayoutItem.

Definition at line 50 of file cxfa_layoutitem.cpp.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_LayoutItem::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 24 of file cxfa_layoutitem.h.


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