| 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_DEFINE_H | 7 #ifndef _FPDFSDK_DEFINE_H |
| 8 #define _FPDFSDK_DEFINE_H | 8 #define _FPDFSDK_DEFINE_H |
| 9 | 9 |
| 10 #ifdef _WIN32 | 10 #ifdef _WIN32 |
| 11 #include <tchar.h> | 11 #include <tchar.h> |
| 12 #include <math.h> | 12 #include <math.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 //#define API5 | 15 #include "../../core/include/fpdfapi/fpdf_parser.h" |
| 16 #define API6 | 16 #include "../../core/include/fpdfapi/fpdfapi.h" |
| 17 #define _FPDFAPI_ASYNC_PARSING_ | 17 #include "../../core/include/fpdfapi/fpdf_parser.h" |
| 18 #define _FXSDK_OPENSOURCE_ | 18 #include "../../core/include/fpdfapi/fpdf_module.h" |
| 19 #include "../../core/include/fpdfapi/fpdf_render.h" |
| 20 #include "../../core/include/fpdfapi/fpdf_pageobj.h" |
| 21 #include "../../core/include/fpdfapi/fpdf_serial.h" |
| 19 | 22 |
| 20 #ifdef _FPDFEMB_WCE_ | 23 #include "../../core/include/fpdftext/fpdf_text.h" |
| 21 » #include "../../core/include/fpdfapi/fpdfapi.h" | |
| 22 » #include "../../core/include/fpdfapi/fpdf_parser.h" | |
| 23 » #include "../../core/include/fpdfapi/fpdf_module.h" | |
| 24 » #include "../../core/include/fpdfapi/fpdf_render.h" | |
| 25 » #include "../../core/include/fpdfapi/fpdf_pageobj.h" | |
| 26 » #include "../../core/include/fpdfapi/fpdf_serial.h" | |
| 27 | 24 |
| 28 » #include "../../core/include/fpdftext/fpdf_text.h" | 25 #include "../../core/include/fxge/fx_ge_win32.h" |
| 26 #include "../../core/include/fxge/fx_ge.h" |
| 29 | 27 |
| 30 » #include "../../core/include/fxge/fx_ge_win32.h" | 28 #include "../../core/include/fxcodec/fx_codec.h" |
| 31 » #include "../../core/include/fxge/fx_ge.h" | |
| 32 | 29 |
| 33 » #include "../../core/include/fxcodec/fx_codec.h" | 30 #include "../../core/include/fpdfdoc/fpdf_doc.h" |
| 31 #include "../../core/include/fpdfdoc/fpdf_vt.h" |
| 34 | 32 |
| 35 » #include "../../core/include/fpdfdoc/fpdf_doc.h" | 33 #include "../../core/include/fxcrt/fx_xml.h" |
| 36 » #include "../../core/include/fpdfdoc/fpdf_vt.h" | 34 #include "../../xfa/include/fxbarcode/BC_BarCode.h" |
| 35 #include "../../xfa/include/fxjse/fxjse.h" |
| 36 #include "../../xfa/include/fxgraphics/fx_graphics.h" |
| 37 #include "../../xfa/include/fxfa/fxfa.h" |
| 37 | 38 |
| 38 » #include "../../core/include/fxcrt/fx_xml.h" | 39 #include "../../xfa/include/fwl/core/fwl_error.h" |
| 39 » #include "../../core/include/fxcrt/fx_crypt.h" | 40 #include "../../xfa/include/fwl/core/fwl_timer.h" |
| 40 | 41 #include "../../xfa/include/fwl/adapter/fwl_adaptertimermgr.h" |
| 41 #else | |
| 42 » #ifdef API6 | |
| 43 » » #include "../../core/include/fpdfapi/fpdf_parser.h" | |
| 44 » » #include "../../core/include/fpdfapi/fpdfapi.h" | |
| 45 » » #include "../../core/include/fpdfapi/fpdf_parser.h" | |
| 46 » » #include "../../core/include/fpdfapi/fpdf_module.h" | |
| 47 » » #include "../../core/include/fpdfapi/fpdf_render.h" | |
| 48 » » #include "../../core/include/fpdfapi/fpdf_pageobj.h" | |
| 49 » » #include "../../core/include/fpdfapi/fpdf_serial.h" | |
| 50 | |
| 51 » » #include "../../core/include/fpdftext/fpdf_text.h" | |
| 52 | |
| 53 » » #include "../../core/include/fxge/fx_ge_win32.h" | |
| 54 » » #include "../../core/include/fxge/fx_ge.h" | |
| 55 | |
| 56 » » #include "../../core/include/fxcodec/fx_codec.h" | |
| 57 | |
| 58 » » #include "../../core/include/fpdfdoc/fpdf_doc.h" | |
| 59 » » #include "../../core/include/fpdfdoc/fpdf_vt.h" | |
| 60 | |
| 61 » » #include "../../core/include/fxcrt/fx_xml.h" | |
| 62 » » #include "../../xfa/include/fxbarcode/BC_BarCode.h" | |
| 63 » » #include "../../xfa/include/fxjse/fxjse.h" | |
| 64 » » #include "../../xfa/include/fxgraphics/fx_graphics.h" | |
| 65 » » #include "../../xfa/include/fxfa/fxfa.h" | |
| 66 | |
| 67 » » #include "../../xfa/include/fwl/core/fwl_error.h" | |
| 68 » » #include "../../xfa/include/fwl/core/fwl_timer.h" | |
| 69 » » #include "../../xfa/include/fwl/adapter/fwl_adaptertimermgr.h" | |
| 70 » » #ifdef _LICENSED_BUILD_ | |
| 71 » » » #include "../../cryptopp/Cryptlib.h" | |
| 72 » » #endif | |
| 73 » #endif | |
| 74 #endif | |
| 75 | 42 |
| 76 | 43 |
| 77 #ifndef FX_GetAValue | 44 #ifndef FX_GetAValue |
| 78 /** @brief It retrieves an intensity value for the alpha component of a #FX_ARGB
value. */ | 45 /** @brief It retrieves an intensity value for the alpha component of a #FX_ARGB
value. */ |
| 79 #define FX_GetAValue(argb) ((argb & 0xFF000000) >> 24) | 46 #define FX_GetAValue(argb) ((argb & 0xFF000000) >> 24) |
| 80 #endif | 47 #endif |
| 81 | 48 |
| 82 #ifndef FX_GetRValue | 49 #ifndef FX_GetRValue |
| 83 /** @brief It retrieves an intensity value for the red component of a #FX_ARGB v
alue. */ | 50 /** @brief It retrieves an intensity value for the red component of a #FX_ARGB v
alue. */ |
| 84 #define FX_GetRValue(argb) ((argb & 0x00FF0000) >> 16) | 51 #define FX_GetRValue(argb) ((argb & 0x00FF0000) >> 16) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 protected: | 116 protected: |
| 150 FPDF_FILEHANDLER* m_pFS; | 117 FPDF_FILEHANDLER* m_pFS; |
| 151 FX_FILESIZE m_nCurPos; | 118 FX_FILESIZE m_nCurPos; |
| 152 }; | 119 }; |
| 153 | 120 |
| 154 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 121 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
| 155 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 122 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
| 156 | 123 |
| 157 | 124 |
| 158 #endif//_FPDFSDK_DEFINE_H | 125 #endif//_FPDFSDK_DEFINE_H |
| OLD | NEW |