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

Side by Side Diff: fpdfsdk/src/fpdfsave.cpp

Issue 1634123004: War on #defines - part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Missing break Created 4 years, 11 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
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 "core/include/fpdfapi/fpdf_serial.h" 9 #include "core/include/fpdfapi/fpdf_serial.h"
10 #include "fpdfsdk/include/fsdk_define.h" 10 #include "fpdfsdk/include/fsdk_define.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 m_pFileWriteStruct->WriteBlock(m_pFileWriteStruct, pData, size); 55 m_pFileWriteStruct->WriteBlock(m_pFileWriteStruct, pData, size);
56 return TRUE; 56 return TRUE;
57 } 57 }
58 58
59 void CFX_IFileWrite::Release() { 59 void CFX_IFileWrite::Release() {
60 delete this; 60 delete this;
61 } 61 }
62 62
63 #ifdef PDF_ENABLE_XFA 63 #ifdef PDF_ENABLE_XFA
64 #define XFA_DATASETS 0
65 #define XFA_FORMS 1
66
67 FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument, 64 FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument,
68 CFX_PtrArray& fileList) { 65 CFX_PtrArray& fileList) {
69 if (!pDocument) 66 if (!pDocument)
70 return FALSE; 67 return FALSE;
71 if (pDocument->GetDocType() != DOCTYPE_DYNAMIC_XFA && 68 if (pDocument->GetDocType() != DOCTYPE_DYNAMIC_XFA &&
72 pDocument->GetDocType() != DOCTYPE_STATIC_XFA) 69 pDocument->GetDocType() != DOCTYPE_STATIC_XFA)
73 return TRUE; 70 return TRUE;
74 if (!CPDFXFA_App::GetInstance()->GetXFAApp()) 71 if (!CPDFXFA_App::GetInstance()->GetXFAApp())
75 return TRUE; 72 return TRUE;
76 73
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 FPDF_DWORD flags) { 323 FPDF_DWORD flags) {
327 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0); 324 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0);
328 } 325 }
329 326
330 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, 327 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document,
331 FPDF_FILEWRITE* pFileWrite, 328 FPDF_FILEWRITE* pFileWrite,
332 FPDF_DWORD flags, 329 FPDF_DWORD flags,
333 int fileVersion) { 330 int fileVersion) {
334 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion); 331 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion);
335 } 332 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698