| 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_system.h" | 10 #include "../fxcrt/fx_system.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 #define PDFPARSE_ERROR_FORMAT 2 | 348 #define PDFPARSE_ERROR_FORMAT 2 |
| 349 #define PDFPARSE_ERROR_PASSWORD 3 | 349 #define PDFPARSE_ERROR_PASSWORD 3 |
| 350 #define PDFPARSE_ERROR_HANDLER 4 | 350 #define PDFPARSE_ERROR_HANDLER 4 |
| 351 #define PDFPARSE_ERROR_CERT 5 | 351 #define PDFPARSE_ERROR_CERT 5 |
| 352 | 352 |
| 353 class CPDF_Parser { | 353 class CPDF_Parser { |
| 354 public: | 354 public: |
| 355 CPDF_Parser(); | 355 CPDF_Parser(); |
| 356 ~CPDF_Parser(); | 356 ~CPDF_Parser(); |
| 357 | 357 |
| 358 FX_DWORD StartParse(const FX_CHAR* filename, FX_BOOL bReParse = FALSE); | |
| 359 FX_DWORD StartParse(const FX_WCHAR* filename, FX_BOOL bReParse = FALSE); | |
| 360 FX_DWORD StartParse(IFX_FileRead* pFile, | 358 FX_DWORD StartParse(IFX_FileRead* pFile, |
| 361 FX_BOOL bReParse = FALSE, | 359 FX_BOOL bReParse = FALSE, |
| 362 FX_BOOL bOwnFileRead = TRUE); | 360 FX_BOOL bOwnFileRead = TRUE); |
| 363 | 361 |
| 364 void CloseParser(FX_BOOL bReParse = FALSE); | 362 void CloseParser(FX_BOOL bReParse = FALSE); |
| 365 | 363 |
| 366 FX_DWORD GetPermissions(FX_BOOL bCheckRevision = FALSE); | 364 FX_DWORD GetPermissions(FX_BOOL bCheckRevision = FALSE); |
| 367 | 365 |
| 368 FX_BOOL IsOwner(); | 366 FX_BOOL IsOwner(); |
| 369 | 367 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 PDF_DATAAVAIL_PAGE, | 901 PDF_DATAAVAIL_PAGE, |
| 904 PDF_DATAAVAIL_PAGE_LATERLOAD, | 902 PDF_DATAAVAIL_PAGE_LATERLOAD, |
| 905 PDF_DATAAVAIL_RESOURCES, | 903 PDF_DATAAVAIL_RESOURCES, |
| 906 PDF_DATAAVAIL_DONE, | 904 PDF_DATAAVAIL_DONE, |
| 907 PDF_DATAAVAIL_ERROR, | 905 PDF_DATAAVAIL_ERROR, |
| 908 PDF_DATAAVAIL_LOADALLFILE, | 906 PDF_DATAAVAIL_LOADALLFILE, |
| 909 PDF_DATAAVAIL_TRAILER_APPEND | 907 PDF_DATAAVAIL_TRAILER_APPEND |
| 910 }; | 908 }; |
| 911 | 909 |
| 912 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 910 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| OLD | NEW |