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_INCLUDE_CPDFXFA_DOCENVIRONMENT_H_ | 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_CPDFXFA_DOCENVIRONMENT_H_ |
8 #define FPDFSDK_FPDFXFA_INCLUDE_CPDFXFA_DOCENVIRONMENT_H_ | 8 #define FPDFSDK_FPDFXFA_INCLUDE_CPDFXFA_DOCENVIRONMENT_H_ |
9 | 9 |
10 #include "public/fpdfview.h" | 10 #include "public/fpdfview.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 int32_t CountPages(CXFA_FFDoc* hDoc) override; | 47 int32_t CountPages(CXFA_FFDoc* hDoc) override; |
48 int32_t GetCurrentPage(CXFA_FFDoc* hDoc) override; | 48 int32_t GetCurrentPage(CXFA_FFDoc* hDoc) override; |
49 void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) override; | 49 void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) override; |
50 FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) override; | 50 FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) override; |
51 void SetCalculationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) override; | 51 void SetCalculationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) override; |
52 void GetTitle(CXFA_FFDoc* hDoc, CFX_WideString& wsTitle) override; | 52 void GetTitle(CXFA_FFDoc* hDoc, CFX_WideString& wsTitle) override; |
53 void SetTitle(CXFA_FFDoc* hDoc, const CFX_WideString& wsTitle) override; | 53 void SetTitle(CXFA_FFDoc* hDoc, const CFX_WideString& wsTitle) override; |
54 void ExportData(CXFA_FFDoc* hDoc, | 54 void ExportData(CXFA_FFDoc* hDoc, |
55 const CFX_WideString& wsFilePath, | 55 const CFX_WideString& wsFilePath, |
56 FX_BOOL bXDP) override; | 56 FX_BOOL bXDP) override; |
57 void GotoURL(CXFA_FFDoc* hDoc, | 57 void GotoURL(CXFA_FFDoc* hDoc, const CFX_WideString& bsURL) override; |
58 const CFX_WideString& bsURL, | |
59 FX_BOOL bAppend) override; | |
60 FX_BOOL IsValidationsEnabled(CXFA_FFDoc* hDoc) override; | 58 FX_BOOL IsValidationsEnabled(CXFA_FFDoc* hDoc) override; |
61 void SetValidationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) override; | 59 void SetValidationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) override; |
62 void SetFocusWidget(CXFA_FFDoc* hDoc, CXFA_FFWidget* hWidget) override; | 60 void SetFocusWidget(CXFA_FFDoc* hDoc, CXFA_FFWidget* hWidget) override; |
63 void Print(CXFA_FFDoc* hDoc, | 61 void Print(CXFA_FFDoc* hDoc, |
64 int32_t nStartPage, | 62 int32_t nStartPage, |
65 int32_t nEndPage, | 63 int32_t nEndPage, |
66 uint32_t dwOptions) override; | 64 uint32_t dwOptions) override; |
67 FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) override; | 65 FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) override; |
68 | 66 |
69 /** | 67 /** |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 int fileType, | 103 int fileType, |
106 FPDF_DWORD encodeType, | 104 FPDF_DWORD encodeType, |
107 FPDF_DWORD flag); | 105 FPDF_DWORD flag); |
108 void ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); | 106 void ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); |
109 | 107 |
110 CPDFXFA_Document* const m_pDocument; // Not owned; | 108 CPDFXFA_Document* const m_pDocument; // Not owned; |
111 IJS_Context* m_pJSContext; | 109 IJS_Context* m_pJSContext; |
112 }; | 110 }; |
113 | 111 |
114 #endif // FPDFSDK_FPDFXFA_INCLUDE_CPDFXFA_DOCENVIRONMENT_H_ | 112 #endif // FPDFSDK_FPDFXFA_INCLUDE_CPDFXFA_DOCENVIRONMENT_H_ |
OLD | NEW |