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" |
11 #include "xfa/fxfa/fxfa.h" | 11 #include "xfa/fxfa/fxfa.h" |
12 | 12 |
13 class CPDFXFA_Document; | 13 class CPDFXFA_Context; |
14 class IJS_Context; | 14 class IJS_Context; |
15 | 15 |
16 class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { | 16 class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { |
17 public: | 17 public: |
18 CPDFXFA_DocEnvironment(CPDFXFA_Document*); | 18 CPDFXFA_DocEnvironment(CPDFXFA_Context*); |
19 ~CPDFXFA_DocEnvironment() override; | 19 ~CPDFXFA_DocEnvironment() override; |
20 | 20 |
21 // IXFA_DocEnvironment | 21 // IXFA_DocEnvironment |
22 void SetChangeMark(CXFA_FFDoc* hDoc) override; | 22 void SetChangeMark(CXFA_FFDoc* hDoc) override; |
23 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. | 23 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. |
24 void InvalidateRect(CXFA_FFPageView* pPageView, | 24 void InvalidateRect(CXFA_FFPageView* pPageView, |
25 const CFX_RectF& rt, | 25 const CFX_RectF& rt, |
26 uint32_t dwFlags) override; | 26 uint32_t dwFlags) override; |
27 // show or hide caret | 27 // show or hide caret |
28 void DisplayCaret(CXFA_FFWidget* hWidget, | 28 void DisplayCaret(CXFA_FFWidget* hWidget, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_Context* const m_pContext; // 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 |