Home
last modified time | relevance | path

Searched refs:XFA_Unit (Results 1 – 18 of 18) sorted by relevance

/external/pdfium/xfa/fxfa/parser/
Dcxfa_measurement.cpp26 Set(-1, XFA_Unit::Unknown); in CXFA_Measurement()
29 CXFA_Measurement::CXFA_Measurement(float fValue, XFA_Unit eUnit) { in CXFA_Measurement()
36 m_eUnit = XFA_Unit::Unknown; in SetString()
44 XFA_Unit eUnit = GetUnitFromString( in SetString()
51 case XFA_Unit::Mm: in ToString()
53 case XFA_Unit::Pt: in ToString()
55 case XFA_Unit::In: in ToString()
57 case XFA_Unit::Cm: in ToString()
59 case XFA_Unit::Mp: in ToString()
61 case XFA_Unit::Pc: in ToString()
[all …]
Dcxfa_measurement.h18 CXFA_Measurement(float fValue, XFA_Unit eUnit);
20 static XFA_Unit GetUnitFromString(const WideStringView& wsUnit);
22 void Set(float fValue, XFA_Unit eUnit) { in Set()
27 XFA_Unit GetUnit() const { return m_eUnit; } in GetUnit()
31 float ToUnit(XFA_Unit eUnit) const;
35 bool ToUnitInternal(XFA_Unit eUnit, float* fValue) const;
38 XFA_Unit m_eUnit;
Dcxfa_para.cpp70 return JSObject()->GetMeasure(XFA_Attribute::LineHeight).ToUnit(XFA_Unit::Pt); in GetLineHeight()
74 return JSObject()->GetMeasure(XFA_Attribute::MarginLeft).ToUnit(XFA_Unit::Pt); in GetMarginLeft()
80 .ToUnit(XFA_Unit::Pt); in GetMarginRight()
84 return JSObject()->GetMeasure(XFA_Attribute::SpaceAbove).ToUnit(XFA_Unit::Pt); in GetSpaceAbove()
88 return JSObject()->GetMeasure(XFA_Attribute::SpaceBelow).ToUnit(XFA_Unit::Pt); in GetSpaceBelow()
92 return JSObject()->GetMeasure(XFA_Attribute::TextIndent).ToUnit(XFA_Unit::Pt); in GetTextIndent()
Dcxfa_font.cpp72 .ToUnit(XFA_Unit::Pt); in GetBaselineShift()
90 if (ms.GetUnit() == XFA_Unit::Em) in GetLetterSpacing()
92 return ms.ToUnit(XFA_Unit::Pt); in GetLetterSpacing()
110 return JSObject()->GetMeasure(XFA_Attribute::Size).ToUnit(XFA_Unit::Pt); in GetFontSize()
Dcxfa_layoutitem.cpp84 .ToUnit(XFA_Unit::Pt), in GetRect()
87 .ToUnit(XFA_Unit::Pt)); in GetRect()
96 .ToUnit(XFA_Unit::Pt), in GetRect()
99 .ToUnit(XFA_Unit::Pt)); in GetRect()
Dcxfa_itemlayoutprocessor.cpp99 containerSize.width = wValue->ToUnit(XFA_Unit::Pt); in CalculateContainerSpecifiedSize()
106 containerSize.height = hValue->ToUnit(XFA_Unit::Pt); in CalculateContainerSpecifiedSize()
115 containerSize.width = maxW->ToUnit(XFA_Unit::Pt); in CalculateContainerSpecifiedSize()
122 containerSize.height = maxH->ToUnit(XFA_Unit::Pt); in CalculateContainerSpecifiedSize()
145 componentSize.width += leftInset->ToUnit(XFA_Unit::Pt); in CalculateContainerComponentSizeFromContentSize()
150 componentSize.width += rightInset->ToUnit(XFA_Unit::Pt); in CalculateContainerComponentSizeFromContentSize()
160 componentSize.height += topInset->ToUnit(XFA_Unit::Pt); in CalculateContainerComponentSizeFromContentSize()
166 componentSize.height += bottomInset->ToUnit(XFA_Unit::Pt); in CalculateContainerComponentSizeFromContentSize()
190 .ToUnit(XFA_Unit::Pt); in RelocateTableRowCells()
193 .ToUnit(XFA_Unit::Pt); in RelocateTableRowCells()
[all …]
Dcxfa_containerlayoutitem.cpp39 .ToUnit(XFA_Unit::Pt), in GetPageSize()
42 .ToUnit(XFA_Unit::Pt)); in GetPageSize()
Dcxfa_stroke.cpp101 return GetMSThickness().ToUnit(XFA_Unit::Pt); in GetThickness()
148 .value_or(CXFA_Measurement(0, XFA_Unit::In)) in GetRadius()
149 .ToUnit(XFA_Unit::Pt); in GetRadius()
Dcxfa_layoutprocessor.cpp69 pFormNode->JSObject()->GetMeasure(XFA_Attribute::X).ToUnit(XFA_Unit::Pt); in DoLayout()
71 pFormNode->JSObject()->GetMeasure(XFA_Attribute::Y).ToUnit(XFA_Unit::Pt); in DoLayout()
Dcxfa_layoutpagemgr.cpp353 XFA_Attribute::X, CXFA_Measurement(0.25f, XFA_Unit::In), false); in InitLayoutPage()
355 XFA_Attribute::Y, CXFA_Measurement(0.25f, XFA_Unit::In), false); in InitLayoutPage()
357 XFA_Attribute::W, CXFA_Measurement(8.0f, XFA_Unit::In), false); in InitLayoutPage()
359 XFA_Attribute::H, CXFA_Measurement(10.5f, XFA_Unit::In), false); in InitLayoutPage()
372 XFA_Attribute::Short, CXFA_Measurement(8.5f, XFA_Unit::In), false); in InitLayoutPage()
374 XFA_Attribute::Long, CXFA_Measurement(11.0f, XFA_Unit::In), false); in InitLayoutPage()
496 .ToUnit(XFA_Unit::Pt); in GetAvailHeight()
705 .ToUnit(XFA_Unit::Pt) + in FinishPaginatedPageSets()
1544 .ToUnit(XFA_Unit::Pt); in GetNextAvailContentHeight()
1582 .ToUnit(XFA_Unit::Pt); in GetNextAvailContentHeight()
[all …]
Dcxfa_caption.cpp70 return JSObject()->GetMeasure(XFA_Attribute::Reserve).ToUnit(XFA_Unit::Pt); in GetReserve()
Dcxfa_node.cpp2147 return {static_cast<int32_t>(moduleWidthHeight->ToUnit(XFA_Unit::Pt))}; in GetBarcodeAttribute_ModuleWidth()
2157 return {static_cast<int32_t>(moduleWidthHeight->ToUnit(XFA_Unit::Pt))}; in GetBarcodeAttribute_ModuleHeight()
/external/pdfium/fxjs/xfa/
Dcjx_layoutpseudomodel.cpp110 measure.Set(rtRect.height, XFA_Unit::Pt); in HWXY()
113 measure.Set(rtRect.width, XFA_Unit::Pt); in HWXY()
116 measure.Set(rtRect.left, XFA_Unit::Pt); in HWXY()
119 measure.Set(rtRect.top, XFA_Unit::Pt); in HWXY()
Dcjx_object.cpp438 return {measure->ToUnit(XFA_Unit::Pt)}; in TryMeasureAsFloat()
1388 edge ? edge->GetMSThickness() : CXFA_Measurement(0.5, XFA_Unit::Pt); in Script_Som_BorderWidth()
/external/pdfium/xfa/fxfa/
Dcxfa_ffwidgethandler.cpp546 CXFA_Measurement(fInsets[0], XFA_Unit::Pt), in CreateMarginNode()
550 CXFA_Measurement(fInsets[1], XFA_Unit::Pt), in CreateMarginNode()
554 CXFA_Measurement(fInsets[2], XFA_Unit::Pt), in CreateMarginNode()
558 CXFA_Measurement(fInsets[3], XFA_Unit::Pt), in CreateMarginNode()
Dcxfa_textparser.cpp307 return CXFA_Measurement(wsValue.AsStringView()).ToUnit(XFA_Unit::Pt); in GetTabInterval()
612 float fPos = ms.ToUnit(XFA_Unit::Pt); in GetTabstops()
627 float fPos = ms.ToUnit(XFA_Unit::Pt); in GetTabstops()
Dfxfa_basic.h954 enum class XFA_Unit : uint8_t { enum
Dcxfa_widgetacc.cpp1607 .ToUnit(XFA_Unit::Pt); in GetCheckButtonSize()
1609 return CXFA_Measurement(10, XFA_Unit::Pt).ToUnit(XFA_Unit::Pt); in GetCheckButtonSize()