blob: acda334c9ef9b340a716eb01b0985758dd3d491e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/parser/cpdf_object.h"
#include <algorithm>
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_indirect_object_holder.h"
#include "core/fpdfapi/parser/cpdf_parser.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fxcrt/fx_string.h"
#include "third_party/base/stl_util.h"
CPDF_Object::~CPDF_Object() {}
CPDF_Object* CPDF_Object::GetDirect() const {
return const_cast<CPDF_Object*>(this);
}
std::unique_ptr<CPDF_Object> CPDF_Object::CloneObjectNonCyclic(
bool bDirect) const {
std::set<const CPDF_Object*> visited_objs;
return CloneNonCyclic(bDirect, &visited_objs);
}
std::unique_ptr<CPDF_Object> CPDF_Object::CloneDirectObject() const {
return CloneObjectNonCyclic(true);
}
std::unique_ptr<CPDF_Object> CPDF_Object::CloneNonCyclic(
bool bDirect,
std::set<const CPDF_Object*>* pVisited) const {
return Clone();
}
CFX_ByteString CPDF_Object::GetString() const {
return CFX_ByteString();
}
CFX_WideString CPDF_Object::GetUnicodeText() const {
return CFX_WideString();
}
FX_FLOAT CPDF_Object::GetNumber() const {
return 0;
}
int CPDF_Object::GetInteger() const {
return 0;
}
CPDF_Dictionary* CPDF_Object::GetDict() const {
return nullptr;
}
void CPDF_Object::SetString(const CFX_ByteString& str) {
ASSERT(false);
}
bool CPDF_Object::IsArray() const {
return false;
}
bool CPDF_Object::IsBoolean() const {
return false;
}
bool CPDF_Object::IsDictionary() const {
return false;
}
bool CPDF_Object::IsName() const {
return false;
}
bool CPDF_Object::IsNumber() const {
return false;
}
bool CPDF_Object::IsReference() const {
return false;
}
bool CPDF_Object::IsStream() const {
return false;
}
bool CPDF_Object::IsString() const {
return false;
}
CPDF_Array* CPDF_Object::AsArray() {
return nullptr;
}
const CPDF_Array* CPDF_Object::AsArray() const {
return nullptr;
}
CPDF_Boolean* CPDF_Object::AsBoolean() {
return nullptr;
}
const CPDF_Boolean* CPDF_Object::AsBoolean() const {
return nullptr;
}
CPDF_Dictionary* CPDF_Object::AsDictionary() {
return nullptr;
}
const CPDF_Dictionary* CPDF_Object::AsDictionary() const {
return nullptr;
}
CPDF_Name* CPDF_Object::AsName() {
return nullptr;
}
const CPDF_Name* CPDF_Object::AsName() const {
return nullptr;
}
CPDF_Number* CPDF_Object::AsNumber() {
return nullptr;
}
const CPDF_Number* CPDF_Object::AsNumber() const {
return nullptr;
}
CPDF_Reference* CPDF_Object::AsReference() {
return nullptr;
}
const CPDF_Reference* CPDF_Object::AsReference() const {
return nullptr;
}
CPDF_Stream* CPDF_Object::AsStream() {
return nullptr;
}
const CPDF_Stream* CPDF_Object::AsStream() const {
return nullptr;
}
CPDF_String* CPDF_Object::AsString() {
return nullptr;
}
const CPDF_String* CPDF_Object::AsString() const {
return nullptr;
}
|