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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 FX_BOOL m_bIsNumber; | 337 FX_BOOL m_bIsNumber; |
338 | 338 |
339 FX_FILESIZE m_dwWordPos; | 339 FX_FILESIZE m_dwWordPos; |
340 friend class CPDF_Parser; | 340 friend class CPDF_Parser; |
341 friend class CPDF_DataAvail; | 341 friend class CPDF_DataAvail; |
342 }; | 342 }; |
343 | 343 |
344 #define PDFPARSE_TYPEONLY 1 | 344 #define PDFPARSE_TYPEONLY 1 |
345 #define PDFPARSE_NOSTREAM 2 | 345 #define PDFPARSE_NOSTREAM 2 |
346 struct PARSE_CONTEXT { | 346 struct PARSE_CONTEXT { |
347 | 347 uint32_t m_Flags; |
348 FX_BOOL» » m_Flags; | 348 FX_FILESIZE m_DictStart; |
349 | 349 FX_FILESIZE m_DictEnd; |
350 FX_FILESIZE»m_DictStart; | 350 FX_FILESIZE m_DataStart; |
351 | 351 FX_FILESIZE m_DataEnd; |
352 FX_FILESIZE»m_DictEnd; | |
353 | |
354 FX_FILESIZE»m_DataStart; | |
355 | |
356 FX_FILESIZE»m_DataEnd; | |
357 }; | 352 }; |
358 | 353 |
359 #define PDFPARSE_ERROR_SUCCESS 0 | 354 #define PDFPARSE_ERROR_SUCCESS 0 |
360 #define PDFPARSE_ERROR_FILE 1 | 355 #define PDFPARSE_ERROR_FILE 1 |
361 #define PDFPARSE_ERROR_FORMAT 2 | 356 #define PDFPARSE_ERROR_FORMAT 2 |
362 #define PDFPARSE_ERROR_PASSWORD 3 | 357 #define PDFPARSE_ERROR_PASSWORD 3 |
363 #define PDFPARSE_ERROR_HANDLER 4 | 358 #define PDFPARSE_ERROR_HANDLER 4 |
364 #define PDFPARSE_ERROR_CERT 5 | 359 #define PDFPARSE_ERROR_CERT 5 |
365 | 360 |
366 class CPDF_Parser | 361 class CPDF_Parser |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 PDF_DATAAVAIL_PAGE, | 900 PDF_DATAAVAIL_PAGE, |
906 PDF_DATAAVAIL_PAGE_LATERLOAD, | 901 PDF_DATAAVAIL_PAGE_LATERLOAD, |
907 PDF_DATAAVAIL_RESOURCES, | 902 PDF_DATAAVAIL_RESOURCES, |
908 PDF_DATAAVAIL_DONE, | 903 PDF_DATAAVAIL_DONE, |
909 PDF_DATAAVAIL_ERROR, | 904 PDF_DATAAVAIL_ERROR, |
910 PDF_DATAAVAIL_LOADALLFILE, | 905 PDF_DATAAVAIL_LOADALLFILE, |
911 PDF_DATAAVAIL_TRAILER_APPEND | 906 PDF_DATAAVAIL_TRAILER_APPEND |
912 }; | 907 }; |
913 | 908 |
914 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 909 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
OLD | NEW |