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 <memory> | 10 #include <memory> |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 protected: | 36 protected: |
37 CFX_ObjectArray<CPDF_StreamAcc> m_Data; | 37 CFX_ObjectArray<CPDF_StreamAcc> m_Data; |
38 }; | 38 }; |
39 | 39 |
40 class CXFA_FFApp { | 40 class CXFA_FFApp { |
41 public: | 41 public: |
42 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); | 42 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); |
43 ~CXFA_FFApp(); | 43 ~CXFA_FFApp(); |
44 | 44 |
45 CXFA_FFDoc* CreateDoc(IXFA_DocProvider* pProvider, | 45 CXFA_FFDoc* CreateDoc(IXFA_DocEnvironment* pDocEnvironment, |
46 IFX_FileRead* pStream, | 46 IFX_FileRead* pStream, |
47 FX_BOOL bTakeOverFile); | 47 FX_BOOL bTakeOverFile); |
48 CXFA_FFDoc* CreateDoc(IXFA_DocProvider* pProvider, CPDF_Document* pPDFDoc); | 48 CXFA_FFDoc* CreateDoc(IXFA_DocEnvironment* pDocEnvironment, |
| 49 CPDF_Document* pPDFDoc); |
49 void SetDefaultFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr); | 50 void SetDefaultFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr); |
50 | 51 |
51 CXFA_FFDocHandler* GetDocHandler(); | 52 CXFA_FFDocHandler* GetDocHandler(); |
52 CXFA_FWLAdapterWidgetMgr* GetWidgetMgr(CFWL_WidgetMgrDelegate* pDelegate); | 53 CXFA_FWLAdapterWidgetMgr* GetWidgetMgr(CFWL_WidgetMgrDelegate* pDelegate); |
53 IFGAS_FontMgr* GetFDEFontMgr(); | 54 IFGAS_FontMgr* GetFDEFontMgr(); |
54 CXFA_FWLTheme* GetFWLTheme(); | 55 CXFA_FWLTheme* GetFWLTheme(); |
55 | 56 |
56 IXFA_AppProvider* GetAppProvider() const { return m_pProvider; } | 57 IXFA_AppProvider* GetAppProvider() const { return m_pProvider; } |
57 IFWL_AdapterTimerMgr* GetTimerMgr() const; | 58 IFWL_AdapterTimerMgr* GetTimerMgr() const; |
58 CXFA_FontMgr* GetXFAFontMgr() const; | 59 CXFA_FontMgr* GetXFAFontMgr() const; |
(...skipping 24 matching lines...) Expand all Loading... |
83 std::unique_ptr<CXFA_FWLAdapterWidgetMgr> m_pAdapterWidgetMgr; | 84 std::unique_ptr<CXFA_FWLAdapterWidgetMgr> m_pAdapterWidgetMgr; |
84 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; // not owned. | 85 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; // not owned. |
85 | 86 |
86 // |m_pFWLApp| has to be released first, then |m_pFWLTheme| since the former | 87 // |m_pFWLApp| has to be released first, then |m_pFWLTheme| since the former |
87 // may refers to theme manager and the latter refers to font manager. | 88 // may refers to theme manager and the latter refers to font manager. |
88 std::unique_ptr<CXFA_FWLTheme> m_pFWLTheme; | 89 std::unique_ptr<CXFA_FWLTheme> m_pFWLTheme; |
89 std::unique_ptr<IFWL_App> m_pFWLApp; | 90 std::unique_ptr<IFWL_App> m_pFWLApp; |
90 }; | 91 }; |
91 | 92 |
92 #endif // XFA_FXFA_INCLUDE_XFA_FFAPP_H_ | 93 #endif // XFA_FXFA_INCLUDE_XFA_FFAPP_H_ |
OLD | NEW |