| 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 "../include/fsdk_define.h" | 7 #include "../include/fsdk_define.h" |
| 8 #include "../include/fpdf_dataavail.h" | 8 #include "../include/fpdf_dataavail.h" |
| 9 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 9 #include "../include/fpdfxfa/fpdfxfa_doc.h" |
| 10 #include "../include/fpdfformfill.h" | 10 #include "../include/fpdfformfill.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 public: | 74 public: |
| 75 virtual void AddSegment(FX_FILESIZE offset, FX_DWORD
size) | 75 virtual void AddSegment(FX_FILESIZE offset, FX_DWORD
size) |
| 76 { | 76 { |
| 77 m_pDownloadHints->AddSegment(m_pDownloadHints, offset, size); | 77 m_pDownloadHints->AddSegment(m_pDownloadHints, offset, size); |
| 78 } | 78 } |
| 79 private: | 79 private: |
| 80 FX_DOWNLOADHINTS* m_pDownloadHints; | 80 FX_DOWNLOADHINTS* m_pDownloadHints; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 class CFPDF_DataAvail : public CFX_Object | 83 class CFPDF_DataAvail |
| 84 { | 84 { |
| 85 public: | 85 public: |
| 86 CFPDF_DataAvail() | 86 CFPDF_DataAvail() |
| 87 { | 87 { |
| 88 m_pDataAvail = NULL; | 88 m_pDataAvail = NULL; |
| 89 } | 89 } |
| 90 | 90 |
| 91 ~CFPDF_DataAvail() | 91 ~CFPDF_DataAvail() |
| 92 { | 92 { |
| 93 if (m_pDataAvail) delete m_pDataAvail; | 93 if (m_pDataAvail) delete m_pDataAvail; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 CFPDF_DownloadHintsWrap hints_wrap(hints); | 165 CFPDF_DownloadHintsWrap hints_wrap(hints); |
| 166 return ((CFPDF_DataAvail*)avail)->m_pDataAvail->IsFormAvail(&hints_wrap)
; | 166 return ((CFPDF_DataAvail*)avail)->m_pDataAvail->IsFormAvail(&hints_wrap)
; |
| 167 } | 167 } |
| 168 | 168 |
| 169 DLLEXPORT FPDF_BOOL STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail) | 169 DLLEXPORT FPDF_BOOL STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail) |
| 170 { | 170 { |
| 171 if (avail == NULL) return -1; | 171 if (avail == NULL) return -1; |
| 172 return ((CFPDF_DataAvail*)avail)->m_pDataAvail->IsLinearizedPDF(); | 172 return ((CFPDF_DataAvail*)avail)->m_pDataAvail->IsLinearizedPDF(); |
| 173 | 173 |
| 174 } | 174 } |
| OLD | NEW |