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_DataAvail Class Referencefinal

#include <cpdf_data_avail.h>

+ Inheritance diagram for CPDF_DataAvail:
+ Collaboration diagram for CPDF_DataAvail:

Classes

class  DownloadHints
 
class  FileAvail
 

Public Types

enum  DocAvailStatus { kDataError = -1 , kDataNotAvailable = 0 , kDataAvailable = 1 }
 
enum  DocLinearizationStatus { kLinearizationUnknown = -1 , kNotLinearized = 0 , kLinearized = 1 }
 
enum  DocFormStatus { kFormError = -1 , kFormNotAvailable = 0 , kFormAvailable = 1 , kFormNotExist = 2 }
 

Public Member Functions

 CPDF_DataAvail (FileAvail *pFileAvail, RetainPtr< IFX_SeekableReadStream > pFileRead)
 
 ~CPDF_DataAvail () override
 
void OnObservableDestroyed () override
 
DocAvailStatus IsDocAvail (DownloadHints *pHints)
 
DocAvailStatus IsPageAvail (uint32_t dwPage, DownloadHints *pHints)
 
DocFormStatus IsFormAvail (DownloadHints *pHints)
 
DocLinearizationStatus IsLinearizedPDF ()
 
int GetPageCount () const
 
RetainPtr< const CPDF_DictionaryGetPageDictionary (int index) const
 
RetainPtr< CPDF_ReadValidatorGetValidator () const
 
std::pair< CPDF_Parser::Error, std::unique_ptr< CPDF_Document > > ParseDocument (std::unique_ptr< CPDF_Document::RenderDataIface > pRenderData, std::unique_ptr< CPDF_Document::PageDataIface > pPageData, const ByteString &password)
 
const CPDF_HintTablesGetHintTablesForTest () const
 

Detailed Description

Definition at line 31 of file cpdf_data_avail.h.

Member Enumeration Documentation

◆ DocAvailStatus

Enumerator
kDataError 
kDataNotAvailable 
kDataAvailable 

Definition at line 36 of file cpdf_data_avail.h.

◆ DocFormStatus

Enumerator
kFormError 
kFormNotAvailable 
kFormAvailable 
kFormNotExist 

Definition at line 54 of file cpdf_data_avail.h.

◆ DocLinearizationStatus

Enumerator
kLinearizationUnknown 
kNotLinearized 
kLinearized 

Definition at line 45 of file cpdf_data_avail.h.

Constructor & Destructor Documentation

◆ CPDF_DataAvail()

CPDF_DataAvail::CPDF_DataAvail ( FileAvail * pFileAvail,
RetainPtr< IFX_SeekableReadStream > pFileRead )

Definition at line 77 of file cpdf_data_avail.cpp.

References CPDF_DataAvail().

Referenced by CPDF_DataAvail().

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

◆ ~CPDF_DataAvail()

CPDF_DataAvail::~CPDF_DataAvail ( )
override

Definition at line 83 of file cpdf_data_avail.cpp.

Member Function Documentation

◆ GetHintTablesForTest()

const CPDF_HintTables * CPDF_DataAvail::GetHintTablesForTest ( ) const
inline

Definition at line 93 of file cpdf_data_avail.h.

◆ GetPageCount()

int CPDF_DataAvail::GetPageCount ( ) const

Definition at line 922 of file cpdf_data_avail.cpp.

◆ GetPageDictionary()

RetainPtr< const CPDF_Dictionary > CPDF_DataAvail::GetPageDictionary ( int index) const

Definition at line 928 of file cpdf_data_avail.cpp.

Referenced by IsPageAvail().

+ Here is the caller graph for this function:

◆ GetValidator()

RetainPtr< CPDF_ReadValidator > CPDF_DataAvail::GetValidator ( ) const

Definition at line 913 of file cpdf_data_avail.cpp.

Referenced by IsDocAvail(), and IsPageAvail().

+ Here is the caller graph for this function:

◆ IsDocAvail()

CPDF_DataAvail::DocAvailStatus CPDF_DataAvail::IsDocAvail ( DownloadHints * pHints)

Definition at line 97 of file cpdf_data_avail.cpp.

References GetValidator(), kDataAvailable, kDataError, and kDataNotAvailable.

Referenced by FPDFAvail_IsDocAvail().

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

◆ IsFormAvail()

CPDF_DataAvail::DocFormStatus CPDF_DataAvail::IsFormAvail ( DownloadHints * pHints)

Definition at line 959 of file cpdf_data_avail.cpp.

Referenced by FPDFAvail_IsFormAvail().

+ Here is the caller graph for this function:

◆ IsLinearizedPDF()

CPDF_DataAvail::DocLinearizationStatus CPDF_DataAvail::IsLinearizedPDF ( )

Definition at line 477 of file cpdf_data_avail.cpp.

References kDataError, kDataNotAvailable, kLinearizationUnknown, and kNotLinearized.

Referenced by FPDFAvail_IsLinearized().

+ Here is the caller graph for this function:

◆ IsPageAvail()

CPDF_DataAvail::DocAvailStatus CPDF_DataAvail::IsPageAvail ( uint32_t dwPage,
DownloadHints * pHints )

Definition at line 793 of file cpdf_data_avail.cpp.

References CPDF_ObjectAvail::CheckAvail(), GetPageDictionary(), GetValidator(), kDataAvailable, kDataError, kDataNotAvailable, and kFormNotAvailable.

Referenced by FPDFAvail_IsPageAvail().

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

◆ OnObservableDestroyed()

void CPDF_DataAvail::OnObservableDestroyed ( )
override

Definition at line 89 of file cpdf_data_avail.cpp.

◆ ParseDocument()

std::pair< CPDF_Parser::Error, std::unique_ptr< CPDF_Document > > CPDF_DataAvail::ParseDocument ( std::unique_ptr< CPDF_Document::RenderDataIface > pRenderData,
std::unique_ptr< CPDF_Document::PageDataIface > pPageData,
const ByteString & password )

Definition at line 1012 of file cpdf_data_avail.cpp.

References CPDF_Parser::HANDLER_ERROR, and CPDF_Parser::SUCCESS.


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