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 CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ |
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual CPDF_Object* GetDirect() const; | 43 virtual CPDF_Object* GetDirect() const; |
44 | 44 |
45 FX_BOOL IsModified() const { return FALSE; } | 45 FX_BOOL IsModified() const { return FALSE; } |
46 void Release(); | 46 void Release(); |
47 | 47 |
48 virtual CFX_ByteString GetString() const; | 48 virtual CFX_ByteString GetString() const; |
49 virtual CFX_WideString GetUnicodeText() const; | 49 virtual CFX_WideString GetUnicodeText() const; |
50 virtual FX_FLOAT GetNumber() const; | 50 virtual FX_FLOAT GetNumber() const; |
51 virtual int GetInteger() const; | 51 virtual int GetInteger() const; |
52 virtual CPDF_Dictionary* GetDict() const; | 52 virtual CPDF_Dictionary* GetDict() const; |
53 virtual CPDF_Array* GetArray() const; | |
54 | 53 |
55 virtual void SetString(const CFX_ByteString& str); | 54 virtual void SetString(const CFX_ByteString& str); |
56 | 55 |
57 virtual bool IsArray() const; | 56 virtual bool IsArray() const; |
58 virtual bool IsBoolean() const; | 57 virtual bool IsBoolean() const; |
59 virtual bool IsDictionary() const; | 58 virtual bool IsDictionary() const; |
60 virtual bool IsName() const; | 59 virtual bool IsName() const; |
61 virtual bool IsNumber() const; | 60 virtual bool IsNumber() const; |
62 virtual bool IsReference() const; | 61 virtual bool IsReference() const; |
63 virtual bool IsStream() const; | 62 virtual bool IsStream() const; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 151 |
153 inline CPDF_Stream* ToStream(CPDF_Object* obj) { | 152 inline CPDF_Stream* ToStream(CPDF_Object* obj) { |
154 return obj ? obj->AsStream() : nullptr; | 153 return obj ? obj->AsStream() : nullptr; |
155 } | 154 } |
156 | 155 |
157 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { | 156 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { |
158 return obj ? obj->AsStream() : nullptr; | 157 return obj ? obj->AsStream() : nullptr; |
159 } | 158 } |
160 | 159 |
161 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ | 160 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ |
OLD | NEW |