7#ifndef FXJS_XFA_CJX_LAYOUTPSEUDOMODEL_H_
8#define FXJS_XFA_CJX_LAYOUTPSEUDOMODEL_H_
12#include "fxjs/xfa/cjx_object.h"
13#include "fxjs/xfa/jse_define.h"
14#include "third_party/base/containers/span.h"
16class CScript_LayoutPseudoModel;
17class CXFA_LayoutProcessor;
51 enum class HWXY { kH, kW, kX, kY };
53 explicit CJX_LayoutPseudoModel(CScript_LayoutPseudoModel* model);
55 using Type__ = CJX_LayoutPseudoModel;
64 pdfium::span<v8::Local<v8::Value>> params,
66 std::vector<CXFA_Node*> GetObjArray(CXFA_LayoutProcessor* pDocLayout,
68 const WideString& wsType,
71 pdfium::span<v8::Local<v8::Value>> params,
friend class EventParamScope
static CJS_Result Success()
static CJS_Result Failure(JSMessage id)
bool DynamicTypeIs(TypeTag eType) const override
~CJX_LayoutPseudoModel() override
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
CXFA_Document * GetDocument() const
virtual bool DynamicTypeIs(TypeTag eType) const
void ThrowException(v8::Isolate *pIsolate, const WideString &str) const
CXFA_ContentLayoutItem * GetNext() const
CFX_RectF GetRelativeRect() const
CXFA_ContentLayoutItem * GetLast()
CXFA_ContentLayoutItem * GetFirst()
CXFA_NodeOwner * GetNodeOwner()
CXFA_FFDocView::LayoutStatus GetLayoutStatus()
const CXFA_ViewLayoutItem * GetPage() const
CXFA_ContentLayoutItem * AsContentLayoutItem()
CXFA_Node * GetFormNode() const
CXFA_ViewLayoutItem * GetPage(int32_t index) const
static CXFA_LayoutProcessor * FromDocument(const CXFA_Document *pXFADoc)
void Set(float fValue, XFA_Unit eUnit)
float ToUnit(XFA_Unit eUnit) const
static XFA_Unit GetUnitFromString(WideStringView wsUnit)
void PersistList(CXFA_List *list)
XFA_Element GetElementType() const
CXFA_Node * GetMasterPage() const
static WideString FromASCII(ByteStringView str)
bool EqualsASCII(ByteStringView that) const
int FXSYS_roundf(float f)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
#define JSE_PROP(prop_name)
#define JSE_METHOD(method_name)