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_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ | 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ |
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ | 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ |
9 | 9 |
10 #include "xfa/fxfa/include/fxfa.h" | 10 #include "xfa/fxfa/include/fxfa.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void GetFoxitVersion(CFX_WideString& wsFoxitVersion) override { | 44 void GetFoxitVersion(CFX_WideString& wsFoxitVersion) override { |
45 wsFoxitVersion = L"7.0"; | 45 wsFoxitVersion = L"7.0"; |
46 } | 46 } |
47 | 47 |
48 void GetAppName(CFX_WideString& wsName) override; | 48 void GetAppName(CFX_WideString& wsName) override; |
49 void GetFoxitAppName(CFX_WideString& wsFoxitName) override { | 49 void GetFoxitAppName(CFX_WideString& wsFoxitName) override { |
50 wsFoxitName = L"Foxit"; | 50 wsFoxitName = L"Foxit"; |
51 } | 51 } |
52 | 52 |
53 void Beep(uint32_t dwType) override; | 53 void Beep(uint32_t dwType) override; |
54 int32_t MsgBox(const CFX_WideStringC& wsMessage, | 54 int32_t MsgBox(const CFX_WideString& wsMessage, |
55 const CFX_WideStringC& wsTitle, | 55 const CFX_WideString& wsTitle, |
56 uint32_t dwIconType, | 56 uint32_t dwIconType, |
57 uint32_t dwButtonType) override; | 57 uint32_t dwButtonType) override; |
58 void Response(CFX_WideString& wsAnswer, | 58 CFX_WideString Response(const CFX_WideString& wsQuestion, |
59 const CFX_WideStringC& wsQuestion, | 59 const CFX_WideString& wsTitle, |
60 const CFX_WideStringC& wsTitle, | 60 const CFX_WideString& wsDefaultAnswer, |
61 const CFX_WideStringC& wsDefaultAnswer, | 61 FX_BOOL bMark) override; |
62 FX_BOOL bMark) override; | |
63 | 62 |
64 int32_t GetDocumentCountInBatch() override; | 63 int32_t GetDocumentCountInBatch() override; |
65 int32_t GetCurDocumentInBatch() override; | 64 int32_t GetCurDocumentInBatch() override; |
66 | 65 |
67 IFX_FileRead* DownloadURL(const CFX_WideStringC& wsURL) override; | 66 IFX_FileRead* DownloadURL(const CFX_WideString& wsURL) override; |
68 FX_BOOL PostRequestURL(const CFX_WideStringC& wsURL, | 67 FX_BOOL PostRequestURL(const CFX_WideString& wsURL, |
69 const CFX_WideStringC& wsData, | 68 const CFX_WideString& wsData, |
70 const CFX_WideStringC& wsContentType, | 69 const CFX_WideString& wsContentType, |
71 const CFX_WideStringC& wsEncode, | 70 const CFX_WideString& wsEncode, |
72 const CFX_WideStringC& wsHeader, | 71 const CFX_WideString& wsHeader, |
73 CFX_WideString& wsResponse) override; | 72 CFX_WideString& wsResponse) override; |
74 FX_BOOL PutRequestURL(const CFX_WideStringC& wsURL, | 73 FX_BOOL PutRequestURL(const CFX_WideString& wsURL, |
75 const CFX_WideStringC& wsData, | 74 const CFX_WideString& wsData, |
76 const CFX_WideStringC& wsEncode) override; | 75 const CFX_WideString& wsEncode) override; |
77 | 76 |
78 void LoadString(int32_t iStringID, CFX_WideString& wsString) override; | 77 void LoadString(int32_t iStringID, CFX_WideString& wsString) override; |
79 IFWL_AdapterTimerMgr* GetTimerMgr() override; | 78 IFWL_AdapterTimerMgr* GetTimerMgr() override; |
80 | 79 |
81 CFX_ArrayTemplate<CPDFDoc_Environment*> m_pEnvList; | 80 CFX_ArrayTemplate<CPDFDoc_Environment*> m_pEnvList; |
82 | 81 |
83 protected: | 82 protected: |
84 static CPDFXFA_App* g_pApp; | 83 static CPDFXFA_App* g_pApp; |
85 | 84 |
86 FX_BOOL m_bJavaScriptInitialized; | 85 FX_BOOL m_bJavaScriptInitialized; |
87 CXFA_FFApp* m_pXFAApp; | 86 CXFA_FFApp* m_pXFAApp; |
88 FXJSE_HRUNTIME m_hJSERuntime; | 87 FXJSE_HRUNTIME m_hJSERuntime; |
89 IFXJS_Runtime* m_pJSRuntime; | 88 IFXJS_Runtime* m_pJSRuntime; |
90 CFX_WideString m_csAppType; | 89 CFX_WideString m_csAppType; |
91 bool m_bOwnedRuntime; | 90 bool m_bOwnedRuntime; |
92 }; | 91 }; |
93 | 92 |
94 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ | 93 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ |
OLD | NEW |