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

Side by Side Diff: fpdfsdk/fpdfsave.cpp

Issue 2323523002: Remove unused code in CPDFXFA_Document (Closed)
Patch Set: Review feedback Created 4 years, 3 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 | « no previous file | fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp » ('j') | 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 #include "public/fpdf_save.h" 7 #include "public/fpdf_save.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 CXFA_FFWidgetHandler* pWidgetHander = pXFADocView->GetWidgetHandler(); 232 CXFA_FFWidgetHandler* pWidgetHander = pXFADocView->GetWidgetHandler();
233 std::unique_ptr<CXFA_WidgetAccIterator> pWidgetAccIterator( 233 std::unique_ptr<CXFA_WidgetAccIterator> pWidgetAccIterator(
234 pXFADocView->CreateWidgetAccIterator()); 234 pXFADocView->CreateWidgetAccIterator());
235 while (CXFA_WidgetAcc* pWidgetAcc = pWidgetAccIterator->MoveToNext()) { 235 while (CXFA_WidgetAcc* pWidgetAcc = pWidgetAccIterator->MoveToNext()) {
236 CXFA_EventParam preParam; 236 CXFA_EventParam preParam;
237 preParam.m_eType = XFA_EVENT_PostSave; 237 preParam.m_eType = XFA_EVENT_PostSave;
238 pWidgetHander->ProcessEvent(pWidgetAcc, &preParam); 238 pWidgetHander->ProcessEvent(pWidgetAcc, &preParam);
239 } 239 }
240 pXFADocView->UpdateDocView(); 240 pXFADocView->UpdateDocView();
241 pDocument->_ClearChangeMark(); 241 pDocument->ClearChangeMark();
242 return true; 242 return true;
243 } 243 }
244 244
245 bool SendPreSaveToXFADoc(CPDFXFA_Document* pDocument, 245 bool SendPreSaveToXFADoc(CPDFXFA_Document* pDocument,
246 std::vector<ScopedFileStream>* fileList) { 246 std::vector<ScopedFileStream>* fileList) {
247 if (pDocument->GetDocType() != DOCTYPE_DYNAMIC_XFA && 247 if (pDocument->GetDocType() != DOCTYPE_DYNAMIC_XFA &&
248 pDocument->GetDocType() != DOCTYPE_STATIC_XFA) 248 pDocument->GetDocType() != DOCTYPE_STATIC_XFA)
249 return true; 249 return true;
250 250
251 CXFA_FFDocView* pXFADocView = pDocument->GetXFADocView(); 251 CXFA_FFDocView* pXFADocView = pDocument->GetXFADocView();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 FPDF_DWORD flags) { 308 FPDF_DWORD flags) {
309 return FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0); 309 return FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0);
310 } 310 }
311 311
312 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, 312 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document,
313 FPDF_FILEWRITE* pFileWrite, 313 FPDF_FILEWRITE* pFileWrite,
314 FPDF_DWORD flags, 314 FPDF_DWORD flags,
315 int fileVersion) { 315 int fileVersion) {
316 return FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion); 316 return FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion);
317 } 317 }
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698