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