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_DOC_H_ | 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ |
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ | 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 return FALSE; | 83 return FALSE; |
84 } | 84 } |
85 | 85 |
86 // host method | 86 // host method |
87 virtual int32_t CountPages(CXFA_FFDoc* hDoc); | 87 virtual int32_t CountPages(CXFA_FFDoc* hDoc); |
88 virtual int32_t GetCurrentPage(CXFA_FFDoc* hDoc); | 88 virtual int32_t GetCurrentPage(CXFA_FFDoc* hDoc); |
89 virtual void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage); | 89 virtual void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage); |
90 virtual FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc); | 90 virtual FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc); |
91 virtual void SetCalculationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled); | 91 virtual void SetCalculationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled); |
92 virtual void GetTitle(CXFA_FFDoc* hDoc, CFX_WideString& wsTitle); | 92 virtual void GetTitle(CXFA_FFDoc* hDoc, CFX_WideString& wsTitle); |
93 virtual void SetTitle(CXFA_FFDoc* hDoc, const CFX_WideStringC& wsTitle); | 93 virtual void SetTitle(CXFA_FFDoc* hDoc, const CFX_WideString& wsTitle); |
94 virtual void ExportData(CXFA_FFDoc* hDoc, | 94 virtual void ExportData(CXFA_FFDoc* hDoc, |
95 const CFX_WideStringC& wsFilePath, | 95 const CFX_WideStringC& wsFilePath, |
96 FX_BOOL bXDP = TRUE); | 96 FX_BOOL bXDP = TRUE); |
97 virtual void ImportData(CXFA_FFDoc* hDoc, const CFX_WideStringC& wsFilePath); | 97 virtual void ImportData(CXFA_FFDoc* hDoc, const CFX_WideStringC& wsFilePath); |
98 virtual void GotoURL(CXFA_FFDoc* hDoc, | 98 virtual void GotoURL(CXFA_FFDoc* hDoc, |
99 const CFX_WideStringC& bsURL, | 99 const CFX_WideStringC& bsURL, |
100 FX_BOOL bAppend = TRUE); | 100 FX_BOOL bAppend = TRUE); |
101 virtual FX_BOOL IsValidationsEnabled(CXFA_FFDoc* hDoc); | 101 virtual FX_BOOL IsValidationsEnabled(CXFA_FFDoc* hDoc); |
102 virtual void SetValidationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled); | 102 virtual void SetValidationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled); |
103 virtual void SetFocusWidget(CXFA_FFDoc* hDoc, CXFA_FFWidget* hWidget); | 103 virtual void SetFocusWidget(CXFA_FFDoc* hDoc, CXFA_FFWidget* hWidget); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 CXFA_FFDoc* m_pXFADoc; | 227 CXFA_FFDoc* m_pXFADoc; |
228 CXFA_FFDocView* m_pXFADocView; | 228 CXFA_FFDocView* m_pXFADocView; |
229 CPDFXFA_App* m_pApp; | 229 CPDFXFA_App* m_pApp; |
230 IJS_Context* m_pJSContext; | 230 IJS_Context* m_pJSContext; |
231 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 231 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
232 LoadStatus m_nLoadStatus; | 232 LoadStatus m_nLoadStatus; |
233 int m_nPageCount; | 233 int m_nPageCount; |
234 }; | 234 }; |
235 | 235 |
236 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ | 236 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ |
OLD | NEW |