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 _FPDF_OBJECTS_ | 7 #ifndef _FPDF_OBJECTS_ |
8 #define _FPDF_OBJECTS_ | 8 #define _FPDF_OBJECTS_ |
9 #ifndef _FXCRT_EXTENSION_ | 9 #ifndef _FXCRT_EXTENSION_ |
10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 void LoadAllData(const CPDF_Stream* p
Stream, FX_BOOL bRawAccess = FALSE, | 613 void LoadAllData(const CPDF_Stream* p
Stream, FX_BOOL bRawAccess = FALSE, |
614 FX_DWORD estimated_size = 0, FX_BOOL bIm
ageAcc = FALSE); | 614 FX_DWORD estimated_size = 0, FX_BOOL bIm
ageAcc = FALSE); |
615 | 615 |
616 const CPDF_Stream* GetStream() const | 616 const CPDF_Stream* GetStream() const |
617 { | 617 { |
618 return m_pStream; | 618 return m_pStream; |
619 } | 619 } |
620 | 620 |
621 CPDF_Dictionary* GetDict() const | 621 CPDF_Dictionary* GetDict() const |
622 { | 622 { |
623 return m_pStream->GetDict(); | 623 return m_pStream? m_pStream->GetDict() : NULL; |
624 } | 624 } |
625 | 625 |
626 FX_LPCBYTE GetData() const; | 626 FX_LPCBYTE GetData() const; |
627 | 627 |
628 FX_DWORD GetSize() const; | 628 FX_DWORD GetSize() const; |
629 | 629 |
630 FX_LPBYTE DetachData(); | 630 FX_LPBYTE DetachData(); |
631 | 631 |
632 const CFX_ByteString& GetImageDecoder() | 632 const CFX_ByteString& GetImageDecoder() |
633 { | 633 { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 776 } |
777 protected: | 777 protected: |
778 | 778 |
779 CFX_MapPtrToPtr m_IndirectObjs; | 779 CFX_MapPtrToPtr m_IndirectObjs; |
780 | 780 |
781 IPDF_DocParser* m_pParser; | 781 IPDF_DocParser* m_pParser; |
782 | 782 |
783 FX_DWORD m_LastObjNum; | 783 FX_DWORD m_LastObjNum; |
784 }; | 784 }; |
785 #endif | 785 #endif |
OLD | NEW |