OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CPDFXFA_DOCENVIRONMENT_H_ | 7 #ifndef FPDFSDK_FPDFXFA_CPDFXFA_DOCENVIRONMENT_H_ |
8 #define FPDFSDK_FPDFXFA_CPDFXFA_DOCENVIRONMENT_H_ | 8 #define FPDFSDK_FPDFXFA_CPDFXFA_DOCENVIRONMENT_H_ |
9 | 9 |
10 #include "public/fpdfview.h" | 10 #include "public/fpdfview.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 */ | 78 */ |
79 FX_BOOL SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) override; | 79 FX_BOOL SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) override; |
80 | 80 |
81 FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc, | 81 FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc, |
82 const CFX_ByteStringC& szPropName, | 82 const CFX_ByteStringC& szPropName, |
83 CFXJSE_Value* pValue) override; | 83 CFXJSE_Value* pValue) override; |
84 FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, | 84 FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, |
85 const CFX_ByteStringC& szPropName, | 85 const CFX_ByteStringC& szPropName, |
86 CFXJSE_Value* pValue) override; | 86 CFXJSE_Value* pValue) override; |
87 | 87 |
88 IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc, | 88 IFX_SeekableReadStream* OpenLinkedFile(CXFA_FFDoc* hDoc, |
89 const CFX_WideString& wsLink) override; | 89 const CFX_WideString& wsLink) override; |
90 | 90 |
91 private: | 91 private: |
92 FX_BOOL OnBeforeNotifySubmit(); | 92 FX_BOOL OnBeforeNotifySubmit(); |
93 void OnAfterNotifySubmit(); | 93 void OnAfterNotifySubmit(); |
94 FX_BOOL NotifySubmit(FX_BOOL bPrevOrPost); | 94 FX_BOOL NotifySubmit(FX_BOOL bPrevOrPost); |
95 FX_BOOL SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_Submit submit); | 95 FX_BOOL SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_Submit submit); |
96 FX_BOOL MailToInfo(CFX_WideString& csURL, | 96 FX_BOOL MailToInfo(CFX_WideString& csURL, |
97 CFX_WideString& csToAddress, | 97 CFX_WideString& csToAddress, |
98 CFX_WideString& csCCAddress, | 98 CFX_WideString& csCCAddress, |
99 CFX_WideString& csBCCAddress, | 99 CFX_WideString& csBCCAddress, |
100 CFX_WideString& csSubject, | 100 CFX_WideString& csSubject, |
101 CFX_WideString& csMsg); | 101 CFX_WideString& csMsg); |
102 FX_BOOL ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler, | 102 FX_BOOL ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler, |
103 int fileType, | 103 int fileType, |
104 FPDF_DWORD encodeType, | 104 FPDF_DWORD encodeType, |
105 FPDF_DWORD flag); | 105 FPDF_DWORD flag); |
106 void ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); | 106 void ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); |
107 | 107 |
108 CPDFXFA_Document* const m_pDocument; // Not owned; | 108 CPDFXFA_Document* const m_pDocument; // Not owned; |
109 IJS_Context* m_pJSContext; | 109 IJS_Context* m_pJSContext; |
110 }; | 110 }; |
111 | 111 |
112 #endif // FPDFSDK_FPDFXFA_CPDFXFA_DOCENVIRONMENT_H_ | 112 #endif // FPDFSDK_FPDFXFA_CPDFXFA_DOCENVIRONMENT_H_ |
OLD | NEW |