Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Side by Side Diff: fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h

Issue 1804163002: FPDF_PageDelete must delete XFA pages as well. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase past rename Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698