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 FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
9 | 9 |
10 #include "../../core/include/fpdfapi/fpdf_module.h" | 10 #include "../../core/include/fpdfapi/fpdf_module.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual FX_BOOL WriteBlock(const void* buffer, | 84 virtual FX_BOOL WriteBlock(const void* buffer, |
85 FX_FILESIZE offset, | 85 FX_FILESIZE offset, |
86 size_t size); | 86 size_t size); |
87 virtual FX_BOOL Flush(); | 87 virtual FX_BOOL Flush(); |
88 | 88 |
89 protected: | 89 protected: |
90 FPDF_FILEHANDLER* m_pFS; | 90 FPDF_FILEHANDLER* m_pFS; |
91 FX_FILESIZE m_nCurPos; | 91 FX_FILESIZE m_nCurPos; |
92 }; | 92 }; |
93 | 93 |
| 94 // Conversions from FPDF_ types. |
| 95 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); |
| 96 |
94 void DropContext(void* data); | 97 void DropContext(void* data); |
95 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 98 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
96 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 99 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
97 void FPDF_RenderPage_Retail(CRenderContext* pContext, | 100 void FPDF_RenderPage_Retail(CRenderContext* pContext, |
98 FPDF_PAGE page, | 101 FPDF_PAGE page, |
99 int start_x, | 102 int start_x, |
100 int start_y, | 103 int start_y, |
101 int size_x, | 104 int size_x, |
102 int size_y, | 105 int size_y, |
103 int rotate, | 106 int rotate, |
104 int flags, | 107 int flags, |
105 FX_BOOL bNeedToRestore, | 108 FX_BOOL bNeedToRestore, |
106 IFSDK_PAUSE_Adapter* pause); | 109 IFSDK_PAUSE_Adapter* pause); |
107 | 110 |
108 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); | 111 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); |
109 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); | 112 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); |
110 void ProcessParseError(FX_DWORD err_code); | 113 void ProcessParseError(FX_DWORD err_code); |
111 | 114 |
112 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 115 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
OLD | NEW |