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 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj, | 328 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj, |
329 const CPDF_Dictionary* pResources); | 329 const CPDF_Dictionary* pResources); |
330 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj); | 330 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj); |
331 void ReleaseColorSpace(const CPDF_Object* pColorSpace); | 331 void ReleaseColorSpace(const CPDF_Object* pColorSpace); |
332 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, | 332 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, |
333 FX_BOOL bShading, | 333 FX_BOOL bShading, |
334 const CFX_Matrix& matrix); | 334 const CFX_Matrix& matrix); |
335 void ReleasePattern(const CPDF_Object* pPatternObj); | 335 void ReleasePattern(const CPDF_Object* pPatternObj); |
336 CPDF_Image* GetImage(CPDF_Object* pImageStream); | 336 CPDF_Image* GetImage(CPDF_Object* pImageStream); |
337 void ReleaseImage(const CPDF_Object* pImageStream); | 337 void ReleaseImage(const CPDF_Object* pImageStream); |
| 338 bool HasImage(const CPDF_Object* pImageStream) const; |
338 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream); | 339 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream); |
339 void ReleaseIccProfile(const CPDF_IccProfile* pIccProfile); | 340 void ReleaseIccProfile(const CPDF_IccProfile* pIccProfile); |
340 CPDF_StreamAcc* GetFontFileStreamAcc(CPDF_Stream* pFontStream); | 341 CPDF_StreamAcc* GetFontFileStreamAcc(CPDF_Stream* pFontStream); |
341 void ReleaseFontFileStreamAcc(const CPDF_Stream* pFontStream); | 342 void ReleaseFontFileStreamAcc(const CPDF_Stream* pFontStream); |
342 FX_BOOL IsForceClear() const { return m_bForceClear; } | 343 FX_BOOL IsForceClear() const { return m_bForceClear; } |
343 CPDF_CountedColorSpace* FindColorSpacePtr(CPDF_Object* pCSObj) const; | 344 CPDF_CountedColorSpace* FindColorSpacePtr(CPDF_Object* pCSObj) const; |
344 CPDF_CountedPattern* FindPatternPtr(CPDF_Object* pPatternObj) const; | 345 CPDF_CountedPattern* FindPatternPtr(CPDF_Object* pPatternObj) const; |
345 | 346 |
346 private: | 347 private: |
347 using CPDF_CountedFont = CPDF_CountedObject<CPDF_Font>; | 348 using CPDF_CountedFont = CPDF_CountedObject<CPDF_Font>; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 }; | 555 }; |
555 | 556 |
556 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); | 557 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); |
557 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( | 558 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( |
558 const CFX_ByteStringC& abbr); | 559 const CFX_ByteStringC& abbr); |
559 | 560 |
560 void PDF_ReplaceAbbr(CPDF_Object* pObj); | 561 void PDF_ReplaceAbbr(CPDF_Object* pObj); |
561 bool IsPathOperator(const uint8_t* buf, size_t len); | 562 bool IsPathOperator(const uint8_t* buf, size_t len); |
562 | 563 |
563 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 564 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
OLD | NEW |