| 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_PARSER_CPDF_DICTIONARY_H_ | 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_DICTIONARY_H_ |
| 8 #define CORE_FPDFAPI_PARSER_CPDF_DICTIONARY_H_ | 8 #define CORE_FPDFAPI_PARSER_CPDF_DICTIONARY_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 FX_FLOAT GetNumberFor(const CFX_ByteString& key) const; | 47 FX_FLOAT GetNumberFor(const CFX_ByteString& key) const; |
| 48 CPDF_Dictionary* GetDictFor(const CFX_ByteString& key) const; | 48 CPDF_Dictionary* GetDictFor(const CFX_ByteString& key) const; |
| 49 CPDF_Stream* GetStreamFor(const CFX_ByteString& key) const; | 49 CPDF_Stream* GetStreamFor(const CFX_ByteString& key) const; |
| 50 CPDF_Array* GetArrayFor(const CFX_ByteString& key) const; | 50 CPDF_Array* GetArrayFor(const CFX_ByteString& key) const; |
| 51 CFX_FloatRect GetRectFor(const CFX_ByteString& key) const; | 51 CFX_FloatRect GetRectFor(const CFX_ByteString& key) const; |
| 52 CFX_Matrix GetMatrixFor(const CFX_ByteString& key) const; | 52 CFX_Matrix GetMatrixFor(const CFX_ByteString& key) const; |
| 53 FX_FLOAT GetFloatFor(const CFX_ByteString& key) const { | 53 FX_FLOAT GetFloatFor(const CFX_ByteString& key) const { |
| 54 return GetNumberFor(key); | 54 return GetNumberFor(key); |
| 55 } | 55 } |
| 56 | 56 |
| 57 FX_BOOL KeyExist(const CFX_ByteString& key) const; | 57 bool KeyExist(const CFX_ByteString& key) const; |
| 58 bool IsSignatureDict() const; | 58 bool IsSignatureDict() const; |
| 59 | 59 |
| 60 // Set* functions invalidate iterators for the element with the key |key|. | 60 // Set* functions invalidate iterators for the element with the key |key|. |
| 61 void SetFor(const CFX_ByteString& key, CPDF_Object* pObj); | 61 void SetFor(const CFX_ByteString& key, CPDF_Object* pObj); |
| 62 void SetNameFor(const CFX_ByteString& key, const CFX_ByteString& name); | 62 void SetNameFor(const CFX_ByteString& key, const CFX_ByteString& name); |
| 63 void SetStringFor(const CFX_ByteString& key, const CFX_ByteString& str); | 63 void SetStringFor(const CFX_ByteString& key, const CFX_ByteString& str); |
| 64 void SetIntegerFor(const CFX_ByteString& key, int i); | 64 void SetIntegerFor(const CFX_ByteString& key, int i); |
| 65 void SetNumberFor(const CFX_ByteString& key, FX_FLOAT f); | 65 void SetNumberFor(const CFX_ByteString& key, FX_FLOAT f); |
| 66 void SetReferenceFor(const CFX_ByteString& key, | 66 void SetReferenceFor(const CFX_ByteString& key, |
| 67 CPDF_IndirectObjectHolder* pDoc, | 67 CPDF_IndirectObjectHolder* pDoc, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 89 CFX_ByteString MaybeIntern(const CFX_ByteString& str); | 89 CFX_ByteString MaybeIntern(const CFX_ByteString& str); |
| 90 CPDF_Object* CloneNonCyclic( | 90 CPDF_Object* CloneNonCyclic( |
| 91 bool bDirect, | 91 bool bDirect, |
| 92 std::set<const CPDF_Object*>* visited) const override; | 92 std::set<const CPDF_Object*>* visited) const override; |
| 93 | 93 |
| 94 CFX_WeakPtr<CFX_ByteStringPool> m_pPool; | 94 CFX_WeakPtr<CFX_ByteStringPool> m_pPool; |
| 95 std::map<CFX_ByteString, CPDF_Object*> m_Map; | 95 std::map<CFX_ByteString, CPDF_Object*> m_Map; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 #endif // CORE_FPDFAPI_PARSER_CPDF_DICTIONARY_H_ | 98 #endif // CORE_FPDFAPI_PARSER_CPDF_DICTIONARY_H_ |
| OLD | NEW |