Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cjx_occur.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"fxjs/xfa/cjx_occur.h"
8
9
#
include
"fxjs/fxv8.h"
10
#
include
"fxjs/xfa/cfxjse_value.h"
11
#
include
"v8/include/v8-primitive.h"
12
#
include
"xfa/fxfa/parser/cxfa_occur.h"
13
14
CJX_Occur::CJX_Occur(CXFA_Occur* node) :
CJX_Node
(node) {}
15
16
CJX_Occur::~
CJX_Occur
() =
default
;
17
18
bool
CJX_Occur::
DynamicTypeIs
(
TypeTag
eType)
const
{
19
return
eType == static_type__ || ParentType__
::
DynamicTypeIs
(eType);
20
}
21
22
void
CJX_Occur::max(
v8
::Isolate* pIsolate,
23
v8::Local<v8::Value>* pValue,
24
bool
bSetting,
25
XFA_Attribute
eAttribute) {
26
CXFA_Occur* occur =
static_cast
<CXFA_Occur*>(
GetXFANode
());
27
if
(!bSetting) {
28
*pValue = fxv8::NewNumberHelper(pIsolate, occur
->
GetMax
(
)
);
29
return
;
30
}
31
occur
->
SetMax
(
fxv8
::
ReentrantToInt32Helper(pIsolate, *pValue)
)
;
32
}
33
34
// NOLINTNEXTLINE(build/include_what_you_use)
35
void
CJX_Occur::min(
v8
::Isolate* pIsolate,
36
v8::Local<v8::Value>* pValue,
37
bool
bSetting,
38
XFA_Attribute
eAttribute) {
39
CXFA_Occur* occur =
static_cast
<CXFA_Occur*>(
GetXFANode
());
40
if
(!bSetting) {
41
*pValue = fxv8::NewNumberHelper(pIsolate, occur
->
GetMin
(
)
);
42
return
;
43
}
44
occur
->
SetMin
(
fxv8
::
ReentrantToInt32Helper(pIsolate, *pValue)
)
;
45
}
CJX_Node
Definition
cjx_node.h:17
CJX_Node::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_node.cpp:112
CJX_Object::TypeTag
TypeTag
Definition
cjx_object.h:49
CJX_Object::GetXFANode
CXFA_Node * GetXFANode() const
Definition
cjx_object.cpp:136
CJX_Occur::~CJX_Occur
~CJX_Occur() override
CJX_Occur::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_occur.cpp:18
CXFA_Occur::SetMax
void SetMax(int32_t iMax)
Definition
cxfa_occur.cpp:63
CXFA_Occur::GetMax
int32_t GetMax()
Definition
cxfa_occur.cpp:43
CXFA_Occur::SetMin
void SetMin(int32_t iMin)
Definition
cxfa_occur.cpp:74
CXFA_Occur::GetMin
int32_t GetMin()
Definition
cxfa_occur.cpp:48
XFA_Attribute
XFA_Attribute
Definition
fxfa_basic.h:67
v8
Definition
fxv8_unittest.h:15
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
xfa
cjx_occur.cpp
Generated on
for Qt by
1.18.0