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/fpdfapi/fpdf_parser/include/cpdf_parser.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc); | 101 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc); |
102 | 102 |
103 UnderlyingPageType* UnderlyingFromFPDFPage(FPDF_PAGE page); | 103 UnderlyingPageType* UnderlyingFromFPDFPage(FPDF_PAGE page); |
104 | 104 |
105 // Conversions to/from FPDF_ types. | 105 // Conversions to/from FPDF_ types. |
106 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); | 106 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); |
107 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); | 107 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); |
108 | 108 |
109 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); | 109 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); |
110 | 110 |
| 111 CFX_DIBitmap* CFXBitmapFromFPDFBitmap(FPDF_BITMAP bitmap); |
| 112 |
111 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 113 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
112 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 114 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
113 void FPDF_RenderPage_Retail(CRenderContext* pContext, | 115 void FPDF_RenderPage_Retail(CRenderContext* pContext, |
114 FPDF_PAGE page, | 116 FPDF_PAGE page, |
115 int start_x, | 117 int start_x, |
116 int start_y, | 118 int start_y, |
117 int size_x, | 119 int size_x, |
118 int size_y, | 120 int size_y, |
119 int rotate, | 121 int rotate, |
120 int flags, | 122 int flags, |
121 FX_BOOL bNeedToRestore, | 123 FX_BOOL bNeedToRestore, |
122 IFSDK_PAUSE_Adapter* pause); | 124 IFSDK_PAUSE_Adapter* pause); |
123 | 125 |
124 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); | 126 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); |
125 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); | 127 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); |
126 void ProcessParseError(CPDF_Parser::Error err); | 128 void ProcessParseError(CPDF_Parser::Error err); |
127 | 129 |
128 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 130 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
OLD | NEW |