| 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_PARSER_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 9 | 9 |
| 10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 CPDF_Object* GetObjectByStrict(CPDF_IndirectObjects* pObjList
, FX_DWORD objnum, FX_DWORD gennum, struct PARSE_CONTEXT* pContext = NULL); | 262 CPDF_Object* GetObjectByStrict(CPDF_IndirectObjects* pObjList
, FX_DWORD objnum, FX_DWORD gennum, struct PARSE_CONTEXT* pContext = NULL); |
| 263 | 263 |
| 264 int GetDirectNum(); | 264 int GetDirectNum(); |
| 265 | 265 |
| 266 CFX_ByteString GetString(FX_DWORD objnum, FX_DWORD gennum); | 266 CFX_ByteString GetString(FX_DWORD objnum, FX_DWORD gennum); |
| 267 | 267 |
| 268 CFX_ByteString GetName(); | 268 CFX_ByteString GetName(); |
| 269 | 269 |
| 270 CFX_ByteString GetKeyword(); | 270 CFX_ByteString GetKeyword(); |
| 271 | 271 |
| 272 void» » » » GetBinary(FX_BYTE* buffer, FX_DWORD size
); | 272 void» » » » GetBinary(uint8_t* buffer, FX_DWORD size
); |
| 273 | 273 |
| 274 void ToNextLine(); | 274 void ToNextLine(); |
| 275 | 275 |
| 276 void ToNextWord(); | 276 void ToNextWord(); |
| 277 | 277 |
| 278 FX_BOOL SearchWord(FX_BSTR word, FX_BOOL bWholeW
ord, FX_BOOL bForward, FX_FILESIZE limit); | 278 FX_BOOL SearchWord(FX_BSTR word, FX_BOOL bWholeW
ord, FX_BOOL bForward, FX_FILESIZE limit); |
| 279 | 279 |
| 280 int SearchMultiWord(FX_BSTR words, FX_BOOL b
WholeWord, FX_FILESIZE limit); | 280 int SearchMultiWord(FX_BSTR words, FX_BOOL b
WholeWord, FX_FILESIZE limit); |
| 281 | 281 |
| 282 FX_FILESIZE FindTag(FX_BSTR tag, FX_FILESIZE limit); | 282 FX_FILESIZE FindTag(FX_BSTR tag, FX_FILESIZE limit); |
| 283 | 283 |
| 284 void SetEncrypt(CPDF_CryptoHandler* pCryptoHa
ndler) | 284 void SetEncrypt(CPDF_CryptoHandler* pCryptoHa
ndler) |
| 285 { | 285 { |
| 286 m_pCryptoHandler = pCryptoHandler; | 286 m_pCryptoHandler = pCryptoHandler; |
| 287 } | 287 } |
| 288 | 288 |
| 289 FX_BOOL IsEncrypted() | 289 FX_BOOL IsEncrypted() |
| 290 { | 290 { |
| 291 return m_pCryptoHandler != NULL; | 291 return m_pCryptoHandler != NULL; |
| 292 } | 292 } |
| 293 | 293 |
| 294 FX_BOOL» » » » GetCharAt(FX_FILESIZE pos, FX_BYTE& ch); | 294 FX_BOOL» » » » GetCharAt(FX_FILESIZE pos, uint8_t& ch); |
| 295 | 295 |
| 296 FX_BOOL» » » » ReadBlock(FX_BYTE* pBuf, FX_DWORD size); | 296 FX_BOOL» » » » ReadBlock(uint8_t* pBuf, FX_DWORD size); |
| 297 | 297 |
| 298 CFX_ByteString GetNextWord(FX_BOOL& bIsNumber); | 298 CFX_ByteString GetNextWord(FX_BOOL& bIsNumber); |
| 299 protected: | 299 protected: |
| 300 static const int kParserMaxRecursionDepth = 64; | 300 static const int kParserMaxRecursionDepth = 64; |
| 301 static int s_CurrentRecursionDepth; | 301 static int s_CurrentRecursionDepth; |
| 302 | 302 |
| 303 virtual FX_BOOL» » » » GetNextChar(FX_BYTE& ch); | 303 virtual FX_BOOL» » » » GetNextChar(uint8_t& ch); |
| 304 | 304 |
| 305 FX_BOOL» » » » GetCharAtBackward(FX_FILESIZE pos, FX_BY
TE& ch); | 305 FX_BOOL» » » » GetCharAtBackward(FX_FILESIZE pos, uint8
_t& ch); |
| 306 | 306 |
| 307 void GetNextWord(); | 307 void GetNextWord(); |
| 308 | 308 |
| 309 FX_BOOL IsWholeWord(FX_FILESIZE startpos, FX_FIL
ESIZE limit, FX_LPCBYTE tag, FX_DWORD taglen); | 309 FX_BOOL IsWholeWord(FX_FILESIZE startpos, FX_FIL
ESIZE limit, FX_LPCBYTE tag, FX_DWORD taglen); |
| 310 | 310 |
| 311 CFX_ByteString ReadString(); | 311 CFX_ByteString ReadString(); |
| 312 | 312 |
| 313 CFX_ByteString ReadHexString(); | 313 CFX_ByteString ReadHexString(); |
| 314 | 314 |
| 315 CPDF_Stream* ReadStream(CPDF_Dictionary* pDict, PARSE_CONTEXT
* pContext, FX_DWORD objnum, FX_DWORD gennum); | 315 CPDF_Stream* ReadStream(CPDF_Dictionary* pDict, PARSE_CONTEXT
* pContext, FX_DWORD objnum, FX_DWORD gennum); |
| 316 | 316 |
| 317 FX_FILESIZE m_Pos; | 317 FX_FILESIZE m_Pos; |
| 318 | 318 |
| 319 FX_BOOL m_bFileStream; | 319 FX_BOOL m_bFileStream; |
| 320 | 320 |
| 321 int m_MetadataObjnum; | 321 int m_MetadataObjnum; |
| 322 | 322 |
| 323 IFX_FileRead* m_pFileAccess; | 323 IFX_FileRead* m_pFileAccess; |
| 324 | 324 |
| 325 FX_DWORD m_HeaderOffset; | 325 FX_DWORD m_HeaderOffset; |
| 326 | 326 |
| 327 FX_FILESIZE m_FileLen; | 327 FX_FILESIZE m_FileLen; |
| 328 | 328 |
| 329 FX_BYTE*» » » m_pFileBuf; | 329 uint8_t*» » » m_pFileBuf; |
| 330 | 330 |
| 331 FX_DWORD m_BufSize; | 331 FX_DWORD m_BufSize; |
| 332 | 332 |
| 333 FX_FILESIZE m_BufOffset; | 333 FX_FILESIZE m_BufOffset; |
| 334 | 334 |
| 335 CPDF_CryptoHandler* m_pCryptoHandler; | 335 CPDF_CryptoHandler* m_pCryptoHandler; |
| 336 | 336 |
| 337 FX_BYTE» » » » m_WordBuffer[257]; | 337 uint8_t» » » » m_WordBuffer[257]; |
| 338 | 338 |
| 339 FX_DWORD m_WordSize; | 339 FX_DWORD m_WordSize; |
| 340 | 340 |
| 341 FX_BOOL m_bIsNumber; | 341 FX_BOOL m_bIsNumber; |
| 342 | 342 |
| 343 FX_FILESIZE m_dwWordPos; | 343 FX_FILESIZE m_dwWordPos; |
| 344 friend class CPDF_Parser; | 344 friend class CPDF_Parser; |
| 345 friend class CPDF_DataAvail; | 345 friend class CPDF_DataAvail; |
| 346 }; | 346 }; |
| 347 | 347 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 FX_FILESIZE GetObjectOffset(FX_DWORD objnum); | 452 FX_FILESIZE GetObjectOffset(FX_DWORD objnum); |
| 453 | 453 |
| 454 FX_FILESIZE GetObjectSize(FX_DWORD objnum); | 454 FX_FILESIZE GetObjectSize(FX_DWORD objnum); |
| 455 | 455 |
| 456 int GetObjectVersion(FX_DWORD objnum) | 456 int GetObjectVersion(FX_DWORD objnum) |
| 457 { | 457 { |
| 458 return m_ObjVersion[objnum]; | 458 return m_ObjVersion[objnum]; |
| 459 } | 459 } |
| 460 | 460 |
| 461 void» » » » GetIndirectBinary(FX_DWORD objnum, FX_BY
TE*& pBuffer, FX_DWORD& size); | 461 void» » » » GetIndirectBinary(FX_DWORD objnum, uint8
_t*& pBuffer, FX_DWORD& size); |
| 462 | 462 |
| 463 FX_BOOL GetFileStreamOption() | 463 FX_BOOL GetFileStreamOption() |
| 464 { | 464 { |
| 465 return m_Syntax.m_bFileStream; | 465 return m_Syntax.m_bFileStream; |
| 466 } | 466 } |
| 467 | 467 |
| 468 void SetFileStreamOption(FX_BOOL b) | 468 void SetFileStreamOption(FX_BOOL b) |
| 469 { | 469 { |
| 470 m_Syntax.m_bFileStream = b; | 470 m_Syntax.m_bFileStream = b; |
| 471 } | 471 } |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 } | 628 } |
| 629 | 629 |
| 630 void OnCreate(CPDF_Dictionary* pEncryptDict,
CPDF_Array* pIdArray, | 630 void OnCreate(CPDF_Dictionary* pEncryptDict,
CPDF_Array* pIdArray, |
| 631 FX_LPCBYTE user_pass, FX_DWORD user_size, | 631 FX_LPCBYTE user_pass, FX_DWORD user_size, |
| 632 FX_LPCBYTE owner_pass, FX_DWORD owner_size, FX_
DWORD type = PDF_ENCRYPT_CONTENT); | 632 FX_LPCBYTE owner_pass, FX_DWORD owner_size, FX_
DWORD type = PDF_ENCRYPT_CONTENT); |
| 633 | 633 |
| 634 void OnCreate(CPDF_Dictionary* pEncryptDict,
CPDF_Array* pIdArray, | 634 void OnCreate(CPDF_Dictionary* pEncryptDict,
CPDF_Array* pIdArray, |
| 635 FX_LPCBYTE user_pass, FX_DWORD user_size, FX_DW
ORD type = PDF_ENCRYPT_CONTENT); | 635 FX_LPCBYTE user_pass, FX_DWORD user_size, FX_DW
ORD type = PDF_ENCRYPT_CONTENT); |
| 636 | 636 |
| 637 CFX_ByteString GetUserPassword(FX_LPCBYTE owner_pass, FX_DWORD
pass_size); | 637 CFX_ByteString GetUserPassword(FX_LPCBYTE owner_pass, FX_DWORD
pass_size); |
| 638 CFX_ByteString» » GetUserPassword(FX_LPCBYTE owner_pass, FX_DWORD
pass_size, FX_INT32 key_len); | 638 CFX_ByteString» » GetUserPassword(FX_LPCBYTE owner_pass, FX_DWORD
pass_size, int32_t key_len); |
| 639 int GetVersion() | 639 int GetVersion() |
| 640 { | 640 { |
| 641 return m_Version; | 641 return m_Version; |
| 642 } | 642 } |
| 643 int GetRevision() | 643 int GetRevision() |
| 644 { | 644 { |
| 645 return m_Revision; | 645 return m_Revision; |
| 646 } | 646 } |
| 647 | 647 |
| 648 int CheckPassword(FX_LPCBYTE password, FX_DW
ORD pass_size, FX_BOOL bOwner, FX_LPBYTE key); | 648 int CheckPassword(FX_LPCBYTE password, FX_DW
ORD pass_size, FX_BOOL bOwner, FX_LPBYTE key); |
| 649 int CheckPassword(FX_LPCBYTE password, FX_DW
ORD pass_size, FX_BOOL bOwner, FX_LPBYTE key, int key_len); | 649 int CheckPassword(FX_LPCBYTE password, FX_DW
ORD pass_size, FX_BOOL bOwner, FX_LPBYTE key, int key_len); |
| 650 private: | 650 private: |
| 651 | 651 |
| 652 int m_Version; | 652 int m_Version; |
| 653 | 653 |
| 654 int m_Revision; | 654 int m_Revision; |
| 655 | 655 |
| 656 CPDF_Parser* m_pParser; | 656 CPDF_Parser* m_pParser; |
| 657 | 657 |
| 658 CPDF_Dictionary* m_pEncryptDict; | 658 CPDF_Dictionary* m_pEncryptDict; |
| 659 | 659 |
| 660 FX_BOOL LoadDict(CPDF_Dictionary* pEncryptDict); | 660 FX_BOOL LoadDict(CPDF_Dictionary* pEncryptDict); |
| 661 FX_BOOL LoadDict(CPDF_Dictionary* pEncryptDict,
FX_DWORD type, int& cipher, int& key_len); | 661 FX_BOOL LoadDict(CPDF_Dictionary* pEncryptDict,
FX_DWORD type, int& cipher, int& key_len); |
| 662 | 662 |
| 663 FX_BOOL CheckUserPassword(FX_LPCBYTE password, F
X_DWORD pass_size, | 663 FX_BOOL CheckUserPassword(FX_LPCBYTE password, F
X_DWORD pass_size, |
| 664 FX_BOOL bIgnoreEncryptMeta, FX_LPBYTE
key, FX_INT32 key_len); | 664 FX_BOOL bIgnoreEncryptMeta, FX_LPBYTE
key, int32_t key_len); |
| 665 | 665 |
| 666 FX_BOOL» » » » CheckOwnerPassword(FX_LPCBYTE password,
FX_DWORD pass_size, FX_LPBYTE key, FX_INT32 key_len); | 666 FX_BOOL» » » » CheckOwnerPassword(FX_LPCBYTE password,
FX_DWORD pass_size, FX_LPBYTE key, int32_t key_len); |
| 667 FX_BOOL AES256_CheckPassword(FX_LPCBYTE password
, FX_DWORD size, FX_BOOL bOwner, FX_LPBYTE key); | 667 FX_BOOL AES256_CheckPassword(FX_LPCBYTE password
, FX_DWORD size, FX_BOOL bOwner, FX_LPBYTE key); |
| 668 void AES256_SetPassword(CPDF_Dictionary* pEnc
ryptDict, FX_LPCBYTE password, FX_DWORD size, FX_BOOL bOwner, FX_LPCBYTE key); | 668 void AES256_SetPassword(CPDF_Dictionary* pEnc
ryptDict, FX_LPCBYTE password, FX_DWORD size, FX_BOOL bOwner, FX_LPCBYTE key); |
| 669 void AES256_SetPerms(CPDF_Dictionary* pEncryp
tDict, FX_DWORD permission, FX_BOOL bEncryptMetadata, FX_LPCBYTE key); | 669 void AES256_SetPerms(CPDF_Dictionary* pEncryp
tDict, FX_DWORD permission, FX_BOOL bEncryptMetadata, FX_LPCBYTE key); |
| 670 void OnCreate(CPDF_Dictionary* pEncryptDict,
CPDF_Array* pIdArray, | 670 void OnCreate(CPDF_Dictionary* pEncryptDict,
CPDF_Array* pIdArray, |
| 671 FX_LPCBYTE user_pass, FX_DWORD user_size, | 671 FX_LPCBYTE user_pass, FX_DWORD user_size, |
| 672 FX_LPCBYTE owner_pass, FX_DWORD owner_size, FX_
BOOL bDefault, FX_DWORD type); | 672 FX_LPCBYTE owner_pass, FX_DWORD owner_size, FX_
BOOL bDefault, FX_DWORD type); |
| 673 FX_BOOL» » » » CheckSecurity(FX_INT32 key_len); | 673 FX_BOOL» » » » CheckSecurity(int32_t key_len); |
| 674 | 674 |
| 675 FX_BOOL m_bOwner; | 675 FX_BOOL m_bOwner; |
| 676 | 676 |
| 677 FX_DWORD m_Permissions; | 677 FX_DWORD m_Permissions; |
| 678 | 678 |
| 679 int m_Cipher; | 679 int m_Cipher; |
| 680 | 680 |
| 681 FX_BYTE» » » » m_EncryptKey[32]; | 681 uint8_t» » » » m_EncryptKey[32]; |
| 682 | 682 |
| 683 int m_KeyLen; | 683 int m_KeyLen; |
| 684 }; | 684 }; |
| 685 class CPDF_CryptoHandler | 685 class CPDF_CryptoHandler |
| 686 { | 686 { |
| 687 public: | 687 public: |
| 688 | 688 |
| 689 virtual ~CPDF_CryptoHandler() {} | 689 virtual ~CPDF_CryptoHandler() {} |
| 690 | 690 |
| 691 virtual FX_BOOL Init(CPDF_Dictionary* pEncryptDict, CPDF_Securit
yHandler* pSecurityHandler) = 0; | 691 virtual FX_BOOL Init(CPDF_Dictionary* pEncryptDict, CPDF_Securit
yHandler* pSecurityHandler) = 0; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 virtual FX_BOOL EncryptContent(FX_DWORD objnum, FX_DWORD version
, FX_LPCBYTE src_buf, FX_DWORD src_size, | 724 virtual FX_BOOL EncryptContent(FX_DWORD objnum, FX_DWORD version
, FX_LPCBYTE src_buf, FX_DWORD src_size, |
| 725 FX_LPBYTE dest_buf, FX_DWORD& dest_size); | 725 FX_LPBYTE dest_buf, FX_DWORD& dest_size); |
| 726 protected: | 726 protected: |
| 727 | 727 |
| 728 virtual void CryptBlock(FX_BOOL bEncrypt, FX_DWORD objnum, FX
_DWORD gennum, FX_LPCBYTE src_buf, FX_DWORD src_size, | 728 virtual void CryptBlock(FX_BOOL bEncrypt, FX_DWORD objnum, FX
_DWORD gennum, FX_LPCBYTE src_buf, FX_DWORD src_size, |
| 729 FX_LPBYTE dest_buf, FX_DWORD& dest_size); | 729 FX_LPBYTE dest_buf, FX_DWORD& dest_size); |
| 730 virtual FX_LPVOID CryptStart(FX_DWORD objnum, FX_DWORD gennum, FX_BOOL bEn
crypt); | 730 virtual FX_LPVOID CryptStart(FX_DWORD objnum, FX_DWORD gennum, FX_BOOL bEn
crypt); |
| 731 virtual FX_BOOL CryptStream(FX_LPVOID context, FX_LPCBYTE src_bu
f, FX_DWORD src_size, CFX_BinaryBuf& dest_buf, FX_BOOL bEncrypt); | 731 virtual FX_BOOL CryptStream(FX_LPVOID context, FX_LPCBYTE src_bu
f, FX_DWORD src_size, CFX_BinaryBuf& dest_buf, FX_BOOL bEncrypt); |
| 732 virtual FX_BOOL CryptFinish(FX_LPVOID context, CFX_BinaryBuf& de
st_buf, FX_BOOL bEncrypt); | 732 virtual FX_BOOL CryptFinish(FX_LPVOID context, CFX_BinaryBuf& de
st_buf, FX_BOOL bEncrypt); |
| 733 | 733 |
| 734 FX_BYTE» » » » m_EncryptKey[32]; | 734 uint8_t» » » » m_EncryptKey[32]; |
| 735 | 735 |
| 736 int m_KeyLen; | 736 int m_KeyLen; |
| 737 | 737 |
| 738 int m_Cipher; | 738 int m_Cipher; |
| 739 | 739 |
| 740 FX_LPBYTE m_pAESContext; | 740 FX_LPBYTE m_pAESContext; |
| 741 }; | 741 }; |
| 742 class CPDF_Point | 742 class CPDF_Point |
| 743 { | 743 { |
| 744 public: | 744 public: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 CFDF_Document(); | 791 CFDF_Document(); |
| 792 void ParseStream(IFX_FileRead *pFile, FX_BOOL bOwnFile); | 792 void ParseStream(IFX_FileRead *pFile, FX_BOOL bOwnFile); |
| 793 CPDF_Dictionary* m_pRootDict; | 793 CPDF_Dictionary* m_pRootDict; |
| 794 IFX_FileRead* m_pFile; | 794 IFX_FileRead* m_pFile; |
| 795 FX_BOOL m_bOwnFile; | 795 FX_BOOL m_bOwnFile; |
| 796 }; | 796 }; |
| 797 | 797 |
| 798 CFX_WideString FPDF_FileSpec_GetWin32Path(const CPDF_Object* pFileSpec); | 798 CFX_WideString FPDF_FileSpec_GetWin32Path(const CPDF_Object* pFileSpec); |
| 799 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, const
CFX_WideString& fullpath); | 799 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, const
CFX_WideString& fullpath); |
| 800 | 800 |
| 801 void FlateEncode(const FX_BYTE* src_buf, FX_DWORD src_size, FX_LPBYTE& dest_buf,
FX_DWORD& dest_size); | 801 void FlateEncode(const uint8_t* src_buf, FX_DWORD src_size, FX_LPBYTE& dest_buf,
FX_DWORD& dest_size); |
| 802 FX_DWORD FlateDecode(const FX_BYTE* src_buf, FX_DWORD src_size, FX_LPBYTE& dest_
buf, FX_DWORD& dest_size); | 802 FX_DWORD FlateDecode(const uint8_t* src_buf, FX_DWORD src_size, FX_LPBYTE& dest_
buf, FX_DWORD& dest_size); |
| 803 FX_DWORD RunLengthDecode(const FX_BYTE* src_buf, FX_DWORD src_size, FX_LPBYTE& d
est_buf, FX_DWORD& dest_size); | 803 FX_DWORD RunLengthDecode(const uint8_t* src_buf, FX_DWORD src_size, FX_LPBYTE& d
est_buf, FX_DWORD& dest_size); |
| 804 class CPDF_NumberTree | 804 class CPDF_NumberTree |
| 805 { | 805 { |
| 806 public: | 806 public: |
| 807 | 807 |
| 808 CPDF_NumberTree(CPDF_Dictionary* pRoot) | 808 CPDF_NumberTree(CPDF_Dictionary* pRoot) |
| 809 { | 809 { |
| 810 m_pRoot = pRoot; | 810 m_pRoot = pRoot; |
| 811 } | 811 } |
| 812 | 812 |
| 813 CPDF_Object* LookupValue(int num); | 813 CPDF_Object* LookupValue(int num); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 840 static IPDF_DataAvail* Create(IFX_FileAvail* pFileAvail, IFX_FileRead* pFile
Read); | 840 static IPDF_DataAvail* Create(IFX_FileAvail* pFileAvail, IFX_FileRead* pFile
Read); |
| 841 virtual ~IPDF_DataAvail() { } | 841 virtual ~IPDF_DataAvail() { } |
| 842 | 842 |
| 843 IFX_FileAvail* GetFileAvail() const { return m_pFileAvail; } | 843 IFX_FileAvail* GetFileAvail() const { return m_pFileAvail; } |
| 844 IFX_FileRead* GetFileRead() const { return m_pFileRead; } | 844 IFX_FileRead* GetFileRead() const { return m_pFileRead; } |
| 845 | 845 |
| 846 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) =
0; | 846 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) =
0; |
| 847 virtual void SetDocument(CPDF_Document* pDoc) = 0; | 847 virtual void SetDocument(CPDF_Document* pDoc) = 0; |
| 848 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints
* pHints) = 0; | 848 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints
* pHints) = 0; |
| 849 virtual FX_BOOL IsLinearized() = 0; | 849 virtual FX_BOOL IsLinearized() = 0; |
| 850 virtual FX_INT32» » IsFormAvail(IFX_DownloadHints *pHints) = 0; | 850 virtual int32_t» » IsFormAvail(IFX_DownloadHints *pHints) = 0; |
| 851 virtual FX_INT32» » IsLinearizedPDF() = 0; | 851 virtual int32_t» » IsLinearizedPDF() = 0; |
| 852 virtual void GetLinearizedMainXRefInfo(FX_FIL
ESIZE *pPos, FX_DWORD *pSize) = 0; | 852 virtual void GetLinearizedMainXRefInfo(FX_FIL
ESIZE *pPos, FX_DWORD *pSize) = 0; |
| 853 | 853 |
| 854 protected: | 854 protected: |
| 855 IPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); | 855 IPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); |
| 856 | 856 |
| 857 IFX_FileAvail* m_pFileAvail; | 857 IFX_FileAvail* m_pFileAvail; |
| 858 IFX_FileRead* m_pFileRead; | 858 IFX_FileRead* m_pFileRead; |
| 859 }; | 859 }; |
| 860 class CPDF_SortObjNumArray | 860 class CPDF_SortObjNumArray |
| 861 { | 861 { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 PDF_DATAAVAIL_PAGE, | 909 PDF_DATAAVAIL_PAGE, |
| 910 PDF_DATAAVAIL_PAGE_LATERLOAD, | 910 PDF_DATAAVAIL_PAGE_LATERLOAD, |
| 911 PDF_DATAAVAIL_RESOURCES, | 911 PDF_DATAAVAIL_RESOURCES, |
| 912 PDF_DATAAVAIL_DONE, | 912 PDF_DATAAVAIL_DONE, |
| 913 PDF_DATAAVAIL_ERROR, | 913 PDF_DATAAVAIL_ERROR, |
| 914 PDF_DATAAVAIL_LOADALLFILE, | 914 PDF_DATAAVAIL_LOADALLFILE, |
| 915 PDF_DATAAVAIL_TRAILER_APPEND | 915 PDF_DATAAVAIL_TRAILER_APPEND |
| 916 }; | 916 }; |
| 917 | 917 |
| 918 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 918 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| OLD | NEW |