7#include "xfa/fxfa/parser/cxfa_caption.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fxfa/parser/cxfa_document.h"
11#include "xfa/fxfa/parser/cxfa_font.h"
12#include "xfa/fxfa/parser/cxfa_margin.h"
13#include "xfa/fxfa/parser/cxfa_measurement.h"
14#include "xfa/fxfa/parser/cxfa_value.h"
37CXFA_Caption::CXFA_Caption(CXFA_Document* doc,
XFA_PacketType packet)
40 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
44 kCaptionAttributeData,
45 cppgc::MakeGarbageCollected<CJX_Node>(
46 doc->GetHeap()->GetAllocationHandle(),
52 auto value = JSObject()->TryEnum(
XFA_Attribute::Presence,
true);
57 auto value = JSObject()->TryEnum(
XFA_Attribute::Presence,
true);
62 auto value = JSObject()->TryEnum(
XFA_Attribute::Placement,
true);
71 return GetChild<CXFA_Margin>(0,
XFA_Element::Margin,
false);
75 return GetChild<CXFA_Font>(0,
XFA_Element::Font,
false);
79 return GetChild<CXFA_Value>(0,
XFA_Element::Value,
false);
CXFA_Font * GetFontIfExists()
CXFA_Margin * GetMarginIfExists()
CXFA_Value * GetValueIfExists()
XFA_AttributeValue GetPlacementType()