| 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_PARSER_ | 7 #ifndef _FPDF_PARSER_ |
| 8 #define _FPDF_PARSER_ | 8 #define _FPDF_PARSER_ |
| 9 #ifndef _FX_BASIC_H_ | 9 #ifndef _FX_BASIC_H_ |
| 10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 virtual FX_BOOL IsFormStream(FX_DWORD objnum, FX_BOOL& bForm) =
0; | 391 virtual FX_BOOL IsFormStream(FX_DWORD objnum, FX_BOOL& bForm) =
0; |
| 392 }; | 392 }; |
| 393 | 393 |
| 394 #define PDFPARSE_ERROR_SUCCESS 0 | 394 #define PDFPARSE_ERROR_SUCCESS 0 |
| 395 #define PDFPARSE_ERROR_FILE 1 | 395 #define PDFPARSE_ERROR_FILE 1 |
| 396 #define PDFPARSE_ERROR_FORMAT 2 | 396 #define PDFPARSE_ERROR_FORMAT 2 |
| 397 #define PDFPARSE_ERROR_PASSWORD 3 | 397 #define PDFPARSE_ERROR_PASSWORD 3 |
| 398 #define PDFPARSE_ERROR_HANDLER 4 | 398 #define PDFPARSE_ERROR_HANDLER 4 |
| 399 #define PDFPARSE_ERROR_CERT 5 | 399 #define PDFPARSE_ERROR_CERT 5 |
| 400 class CPDF_Parser : public IPDF_DocParser | 400 class CPDF_Parser FX_FINAL : public IPDF_DocParser |
| 401 { | 401 { |
| 402 public: | 402 public: |
| 403 | 403 |
| 404 CPDF_Parser(); | 404 CPDF_Parser(); |
| 405 | 405 |
| 406 ~CPDF_Parser(); | 406 ~CPDF_Parser(); |
| 407 | 407 |
| 408 FX_DWORD StartParse(FX_LPCSTR filename, FX_BOOL bReParse
= FALSE); | 408 FX_DWORD StartParse(FX_LPCSTR filename, FX_BOOL bReParse
= FALSE); |
| 409 | 409 |
| 410 FX_DWORD StartParse(FX_LPCWSTR filename, FX_BOOL bReParse
= FALSE); | 410 FX_DWORD StartParse(FX_LPCWSTR filename, FX_BOOL bReParse
= FALSE); |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 PDF_DATAAVAIL_ACROFORM_SUBOBJECT, | 938 PDF_DATAAVAIL_ACROFORM_SUBOBJECT, |
| 939 PDF_DATAAVAIL_PAGETREE, | 939 PDF_DATAAVAIL_PAGETREE, |
| 940 PDF_DATAAVAIL_PAGE, | 940 PDF_DATAAVAIL_PAGE, |
| 941 PDF_DATAAVAIL_PAGE_LATERLOAD, | 941 PDF_DATAAVAIL_PAGE_LATERLOAD, |
| 942 PDF_DATAAVAIL_RESOURCES, | 942 PDF_DATAAVAIL_RESOURCES, |
| 943 PDF_DATAAVAIL_DONE, | 943 PDF_DATAAVAIL_DONE, |
| 944 PDF_DATAAVAIL_ERROR, | 944 PDF_DATAAVAIL_ERROR, |
| 945 PDF_DATAAVAIL_LOADALLFILE, | 945 PDF_DATAAVAIL_LOADALLFILE, |
| 946 PDF_DATAAVAIL_TRAILER_APPEND | 946 PDF_DATAAVAIL_TRAILER_APPEND |
| 947 }; | 947 }; |
| 948 class CPDF_DataAvail : public CFX_Object, public IPDF_DataAvail | 948 class CPDF_DataAvail FX_FINAL : public CFX_Object, public IPDF_DataAvail |
| 949 { | 949 { |
| 950 public: | 950 public: |
| 951 | 951 |
| 952 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); | 952 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); |
| 953 ~CPDF_DataAvail(); | 953 ~CPDF_DataAvail(); |
| 954 | 954 |
| 955 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pH
ints); | 955 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pH
ints); |
| 956 | 956 |
| 957 | 957 |
| 958 virtual void SetDocument(CPDF_Document* pDoc)
; | 958 virtual void SetDocument(CPDF_Document* pDoc)
; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 | 1140 |
| 1141 FX_BOOL m_bCurPageDictLoadOK; | 1141 FX_BOOL m_bCurPageDictLoadOK; |
| 1142 | 1142 |
| 1143 CPDF_PageNode m_pageNodes; | 1143 CPDF_PageNode m_pageNodes; |
| 1144 | 1144 |
| 1145 CFX_CMapDWordToDWord * m_pageMapCheckState; | 1145 CFX_CMapDWordToDWord * m_pageMapCheckState; |
| 1146 | 1146 |
| 1147 CFX_CMapDWordToDWord * m_pagesLoadState; | 1147 CFX_CMapDWordToDWord * m_pagesLoadState; |
| 1148 }; | 1148 }; |
| 1149 #endif | 1149 #endif |
| OLD | NEW |