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/fpdfapi/fpdf_parser.h" | 7 #include "../../../include/fpdfapi/fpdf_parser.h" |
8 #include "../../../include/fpdfapi/fpdf_module.h" | 8 #include "../../../include/fpdfapi/fpdf_module.h" |
9 #include "../../../include/fpdfapi/fpdf_page.h" | 9 #include "../../../include/fpdfapi/fpdf_page.h" |
10 #include "../../../src/fxcrt/fx_safe_types.h" | 10 #include "../../../src/fxcrt/fx_safe_types.h" |
(...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2717 if (!GetNextChar(ch)) { | 2717 if (!GetNextChar(ch)) { |
2718 return; | 2718 return; |
2719 } | 2719 } |
2720 buffer[offset++] = ch; | 2720 buffer[offset++] = ch; |
2721 if (offset == size) { | 2721 if (offset == size) { |
2722 break; | 2722 break; |
2723 } | 2723 } |
2724 } | 2724 } |
2725 } | 2725 } |
2726 | 2726 |
2727 class CPDF_DataAvail FX_FINAL : public CFX_Object, public IPDF_DataAvail | 2727 class CPDF_DataAvail FX_FINAL : public IPDF_DataAvail |
2728 { | 2728 { |
2729 public: | 2729 public: |
2730 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); | 2730 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); |
2731 ~CPDF_DataAvail(); | 2731 ~CPDF_DataAvail(); |
2732 | 2732 |
2733 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) F
X_OVERRIDE; | 2733 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) F
X_OVERRIDE; |
2734 | 2734 |
2735 virtual void SetDocument(CPDF_Document* pDoc) FX_OVE
RRIDE; | 2735 virtual void SetDocument(CPDF_Document* pDoc) FX_OVE
RRIDE; |
2736 | 2736 |
2737 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints
* pHints) FX_OVERRIDE; | 2737 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints
* pHints) FX_OVERRIDE; |
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4646 { | 4646 { |
4647 FX_INT32 iSize = m_childNode.GetSize(); | 4647 FX_INT32 iSize = m_childNode.GetSize(); |
4648 for (FX_INT32 i = 0; i < iSize; ++i) { | 4648 for (FX_INT32 i = 0; i < iSize; ++i) { |
4649 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; | 4649 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; |
4650 if (pNode) { | 4650 if (pNode) { |
4651 delete pNode; | 4651 delete pNode; |
4652 } | 4652 } |
4653 } | 4653 } |
4654 m_childNode.RemoveAll(); | 4654 m_childNode.RemoveAll(); |
4655 } | 4655 } |
OLD | NEW |