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_PageObjectHolder Class Reference

#include <cpdf_pageobjectholder.h>

+ Inheritance diagram for CPDF_PageObjectHolder:
+ Collaboration diagram for CPDF_PageObjectHolder:

Public Types

enum class  ParseState : uint8_t { kNotParsed , kParsing , kParsed }
 
using iterator = std::deque<std::unique_ptr<CPDF_PageObject>>::iterator
 
using const_iterator
 

Public Member Functions

 CPDF_PageObjectHolder (CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pDict, RetainPtr< CPDF_Dictionary > pPageResources, RetainPtr< CPDF_Dictionary > pResources)
 
virtual ~CPDF_PageObjectHolder ()
 
virtual bool IsPage () const
 
void StartParse (std::unique_ptr< CPDF_ContentParser > pParser)
 
void ContinueParse (PauseIndicatorIface *pPause)
 
ParseState GetParseState () const
 
CPDF_DocumentGetDocument () const
 
RetainPtr< const CPDF_DictionaryGetDict () const
 
RetainPtr< CPDF_DictionaryGetMutableDict ()
 
RetainPtr< const CPDF_DictionaryGetResources () const
 
RetainPtr< CPDF_DictionaryGetMutableResources ()
 
void SetResources (RetainPtr< CPDF_Dictionary > pDict)
 
RetainPtr< const CPDF_DictionaryGetPageResources () const
 
RetainPtr< CPDF_DictionaryGetMutablePageResources ()
 
size_t GetPageObjectCount () const
 
CPDF_PageObjectGetPageObjectByIndex (size_t index) const
 
void AppendPageObject (std::unique_ptr< CPDF_PageObject > pPageObj)
 
std::unique_ptr< CPDF_PageObjectRemovePageObject (CPDF_PageObject *pPageObj)
 
bool ErasePageObjectAtIndex (size_t index)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const CFX_MatrixGetLastCTM () const
 
const CFX_FloatRectGetBBox () const
 
const CPDF_TransparencyGetTransparency () const
 
bool BackgroundAlphaNeeded () const
 
void SetBackgroundAlphaNeeded (bool needed)
 
bool HasImageMask () const
 
const std::vector< CFX_FloatRect > & GetMaskBoundingBoxes () const
 
void AddImageMaskBoundingBox (const CFX_FloatRect &box)
 
bool HasDirtyStreams () const
 
std::set< int32_t > TakeDirtyStreams ()
 
absl::optional< ByteStringGraphicsMapSearch (const GraphicsData &gd)
 
void GraphicsMapInsert (const GraphicsData &gd, const ByteString &str)
 
absl::optional< ByteStringFontsMapSearch (const FontData &fd)
 
void FontsMapInsert (const FontData &fd, const ByteString &str)
 

Protected Member Functions

void LoadTransparencyInfo ()
 

Protected Attributes

RetainPtr< CPDF_Dictionarym_pPageResources
 
RetainPtr< CPDF_Dictionarym_pResources
 
std::map< GraphicsData, ByteStringm_GraphicsMap
 
std::map< FontData, ByteStringm_FontsMap
 
CFX_FloatRect m_BBox
 
CPDF_Transparency m_Transparency
 

Detailed Description

Definition at line 51 of file cpdf_pageobjectholder.h.

Member Typedef Documentation

◆ const_iterator

Initial value:
std::deque<std::unique_ptr<CPDF_PageObject>>::const_iterator
std::deque< std::unique_ptr< CPDF_PageObject > >::const_iterator const_iterator

Definition at line 56 of file cpdf_pageobjectholder.h.

◆ iterator

using CPDF_PageObjectHolder::iterator = std::deque<std::unique_ptr<CPDF_PageObject>>::iterator

Definition at line 55 of file cpdf_pageobjectholder.h.

Member Enumeration Documentation

◆ ParseState

enum class CPDF_PageObjectHolder::ParseState : uint8_t
strong
Enumerator
kNotParsed 
kParsing 
kParsed 

Definition at line 53 of file cpdf_pageobjectholder.h.

Constructor & Destructor Documentation

◆ CPDF_PageObjectHolder()

CPDF_PageObjectHolder::CPDF_PageObjectHolder ( CPDF_Document * pDoc,
RetainPtr< CPDF_Dictionary > pDict,
RetainPtr< CPDF_Dictionary > pPageResources,
RetainPtr< CPDF_Dictionary > pResources )

Definition at line 37 of file cpdf_pageobjectholder.cpp.

References CPDF_PageObjectHolder().

Referenced by CPDF_PageObjectHolder().

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

◆ ~CPDF_PageObjectHolder()

CPDF_PageObjectHolder::~CPDF_PageObjectHolder ( )
virtualdefault

Member Function Documentation

◆ AddImageMaskBoundingBox()

