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