Home
last modified time | relevance | path

Searched refs:CXFA_Measurement (Results 1 – 16 of 16) sorted by relevance

/external/pdfium/xfa/fxfa/parser/
Dcxfa_measurement_unittest.cpp10 CXFA_Measurement measurement; in TEST()
31 EXPECT_EQ(XFA_Unit::Percent, CXFA_Measurement::GetUnitFromString(L"%")); in TEST()
32 EXPECT_EQ(XFA_Unit::Em, CXFA_Measurement::GetUnitFromString(L"em")); in TEST()
33 EXPECT_EQ(XFA_Unit::Pt, CXFA_Measurement::GetUnitFromString(L"pt")); in TEST()
34 EXPECT_EQ(XFA_Unit::In, CXFA_Measurement::GetUnitFromString(L"in")); in TEST()
35 EXPECT_EQ(XFA_Unit::Pc, CXFA_Measurement::GetUnitFromString(L"pc")); in TEST()
36 EXPECT_EQ(XFA_Unit::Cm, CXFA_Measurement::GetUnitFromString(L"cm")); in TEST()
37 EXPECT_EQ(XFA_Unit::Mm, CXFA_Measurement::GetUnitFromString(L"mm")); in TEST()
38 EXPECT_EQ(XFA_Unit::Mp, CXFA_Measurement::GetUnitFromString(L"mp")); in TEST()
40 EXPECT_EQ(XFA_Unit::Unknown, CXFA_Measurement::GetUnitFromString(L"")); in TEST()
[all …]
Dcxfa_measurement.cpp23 CXFA_Measurement::CXFA_Measurement(WideStringView wsMeasure) { in CXFA_Measurement() function in CXFA_Measurement
27 CXFA_Measurement::CXFA_Measurement() { in CXFA_Measurement() function in CXFA_Measurement
31 CXFA_Measurement::CXFA_Measurement(float fValue, XFA_Unit eUnit) { in CXFA_Measurement() function in CXFA_Measurement
35 void CXFA_Measurement::SetString(WideStringView wsMeasure) { in SetString()
54 WideString CXFA_Measurement::ToString() const { in ToString()
78 float CXFA_Measurement::ToUnit(XFA_Unit eUnit) const { in ToUnit()
83 bool CXFA_Measurement::ToUnitInternal(XFA_Unit eUnit, float* fValue) const { in ToUnitInternal()
136 XFA_Unit CXFA_Measurement::GetUnitFromString(WideStringView wsUnit) { in GetUnitFromString()
Dcxfa_measurement.h14 class CXFA_Measurement {
16 explicit CXFA_Measurement(WideStringView wsMeasure);
17 CXFA_Measurement();
18 CXFA_Measurement(float fValue, XFA_Unit eUnit);
Dcxfa_stroke.h43 CXFA_Measurement GetMSThickness() const;
44 void SetMSThickness(CXFA_Measurement msThinkness);
Dcxfa_stroke.cpp102 CXFA_Measurement CXFA_Stroke::GetMSThickness() const { in GetMSThickness()
106 void CXFA_Stroke::SetMSThickness(CXFA_Measurement msThinkness) { in SetMSThickness()
146 .value_or(CXFA_Measurement(0, XFA_Unit::In)) in GetRadius()
Dcxfa_barcode.cpp125 Optional<CXFA_Measurement> moduleWidthHeight = in GetModuleWidth()
134 Optional<CXFA_Measurement> moduleWidthHeight = in GetModuleHeight()
Dcxfa_font.cpp87 CXFA_Measurement ms(wsValue.AsStringView()); in GetLetterSpacing()
Dcxfa_node.h227 Optional<CXFA_Measurement> GetDefaultMeasurement(XFA_Attribute attr) const;
Dcxfa_node.cpp1454 Optional<CXFA_Measurement> measureH = in GetIntact()
2011 Optional<CXFA_Measurement> CXFA_Node::GetDefaultMeasurement( in GetDefaultMeasurement()
2018 return {CXFA_Measurement(str.AsStringView())}; in GetDefaultMeasurement()
3950 return CXFA_Measurement(10, XFA_Unit::Pt).ToUnit(XFA_Unit::Pt); in GetCheckButtonSize()
/external/pdfium/fxjs/xfa/
Dcjx_object.cpp241 SetMeasure(eAttr, CXFA_Measurement(wsValue), bNotify); in SetAttribute()
298 Optional<CXFA_Measurement> value = TryMeasure(eAttr, bUseDefault); in TryAttribute()
397 CXFA_Measurement mValue, in SetMeasure()
401 SetMapModuleBuffer(pKey, &mValue, sizeof(CXFA_Measurement), nullptr); in SetMeasure()
405 Optional<CXFA_Measurement> CJX_Object::TryMeasure(XFA_Attribute eAttr, in TryMeasure()
411 iBytes == sizeof(CXFA_Measurement)) { in TryMeasure()
412 return *static_cast<CXFA_Measurement*>(pValue); in TryMeasure()
420 Optional<CXFA_Measurement> measure = TryMeasure(attr, false); in TryMeasureAsFloat()
426 CXFA_Measurement CJX_Object::GetMeasure(XFA_Attribute eAttr) const { in GetMeasure()
427 return TryMeasure(eAttr, true).value_or(CXFA_Measurement()); in GetMeasure()
[all …]
Dcjx_object.h199 Optional<CXFA_Measurement> TryMeasure(XFA_Attribute eAttr,
202 void SetMeasure(XFA_Attribute eAttr, CXFA_Measurement mValue, bool bNotify);
203 CXFA_Measurement GetMeasure(XFA_Attribute eAttr) const;
Dcjx_layoutpseudomodel.cpp113 CXFA_Measurement measure; in HWXY()
130 XFA_Unit eUnit = CXFA_Measurement::GetUnitFromString(unit.AsStringView()); in HWXY()
/external/pdfium/xfa/fxfa/
Dcxfa_textparser.cpp321 return CXFA_Measurement(wsValue.AsStringView()).ToUnit(XFA_Unit::Pt); in GetTabInterval()
611 CXFA_Measurement ms( in GetTabstops()
627 CXFA_Measurement ms( in GetTabstops()
Dfxfa_basic.h12 class CXFA_Measurement; variable
/external/pdfium/xfa/fxfa/layout/
Dcxfa_contentlayoutprocessor.cpp95 Optional<CXFA_Measurement> wValue = in CalculateContainerSpecifiedSize()
102 Optional<CXFA_Measurement> hValue = in CalculateContainerSpecifiedSize()
111 Optional<CXFA_Measurement> maxW = in CalculateContainerSpecifiedSize()
118 Optional<CXFA_Measurement> maxH = in CalculateContainerSpecifiedSize()
141 Optional<CXFA_Measurement> leftInset = in CalculateContainerComponentSizeFromContentSize()
146 Optional<CXFA_Measurement> rightInset = in CalculateContainerComponentSizeFromContentSize()
156 Optional<CXFA_Measurement> topInset = in CalculateContainerComponentSizeFromContentSize()
161 Optional<CXFA_Measurement> bottomInset = in CalculateContainerComponentSizeFromContentSize()
1172 CXFA_Measurement(width.AsStringView()).ToUnit(XFA_Unit::Pt)); in DoLayoutTableContainer()
Dcxfa_viewlayoutprocessor.cpp415 XFA_Attribute::X, CXFA_Measurement(0.25f, XFA_Unit::In), false); in InitLayoutPage()
417 XFA_Attribute::Y, CXFA_Measurement(0.25f, XFA_Unit::In), false); in InitLayoutPage()
419 XFA_Attribute::W, CXFA_Measurement(8.0f, XFA_Unit::In), false); in InitLayoutPage()
421 XFA_Attribute::H, CXFA_Measurement(10.5f, XFA_Unit::In), false); in InitLayoutPage()
434 XFA_Attribute::Short, CXFA_Measurement(8.5f, XFA_Unit::In), false); in InitLayoutPage()
436 XFA_Attribute::Long, CXFA_Measurement(11.0f, XFA_Unit::In), false); in InitLayoutPage()