void CPDF_PageObjectHolder::AddImageMaskBoundingBox ( const CFX_FloatRect & box)

Definition at line 79 of file cpdf_pageobjectholder.cpp.

◆ AppendPageObject()

void CPDF_PageObjectHolder::AppendPageObject ( std::unique_ptr< CPDF_PageObject > pPageObj)

Definition at line 138 of file cpdf_pageobjectholder.cpp.

◆ BackgroundAlphaNeeded()

bool CPDF_PageObjectHolder::BackgroundAlphaNeeded ( ) const
inline

Definition at line 103 of file cpdf_pageobjectholder.h.

Referenced by FPDFPage_HasTransparency().

+ Here is the caller graph for this function:

◆ begin() [1/2]

iterator CPDF_PageObjectHolder::begin ( )
inline

Definition at line 93 of file cpdf_pageobjectholder.h.

◆ begin() [2/2]

const_iterator CPDF_PageObjectHolder::begin ( ) const
inline

Definition at line 94 of file cpdf_pageobjectholder.h.

◆ ContinueParse()

void CPDF_PageObjectHolder::ContinueParse ( PauseIndicatorIface * pPause)

Definition at line 62 of file cpdf_pageobjectholder.cpp.

References kParsed, and kParsing.

Referenced by CPDF_Page::ParseContent().

+ Here is the caller graph for this function:

◆ end() [1/2]

iterator CPDF_PageObjectHolder::end ( )
inline

Definition at line 96 of file cpdf_pageobjectholder.h.

◆ end() [2/2]

const_iterator CPDF_PageObjectHolder::end ( ) const
inline

Definition at line 97 of file cpdf_pageobjectholder.h.

◆ ErasePageObjectAtIndex()

bool CPDF_PageObjectHolder::ErasePageObjectAtIndex ( size_t index)

Definition at line 160 of file cpdf_pageobjectholder.cpp.

◆ FontsMapInsert()

void CPDF_PageObjectHolder::FontsMapInsert ( const FontData & fd,
const ByteString & str )

Definition at line 112 of file cpdf_pageobjectholder.cpp.

◆ FontsMapSearch()

absl::optional< ByteString > CPDF_PageObjectHolder::FontsMapSearch ( const FontData & fd)

Definition at line 103 of file cpdf_pageobjectholder.cpp.

◆ GetBBox()

const CFX_FloatRect & CPDF_PageObjectHolder::GetBBox ( ) const
inline

Definition at line 100 of file cpdf_pageobjectholder.h.

References m_BBox.

Referenced by FPDF_GetPageBoundingBox(), and CFFL_FormField::GetFocusBox().

+ Here is the caller graph for this function:

◆ GetDict()

RetainPtr< const CPDF_Dictionary > CPDF_PageObjectHolder::GetDict ( ) const
inline

Definition at line 72 of file cpdf_pageobjectholder.h.

◆ GetDocument()

CPDF_Document * CPDF_PageObjectHolder::GetDocument ( ) const
inline

Definition at line 71 of file cpdf_pageobjectholder.h.

◆ GetLastCTM()

const CFX_Matrix & CPDF_PageObjectHolder::GetLastCTM ( ) const
inline

Definition at line 99 of file cpdf_pageobjectholder.h.

◆ GetMaskBoundingBoxes()

const std::vector< CFX_FloatRect > & CPDF_PageObjectHolder::GetMaskBoundingBoxes ( ) const
inline

Definition at line 109 of file cpdf_pageobjectholder.h.

◆ GetMutableDict()

RetainPtr< CPDF_Dictionary > CPDF_PageObjectHolder::GetMutableDict ( )
inline

Definition at line 73 of file cpdf_pageobjectholder.h.

◆ GetMutablePageResources()

RetainPtr< CPDF_Dictionary > CPDF_PageObjectHolder::GetMutablePageResources ( )
inline

Definition at line 82 of file cpdf_pageobjectholder.h.

◆ GetMutableResources()

RetainPtr< CPDF_Dictionary > CPDF_PageObjectHolder::GetMutableResources ( )
inline

Definition at line 75 of file cpdf_pageobjectholder.h.

◆ GetPageObjectByIndex()

CPDF_PageObject * CPDF_PageObjectHolder::GetPageObjectByIndex ( size_t index) const

Definition at line 131 of file cpdf_pageobjectholder.cpp.

◆ GetPageObjectCount()

size_t CPDF_PageObjectHolder::GetPageObjectCount ( ) const
inline

Definition at line 85 of file cpdf_pageobjectholder.h.

◆ GetPageResources()

RetainPtr< const CPDF_Dictionary > CPDF_PageObjectHolder::GetPageResources ( ) const
inline

Definition at line 79 of file cpdf_pageobjectholder.h.

◆ GetParseState()

