7#include "xfa/fxfa/layout/cxfa_layoutitem.h"
9#include "fxjs/xfa/cjx_object.h"
10#include "xfa/fxfa/cxfa_ffnotify.h"
11#include "xfa/fxfa/layout/cxfa_contentlayoutitem.h"
12#include "xfa/fxfa/layout/cxfa_layoutprocessor.h"
13#include "xfa/fxfa/layout/cxfa_viewlayoutitem.h"
14#include "xfa/fxfa/parser/cxfa_margin.h"
15#include "xfa/fxfa/parser/cxfa_measurement.h"
16#include "xfa/fxfa/parser/cxfa_node.h"
33 pLayoutItem->RemoveSelfIfParented();
45 auto* pJSObj = m_pFormNode->JSObject();
46 if (pJSObj && pJSObj->GetLayoutItem() ==
this)
47 pJSObj->SetLayoutItem(
nullptr);
51 GCedTreeNode<CXFA_LayoutItem>::Trace(visitor);
52 visitor->Trace(m_pFormNode);
71 ?
static_cast<
const CXFA_ContentLayoutItem*>(
this)
77 pCurNode = pCurNode->GetParent()) {
78 if (pCurNode->m_pFormNode->GetElementType() ==
XFA_Element::PageArea)
CXFA_FFNotify * GetNotify() const
void OnPageViewEvent(CXFA_ViewLayoutItem *pSender, CXFA_FFDoc::PageViewEvent eEvent)
void OnLayoutItemRemoving(CXFA_LayoutProcessor *pLayout, CXFA_LayoutItem *pSender)
bool IsContentLayoutItem() const
const CXFA_ViewLayoutItem * GetPage() const
CXFA_ViewLayoutItem * AsViewLayoutItem()
bool IsViewLayoutItem() const
void SetFormNode(CXFA_Node *pNode)
~CXFA_LayoutItem() override
CXFA_ContentLayoutItem * AsContentLayoutItem()
CXFA_Node * GetFormNode() const
CXFA_LayoutItem(CXFA_Node *pNode, ItemType type)
const CXFA_ContentLayoutItem * AsContentLayoutItem() const
void Trace(cppgc::Visitor *visitor) const override
const CXFA_ViewLayoutItem * AsViewLayoutItem() const
static CXFA_LayoutProcessor * FromDocument(const CXFA_Document *pXFADoc)
XFA_Element GetElementType() const
CXFA_Document * GetDocument() const
CXFA_ViewLayoutItem * ToViewLayoutItem(CXFA_LayoutItem *item)
void XFA_ReleaseLayoutItem(CXFA_LayoutItem *pLayoutItem)