7#include "xfa/fxfa/layout/cxfa_viewlayoutitem.h"
9#include "fxjs/xfa/cjx_object.h"
10#include "xfa/fxfa/cxfa_ffpageview.h"
11#include "xfa/fxfa/layout/cxfa_layoutprocessor.h"
12#include "xfa/fxfa/layout/cxfa_viewlayoutprocessor.h"
13#include "xfa/fxfa/parser/cxfa_measurement.h"
14#include "xfa/fxfa/parser/cxfa_medium.h"
15#include "xfa/fxfa/parser/cxfa_node.h"
17CXFA_ViewLayoutItem::CXFA_ViewLayoutItem(
CXFA_Node* pNode,
18 CXFA_FFPageView* pPageView)
21 m_pFFPageView->SetLayoutItem(
this);
26void CXFA_ViewLayoutItem::
Trace(
cppgc::Visitor* visitor)
const {
27 CXFA_LayoutItem::Trace(visitor);
28 visitor->Trace(m_pOldSubform);
29 visitor->Trace(m_pFFPageView);
32CXFA_LayoutProcessor* CXFA_ViewLayoutItem::
GetLayout()
const {
39 return pLayout->GetLayoutPageMgr()->GetPageIndex(
this);
44 CXFA_Medium* pMedium =
52 if (pMedium->JSObject()->GetEnum(
XFA_Attribute::Orientation) ==
54 size = CFX_SizeF(size.height, size.width);
64 m_pOldSubform = pSubform;
CXFA_Node * GetFormNode() const
CXFA_LayoutItem(CXFA_Node *pNode, ItemType type)
static CXFA_LayoutProcessor * FromDocument(const CXFA_Document *pXFADoc)
~CXFA_ViewLayoutItem() override
CXFA_Node * GetMasterPage() const
CFX_SizeF GetPageSize() const
void SetOldSubform(CXFA_Node *pSubform)
CXFA_LayoutProcessor * GetLayout() const
int32_t GetPageIndex() const
void Trace(cppgc::Visitor *visitor) const override