| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 336 |
| 337 // Set* functions invalidate iterators for the element with the key |key|. | 337 // Set* functions invalidate iterators for the element with the key |key|. |
| 338 void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj); | 338 void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj); |
| 339 void SetAtName(const CFX_ByteStringC& key, const CFX_ByteString& name); | 339 void SetAtName(const CFX_ByteStringC& key, const CFX_ByteString& name); |
| 340 void SetAtString(const CFX_ByteStringC& key, const CFX_ByteString& string); | 340 void SetAtString(const CFX_ByteStringC& key, const CFX_ByteString& str); |
| 341 void SetAtInteger(const CFX_ByteStringC& key, int i); | 341 void SetAtInteger(const CFX_ByteStringC& key, int i); |
| 342 void SetAtNumber(const CFX_ByteStringC& key, FX_FLOAT f); | 342 void SetAtNumber(const CFX_ByteStringC& key, FX_FLOAT f); |
| 343 void SetAtReference(const CFX_ByteStringC& key, | 343 void SetAtReference(const CFX_ByteStringC& key, |
| 344 CPDF_IndirectObjectHolder* pDoc, | 344 CPDF_IndirectObjectHolder* pDoc, |
| 345 FX_DWORD objnum); | 345 FX_DWORD objnum); |
| 346 void SetAtReference(const CFX_ByteStringC& key, | 346 void SetAtReference(const CFX_ByteStringC& key, |
| 347 CPDF_IndirectObjectHolder* pDoc, | 347 CPDF_IndirectObjectHolder* pDoc, |
| 348 CPDF_Object* obj) { | 348 CPDF_Object* obj) { |
| 349 SetAtReference(key, pDoc, obj->GetObjNum()); | 349 SetAtReference(key, pDoc, obj->GetObjNum()); |
| 350 } | 350 } |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 iterator end() { return m_IndirectObjs.end(); } | 543 iterator end() { return m_IndirectObjs.end(); } |
| 544 const_iterator end() const { return m_IndirectObjs.end(); } | 544 const_iterator end() const { return m_IndirectObjs.end(); } |
| 545 | 545 |
| 546 protected: | 546 protected: |
| 547 CPDF_Parser* m_pParser; | 547 CPDF_Parser* m_pParser; |
| 548 FX_DWORD m_LastObjNum; | 548 FX_DWORD m_LastObjNum; |
| 549 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; | 549 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; |
| 550 }; | 550 }; |
| 551 | 551 |
| 552 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 552 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| OLD | NEW |