Home
last modified time | relevance | path

Searched refs:JSObject (Results 1 – 25 of 88) sorted by relevance

1234

/external/pdfium/xfa/fxfa/parser/
Dcxfa_validate.cpp59 return JSObject()->GetEnum(XFA_Attribute::FormatTest); in GetFormatTest()
65 JSObject()->SetEnum(XFA_Attribute::NullTest, in SetNullTest()
70 return JSObject()->GetEnum(XFA_Attribute::NullTest); in GetNullTest()
74 return JSObject()->GetEnum(XFA_Attribute::ScriptTest); in GetScriptTest()
79 JSObject()->GetProperty<CXFA_Message>(0, XFA_Element::Message); in GetMessageText()
88 WideString wsName = pItemNode->JSObject()->GetCData(XFA_Attribute::Name); in GetMessageText()
90 return pItemNode->JSObject()->GetContent(false); in GetMessageText()
122 JSObject()->GetOrCreateProperty<CXFA_Message>(0, XFA_Element::Message); in SetMessageText()
131 WideString wsName = pItemNode->JSObject()->GetCData(XFA_Attribute::Name); in SetMessageText()
133 pItemNode->JSObject()->SetContent(wsMessage, wsMessage, false, false, in SetMessageText()
[all …]
Dcxfa_barcode.cpp62 return WideString(JSObject()->GetCData(XFA_Attribute::Type)); in GetBarcodeType()
66 return JSObject()->TryCData(XFA_Attribute::CharEncoding, true); in GetCharEncoding()
71 JSObject()->TryEnum(XFA_Attribute::Checksum, true); in GetChecksum()
91 JSObject()->TryCData(XFA_Attribute::DataLength, true); in GetDataLength()
100 JSObject()->TryCData(XFA_Attribute::StartChar, true); in GetStartChar()
109 JSObject()->TryCData(XFA_Attribute::EndChar, true); in GetEndChar()
118 JSObject()->TryCData(XFA_Attribute::ErrorCorrectionLevel, true); in GetECLevel()
126 JSObject()->TryMeasure(XFA_Attribute::ModuleWidth, true); in GetModuleWidth()
135 JSObject()->TryMeasure(XFA_Attribute::ModuleHeight, true); in GetModuleHeight()
143 return JSObject()->TryBoolean(XFA_Attribute::PrintCheckDigit, true); in GetPrintChecksum()
[all …]
Dcxfa_font.cpp69 return JSObject()->GetMeasureInUnit(XFA_Attribute::BaselineShift, in GetBaselineShift()
74 WideString wsValue = JSObject()->GetCData(XFA_Attribute::FontHorizontalScale); in GetHorizontalScale()
80 WideString wsValue = JSObject()->GetCData(XFA_Attribute::FontVerticalScale); in GetVerticalScale()
86 WideString wsValue = JSObject()->GetCData(XFA_Attribute::LetterSpacing); in GetLetterSpacing()
94 return JSObject()->GetInteger(XFA_Attribute::LineThrough); in GetLineThrough()
98 return JSObject()->GetInteger(XFA_Attribute::Underline); in GetUnderline()
102 return JSObject() in GetUnderlinePeriod()
108 return JSObject()->GetMeasureInUnit(XFA_Attribute::Size, XFA_Unit::Pt); in GetFontSize()
112 return JSObject()->GetCData(XFA_Attribute::Typeface); in GetTypeface()
116 return JSObject()->GetEnum(XFA_Attribute::Weight) == XFA_AttributeValue::Bold; in IsBold()
[all …]
Dcxfa_image.cpp42 return JSObject()->GetEnum(XFA_Attribute::Aspect); in GetAspect()
46 return JSObject()->TryCData(XFA_Attribute::ContentType, true).value_or(L""); in GetContentType()
50 return JSObject()->TryCData(XFA_Attribute::Href, true).value_or(L""); in GetHref()
55 JSObject()->GetEnum(XFA_Attribute::TransferEncoding)); in GetTransferEncoding()
59 return JSObject()->TryContent(false, true).value_or(L""); in GetContent()
63 JSObject()->SetCData(XFA_Attribute::ContentType, wsContentType, false, false); in SetContentType()
67 JSObject()->SetCData(XFA_Attribute::Href, wsHref, false, false); in SetHref()
71 JSObject()->SetEnum(XFA_Attribute::TransferEncoding, iTransferEncoding, in SetTransferEncoding()
Dcxfa_stroke.cpp84 XFA_AttributeValue presence = JSObject() in IsVisible()
91 return JSObject()->GetEnum(XFA_Attribute::Cap); in GetCapType()
95 return JSObject()->GetEnum(XFA_Attribute::Stroke); in GetStrokeType()
103 return JSObject()->GetMeasure(XFA_Attribute::Thickness); in GetMSThickness()
107 JSObject()->SetMeasure(XFA_Attribute::Thickness, msThinkness, false); in SetMSThickness()
116 pNode->JSObject()->GetCData(XFA_Attribute::Value).AsStringView()); in GetColor()
121 JSObject()->GetOrCreateProperty<CXFA_Color>(0, XFA_Element::Color); in SetColor()
130 pNode->JSObject()->SetCData(XFA_Attribute::Value, in SetColor()
136 return JSObject()->GetEnum(XFA_Attribute::Join); in GetJoinType()
140 return JSObject()->GetBoolean(XFA_Attribute::Inverted); in IsInverted()
[all …]
Dcxfa_para.cpp56 return JSObject() in GetHorizontalAlign()
62 return JSObject() in GetVerticalAlign()
68 return JSObject()->GetMeasureInUnit(XFA_Attribute::LineHeight, XFA_Unit::Pt); in GetLineHeight()
72 return JSObject()->GetMeasureInUnit(XFA_Attribute::MarginLeft, XFA_Unit::Pt); in GetMarginLeft()
76 return JSObject()->GetMeasureInUnit(XFA_Attribute::MarginRight, XFA_Unit::Pt); in GetMarginRight()
80 return JSObject()->GetMeasureInUnit(XFA_Attribute::SpaceAbove, XFA_Unit::Pt); in GetSpaceAbove()
84 return JSObject()->GetMeasureInUnit(XFA_Attribute::SpaceBelow, XFA_Unit::Pt); in GetSpaceBelow()
88 return JSObject()->GetMeasureInUnit(XFA_Attribute::TextIndent, XFA_Unit::Pt); in GetTextIndent()
Dcxfa_occur.cpp42 Optional<int32_t> max = JSObject()->TryInteger(XFA_Attribute::Max, true); in GetMax()
47 Optional<int32_t> min = JSObject()->TryInteger(XFA_Attribute::Min, true); in GetMin()
56 JSObject()->TryInteger(XFA_Attribute::Initial, false); in GetOccurInfo()
62 JSObject()->SetInteger(XFA_Attribute::Max, iMax, false); in SetMax()
67 JSObject()->SetInteger(XFA_Attribute::Min, iMin, false); in SetMax()
73 JSObject()->SetInteger(XFA_Attribute::Min, iMin, false); in SetMin()
78 JSObject()->SetInteger(XFA_Attribute::Max, iMax, false); in SetMin()
Dcxfa_document.cpp84 pValueNode->JSObject()->GetOrCreateProperty<CXFA_Node>(0, iType); in FormValueNode_CreateChild()
107 pChildNode->JSObject()->TryAttribute(XFA_Attribute::ContentType, in FormValueNode_SetChildContent()
119 pContentRawDataNode->JSObject()->SetCData(XFA_Attribute::Value, wsContent, in FormValueNode_SetChildContent()
126 pChildNode->JSObject()->SetCData(XFA_Attribute::Value, wsContent, false, in FormValueNode_SetChildContent()
188 pTemplateNode->JSObject()->GetCData(XFA_Attribute::Name); in CloneOrMergeInstanceManager()
224 L"_" + pTemplateNode->JSObject()->GetCData(XFA_Attribute::Name); in CloneOrMergeInstanceManager()
225 pNewNode->JSObject()->SetCData(XFA_Attribute::Name, wsInstMgrNodeName, false, in CloneOrMergeInstanceManager()
421 ? pTemplateNodeBind->JSObject()->GetEnum(XFA_Attribute::Match) in FindMatchingDataNode()
439 pCurTemplateNode->JSObject()->GetCData(XFA_Attribute::Name), in FindMatchingDataNode()
452 pCurTemplateNode->JSObject()->GetCData(XFA_Attribute::Name), in FindMatchingDataNode()
[all …]
Dcxfa_document_parser.cpp288 pXFAChild->JSObject()->SetCData(XFA_Attribute::Name, wsNodeStr, false, in ConstructXFANode()
292 pXFAChild->JSObject()->SetCData(XFA_Attribute::Value, wsChildValue, in ConstructXFANode()
359 pXFARootNode->JSObject()->SetCData(XFA_Attribute::Name, L"xfa", false, false); in ParseAsXDPPacket_XDP()
363 pXFARootNode->JSObject()->SetCData(XFA_Attribute::Uuid, it.second, false, in ParseAsXDPPacket_XDP()
366 pXFARootNode->JSObject()->SetCData(XFA_Attribute::TimeStamp, it.second, in ParseAsXDPPacket_XDP()
479 pNode->JSObject()->SetCData(XFA_Attribute::Name, packet.name, false, false); in ParseAsXDPPacket_Config()
498 pNode->JSObject()->SetCData(XFA_Attribute::Name, packet.name, false, false); in ParseAsXDPPacket_Template()
525 pNode->JSObject()->SetCData(XFA_Attribute::Name, packet.name, false, false); in ParseAsXDPPacket_Form()
534 pTemplateChosen->JSObject()->GetEnum(XFA_Attribute::RestoreState) != in ParseAsXDPPacket_Form()
556 pNode->JSObject()->SetCData(XFA_Attribute::Name, packet.name, false, false); in ParseAsXDPPacket_Data()
[all …]
Dcxfa_box.cpp80 return JSObject()->GetEnum(XFA_Attribute::Hand); in GetHand()
84 return JSObject() in GetPresence()
95 return JSObject()->GetOrCreateProperty<CXFA_Edge>(nIndex, in GetEdgeIfExists()
97 return JSObject()->GetProperty<CXFA_Edge>(nIndex, XFA_Element::Edge); in GetEdgeIfExists()
105 return JSObject()->GetBoolean(XFA_Attribute::Circular); in IsCircular()
109 return JSObject()->TryInteger(XFA_Attribute::StartAngle, false); in GetStartAngle()
113 return JSObject()->TryInteger(XFA_Attribute::SweepAngle, false); in GetSweepAngle()
117 return JSObject()->GetOrCreateProperty<CXFA_Fill>(0, XFA_Element::Fill); in GetOrCreateFillIfPossible()
143 JSObject()->GetOrCreateProperty<CXFA_Corner>(i, XFA_Element::Corner); in GetStrokesInternal()
145 corner = JSObject()->GetProperty<CXFA_Corner>(i, XFA_Element::Corner); in GetStrokesInternal()
[all …]
Dcxfa_submit.cpp45 return JSObject()->GetBoolean(XFA_Attribute::EmbedPDF); in IsSubmitEmbedPDF()
49 return JSObject()->GetEnum(XFA_Attribute::Format); in GetSubmitFormat()
53 return JSObject()->GetCData(XFA_Attribute::Target); in GetSubmitTarget()
57 return JSObject()->GetCData(XFA_Attribute::XdpContent); in GetSubmitXDPContent()
Dcxfa_margin.cpp59 return JSObject()->TryMeasureAsFloat(XFA_Attribute::LeftInset); in TryLeftInset()
63 return JSObject()->TryMeasureAsFloat(XFA_Attribute::TopInset); in TryTopInset()
67 return JSObject()->TryMeasureAsFloat(XFA_Attribute::RightInset); in TryRightInset()
71 return JSObject()->TryMeasureAsFloat(XFA_Attribute::BottomInset); in TryBottomInset()
Dcxfa_nodelocale.cpp49 ? m_pLocale->JSObject()->GetCData(XFA_Attribute::Name) in GetName()
78 return pSymbols ? pSymbols->JSObject()->GetContent(false) : WideString(); in GetDateTimeSymbols()
141 if (pChild->JSObject()->GetAttribute(XFA_Attribute::Name) == wsName) in GetNodeByName()
154 return pSymbol ? pSymbol->JSObject()->GetContent(false) : WideString(); in GetSymbol()
169 if (pNode->JSObject()->GetBoolean(XFA_Attribute::Abbr) == bAbbr) { in GetCalendarSymbol()
172 return pSymbol ? pSymbol->JSObject()->GetContent(false) : WideString(); in GetCalendarSymbol()
Dcxfa_fill.cpp55 return JSObject() in IsVisible()
63 JSObject()->GetOrCreateProperty<CXFA_Color>(0, XFA_Element::Color); in SetColor()
122 JSObject()->GetOrCreateProperty<CXFA_Stipple>(0, XFA_Element::Stipple); in DrawStipple()
132 JSObject()->GetOrCreateProperty<CXFA_Radial>(0, XFA_Element::Radial); in DrawRadial()
142 JSObject()->GetOrCreateProperty<CXFA_Linear>(0, XFA_Element::Linear); in DrawLinear()
152 JSObject()->GetOrCreateProperty<CXFA_Pattern>(0, XFA_Element::Pattern); in DrawPattern()
Dcxfa_caption.cpp50 auto value = JSObject()->TryEnum(XFA_Attribute::Presence, true); in IsVisible()
55 auto value = JSObject()->TryEnum(XFA_Attribute::Presence, true); in IsHidden()
60 auto value = JSObject()->TryEnum(XFA_Attribute::Placement, true); in GetPlacementType()
65 return JSObject()->GetMeasureInUnit(XFA_Attribute::Reserve, XFA_Unit::Pt); in GetReserve()
Dcxfa_node.cpp752 ws = pNode->JSObject()->GetCData(XFA_Attribute::Name); in GetNameExpressionSinglePath()
971 JSObject()->MergeAllData(pClone); in Clone()
976 WideString wsName = JSObject() in Clone()
982 WideString wsValue = JSObject()->GetCData(XFA_Attribute::Value); in Clone()
989 pClone->JSObject()->SetEnum(XFA_Attribute::Contains, in Clone()
1389 pLocaleNode->JSObject()->TryCData(XFA_Attribute::Locale, false); in GetLocaleName()
1404 pTopSubform->JSObject()->TryCData(XFA_Attribute::Locale, false); in GetLocaleName()
1418 auto layout = JSObject()->TryEnum(XFA_Attribute::Layout, true); in GetIntact()
1443 auto value = parent->JSObject()->TryEnum(XFA_Attribute::Layout, true); in GetIntact()
1455 JSObject()->TryMeasure(XFA_Attribute::H, false); in GetIntact()
[all …]
Dcxfa_binditems.cpp36 return JSObject()->GetCData(XFA_Attribute::LabelRef); in GetLabelRef()
40 return JSObject()->GetCData(XFA_Attribute::ValueRef); in GetValueRef()
44 return JSObject()->GetCData(XFA_Attribute::Ref); in GetRef()
Dxfa_utils.cpp117 pContentNode->JSObject()->TryContent(false, false); in ContentNodeNeedtoExport()
141 if (!bProto && !pNode->JSObject()->HasAttribute(eName)) in SaveAttribute()
144 Optional<WideString> value = pNode->JSObject()->TryAttribute(eName, false); in SaveAttribute()
191 pNode->JSObject()->TryAttribute(XFA_Attribute::ContentType, false); in RegenerateFormFile_Changed()
210 Optional<WideString> rawValue = pRawValueNode->JSObject()->TryAttribute( in RegenerateFormFile_Changed()
221 pGrandparentNode->JSObject()->GetCData(XFA_Attribute::Name); in RegenerateFormFile_Changed()
241 pRawValueNode->JSObject()->GetCData(XFA_Attribute::Value); in RegenerateFormFile_Changed()
249 WideString wsValue = pNode->JSObject()->GetCData(XFA_Attribute::Value); in RegenerateFormFile_Changed()
286 pNode->JSObject()->HasAttribute(XFA_Attribute::Name)) { in RegenerateFormFile_Changed()
364 Optional<WideString> templateNS = pTemplateRoot->JSObject()->TryNamespace(); in RecognizeXFAVersionNumber()
[all …]
Dcxfa_checkbutton.cpp51 return JSObject()->GetEnum(XFA_Attribute::Shape) == XFA_AttributeValue::Round; in IsRound()
55 return JSObject()->GetEnum(XFA_Attribute::Mark); in GetMark()
59 return JSObject()->GetBoolean(XFA_Attribute::AllowNeutral); in IsAllowNeutral()
Dcxfa_color.cpp41 Optional<WideString> val = JSObject()->TryCData(XFA_Attribute::Value, false); in GetValue()
46 Optional<WideString> val = JSObject()->TryCData(XFA_Attribute::Value, false); in GetValueOrDefault()
56 JSObject()->SetCData(XFA_Attribute::Value, in SetValue()
Dcxfa_script.cpp50 JSObject()->TryCData(XFA_Attribute::ContentType, false); in GetContentType()
61 return JSObject()->GetEnum(XFA_Attribute::RunAt); in GetRunAt()
65 return JSObject()->GetContent(false); in GetExpression()
/external/pdfium/xfa/fxfa/layout/
Dcxfa_viewlayoutprocessor.cpp111 pFormItem->JSObject()->GetCData(XFA_Attribute::Relevant); in GetRelevant()
141 ->JSObject() in SyncContainer()
261 WideString wsExpression = pTestScript->JSObject()->GetContent(false); in RunBreakTestScript()
319 const float fHeight = pContentAreaNode->JSObject()->GetMeasureInUnit( in ContentAreasFitInPageAreas()
357 m_pPageSetNode = pTemplateNode->JSObject()->GetOrCreateProperty<CXFA_PageSet>( in InitLayoutPage()
368 m_pPageSetNode->JSObject()->SetLayoutItem(m_pPageSetRootLayoutItem.Get()); in InitLayoutPage()
371 m_pPageSetNode->JSObject()->GetEnum(XFA_Attribute::Relation); in InitLayoutPage()
414 pContentArea->JSObject()->SetMeasure( in InitLayoutPage()
416 pContentArea->JSObject()->SetMeasure( in InitLayoutPage()
418 pContentArea->JSObject()->SetMeasure( in InitLayoutPage()
[all …]
Dcxfa_contentlayoutitem.cpp78 sPos += CFX_PointF(pMarginNode->JSObject()->GetMeasureInUnit( in GetRect()
80 pMarginNode->JSObject()->GetMeasureInUnit( in GetRect()
89 CFX_PointF(pLayoutItem->GetFormNode()->JSObject()->GetMeasureInUnit( in GetRect()
91 pLayoutItem->GetFormNode()->JSObject()->GetMeasureInUnit( in GetRect()
Dcxfa_contentlayoutprocessor.cpp96 pFormNode->JSObject()->TryMeasure(XFA_Attribute::W, false); in CalculateContainerSpecifiedSize()
103 pFormNode->JSObject()->TryMeasure(XFA_Attribute::H, false); in CalculateContainerSpecifiedSize()
112 pFormNode->JSObject()->TryMeasure(XFA_Attribute::MaxW, false); in CalculateContainerSpecifiedSize()
119 pFormNode->JSObject()->TryMeasure(XFA_Attribute::MaxH, false); in CalculateContainerSpecifiedSize()
142 pMarginNode->JSObject()->TryMeasure(XFA_Attribute::LeftInset, false); in CalculateContainerComponentSizeFromContentSize()
147 pMarginNode->JSObject()->TryMeasure(XFA_Attribute::RightInset, false); in CalculateContainerComponentSizeFromContentSize()
157 pMarginNode->JSObject()->TryMeasure(XFA_Attribute::TopInset, false); in CalculateContainerComponentSizeFromContentSize()
162 pMarginNode->JSObject()->TryMeasure(XFA_Attribute::BottomInset, in CalculateContainerComponentSizeFromContentSize()
176 inset.left = pMargin->JSObject()->GetMeasureInUnit(XFA_Attribute::LeftInset, in GetMarginInset()
178 inset.top = pMargin->JSObject()->GetMeasureInUnit(XFA_Attribute::TopInset, in GetMarginInset()
[all …]
Dcxfa_viewlayoutitem.cpp50 pMedium->JSObject()->GetMeasureInUnit(XFA_Attribute::Short, XFA_Unit::Pt), in GetPageSize()
51 pMedium->JSObject()->GetMeasureInUnit(XFA_Attribute::Long, XFA_Unit::Pt)); in GetPageSize()
52 if (pMedium->JSObject()->GetEnum(XFA_Attribute::Orientation) == in GetPageSize()

1234