Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_DocPageData Class Referencefinal

#include <cpdf_docpagedata.h>

+ Inheritance diagram for CPDF_DocPageData:
+ Collaboration diagram for CPDF_DocPageData:

Public Member Functions

 CPDF_DocPageData ()
 
 ~CPDF_DocPageData () override
 
void ClearStockFont () override
 
RetainPtr< CPDF_StreamAccGetFontFileStreamAcc (RetainPtr< const CPDF_Stream > pFontStream) override
 
void MaybePurgeFontFileStreamAcc (RetainPtr< CPDF_StreamAcc > &&pStreamAcc) override
 
void MaybePurgeImage (uint32_t dwStreamObjNum) override
 
std::unique_ptr< CPDF_Font::FormIfaceCreateForm (CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pPageResources, RetainPtr< CPDF_Stream > pFormStream) override
 
bool IsForceClear () const
 
RetainPtr< CPDF_FontAddFont (std::unique_ptr< CFX_Font > pFont, FX_Charset charset)
 
RetainPtr< CPDF_FontGetFont (RetainPtr< CPDF_Dictionary > pFontDict)
 
RetainPtr< CPDF_FontAddStandardFont (const ByteString &fontName, const CPDF_FontEncoding *pEncoding)
 
RetainPtr< CPDF_FontGetStandardFont (const ByteString &fontName, const CPDF_FontEncoding *pEncoding)
 
RetainPtr< CPDF_ColorSpaceGetColorSpace (const CPDF_Object *pCSObj, const CPDF_Dictionary *pResources)
 
RetainPtr< CPDF_ColorSpaceGetColorSpaceGuarded (const CPDF_Object *pCSObj, const CPDF_Dictionary *pResources, std::set< const CPDF_Object * > *pVisited)
 
RetainPtr< CPDF_PatternGetPattern (RetainPtr< CPDF_Object > pPatternObj, const CFX_Matrix &matrix)
 
RetainPtr< CPDF_ShadingPatternGetShading (RetainPtr< CPDF_Object > pPatternObj, const CFX_Matrix &matrix)
 
RetainPtr< CPDF_ImageGetImage (uint32_t dwStreamObjNum)
 
RetainPtr< CPDF_IccProfileGetIccProfile (RetainPtr< const CPDF_Stream > pProfileStream)
 
- Public Member Functions inherited from CPDF_Document::PageDataIface
 PageDataIface ()
 
virtual ~PageDataIface ()
 
void SetDocument (CPDF_Document *pDoc)
 
- Public Member Functions inherited from CPDF_Font::FormFactoryIface
virtual ~FormFactoryIface ()=default
 

Static Public Member Functions

static CPDF_DocPageDataFromDocument (const CPDF_Document *pDoc)
 

Additional Inherited Members

- Protected Member Functions inherited from CPDF_Document::PageDataIface
CPDF_DocumentGetDocument () const
 

Detailed Description

Definition at line 33 of file cpdf_docpagedata.h.

Constructor & Destructor Documentation

◆ CPDF_DocPageData()

CPDF_DocPageData::CPDF_DocPageData ( )
default

◆ ~CPDF_DocPageData()

CPDF_DocPageData::~CPDF_DocPageData ( )
override

Definition at line 170 of file cpdf_docpagedata.cpp.

Member Function Documentation

◆ AddFont()

RetainPtr< CPDF_Font > CPDF_DocPageData::AddFont ( std::unique_ptr< CFX_Font > pFont,
FX_Charset charset )

Definition at line 502 of file cpdf_docpagedata.cpp.

References FX_RECT::FX_RECT(), FX_RECT::bottom, FX_CharSetIsCJK(), CPDF_Document::PageDataIface::GetDocument(), kANSI, kDefault, kFX_CharsetUnicodes, kSymbol, pdfium::font_encodings::kWinAnsiEncoding, FX_RECT::left, FX_RECT::right, and FX_RECT::top.

+ Here is the call graph for this function:

◆ AddStandardFont()

RetainPtr< CPDF_Font > CPDF_DocPageData::AddStandardFont ( const ByteString & fontName,
const CPDF_FontEncoding * pEncoding )

Definition at line 491 of file cpdf_docpagedata.cpp.

References fxcrt::ByteString::ByteString().

+ Here is the call graph for this function:

◆ ClearStockFont()

void CPDF_DocPageData::ClearStockFont ( )
overridevirtual

Implements CPDF_Document::PageDataIface.

Definition at line 191 of file cpdf_docpagedata.cpp.

References CPDF_FontGlobals::Clear(), CPDF_Document::PageDataIface::GetDocument(), and CPDF_FontGlobals::GetInstance().

+ Here is the call graph for this function:

◆ CreateForm()

