| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 419     CPDF_Font*                  GetFont(CPDF_Dictionary* pFontDict, FX_BOOL find
     Only); | 419     CPDF_Font*                  GetFont(CPDF_Dictionary* pFontDict, FX_BOOL find
     Only); | 
| 420     CPDF_Font*                  GetStandardFont(FX_BSTR fontName, CPDF_FontEncod
     ing* pEncoding); | 420     CPDF_Font*                  GetStandardFont(FX_BSTR fontName, CPDF_FontEncod
     ing* pEncoding); | 
| 421     void                        ReleaseFont(CPDF_Dictionary* pFontDict); | 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* pColorSpace); | 424     void                        ReleaseColorSpace(CPDF_Object* pColorSpace); | 
| 425     CPDF_Pattern*               GetPattern(CPDF_Object* pPatternObj, FX_BOOL bSh
     ading, const CFX_AffineMatrix* matrix); | 425     CPDF_Pattern*               GetPattern(CPDF_Object* pPatternObj, FX_BOOL bSh
     ading, const CFX_AffineMatrix* matrix); | 
| 426     void                        ReleasePattern(CPDF_Object* pPatternObj); | 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* pImageStream); | 428     void                        ReleaseImage(CPDF_Object* pImageStream); | 
| 429     CPDF_IccProfile*            GetIccProfile(CPDF_Stream* pIccProfileStream); | 429     CPDF_IccProfile*            GetIccProfile(CPDF_Stream* pIccProfileStream, FX
     _INT32 nComponents); | 
| 430     void                        ReleaseIccProfile(CPDF_Stream* pIccProfileStream
     , CPDF_IccProfile* pIccProfile); | 430     void                        ReleaseIccProfile(CPDF_Stream* pIccProfileStream
     , CPDF_IccProfile* pIccProfile); | 
| 431     CPDF_StreamAcc*             GetFontFileStreamAcc(CPDF_Stream* pFontStream); | 431     CPDF_StreamAcc*             GetFontFileStreamAcc(CPDF_Stream* pFontStream); | 
| 432     void                        ReleaseFontFileStreamAcc(CPDF_Stream* pFontStrea
     m, FX_BOOL bForce = FALSE); | 432     void                        ReleaseFontFileStreamAcc(CPDF_Stream* pFontStrea
     m, FX_BOOL bForce = FALSE); | 
| 433     FX_BOOL                     IsForceClear() const {return m_bForceClear;} | 433     FX_BOOL                     IsForceClear() const {return m_bForceClear;} | 
| 434 | 434 | 
| 435     CPDF_Document*              m_pPDFDoc; | 435     CPDF_Document*              m_pPDFDoc; | 
| 436     CPDF_FontMap                m_FontMap; | 436     CPDF_FontMap                m_FontMap; | 
| 437     CPDF_ColorSpaceMap          m_ColorSpaceMap; | 437     CPDF_ColorSpaceMap          m_ColorSpaceMap; | 
| 438     CPDF_PatternMap             m_PatternMap; | 438     CPDF_PatternMap             m_PatternMap; | 
| 439     CPDF_ImageMap               m_ImageMap; | 439     CPDF_ImageMap               m_ImageMap; | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 461     int                 m_nInputs, m_nOutputs; | 461     int                 m_nInputs, m_nOutputs; | 
| 462     FX_FLOAT*   m_pDomains; | 462     FX_FLOAT*   m_pDomains; | 
| 463     FX_FLOAT*   m_pRanges; | 463     FX_FLOAT*   m_pRanges; | 
| 464     FX_BOOL             Init(CPDF_Object* pObj); | 464     FX_BOOL             Init(CPDF_Object* pObj); | 
| 465     virtual FX_BOOL     v_Init(CPDF_Object* pObj) = 0; | 465     virtual FX_BOOL     v_Init(CPDF_Object* pObj) = 0; | 
| 466     virtual FX_BOOL     v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0; | 466     virtual FX_BOOL     v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0; | 
| 467 }; | 467 }; | 
| 468 class CPDF_IccProfile : public CFX_Object | 468 class CPDF_IccProfile : public CFX_Object | 
| 469 { | 469 { | 
| 470 public: | 470 public: | 
| 471     CPDF_IccProfile(FX_LPCBYTE pData, FX_DWORD dwSize); | 471     CPDF_IccProfile(FX_LPCBYTE pData, FX_DWORD dwSize, int nComponents); | 
| 472     ~CPDF_IccProfile(); | 472     ~CPDF_IccProfile(); | 
| 473     FX_INT32 GetComponents() { return m_nSrcComponents; } |  | 
| 474     FX_BOOL                                     m_bsRGB; | 473     FX_BOOL                                     m_bsRGB; | 
| 475     FX_INT32                m_nSrcComponents; |  | 
| 476     FX_LPVOID                           m_pTransform; | 474     FX_LPVOID                           m_pTransform; | 
| 477 }; | 475 }; | 
| 478 class CPDF_DeviceCS : public CPDF_ColorSpace | 476 class CPDF_DeviceCS : public CPDF_ColorSpace | 
| 479 { | 477 { | 
| 480 public: | 478 public: | 
| 481     CPDF_DeviceCS(int family); | 479     CPDF_DeviceCS(int family); | 
| 482     virtual FX_BOOL     GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOA
     T& B) const; | 480     virtual FX_BOOL     GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOA
     T& B) const; | 
| 483     FX_BOOL     SetRGB(FX_FLOAT* pBuf, FX_FLOAT R, FX_FLOAT G, FX_FLOAT B) const
     ; | 481     FX_BOOL     SetRGB(FX_FLOAT* pBuf, FX_FLOAT R, FX_FLOAT G, FX_FLOAT B) const
     ; | 
| 484     FX_BOOL     v_GetCMYK(FX_FLOAT* pBuf, FX_FLOAT& c, FX_FLOAT& m, FX_FLOAT& y,
      FX_FLOAT& k) const; | 482     FX_BOOL     v_GetCMYK(FX_FLOAT* pBuf, FX_FLOAT& c, FX_FLOAT& m, FX_FLOAT& y,
      FX_FLOAT& k) const; | 
| 485     FX_BOOL     v_SetCMYK(FX_FLOAT* pBuf, FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX
     _FLOAT k) const; | 483     FX_BOOL     v_SetCMYK(FX_FLOAT* pBuf, FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX
     _FLOAT k) const; | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 506         CFX_ByteString  m_Prefix; | 504         CFX_ByteString  m_Prefix; | 
| 507         int                             m_nIndex; | 505         int                             m_nIndex; | 
| 508     }; | 506     }; | 
| 509     ~CPDF_ResourceNaming(); | 507     ~CPDF_ResourceNaming(); | 
| 510     CFX_ByteString              GetName(const CPDF_Dictionary* pResList, FX_LPCS
     TR szType); | 508     CFX_ByteString              GetName(const CPDF_Dictionary* pResList, FX_LPCS
     TR szType); | 
| 511 protected: | 509 protected: | 
| 512     CFX_MapByteStringToPtr      m_NamingCache; | 510     CFX_MapByteStringToPtr      m_NamingCache; | 
| 513 }; | 511 }; | 
| 514 | 512 | 
| 515 #endif  // _PAGEINT_H_ | 513 #endif  // _PAGEINT_H_ | 
| OLD | NEW | 
|---|