| 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 CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| 9 | 9 |
| 10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
| 11 | 11 |
| 12 class CCodec_ModuleMgr; |
| 13 class CFX_AffineMatrix; |
| 14 class CFX_BitmapDevice; |
| 15 class CFX_DIBSource; |
| 16 class CPDF_ColorSpace; |
| 17 class CPDF_Dictionary; |
| 18 class CPDF_DocPageData; |
| 19 class CPDF_DocRenderData; |
| 20 class CPDF_Document; |
| 21 class CPDF_FontGlobals; |
| 22 class CPDF_Image; |
| 12 class CPDF_ModuleMgr; | 23 class CPDF_ModuleMgr; |
| 24 class CPDF_Page; |
| 13 class CPDF_PageModuleDef; | 25 class CPDF_PageModuleDef; |
| 26 class CPDF_PageObjects; |
| 27 class CPDF_PageRenderCache; |
| 28 class CPDF_RenderConfig; |
| 14 class CPDF_RenderModuleDef; | 29 class CPDF_RenderModuleDef; |
| 30 class CPDF_RenderOptions; |
| 15 class CPDF_SecurityHandler; | 31 class CPDF_SecurityHandler; |
| 16 class CCodec_ModuleMgr; | 32 class CPDF_Stream; |
| 17 class CPDF_Dictionary; | 33 class ICodec_FaxModule; |
| 34 class ICodec_FlateModule; |
| 35 class ICodec_IccModule; |
| 36 class ICodec_Jbig2Module; |
| 18 class ICodec_JpegModule; | 37 class ICodec_JpegModule; |
| 19 class ICodec_JpxModule; | 38 class ICodec_JpxModule; |
| 20 class ICodec_FaxModule; | 39 class IPDF_FontMapper; |
| 21 class ICodec_Jbig2Module; | 40 |
| 22 class ICodec_IccModule; | |
| 23 class ICodec_FlateModule; | |
| 24 #define ADDIN_NAME_CJK "Eastern Asian Language Support" | 41 #define ADDIN_NAME_CJK "Eastern Asian Language Support" |
| 25 #define ADDIN_NAME_DECODER "JPEG2000 and JBIG2 Image Decoders" | 42 #define ADDIN_NAME_DECODER "JPEG2000 and JBIG2 Image Decoders" |
| 43 |
| 26 class CPDF_ModuleMgr | 44 class CPDF_ModuleMgr |
| 27 { | 45 { |
| 28 public: | 46 public: |
| 29 | 47 |
| 30 static void Create(); | 48 static void Create(); |
| 31 | 49 |
| 32 static CPDF_ModuleMgr* Get(); | 50 static CPDF_ModuleMgr* Get(); |
| 33 | 51 |
| 34 static void Destroy(); | 52 static void Destroy(); |
| 35 | 53 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 128 |
| 111 CPDF_PageModuleDef* m_pPageModule; | 129 CPDF_PageModuleDef* m_pPageModule; |
| 112 | 130 |
| 113 | 131 |
| 114 FX_BOOL (*m_pDownloadCallback)(FX_LPCSTR module_name); | 132 FX_BOOL (*m_pDownloadCallback)(FX_LPCSTR module_name); |
| 115 | 133 |
| 116 CFX_MapByteStringToPtr m_SecurityHandlerMap; | 134 CFX_MapByteStringToPtr m_SecurityHandlerMap; |
| 117 | 135 |
| 118 CFX_PrivateData m_privateData; | 136 CFX_PrivateData m_privateData; |
| 119 }; | 137 }; |
| 120 class CPDF_Document; | |
| 121 class CPDF_DocPageData; | |
| 122 class CPDF_FontGlobals; | |
| 123 class IPDF_FontMgr; | |
| 124 class IPDF_FontMapper; | |
| 125 class CPDF_ColorSpace; | |
| 126 class CPDF_PageModuleDef | 138 class CPDF_PageModuleDef |
| 127 { | 139 { |
| 128 public: | 140 public: |
| 129 virtual ~CPDF_PageModuleDef() {} | 141 virtual ~CPDF_PageModuleDef() {} |
| 130 | 142 |
| 131 virtual CPDF_DocPageData* CreateDocData(CPDF_Document* pDoc) | 143 virtual CPDF_DocPageData* CreateDocData(CPDF_Document* pDoc) |
| 132 { | 144 { |
| 133 return NULL; | 145 return NULL; |
| 134 } | 146 } |
| 135 | 147 |
| 136 virtual void ReleaseDoc(CPDF_Document*) {} | 148 virtual void ReleaseDoc(CPDF_Document*) {} |
| 137 virtual void ClearDoc(CPDF_Document*) {} | 149 virtual void ClearDoc(CPDF_Document*) {} |
| 138 | 150 |
| 139 virtual CPDF_FontGlobals* GetFontGlobals() | 151 virtual CPDF_FontGlobals* GetFontGlobals() |
| 140 { | 152 { |
| 141 return NULL; | 153 return NULL; |
| 142 } | 154 } |
| 143 | 155 |
| 144 virtual void ClearStockFont(CPDF_Document* pD
oc) {} | 156 virtual void ClearStockFont(CPDF_Document* pD
oc) {} |
| 145 | 157 |
| 146 virtual void NotifyCJKAvailable() {} | 158 virtual void NotifyCJKAvailable() {} |
| 147 | 159 |
| 148 virtual CPDF_ColorSpace* GetStockCS(int family) | 160 virtual CPDF_ColorSpace* GetStockCS(int family) |
| 149 { | 161 { |
| 150 return NULL; | 162 return NULL; |
| 151 } | 163 } |
| 152 }; | 164 }; |
| 153 class CPDF_PageObjects; | |
| 154 class CFX_AffineMatrix; | |
| 155 class CPDF_RenderOptions; | |
| 156 class CPDF_Page; | |
| 157 class CPDF_DocRenderData; | |
| 158 class CPDF_PageRenderCache; | |
| 159 class CFX_BitmapDevice; | |
| 160 class CPDF_Stream; | |
| 161 class CFX_DIBSource; | |
| 162 class CPDF_RenderConfig; | |
| 163 class CPDF_Image; | |
| 164 class CPDF_RenderModuleDef | 165 class CPDF_RenderModuleDef |
| 165 { | 166 { |
| 166 public: | 167 public: |
| 167 virtual ~CPDF_RenderModuleDef() {} | 168 virtual ~CPDF_RenderModuleDef() {} |
| 168 | 169 |
| 169 virtual CPDF_DocRenderData* CreateDocData(CPDF_Document* pDoc) | 170 virtual CPDF_DocRenderData* CreateDocData(CPDF_Document* pDoc) |
| 170 { | 171 { |
| 171 return NULL; | 172 return NULL; |
| 172 } | 173 } |
| 173 | 174 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 188 | 189 |
| 189 virtual void NotifyDecoderAvailable() {} | 190 virtual void NotifyDecoderAvailable() {} |
| 190 | 191 |
| 191 virtual CPDF_RenderConfig* GetConfig() | 192 virtual CPDF_RenderConfig* GetConfig() |
| 192 { | 193 { |
| 193 return NULL; | 194 return NULL; |
| 194 } | 195 } |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 #endif // CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 198 #endif // CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| OLD | NEW |