1 // Copyright 2016 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_PARSER_CXFA_IMAGE_H_ 8 #define XFA_FXFA_PARSER_CXFA_IMAGE_H_ 9 10 #include "core/fxcrt/fx_string.h" 11 #include "core/fxcrt/fx_system.h" 12 #include "xfa/fxfa/parser/cxfa_data.h" 13 14 class CXFA_Node; 15 16 class CXFA_Image : public CXFA_Data { 17 public: 18 CXFA_Image(CXFA_Node* pNode, bool bDefValue); 19 20 int32_t GetAspect(); 21 bool GetContentType(CFX_WideString& wsContentType); 22 bool GetHref(CFX_WideString& wsHref); 23 int32_t GetTransferEncoding(); 24 bool GetContent(CFX_WideString& wsText); 25 bool SetContentType(const CFX_WideString& wsContentType); 26 bool SetHref(const CFX_WideString& wsHref); 27 bool SetTransferEncoding(int32_t iTransferEncoding); 28 29 protected: 30 bool m_bDefValue; 31 }; 32 33 #endif // XFA_FXFA_PARSER_CXFA_IMAGE_H_ 34