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