std::unique_ptr< CPDF_Font::FormIface > CPDF_DocPageData::CreateForm ( CPDF_Document * pDocument,
RetainPtr< CPDF_Dictionary > pPageResources,
RetainPtr< CPDF_Stream > pFormStream )
overridevirtual

Implements CPDF_Font::FormFactoryIface.

Definition at line 483 of file cpdf_docpagedata.cpp.

◆ FromDocument()

CPDF_DocPageData * CPDF_DocPageData::FromDocument ( const CPDF_Document * pDoc)
static

Definition at line 164 of file cpdf_docpagedata.cpp.

References CPDF_Document::GetPageData().

Referenced by FPDFPageObj_CreateTextObj(), CPDF_GenerateAP::GenerateFormAP(), CPDF_ShadingPattern::Load(), TEST_F(), CPDF_IndexedCS::v_Load(), and CPDF_PatternCS::v_Load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetColorSpace()

RetainPtr< CPDF_ColorSpace > CPDF_DocPageData::GetColorSpace ( const CPDF_Object * pCSObj,
const CPDF_Dictionary * pResources )

Definition at line 257 of file cpdf_docpagedata.cpp.

◆ GetColorSpaceGuarded()

RetainPtr< CPDF_ColorSpace > CPDF_DocPageData::GetColorSpaceGuarded ( const CPDF_Object * pCSObj,
const CPDF_Dictionary * pResources,
std::set< const CPDF_Object * > * pVisited )

Definition at line 264 of file cpdf_docpagedata.cpp.

◆ GetFont()

RetainPtr< CPDF_Font > CPDF_DocPageData::GetFont ( RetainPtr< CPDF_Dictionary > pFontDict)

Definition at line 195 of file cpdf_docpagedata.cpp.

Referenced by FPDFPageObj_CreateTextObj().

+ Here is the caller graph for this function:

◆ GetFontFileStreamAcc()

RetainPtr< CPDF_StreamAcc > CPDF_DocPageData::GetFontFileStreamAcc ( RetainPtr< const CPDF_Stream > pFontStream)
overridevirtual

Implements CPDF_Document::PageDataIface.

Definition at line 443 of file cpdf_docpagedata.cpp.

◆ GetIccProfile()

RetainPtr< CPDF_IccProfile > CPDF_DocPageData::GetIccProfile ( RetainPtr< const CPDF_Stream > pProfileStream)

Definition at line 410 of file cpdf_docpagedata.cpp.

References fxcodec::IccTransform::IsValidIccComponents().

+ Here is the call graph for this function:

◆ GetImage()

RetainPtr< CPDF_Image > CPDF_DocPageData::GetImage ( uint32_t dwStreamObjNum)

Definition at line 392 of file cpdf_docpagedata.cpp.

References CPDF_Document::PageDataIface::GetDocument().

+ Here is the call graph for this function:

◆ GetPattern()

RetainPtr< CPDF_Pattern > CPDF_DocPageData::GetPattern ( RetainPtr< CPDF_Object > pPatternObj,
const CFX_Matrix & matrix )

Definition at line 347 of file cpdf_docpagedata.cpp.

References CPDF_Document::PageDataIface::GetDocument(), CPDF_Pattern::kShading, and CPDF_Pattern::kTiling.

+ Here is the call graph for this function:

◆ GetShading()

RetainPtr< CPDF_ShadingPattern > CPDF_DocPageData::GetShading ( RetainPtr< CPDF_Object > pPatternObj,
const CFX_Matrix & matrix )

Definition at line 376 of file cpdf_docpagedata.cpp.

References CPDF_Document::PageDataIface::GetDocument().

+ Here is the call graph for this function:

◆ GetStandardFont()

RetainPtr< CPDF_Font > CPDF_DocPageData::GetStandardFont ( const ByteString & fontName,
const CPDF_FontEncoding * pEncoding )

Definition at line 213 of file cpdf_docpagedata.cpp.

References CPDF_Document::PageDataIface::GetDocument(), and fxcrt::ByteString::IsEmpty().

+ Here is the call graph for this function:

◆ IsForceClear()

bool CPDF_DocPageData::IsForceClear ( ) const
inline

Definition at line 55 of file cpdf_docpagedata.h.

◆ MaybePurgeFontFileStreamAcc()

void CPDF_DocPageData::MaybePurgeFontFileStreamAcc ( RetainPtr< CPDF_StreamAcc > && pStreamAcc)
overridevirtual

Implements CPDF_Document::PageDataIface.

Definition at line 468 of file cpdf_docpagedata.cpp.

◆ MaybePurgeImage()

void CPDF_DocPageData::MaybePurgeImage ( uint32_t dwStreamObjNum)
overridevirtual

Implements CPDF_Document::PageDataIface.

Definition at line 403 of file cpdf_docpagedata.cpp.


The documentation for this class was generated from the following files: