| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 CPDF_Dictionary* GetDictBy(const CFX_ByteStringC& key) const; | 326 CPDF_Dictionary* GetDictBy(const CFX_ByteStringC& key) const; |
| 327 CPDF_Stream* GetStreamBy(const CFX_ByteStringC& key) const; | 327 CPDF_Stream* GetStreamBy(const CFX_ByteStringC& key) const; |
| 328 CPDF_Array* GetArrayBy(const CFX_ByteStringC& key) const; | 328 CPDF_Array* GetArrayBy(const CFX_ByteStringC& key) const; |
| 329 CFX_FloatRect GetRectBy(const CFX_ByteStringC& key) const; | 329 CFX_FloatRect GetRectBy(const CFX_ByteStringC& key) const; |
| 330 CFX_Matrix GetMatrixBy(const CFX_ByteStringC& key) const; | 330 CFX_Matrix GetMatrixBy(const CFX_ByteStringC& key) const; |
| 331 FX_FLOAT GetFloatBy(const CFX_ByteStringC& key) const { | 331 FX_FLOAT GetFloatBy(const CFX_ByteStringC& key) const { |
| 332 return GetNumberBy(key); | 332 return GetNumberBy(key); |
| 333 } | 333 } |
| 334 | 334 |
| 335 FX_BOOL KeyExist(const CFX_ByteStringC& key) const; | 335 FX_BOOL KeyExist(const CFX_ByteStringC& key) const; |
| 336 bool IsSignatureDict() const; |
| 336 | 337 |
| 337 // Set* functions invalidate iterators for the element with the key |key|. | 338 // Set* functions invalidate iterators for the element with the key |key|. |
| 338 void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj); | 339 void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj); |
| 339 void SetAtName(const CFX_ByteStringC& key, const CFX_ByteString& name); | 340 void SetAtName(const CFX_ByteStringC& key, const CFX_ByteString& name); |
| 340 void SetAtString(const CFX_ByteStringC& key, const CFX_ByteString& str); | 341 void SetAtString(const CFX_ByteStringC& key, const CFX_ByteString& str); |
| 341 void SetAtInteger(const CFX_ByteStringC& key, int i); | 342 void SetAtInteger(const CFX_ByteStringC& key, int i); |
| 342 void SetAtNumber(const CFX_ByteStringC& key, FX_FLOAT f); | 343 void SetAtNumber(const CFX_ByteStringC& key, FX_FLOAT f); |
| 343 void SetAtReference(const CFX_ByteStringC& key, | 344 void SetAtReference(const CFX_ByteStringC& key, |
| 344 CPDF_IndirectObjectHolder* pDoc, | 345 CPDF_IndirectObjectHolder* pDoc, |
| 345 FX_DWORD objnum); | 346 FX_DWORD objnum); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 iterator end() { return m_IndirectObjs.end(); } | 544 iterator end() { return m_IndirectObjs.end(); } |
| 544 const_iterator end() const { return m_IndirectObjs.end(); } | 545 const_iterator end() const { return m_IndirectObjs.end(); } |
| 545 | 546 |
| 546 protected: | 547 protected: |
| 547 CPDF_Parser* m_pParser; | 548 CPDF_Parser* m_pParser; |
| 548 FX_DWORD m_LastObjNum; | 549 FX_DWORD m_LastObjNum; |
| 549 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; | 550 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; |
| 550 }; | 551 }; |
| 551 | 552 |
| 552 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 553 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| OLD | NEW |