ParseState CPDF_PageObjectHolder::GetParseState ( ) const
inline

Definition at line 69 of file cpdf_pageobjectholder.h.

Referenced by CPDF_Page::ParseContent().

+ Here is the caller graph for this function:

◆ GetResources()

RetainPtr< const CPDF_Dictionary > CPDF_PageObjectHolder::GetResources ( ) const
inline

Definition at line 74 of file cpdf_pageobjectholder.h.

◆ GetTransparency()

const CPDF_Transparency & CPDF_PageObjectHolder::GetTransparency ( ) const
inline

Definition at line 102 of file cpdf_pageobjectholder.h.

References m_Transparency.

Referenced by CPDF_RenderTiling::Draw(), and FPDFPageObj_HasTransparency().

+ Here is the caller graph for this function:

◆ GraphicsMapInsert()

void CPDF_PageObjectHolder::GraphicsMapInsert ( const GraphicsData & gd,
const ByteString & str )

Definition at line 98 of file cpdf_pageobjectholder.cpp.

◆ GraphicsMapSearch()

absl::optional< ByteString > CPDF_PageObjectHolder::GraphicsMapSearch ( const GraphicsData & gd)

Definition at line 89 of file cpdf_pageobjectholder.cpp.

◆ HasDirtyStreams()

bool CPDF_PageObjectHolder::HasDirtyStreams ( ) const
inline

Definition at line 113 of file cpdf_pageobjectholder.h.

◆ HasImageMask()

bool CPDF_PageObjectHolder::HasImageMask ( ) const
inline

Definition at line 108 of file cpdf_pageobjectholder.h.

◆ IsPage()

bool CPDF_PageObjectHolder::IsPage ( ) const
virtual

Reimplemented in CPDF_Page.

Definition at line 51 of file cpdf_pageobjectholder.cpp.

◆ LoadTransparencyInfo()

void CPDF_PageObjectHolder::LoadTransparencyInfo ( )
protected

Definition at line 117 of file cpdf_pageobjectholder.cpp.

References pdfium::transparency::kGroupSubType, pdfium::transparency::kI, pdfium::transparency::kTransparency, m_Transparency, CPDF_Transparency::SetGroup(), and CPDF_Transparency::SetIsolated().

Referenced by CPDF_Form::CPDF_Form().

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

◆ RemovePageObject()

std::unique_ptr< CPDF_PageObject > CPDF_PageObjectHolder::RemovePageObject ( CPDF_PageObject * pPageObj)

Definition at line 143 of file cpdf_pageobjectholder.cpp.

References CPDF_PageObject::GetContentStream().

+ Here is the call graph for this function:

◆ SetBackgroundAlphaNeeded()

void CPDF_PageObjectHolder::SetBackgroundAlphaNeeded ( bool needed)
inline

Definition at line 104 of file cpdf_pageobjectholder.h.

◆ SetResources()

void CPDF_PageObjectHolder::SetResources ( RetainPtr< CPDF_Dictionary > pDict)
inline

Definition at line 76 of file cpdf_pageobjectholder.h.

◆ StartParse()

void CPDF_PageObjectHolder::StartParse ( std::unique_ptr< CPDF_ContentParser > pParser)

Definition at line 55 of file cpdf_pageobjectholder.cpp.

References kNotParsed, and kParsing.

◆ TakeDirtyStreams()

std::set< int32_t > CPDF_PageObjectHolder::TakeDirtyStreams ( )

Definition at line 83 of file cpdf_pageobjectholder.cpp.

Member Data Documentation

◆ m_BBox

CFX_FloatRect CPDF_PageObjectHolder::m_BBox
protected

Definition at line 129 of file cpdf_pageobjectholder.h.

Referenced by GetBBox(), and CPDF_Page::UpdateDimensions().

◆ m_FontsMap

std::map<FontData, ByteString> CPDF_PageObjectHolder::m_FontsMap
protected

Definition at line 128 of file cpdf_pageobjectholder.h.

◆ m_GraphicsMap

std::map<GraphicsData, ByteString> CPDF_PageObjectHolder::m_GraphicsMap
protected

Definition at line 127 of file cpdf_pageobjectholder.h.

◆ m_pPageResources

RetainPtr<CPDF_Dictionary> CPDF_PageObjectHolder::m_pPageResources
protected

Definition at line 125 of file cpdf_pageobjectholder.h.

◆ m_pResources

RetainPtr<CPDF_Dictionary> CPDF_PageObjectHolder::m_pResources
protected

Definition at line 126 of file cpdf_pageobjectholder.h.

◆ m_Transparency

CPDF_Transparency CPDF_PageObjectHolder::m_Transparency
protected

Definition at line 130 of file cpdf_pageobjectholder.h.

Referenced by GetTransparency(), and LoadTransparencyInfo().


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