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" |
11 #include "core/fxge/include/fx_ge.h" | 11 #include "core/fxge/include/fx_ge.h" |
12 #include "core/fxge/include/fx_ge_win32.h" | 12 #include "core/fxge/include/fx_ge_win32.h" |
13 #include "core/include/fpdfdoc/fpdf_doc.h" | 13 #include "core/include/fpdfdoc/fpdf_doc.h" |
14 #include "public/fpdfview.h" | 14 #include "public/fpdfview.h" |
15 | 15 |
16 #ifdef PDF_ENABLE_XFA | 16 #ifdef PDF_ENABLE_XFA |
17 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" | 17 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
18 #endif // PDF_ENABLE_XFA | 18 #endif // PDF_ENABLE_XFA |
19 | 19 |
20 #ifdef _WIN32 | 20 #ifdef _WIN32 |
21 #include <math.h> | 21 #include <math.h> |
22 #include <tchar.h> | 22 #include <tchar.h> |
23 #endif | 23 #endif |
24 | 24 |
25 // Convert a #FX_ARGB to a #FX_COLORREF. | 25 // Convert a #FX_ARGB to a #FX_COLORREF. |
26 #define FX_ARGBTOCOLORREF(argb) \ | 26 #define FX_ARGBTOCOLORREF(argb) \ |
27 ((((uint32_t)argb & 0x00FF0000) >> 16) | ((uint32_t)argb & 0x0000FF00) | \ | 27 ((((uint32_t)argb & 0x00FF0000) >> 16) | ((uint32_t)argb & 0x0000FF00) | \ |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 int rotate, | 121 int rotate, |
122 int flags, | 122 int flags, |
123 FX_BOOL bNeedToRestore, | 123 FX_BOOL bNeedToRestore, |
124 IFSDK_PAUSE_Adapter* pause); | 124 IFSDK_PAUSE_Adapter* pause); |
125 | 125 |
126 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); | 126 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); |
127 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); | 127 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); |
128 void ProcessParseError(CPDF_Parser::Error err); | 128 void ProcessParseError(CPDF_Parser::Error err); |
129 | 129 |
130 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 130 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
OLD | NEW |