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_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ | 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ | 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 FX_BOOL LoadXFADoc(); | 29 FX_BOOL LoadXFADoc(); |
30 CPDFXFA_App* GetApp() { return m_pApp; } | 30 CPDFXFA_App* GetApp() { return m_pApp; } |
31 CPDF_Document* GetPDFDoc() { return m_pPDFDoc; } | 31 CPDF_Document* GetPDFDoc() { return m_pPDFDoc; } |
32 IXFA_Doc* GetXFADoc() { return m_pXFADoc; } | 32 IXFA_Doc* GetXFADoc() { return m_pXFADoc; } |
33 IXFA_DocView* GetXFADocView() { return m_pXFADocView; } | 33 IXFA_DocView* GetXFADocView() { return m_pXFADocView; } |
34 | 34 |
35 int GetPageCount(); | 35 int GetPageCount(); |
36 CPDFXFA_Page* GetPage(int page_index); | 36 CPDFXFA_Page* GetPage(int page_index); |
37 CPDFXFA_Page* GetPage(IXFA_PageView* pPage); | 37 CPDFXFA_Page* GetPage(IXFA_PageView* pPage); |
| 38 |
| 39 void DeletePage(int page_index); |
38 void RemovePage(CPDFXFA_Page* page); | 40 void RemovePage(CPDFXFA_Page* page); |
39 int GetDocType() { return m_iDocType; } | 41 int GetDocType() { return m_iDocType; } |
40 | 42 |
41 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv); | 43 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv); |
42 | 44 |
43 void FXRect2PDFRect(const CFX_RectF& fxRectF, CFX_FloatRect& pdfRect); | 45 void FXRect2PDFRect(const CFX_RectF& fxRectF, CFX_FloatRect& pdfRect); |
44 | 46 |
45 virtual void SetChangeMark(IXFA_Doc* hDoc); | 47 virtual void SetChangeMark(IXFA_Doc* hDoc); |
46 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); | 48 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); |
47 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. | 49 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 CPDF_Document* m_pPDFDoc; | 217 CPDF_Document* m_pPDFDoc; |
216 CPDFSDK_Document* m_pSDKDoc; | 218 CPDFSDK_Document* m_pSDKDoc; |
217 IXFA_Doc* m_pXFADoc; | 219 IXFA_Doc* m_pXFADoc; |
218 IXFA_DocView* m_pXFADocView; | 220 IXFA_DocView* m_pXFADocView; |
219 CPDFXFA_App* m_pApp; | 221 CPDFXFA_App* m_pApp; |
220 IJS_Context* m_pJSContext; | 222 IJS_Context* m_pJSContext; |
221 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 223 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
222 }; | 224 }; |
223 | 225 |
224 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ | 226 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
OLD | NEW |