OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CPDF_DOCUMENT_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_CPDF_DOCUMENT_H_ |
8 #define CORE_INCLUDE_FPDFAPI_CPDF_DOCUMENT_H_ | 8 #define CORE_INCLUDE_FPDFAPI_CPDF_DOCUMENT_H_ |
9 | 9 |
10 #include "core/include/fpdfapi/fpdf_objects.h" | 10 #include "core/include/fpdfapi/fpdf_objects.h" |
11 #include "core/include/fxcrt/fx_basic.h" | 11 #include "core/include/fxcrt/fx_basic.h" |
12 | 12 |
13 class CFX_Font; | 13 class CFX_Font; |
14 class CPDF_ColorSpace; | 14 class CPDF_ColorSpace; |
15 class CPDF_DocPageData; | 15 class CPDF_DocPageData; |
16 class CPDF_DocRenderData; | 16 class CPDF_DocRenderData; |
17 class CPDF_Font; | 17 class CPDF_Font; |
18 class CPDF_FontEncoding; | 18 class CPDF_FontEncoding; |
19 class CPDF_IccProfile; | 19 class CPDF_IccProfile; |
20 class CPDF_Image; | 20 class CPDF_Image; |
21 class CPDF_Pattern; | 21 class CPDF_Pattern; |
22 | 22 |
| 23 #define FPDFPERM_PRINT 0x0004 |
| 24 #define FPDFPERM_MODIFY 0x0008 |
| 25 #define FPDFPERM_EXTRACT 0x0010 |
| 26 #define FPDFPERM_ANNOT_FORM 0x0020 |
| 27 #define FPDFPERM_FILL_FORM 0x0100 |
| 28 #define FPDFPERM_EXTRACT_ACCESS 0x0200 |
| 29 #define FPDFPERM_ASSEMBLE 0x0400 |
| 30 #define FPDFPERM_PRINT_HIGH 0x0800 |
| 31 #define FPDF_PAGE_MAX_NUM 0xFFFFF |
| 32 |
23 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjectHolder { | 33 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjectHolder { |
24 public: | 34 public: |
25 CPDF_Document(); | 35 CPDF_Document(); |
26 explicit CPDF_Document(CPDF_Parser* pParser); | 36 explicit CPDF_Document(CPDF_Parser* pParser); |
27 ~CPDF_Document(); | 37 ~CPDF_Document(); |
28 | 38 |
29 CPDF_Parser* GetParser() const { return m_pParser; } | 39 CPDF_Parser* GetParser() const { return m_pParser; } |
30 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } | 40 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } |
31 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } | 41 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } |
32 | 42 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 CFX_ByteString m_ID2; | 125 CFX_ByteString m_ID2; |
116 FX_BOOL m_bLinearized; | 126 FX_BOOL m_bLinearized; |
117 FX_DWORD m_dwFirstPageNo; | 127 FX_DWORD m_dwFirstPageNo; |
118 FX_DWORD m_dwFirstPageObjNum; | 128 FX_DWORD m_dwFirstPageObjNum; |
119 CFX_DWordArray m_PageList; | 129 CFX_DWordArray m_PageList; |
120 CPDF_DocPageData* m_pDocPage; | 130 CPDF_DocPageData* m_pDocPage; |
121 CPDF_DocRenderData* m_pDocRender; | 131 CPDF_DocRenderData* m_pDocRender; |
122 }; | 132 }; |
123 | 133 |
124 #endif // CORE_INCLUDE_FPDFAPI_CPDF_DOCUMENT_H_ | 134 #endif // CORE_INCLUDE_FPDFAPI_CPDF_DOCUMENT_H_ |
OLD | NEW |