OLD | NEW |
---|---|
(Empty) | |
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 #include "core/include/fpdfapi/cpdf_object.h" | |
8 | |
9 #include <algorithm> | |
10 | |
11 #include "core/include/fpdfapi/cpdf_array.h" | |
12 #include "core/include/fpdfapi/cpdf_dictionary.h" | |
13 #include "core/include/fpdfapi/cpdf_indirect_object_holder.h" | |
14 #include "core/include/fpdfapi/cpdf_parser.h" | |
15 #include "core/include/fpdfapi/fpdf_parser_decode.h" | |
16 #include "core/include/fxcrt/fx_string.h" | |
17 #include "third_party/base/stl_util.h" | |
18 | |
19 CPDF_Object::~CPDF_Object() {} | |
20 | |
21 CPDF_Object* CPDF_Object::GetDirect() const { | |
22 return const_cast<CPDF_Object*>(this); | |
23 } | |
24 | |
25 void CPDF_Object::Release() { | |
26 if (m_ObjNum) { | |
27 return; | |
28 } | |
dsinclair
2016/03/10 21:23:45
nit: {}s
| |
29 Destroy(); | |
30 } | |
31 | |
32 CFX_ByteString CPDF_Object::GetString() const { | |
33 return CFX_ByteString(); | |
34 } | |
35 | |
36 CFX_ByteStringC CPDF_Object::GetConstString() const { | |
37 return CFX_ByteStringC(); | |
38 } | |
39 | |
40 CFX_WideString CPDF_Object::GetUnicodeText() const { | |
41 return CFX_WideString(); | |
42 } | |
43 | |
44 FX_FLOAT CPDF_Object::GetNumber() const { | |
45 return 0; | |
46 } | |
47 | |
48 int CPDF_Object::GetInteger() const { | |
49 return 0; | |
50 } | |
51 | |
52 CPDF_Dictionary* CPDF_Object::GetDict() const { | |
53 return nullptr; | |
54 } | |
55 | |
56 CPDF_Array* CPDF_Object::GetArray() const { | |
57 return nullptr; | |
58 } | |
59 | |
60 void CPDF_Object::SetString(const CFX_ByteString& str) { | |
61 ASSERT(FALSE); | |
62 } | |
63 | |
64 bool CPDF_Object::IsArray() const { | |
65 return false; | |
66 } | |
67 | |
68 bool CPDF_Object::IsBoolean() const { | |
69 return false; | |
70 } | |
71 | |
72 bool CPDF_Object::IsDictionary() const { | |
73 return false; | |
74 } | |
75 | |
76 bool CPDF_Object::IsName() const { | |
77 return false; | |
78 } | |
79 | |
80 bool CPDF_Object::IsNumber() const { | |
81 return false; | |
82 } | |
83 | |
84 bool CPDF_Object::IsReference() const { | |
85 return false; | |
86 } | |
87 | |
88 bool CPDF_Object::IsStream() const { | |
89 return false; | |
90 } | |
91 | |
92 bool CPDF_Object::IsString() const { | |
93 return false; | |
94 } | |
95 | |
96 CPDF_Array* CPDF_Object::AsArray() { | |
97 return nullptr; | |
98 } | |
99 | |
100 const CPDF_Array* CPDF_Object::AsArray() const { | |
101 return nullptr; | |
102 } | |
103 | |
104 CPDF_Boolean* CPDF_Object::AsBoolean() { | |
105 return nullptr; | |
106 } | |
107 | |
108 const CPDF_Boolean* CPDF_Object::AsBoolean() const { | |
109 return nullptr; | |
110 } | |
111 | |
112 CPDF_Dictionary* CPDF_Object::AsDictionary() { | |
113 return nullptr; | |
114 } | |
115 | |
116 const CPDF_Dictionary* CPDF_Object::AsDictionary() const { | |
117 return nullptr; | |
118 } | |
119 | |
120 CPDF_Name* CPDF_Object::AsName() { | |
121 return nullptr; | |
122 } | |
123 | |
124 const CPDF_Name* CPDF_Object::AsName() const { | |
125 return nullptr; | |
126 } | |
127 | |
128 CPDF_Number* CPDF_Object::AsNumber() { | |
129 return nullptr; | |
130 } | |
131 | |
132 const CPDF_Number* CPDF_Object::AsNumber() const { | |
133 return nullptr; | |
134 } | |
135 | |
136 CPDF_Reference* CPDF_Object::AsReference() { | |
137 return nullptr; | |
138 } | |
139 | |
140 const CPDF_Reference* CPDF_Object::AsReference() const { | |
141 return nullptr; | |
142 } | |
143 | |
144 CPDF_Stream* CPDF_Object::AsStream() { | |
145 return nullptr; | |
146 } | |
147 | |
148 const CPDF_Stream* CPDF_Object::AsStream() const { | |
149 return nullptr; | |
150 } | |
151 | |
152 CPDF_String* CPDF_Object::AsString() { | |
153 return nullptr; | |
154 } | |
155 | |
156 const CPDF_String* CPDF_Object::AsString() const { | |
157 return nullptr; | |
158 } | |
OLD | NEW |