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 _PAGEINT_H_ | 7 #ifndef _PAGEINT_H_ |
8 #define _PAGEINT_H_ | 8 #define _PAGEINT_H_ |
9 | 9 |
10 #include "../../../include/fpdfapi/fpdf_pageobj.h" | 10 #include "../../../include/fpdfapi/fpdf_pageobj.h" |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 map.RemoveKey(findKey); | 408 map.RemoveKey(findKey); |
409 return TRUE; | 409 return TRUE; |
410 } | 410 } |
411 return FALSE; | 411 return FALSE; |
412 } | 412 } |
413 class CPDF_DocPageData : public CFX_Object | 413 class CPDF_DocPageData : public CFX_Object |
414 { | 414 { |
415 public: | 415 public: |
416 CPDF_DocPageData(CPDF_Document *pPDFDoc); | 416 CPDF_DocPageData(CPDF_Document *pPDFDoc); |
417 ~CPDF_DocPageData(); | 417 ~CPDF_DocPageData(); |
418 void» » » » » Clear(FX_BOOL bRelease = FALSE); | 418 void Clear(FX_BOOL bRelease = FALSE); |
419 CPDF_Font*» » » » GetFont(CPDF_Dictionary* pFontDict, FX_B
OOL findOnly); | 419 CPDF_Font* GetFont(CPDF_Dictionary* pFontDict, FX_BOOL find
Only); |
420 CPDF_Font*» » » » GetStandardFont(FX_BSTR fontName, CPDF_F
ontEncoding* pEncoding); | 420 CPDF_Font* GetStandardFont(FX_BSTR fontName, CPDF_FontEncod
ing* pEncoding); |
421 void» » » » » ReleaseFont(CPDF_Dictionary* pFo
ntDict); | 421 void ReleaseFont(CPDF_Dictionary* pFontDict); |
422 CPDF_ColorSpace*» » GetColorSpace(CPDF_Object* pCSObj, CPDF_Dictiona
ry* pResources); | 422 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj, CPDF_Dictiona
ry* pResources); |
423 CPDF_ColorSpace*» » GetCopiedColorSpace(CPDF_Object* pCSObj); | 423 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj); |
424 void» » » » » ReleaseColorSpace(CPDF_Object* p
ColorSpace); | 424 void ReleaseColorSpace(CPDF_Object* pColorSpace); |
425 CPDF_Pattern*» » » GetPattern(CPDF_Object* pPatternObj, FX_
BOOL bShading, const CFX_AffineMatrix* matrix); | 425 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, FX_BOOL bSh
ading, const CFX_AffineMatrix* matrix); |
426 void» » » » » ReleasePattern(CPDF_Object* pPat
ternObj); | 426 void ReleasePattern(CPDF_Object* pPatternObj); |
427 CPDF_Image*»» » » GetImage(CPDF_Object* pImageStream); | 427 CPDF_Image* GetImage(CPDF_Object* pImageStream); |
428 void» » » » » ReleaseImage(CPDF_Object* pImage
Stream); | 428 void ReleaseImage(CPDF_Object* pImageStream); |
429 CPDF_IccProfile*» » GetIccProfile(CPDF_Stream* pIccProfileStream, FX
_INT32 nComponents); | 429 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream, FX
_INT32 nComponents); |
430 void» » » » » ReleaseIccProfile(CPDF_Stream* p
IccProfileStream, CPDF_IccProfile* pIccProfile); | 430 void ReleaseIccProfile(CPDF_Stream* pIccProfileStream
, CPDF_IccProfile* pIccProfile); |
431 CPDF_StreamAcc*» » » GetFontFileStreamAcc(CPDF_Stream* pFontS
tream); | 431 CPDF_StreamAcc* GetFontFileStreamAcc(CPDF_Stream* pFontStream); |
432 void» » » » » ReleaseFontFileStreamAcc(CPDF_St
ream* pFontStream, FX_BOOL bForce = FALSE); | 432 void ReleaseFontFileStreamAcc(CPDF_Stream* pFontStrea
m, FX_BOOL bForce = FALSE); |
433 CPDF_Document*» » » m_pPDFDoc; | 433 FX_BOOL IsForceClear() const {return m_bForceClear;} |
434 CPDF_FontMap» » » m_FontMap; | 434 |
435 CPDF_ColorSpaceMap» » m_ColorSpaceMap; | 435 CPDF_Document* m_pPDFDoc; |
436 CPDF_PatternMap» » » m_PatternMap; | 436 CPDF_FontMap m_FontMap; |
437 CPDF_ImageMap» » » m_ImageMap; | 437 CPDF_ColorSpaceMap m_ColorSpaceMap; |
438 CPDF_IccProfileMap» » m_IccProfileMap; | 438 CPDF_PatternMap m_PatternMap; |
439 CFX_MapByteStringToPtr» m_HashProfileMap; | 439 CPDF_ImageMap m_ImageMap; |
440 CPDF_FontFileMap» » m_FontFileMap; | 440 CPDF_IccProfileMap m_IccProfileMap; |
| 441 CFX_MapByteStringToPtr m_HashProfileMap; |
| 442 CPDF_FontFileMap m_FontFileMap; |
| 443 FX_BOOL m_bForceClear; |
441 }; | 444 }; |
442 class CPDF_Function : public CFX_Object | 445 class CPDF_Function : public CFX_Object |
443 { | 446 { |
444 public: | 447 public: |
445 static CPDF_Function* Load(CPDF_Object* pFuncObj); | 448 static CPDF_Function* Load(CPDF_Object* pFuncObj); |
446 virtual ~CPDF_Function(); | 449 virtual ~CPDF_Function(); |
447 FX_BOOL Call(FX_FLOAT* inputs, int ninputs, FX_FLOAT* results, i
nt& nresults) const; | 450 FX_BOOL Call(FX_FLOAT* inputs, int ninputs, FX_FLOAT* results, i
nt& nresults) const; |
448 int CountInputs() | 451 int CountInputs() |
449 { | 452 { |
450 return m_nInputs; | 453 return m_nInputs; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 CFX_ByteString m_Prefix; | 504 CFX_ByteString m_Prefix; |
502 int m_nIndex; | 505 int m_nIndex; |
503 }; | 506 }; |
504 ~CPDF_ResourceNaming(); | 507 ~CPDF_ResourceNaming(); |
505 CFX_ByteString GetName(const CPDF_Dictionary* pResList, FX_LPCS
TR szType); | 508 CFX_ByteString GetName(const CPDF_Dictionary* pResList, FX_LPCS
TR szType); |
506 protected: | 509 protected: |
507 CFX_MapByteStringToPtr m_NamingCache; | 510 CFX_MapByteStringToPtr m_NamingCache; |
508 }; | 511 }; |
509 | 512 |
510 #endif // _PAGEINT_H_ | 513 #endif // _PAGEINT_H_ |
OLD | NEW |