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 "../fxcrt/fx_coordinates.h" | 10 #include "../fxcrt/fx_coordinates.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 FX_FLOAT GetFloat(FX_DWORD index) const { return GetNumber(index); } | 316 FX_FLOAT GetFloat(FX_DWORD index) const { return GetNumber(index); } |
317 | 317 |
318 void SetAt(FX_DWORD index, | 318 void SetAt(FX_DWORD index, |
319 CPDF_Object* pObj, | 319 CPDF_Object* pObj, |
320 CPDF_IndirectObjects* pObjs = NULL); | 320 CPDF_IndirectObjects* pObjs = NULL); |
321 | 321 |
322 void InsertAt(FX_DWORD index, | 322 void InsertAt(FX_DWORD index, |
323 CPDF_Object* pObj, | 323 CPDF_Object* pObj, |
324 CPDF_IndirectObjects* pObjs = NULL); | 324 CPDF_IndirectObjects* pObjs = NULL); |
325 | 325 |
326 void RemoveAt(FX_DWORD index); | 326 void RemoveAt(FX_DWORD index, int nCount = 1); |
327 | 327 |
328 void Add(CPDF_Object* pObj, CPDF_IndirectObjects* pObjs = NULL); | 328 void Add(CPDF_Object* pObj, CPDF_IndirectObjects* pObjs = NULL); |
329 | 329 |
330 void AddNumber(FX_FLOAT f); | 330 void AddNumber(FX_FLOAT f); |
331 | 331 |
332 void AddInteger(int i); | 332 void AddInteger(int i); |
333 | 333 |
334 void AddString(const CFX_ByteString& str); | 334 void AddString(const CFX_ByteString& str); |
335 | 335 |
336 void AddName(const CFX_ByteString& str); | 336 void AddName(const CFX_ByteString& str); |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 | 625 |
626 protected: | 626 protected: |
627 CFX_MapPtrToPtr m_IndirectObjs; | 627 CFX_MapPtrToPtr m_IndirectObjs; |
628 | 628 |
629 CPDF_Parser* m_pParser; | 629 CPDF_Parser* m_pParser; |
630 | 630 |
631 FX_DWORD m_LastObjNum; | 631 FX_DWORD m_LastObjNum; |
632 }; | 632 }; |
633 | 633 |
634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
OLD | NEW |