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 "../../../public/fpdfview.h" | |
11 #include "../fxcrt/fx_system.h" | 10 #include "../fxcrt/fx_system.h" |
12 #include "fpdf_objects.h" | 11 #include "fpdf_objects.h" |
13 | 12 |
14 class CPDF_Document; | 13 class CPDF_Document; |
15 class CPDF_Parser; | 14 class CPDF_Parser; |
16 class CPDF_SecurityHandler; | 15 class CPDF_SecurityHandler; |
17 class CPDF_StandardSecurityHandler; | 16 class CPDF_StandardSecurityHandler; |
18 class CPDF_CryptoHandler; | 17 class CPDF_CryptoHandler; |
19 class CPDF_Object; | 18 class CPDF_Object; |
20 class IFX_FileRead; | 19 class IFX_FileRead; |
(...skipping 29 matching lines...) Expand all Loading... |
50 // 'N' - for numeric: 0123456789+-. | 49 // 'N' - for numeric: 0123456789+-. |
51 // 'D' - for delimiter: %()/<>[]{} | 50 // 'D' - for delimiter: %()/<>[]{} |
52 // 'R' - otherwise. | 51 // 'R' - otherwise. |
53 extern const char PDF_CharType[256]; | 52 extern const char PDF_CharType[256]; |
54 | 53 |
55 // Indexed by 8-bit char code, contains unicode code points. | 54 // Indexed by 8-bit char code, contains unicode code points. |
56 extern const FX_WORD PDFDocEncoding[256]; | 55 extern const FX_WORD PDFDocEncoding[256]; |
57 | 56 |
58 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects { | 57 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects { |
59 public: | 58 public: |
60 static CPDF_Document* FromFPDFDocument(FPDF_DOCUMENT document); | |
61 | |
62 CPDF_Document(); | 59 CPDF_Document(); |
63 explicit CPDF_Document(CPDF_Parser* pParser); | 60 explicit CPDF_Document(CPDF_Parser* pParser); |
64 | 61 |
65 ~CPDF_Document(); | 62 ~CPDF_Document(); |
66 | 63 |
67 CPDF_Parser* GetParser() const { return m_pParser; } | 64 CPDF_Parser* GetParser() const { return m_pParser; } |
68 | 65 |
69 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } | 66 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } |
70 | 67 |
71 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } | 68 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 FX_DWORD src_size, | 931 FX_DWORD src_size, |
935 const CPDF_Dictionary* pDict, | 932 const CPDF_Dictionary* pDict, |
936 uint8_t*& dest_buf, | 933 uint8_t*& dest_buf, |
937 FX_DWORD& dest_size, | 934 FX_DWORD& dest_size, |
938 CFX_ByteString& ImageEncoding, | 935 CFX_ByteString& ImageEncoding, |
939 CPDF_Dictionary*& pImageParms, | 936 CPDF_Dictionary*& pImageParms, |
940 FX_DWORD estimated_size, | 937 FX_DWORD estimated_size, |
941 FX_BOOL bImageAcc); | 938 FX_BOOL bImageAcc); |
942 | 939 |
943 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 940 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
OLD | NEW |