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_REFERENCE_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_CPDF_REFERENCE_H_ |
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_REFERENCE_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_CPDF_REFERENCE_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" | 12 #include "core/fpdfapi/fpdf_parser/cpdf_object.h" |
13 | 13 |
14 class CPDF_IndirectObjectHolder; | 14 class CPDF_IndirectObjectHolder; |
15 | 15 |
16 class CPDF_Reference : public CPDF_Object { | 16 class CPDF_Reference : public CPDF_Object { |
17 public: | 17 public: |
18 CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, int objnum); | 18 CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, int objnum); |
19 | 19 |
20 // CPDF_Object. | 20 // CPDF_Object. |
21 Type GetType() const override; | 21 Type GetType() const override; |
22 CPDF_Object* Clone() const override; | 22 CPDF_Object* Clone() const override; |
(...skipping 22 matching lines...) Expand all Loading... |
45 CPDF_Object* obj = GetDirect(); | 45 CPDF_Object* obj = GetDirect(); |
46 if (!obj || obj->IsReference()) | 46 if (!obj || obj->IsReference()) |
47 return nullptr; | 47 return nullptr; |
48 return obj; | 48 return obj; |
49 } | 49 } |
50 | 50 |
51 CPDF_IndirectObjectHolder* m_pObjList; | 51 CPDF_IndirectObjectHolder* m_pObjList; |
52 uint32_t m_RefObjNum; | 52 uint32_t m_RefObjNum; |
53 }; | 53 }; |
54 | 54 |
55 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_REFERENCE_H_ | 55 #endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_REFERENCE_H_ |
OLD | NEW |