| 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 #include "xfa/fxfa/xfa_ffdoc.h" | 7 #include "xfa/fxfa/xfa_ffdoc.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 if (m_dwDocType != XFA_DOCTYPE_XDP && m_pStream && m_bOwnStream) { | 352 if (m_dwDocType != XFA_DOCTYPE_XDP && m_pStream && m_bOwnStream) { |
| 353 m_pStream->Release(); | 353 m_pStream->Release(); |
| 354 m_pStream = nullptr; | 354 m_pStream = nullptr; |
| 355 } | 355 } |
| 356 | 356 |
| 357 for (const auto& pair : m_HashToDibDpiMap) | 357 for (const auto& pair : m_HashToDibDpiMap) |
| 358 delete pair.second.pDibSource; | 358 delete pair.second.pDibSource; |
| 359 | 359 |
| 360 m_HashToDibDpiMap.clear(); | 360 m_HashToDibDpiMap.clear(); |
| 361 | 361 m_pApp->ClearEventTargets(); |
| 362 FWL_GetApp()->GetNoteDriver()->ClearEventTargets(FALSE); | |
| 363 return TRUE; | 362 return TRUE; |
| 364 } | 363 } |
| 365 void CXFA_FFDoc::SetDocType(uint32_t dwType) { | 364 void CXFA_FFDoc::SetDocType(uint32_t dwType) { |
| 366 m_dwDocType = dwType; | 365 m_dwDocType = dwType; |
| 367 } | 366 } |
| 368 CPDF_Document* CXFA_FFDoc::GetPDFDoc() { | 367 CPDF_Document* CXFA_FFDoc::GetPDFDoc() { |
| 369 return m_pPDFDoc; | 368 return m_pPDFDoc; |
| 370 } | 369 } |
| 371 | 370 |
| 372 CFX_DIBitmap* CXFA_FFDoc::GetPDFNamedImage(const CFX_WideStringC& wsName, | 371 CFX_DIBitmap* CXFA_FFDoc::GetPDFNamedImage(const CFX_WideStringC& wsName, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 | 442 |
| 444 return !!pExport->Export( | 443 return !!pExport->Export( |
| 445 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); | 444 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); |
| 446 } | 445 } |
| 447 | 446 |
| 448 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { | 447 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { |
| 449 std::unique_ptr<CXFA_DataImporter> importer( | 448 std::unique_ptr<CXFA_DataImporter> importer( |
| 450 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); | 449 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); |
| 451 return importer->ImportData(pStream); | 450 return importer->ImportData(pStream); |
| 452 } | 451 } |
| OLD | NEW |