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 #include "core/include/fpdfapi/cpdf_dictionary.h" | 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
8 | 8 |
9 #include "core/include/fpdfapi/cpdf_array.h" | 9 #include "core/fpdfapi/fpdf_parser/cpdf_boolean.h" |
10 #include "core/include/fpdfapi/cpdf_boolean.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
11 #include "core/include/fpdfapi/cpdf_name.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h" |
12 #include "core/include/fpdfapi/cpdf_number.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h" |
13 #include "core/include/fpdfapi/cpdf_reference.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" |
14 #include "core/include/fpdfapi/cpdf_stream.h" | 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" |
15 #include "core/include/fpdfapi/cpdf_string.h" | 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
16 #include "third_party/base/stl_util.h" | 16 #include "third_party/base/stl_util.h" |
17 | 17 |
18 CPDF_Dictionary::CPDF_Dictionary() {} | 18 CPDF_Dictionary::CPDF_Dictionary() {} |
19 | 19 |
20 CPDF_Dictionary::~CPDF_Dictionary() { | 20 CPDF_Dictionary::~CPDF_Dictionary() { |
21 for (const auto& it : m_Map) | 21 for (const auto& it : m_Map) |
22 it.second->Release(); | 22 it.second->Release(); |
23 } | 23 } |
24 | 24 |
25 CPDF_Object::Type CPDF_Dictionary::GetType() const { | 25 CPDF_Object::Type CPDF_Dictionary::GetType() const { |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 const CFX_Matrix& matrix) { | 262 const CFX_Matrix& matrix) { |
263 CPDF_Array* pArray = new CPDF_Array; | 263 CPDF_Array* pArray = new CPDF_Array; |
264 pArray->AddNumber(matrix.a); | 264 pArray->AddNumber(matrix.a); |
265 pArray->AddNumber(matrix.b); | 265 pArray->AddNumber(matrix.b); |
266 pArray->AddNumber(matrix.c); | 266 pArray->AddNumber(matrix.c); |
267 pArray->AddNumber(matrix.d); | 267 pArray->AddNumber(matrix.d); |
268 pArray->AddNumber(matrix.e); | 268 pArray->AddNumber(matrix.e); |
269 pArray->AddNumber(matrix.f); | 269 pArray->AddNumber(matrix.f); |
270 SetAt(key, pArray); | 270 SetAt(key, pArray); |
271 } | 271 } |
OLD | NEW |