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 XFA_FXFA_INCLUDE_XFA_FFAPP_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFAPP_H_ |
8 #define XFA_FXFA_INCLUDE_XFA_FFAPP_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_FFAPP_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" |
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
12 #include "xfa/fgas/font/fgas_font.h" | 12 #include "xfa/fgas/font/fgas_font.h" |
13 #include "xfa/fwl/core/ifwl_app.h" | 13 #include "xfa/fwl/core/ifwl_app.h" |
14 #include "xfa/fxfa/include/fxfa.h" | 14 #include "xfa/fxfa/include/fxfa.h" |
15 | 15 |
16 class CFWL_WidgetMgrDelegate; | 16 class CFWL_WidgetMgrDelegate; |
17 class CXFA_DefFontMgr; | 17 class CXFA_DefFontMgr; |
18 class CXFA_FWLAdapterWidgetMgr; | 18 class CXFA_FWLAdapterWidgetMgr; |
19 class CXFA_FWLTheme; | 19 class CXFA_FWLTheme; |
20 class CXFA_FFDocHandler; | 20 class CXFA_FFDocHandler; |
21 class CXFA_FontMgr; | 21 class CXFA_FontMgr; |
22 class IFWL_AdapterTimerMgr; | 22 class IFWL_AdapterTimerMgr; |
23 | 23 |
24 class CXFA_FileRead : public IFX_FileRead { | 24 class CXFA_FileRead : public IFX_FileRead { |
25 public: | 25 public: |
26 explicit CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams); | 26 explicit CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams); |
| 27 ~CXFA_FileRead() override; |
27 | 28 |
28 virtual FX_FILESIZE GetSize(); | 29 // IFX_FileRead |
29 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size); | 30 FX_FILESIZE GetSize() override; |
30 | 31 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; |
31 virtual void Release() { delete this; } | 32 void Release() override; |
32 | 33 |
33 protected: | 34 protected: |
34 CFX_ObjectArray<CPDF_StreamAcc> m_Data; | 35 CFX_ObjectArray<CPDF_StreamAcc> m_Data; |
35 }; | 36 }; |
36 | 37 |
37 class CXFA_FFApp { | 38 class CXFA_FFApp { |
38 public: | 39 public: |
39 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); | 40 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); |
40 ~CXFA_FFApp(); | 41 ~CXFA_FFApp(); |
41 | 42 |
(...skipping 23 matching lines...) Expand all Loading... |
65 CXFA_FontMgr* m_pFontMgr; | 66 CXFA_FontMgr* m_pFontMgr; |
66 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 67 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
67 CFX_FontSourceEnum_File* m_pFontSource; | 68 CFX_FontSourceEnum_File* m_pFontSource; |
68 #endif | 69 #endif |
69 CXFA_FWLAdapterWidgetMgr* m_pAdapterWidgetMgr; | 70 CXFA_FWLAdapterWidgetMgr* m_pAdapterWidgetMgr; |
70 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; | 71 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; |
71 IFGAS_FontMgr* m_pFDEFontMgr; | 72 IFGAS_FontMgr* m_pFDEFontMgr; |
72 }; | 73 }; |
73 | 74 |
74 #endif // XFA_FXFA_INCLUDE_XFA_FFAPP_H_ | 75 #endif // XFA_FXFA_INCLUDE_XFA_FFAPP_H_ |
OLD | NEW |