| 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 28 matching lines...) Expand all Loading... |
| 39 class CFX_PrivateData; | 39 class CFX_PrivateData; |
| 40 #define FPDFPERM_PRINT 0x0004 | 40 #define FPDFPERM_PRINT 0x0004 |
| 41 #define FPDFPERM_MODIFY 0x0008 | 41 #define FPDFPERM_MODIFY 0x0008 |
| 42 #define FPDFPERM_EXTRACT 0x0010 | 42 #define FPDFPERM_EXTRACT 0x0010 |
| 43 #define FPDFPERM_ANNOT_FORM 0x0020 | 43 #define FPDFPERM_ANNOT_FORM 0x0020 |
| 44 #define FPDFPERM_FILL_FORM 0x0100 | 44 #define FPDFPERM_FILL_FORM 0x0100 |
| 45 #define FPDFPERM_EXTRACT_ACCESS 0x0200 | 45 #define FPDFPERM_EXTRACT_ACCESS 0x0200 |
| 46 #define FPDFPERM_ASSEMBLE 0x0400 | 46 #define FPDFPERM_ASSEMBLE 0x0400 |
| 47 #define FPDFPERM_PRINT_HIGH 0x0800 | 47 #define FPDFPERM_PRINT_HIGH 0x0800 |
| 48 #define FPDF_PAGE_MAX_NUM 0xFFFFF | 48 #define FPDF_PAGE_MAX_NUM 0xFFFFF |
| 49 |
| 50 // Indexed by 8-bit character code, contains either: |
| 51 // 'W' - for whitespace: NUL, TAB, CR, LF, FF, 0x80, 0xff |
| 52 // 'N' - for numeric: 0123456789+-. |
| 53 // 'D' - for delimiter: %()/<>[]{} |
| 54 // 'R' - otherwise. |
| 55 extern const char PDF_CharType[256]; |
| 56 |
| 49 class IPDF_EnumPageHandler | 57 class IPDF_EnumPageHandler |
| 50 { | 58 { |
| 51 public: | 59 public: |
| 52 virtual ~IPDF_EnumPageHandler() { } | 60 virtual ~IPDF_EnumPageHandler() { } |
| 53 virtual FX_BOOL EnumPage(CPDF_Dictionary* pPageDict) = 0; | 61 virtual FX_BOOL EnumPage(CPDF_Dictionary* pPageDict) = 0; |
| 54 }; | 62 }; |
| 55 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects | 63 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects |
| 56 { | 64 { |
| 57 public: | 65 public: |
| 58 | 66 |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 PDF_DATAAVAIL_PAGETREE, | 949 PDF_DATAAVAIL_PAGETREE, |
| 942 PDF_DATAAVAIL_PAGE, | 950 PDF_DATAAVAIL_PAGE, |
| 943 PDF_DATAAVAIL_PAGE_LATERLOAD, | 951 PDF_DATAAVAIL_PAGE_LATERLOAD, |
| 944 PDF_DATAAVAIL_RESOURCES, | 952 PDF_DATAAVAIL_RESOURCES, |
| 945 PDF_DATAAVAIL_DONE, | 953 PDF_DATAAVAIL_DONE, |
| 946 PDF_DATAAVAIL_ERROR, | 954 PDF_DATAAVAIL_ERROR, |
| 947 PDF_DATAAVAIL_LOADALLFILE, | 955 PDF_DATAAVAIL_LOADALLFILE, |
| 948 PDF_DATAAVAIL_TRAILER_APPEND | 956 PDF_DATAAVAIL_TRAILER_APPEND |
| 949 }; | 957 }; |
| 950 #endif | 958 #endif |
| OLD | NEW |