7#include "xfa/fxfa/parser/cxfa_image.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fxfa/parser/cxfa_document.h"
32 ?
static_cast<CXFA_Image*>(pNode)
39 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
40 XFA_ObjectType::ContentNode,
44 cppgc::MakeGarbageCollected<CJX_Node>(
45 doc->GetHeap()->GetAllocationHandle(),
55 return JSObject()->TryCData(
XFA_Attribute::ContentType,
true).value_or(L"");
59 return JSObject()->TryCData(
XFA_Attribute::Href,
true).value_or(L"");
68 return JSObject()->TryContent(
false,
true).value_or(L"");
72 JSObject()->SetCData(
XFA_Attribute::ContentType, wsContentType);
75void CXFA_Image::
SetHref(
const WideString& wsHref) {
80 JSObject()->SetEnum(
XFA_Attribute::TransferEncoding, iTransferEncoding,
void SetTransferEncoding(XFA_AttributeValue iTransferEncoding)
static CXFA_Image * FromNode(CXFA_Node *pNode)
void SetContentType(const WideString &wsContentType)
void SetHref(const WideString &wsHref)
WideString GetContentType()
XFA_AttributeValue GetTransferEncoding()
XFA_AttributeValue GetAspect()
XFA_Element GetElementType() const