summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cscript_datawindow.h7
-rw-r--r--xfa/fxfa/parser/cscript_eventpseudomodel.cpp4
-rw-r--r--xfa/fxfa/parser/cscript_eventpseudomodel.h7
-rw-r--r--xfa/fxfa/parser/cscript_hostpseudomodel.cpp3
-rw-r--r--xfa/fxfa/parser/cscript_hostpseudomodel.h5
-rw-r--r--xfa/fxfa/parser/cscript_layoutpseudomodel.cpp3
-rw-r--r--xfa/fxfa/parser/cscript_layoutpseudomodel.h7
-rw-r--r--xfa/fxfa/parser/cscript_logpseudomodel.cpp1
-rw-r--r--xfa/fxfa/parser/cscript_logpseudomodel.h7
-rw-r--r--xfa/fxfa/parser/cscript_signaturepseudomodel.cpp3
-rw-r--r--xfa/fxfa/parser/cscript_signaturepseudomodel.h7
-rw-r--r--xfa/fxfa/parser/cxfa_document.cpp1
12 files changed, 19 insertions, 36 deletions
diff --git a/xfa/fxfa/parser/cscript_datawindow.h b/xfa/fxfa/parser/cscript_datawindow.h
index 819e8fe601..85a0a935e8 100644
--- a/xfa/fxfa/parser/cscript_datawindow.h
+++ b/xfa/fxfa/parser/cscript_datawindow.h
@@ -7,17 +7,14 @@
#ifndef XFA_FXFA_PARSER_CSCRIPT_DATAWINDOW_H_
#define XFA_FXFA_PARSER_CSCRIPT_DATAWINDOW_H_
-#include "fxjs/xfa/cjx_datawindow.h"
#include "xfa/fxfa/parser/cxfa_object.h"
+class CXFA_Document;
+
class CScript_DataWindow : public CXFA_Object {
public:
explicit CScript_DataWindow(CXFA_Document* pDocument);
~CScript_DataWindow() override;
-
- CJX_DataWindow* JSDataWindow() {
- return static_cast<CJX_DataWindow*>(JSObject());
- }
};
#endif // XFA_FXFA_PARSER_CSCRIPT_DATAWINDOW_H_
diff --git a/xfa/fxfa/parser/cscript_eventpseudomodel.cpp b/xfa/fxfa/parser/cscript_eventpseudomodel.cpp
index da7fcb45b8..ecab6cf512 100644
--- a/xfa/fxfa/parser/cscript_eventpseudomodel.cpp
+++ b/xfa/fxfa/parser/cscript_eventpseudomodel.cpp
@@ -6,7 +6,7 @@
#include "xfa/fxfa/parser/cscript_eventpseudomodel.h"
-#include "fxjs/xfa/cjx_object.h"
+#include "fxjs/xfa/cjx_eventpseudomodel.h"
#include "third_party/base/ptr_util.h"
CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument)
@@ -16,4 +16,4 @@ CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument)
WideStringView(L"eventPseudoModel"),
pdfium::MakeUnique<CJX_EventPseudoModel>(this)) {}
-CScript_EventPseudoModel::~CScript_EventPseudoModel() {}
+CScript_EventPseudoModel::~CScript_EventPseudoModel() = default;
diff --git a/xfa/fxfa/parser/cscript_eventpseudomodel.h b/xfa/fxfa/parser/cscript_eventpseudomodel.h
index efb4df0188..22957f3c81 100644
--- a/xfa/fxfa/parser/cscript_eventpseudomodel.h
+++ b/xfa/fxfa/parser/cscript_eventpseudomodel.h
@@ -7,17 +7,14 @@
#ifndef XFA_FXFA_PARSER_CSCRIPT_EVENTPSEUDOMODEL_H_
#define XFA_FXFA_PARSER_CSCRIPT_EVENTPSEUDOMODEL_H_
-#include "fxjs/xfa/cjx_eventpseudomodel.h"
#include "xfa/fxfa/parser/cxfa_object.h"
+class CXFA_Document;
+
class CScript_EventPseudoModel : public CXFA_Object {
public:
explicit CScript_EventPseudoModel(CXFA_Document* pDocument);
~CScript_EventPseudoModel() override;
-
- CJX_EventPseudoModel* JSEventPseudoModel() {
- return static_cast<CJX_EventPseudoModel*>(JSObject());
- }
};
#endif // XFA_FXFA_PARSER_CSCRIPT_EVENTPSEUDOMODEL_H_
diff --git a/xfa/fxfa/parser/cscript_hostpseudomodel.cpp b/xfa/fxfa/parser/cscript_hostpseudomodel.cpp
index 8122aa32f7..75701bf3e8 100644
--- a/xfa/fxfa/parser/cscript_hostpseudomodel.cpp
+++ b/xfa/fxfa/parser/cscript_hostpseudomodel.cpp
@@ -6,6 +6,7 @@
#include "xfa/fxfa/parser/cscript_hostpseudomodel.h"
+#include "fxjs/xfa/cjx_hostpseudomodel.h"
#include "third_party/base/ptr_util.h"
CScript_HostPseudoModel::CScript_HostPseudoModel(CXFA_Document* pDocument)
@@ -15,4 +16,4 @@ CScript_HostPseudoModel::CScript_HostPseudoModel(CXFA_Document* pDocument)
WideStringView(L"hostPseudoModel"),
pdfium::MakeUnique<CJX_HostPseudoModel>(this)) {}
-CScript_HostPseudoModel::~CScript_HostPseudoModel() {}
+CScript_HostPseudoModel::~CScript_HostPseudoModel() = default;
diff --git a/xfa/fxfa/parser/cscript_hostpseudomodel.h b/xfa/fxfa/parser/cscript_hostpseudomodel.h
index 7e4a37d4d5..8fb06c5e9c 100644
--- a/xfa/fxfa/parser/cscript_hostpseudomodel.h
+++ b/xfa/fxfa/parser/cscript_hostpseudomodel.h
@@ -7,7 +7,6 @@
#ifndef XFA_FXFA_PARSER_CSCRIPT_HOSTPSEUDOMODEL_H_
#define XFA_FXFA_PARSER_CSCRIPT_HOSTPSEUDOMODEL_H_
-#include "fxjs/xfa/cjx_hostpseudomodel.h"
#include "xfa/fxfa/parser/cxfa_object.h"
class CXFA_Document;
@@ -16,10 +15,6 @@ class CScript_HostPseudoModel : public CXFA_Object {
public:
explicit CScript_HostPseudoModel(CXFA_Document* pDocument);
~CScript_HostPseudoModel() override;
-
- CJX_HostPseudoModel* JSHostPseudoModel() {
- return static_cast<CJX_HostPseudoModel*>(JSObject());
- }
};
#endif // XFA_FXFA_PARSER_CSCRIPT_HOSTPSEUDOMODEL_H_
diff --git a/xfa/fxfa/parser/cscript_layoutpseudomodel.cpp b/xfa/fxfa/parser/cscript_layoutpseudomodel.cpp
index 73033d5bea..4e0a4a30ea 100644
--- a/xfa/fxfa/parser/cscript_layoutpseudomodel.cpp
+++ b/xfa/fxfa/parser/cscript_layoutpseudomodel.cpp
@@ -6,6 +6,7 @@
#include "xfa/fxfa/parser/cscript_layoutpseudomodel.h"
+#include "fxjs/xfa/cjx_layoutpseudomodel.h"
#include "third_party/base/ptr_util.h"
CScript_LayoutPseudoModel::CScript_LayoutPseudoModel(CXFA_Document* pDocument)
@@ -15,4 +16,4 @@ CScript_LayoutPseudoModel::CScript_LayoutPseudoModel(CXFA_Document* pDocument)
WideStringView(L"layoutPseudoModel"),
pdfium::MakeUnique<CJX_LayoutPseudoModel>(this)) {}
-CScript_LayoutPseudoModel::~CScript_LayoutPseudoModel() {}
+CScript_LayoutPseudoModel::~CScript_LayoutPseudoModel() = default;
diff --git a/xfa/fxfa/parser/cscript_layoutpseudomodel.h b/xfa/fxfa/parser/cscript_layoutpseudomodel.h
index d76013a06c..0b49505836 100644
--- a/xfa/fxfa/parser/cscript_layoutpseudomodel.h
+++ b/xfa/fxfa/parser/cscript_layoutpseudomodel.h
@@ -7,19 +7,14 @@
#ifndef XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_
#define XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_
-#include "fxjs/xfa/cjx_layoutpseudomodel.h"
#include "xfa/fxfa/parser/cxfa_object.h"
-class CXFA_LayoutProcessor;
+class CXFA_Document;
class CScript_LayoutPseudoModel : public CXFA_Object {
public:
explicit CScript_LayoutPseudoModel(CXFA_Document* pDocument);
~CScript_LayoutPseudoModel() override;
-
- CJX_LayoutPseudoModel* JSLayoutPseudoModel() {
- return static_cast<CJX_LayoutPseudoModel*>(JSObject());
- }
};
#endif // XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_
diff --git a/xfa/fxfa/parser/cscript_logpseudomodel.cpp b/xfa/fxfa/parser/cscript_logpseudomodel.cpp
index 1c2d80204c..d99651ca6e 100644
--- a/xfa/fxfa/parser/cscript_logpseudomodel.cpp
+++ b/xfa/fxfa/parser/cscript_logpseudomodel.cpp
@@ -6,6 +6,7 @@
#include "xfa/fxfa/parser/cscript_logpseudomodel.h"
+#include "fxjs/xfa/cjx_logpseudomodel.h"
#include "third_party/base/ptr_util.h"
CScript_LogPseudoModel::CScript_LogPseudoModel(CXFA_Document* pDocument)
diff --git a/xfa/fxfa/parser/cscript_logpseudomodel.h b/xfa/fxfa/parser/cscript_logpseudomodel.h
index 9344f203b3..e4a33f4aae 100644
--- a/xfa/fxfa/parser/cscript_logpseudomodel.h
+++ b/xfa/fxfa/parser/cscript_logpseudomodel.h
@@ -7,17 +7,14 @@
#ifndef XFA_FXFA_PARSER_CSCRIPT_LOGPSEUDOMODEL_H_
#define XFA_FXFA_PARSER_CSCRIPT_LOGPSEUDOMODEL_H_
-#include "fxjs/xfa/cjx_logpseudomodel.h"
#include "xfa/fxfa/parser/cxfa_object.h"
+class CXFA_Document;
+
class CScript_LogPseudoModel : public CXFA_Object {
public:
explicit CScript_LogPseudoModel(CXFA_Document* pDocument);
~CScript_LogPseudoModel() override;
-
- CJX_LogPseudoModel* JSLogPseudoModel() {
- return static_cast<CJX_LogPseudoModel*>(JSObject());
- }
};
#endif // XFA_FXFA_PARSER_CSCRIPT_LOGPSEUDOMODEL_H_
diff --git a/xfa/fxfa/parser/cscript_signaturepseudomodel.cpp b/xfa/fxfa/parser/cscript_signaturepseudomodel.cpp
index c5f4e6425f..3a83c8e10f 100644
--- a/xfa/fxfa/parser/cscript_signaturepseudomodel.cpp
+++ b/xfa/fxfa/parser/cscript_signaturepseudomodel.cpp
@@ -6,6 +6,7 @@
#include "xfa/fxfa/parser/cscript_signaturepseudomodel.h"
+#include "fxjs/xfa/cjx_signaturepseudomodel.h"
#include "third_party/base/ptr_util.h"
CScript_SignaturePseudoModel::CScript_SignaturePseudoModel(
@@ -16,4 +17,4 @@ CScript_SignaturePseudoModel::CScript_SignaturePseudoModel(
WideStringView(L"signaturePseudoModel"),
pdfium::MakeUnique<CJX_SignaturePseudoModel>(this)) {}
-CScript_SignaturePseudoModel::~CScript_SignaturePseudoModel() {}
+CScript_SignaturePseudoModel::~CScript_SignaturePseudoModel() = default;
diff --git a/xfa/fxfa/parser/cscript_signaturepseudomodel.h b/xfa/fxfa/parser/cscript_signaturepseudomodel.h
index 276c1df4ab..c2ecb2b606 100644
--- a/xfa/fxfa/parser/cscript_signaturepseudomodel.h
+++ b/xfa/fxfa/parser/cscript_signaturepseudomodel.h
@@ -7,17 +7,14 @@
#ifndef XFA_FXFA_PARSER_CSCRIPT_SIGNATUREPSEUDOMODEL_H_
#define XFA_FXFA_PARSER_CSCRIPT_SIGNATUREPSEUDOMODEL_H_
-#include "fxjs/xfa/cjx_signaturepseudomodel.h"
#include "xfa/fxfa/parser/cxfa_object.h"
+class CXFA_Document;
+
class CScript_SignaturePseudoModel : public CXFA_Object {
public:
explicit CScript_SignaturePseudoModel(CXFA_Document* pDocument);
~CScript_SignaturePseudoModel() override;
-
- CJX_SignaturePseudoModel* JSSignaturePseudoModel() {
- return static_cast<CJX_SignaturePseudoModel*>(JSObject());
- }
};
#endif // XFA_FXFA_PARSER_CSCRIPT_SIGNATUREPSEUDOMODEL_H_
diff --git a/xfa/fxfa/parser/cxfa_document.cpp b/xfa/fxfa/parser/cxfa_document.cpp
index a24bf2014f..5ed1d7f3ec 100644
--- a/xfa/fxfa/parser/cxfa_document.cpp
+++ b/xfa/fxfa/parser/cxfa_document.cpp
@@ -12,6 +12,7 @@
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/xml/cfx_xmldocument.h"
#include "fxjs/cfxjse_engine.h"
+#include "fxjs/xfa/cjx_object.h"
#include "third_party/base/compiler_specific.h"
#include "xfa/fxfa/cxfa_ffdoc.h"
#include "xfa/fxfa/cxfa_ffnotify.h"