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

#include <cpdf_page.h>

+ Inheritance diagram for CPDF_Page:
+ Collaboration diagram for CPDF_Page:

Classes

class  RenderContextClearer
 
class  RenderContextIface
 
class  View
 

Public Member Functions

CPDF_PageAsPDFPage () override
 
CPDFXFA_PageAsXFAPage () override
 
CPDF_DocumentGetDocument () const override
 
float GetPageWidth () const override
 
float GetPageHeight () const override
 
CFX_Matrix GetDisplayMatrix (const FX_RECT &rect, int iRotate) const override
 
absl::optional< CFX_PointFDeviceToPage (const FX_RECT &rect, int rotate, const CFX_PointF &device_point) const override
 
absl::optional< CFX_PointFPageToDevice (const FX_RECT &rect, int rotate, const CFX_PointF &page_point) const override
 
bool IsPage () const override
 
void ParseContent ()
 
const CFX_SizeFGetPageSize () const
 
const CFX_MatrixGetPageMatrix () const
 
int GetPageRotation () const
 
RetainPtr< CPDF_ArrayGetOrCreateAnnotsArray ()
 
RetainPtr< CPDF_ArrayGetMutableAnnotsArray ()
 
RetainPtr< const CPDF_ArrayGetAnnotsArray () const
 
void AddPageImageCache ()
 
CPDF_PageImageCacheGetPageImageCache ()
 
RenderContextIfaceGetRenderContext ()
 
void SetRenderContext (std::unique_ptr< RenderContextIface > pContext)
 
void ClearRenderContext ()
 
void SetView (View *pView)
 
void ClearView ()
 
void UpdateDimensions ()
 
- Public Member Functions inherited from IPDF_Page
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 
- Public Member Functions inherited from CPDF_PageObjectHolder
 CPDF_PageObjectHolder (CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pDict, RetainPtr< CPDF_Dictionary > pPageResources, RetainPtr< CPDF_Dictionary > pResources)
 
virtual ~CPDF_PageObjectHolder ()
 
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)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Private Member Functions

 ~CPDF_Page () override
 

Additional Inherited Members

- Public Types inherited from CPDF_PageObjectHolder
enum class  ParseState : uint8_t { kNotParsed , kParsing , kParsed }
 
using iterator = std::deque<std::unique_ptr<CPDF_PageObject>>::iterator
 
using const_iterator
 
- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 
- Protected Member Functions inherited from CPDF_PageObjectHolder
void LoadTransparencyInfo ()
 
- Protected Attributes inherited from CPDF_PageObjectHolder
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 28 of file cpdf_page.h.

Member Function Documentation

◆ ~CPDF_Page()

CPDF_Page::~CPDF_Page ( )
overrideprivatedefault

◆ AddPageImageCache()

void CPDF_Page::AddPageImageCache ( )

Definition at line 199 of file cpdf_page.cpp.

◆ AsPDFPage()

CPDF_Page * CPDF_Page::AsPDFPage ( )
overridevirtual

Implements IPDF_Page.

Definition at line 43 of file cpdf_page.cpp.

◆ AsXFAPage()

CPDFXFA_Page * CPDF_Page::AsXFAPage ( )
overridevirtual

Implements IPDF_Page.

Definition at line 47 of file cpdf_page.cpp.

◆ ClearRenderContext()

void CPDF_Page::ClearRenderContext ( )

Definition at line 209 of file cpdf_page.cpp.

Referenced by FPDF_RenderPage_Close().

+ Here is the caller graph for this function:

◆ ClearView()

void CPDF_Page::ClearView ( )

Definition at line 213 of file cpdf_page.cpp.

◆ DeviceToPage()

absl::optional< CFX_PointF > CPDF_Page::DeviceToPage ( const FX_RECT & rect,
int rotate,
const CFX_PointF & device_point ) const
overridevirtual

Implements IPDF_Page.

Definition at line 107 of file cpdf_page.cpp.

References GetDisplayMatrix(), CFX_Matrix::GetInverse(), and CFX_Matrix::Transform().

+ Here is the call graph for this function:

◆ GetAnnotsArray()

RetainPtr< const CPDF_Array > CPDF_Page::GetAnnotsArray ( ) const

Definition at line 195 of file cpdf_page.cpp.

◆ GetDisplayMatrix()

CFX_Matrix CPDF_Page::GetDisplayMatrix ( const FX_RECT & rect,
int iRotate ) const
overridevirtual

Implements IPDF_Page.

Definition at line 123 of file cpdf_page.cpp.

References CFX_Matrix::CFX_Matrix(), FX_RECT::bottom, FX_RECT::left, CFX_Matrix::operator*(), FX_RECT::right, and FX_RECT::top.

Referenced by CPDFSDK_RenderPageWithContext(), DeviceToPage(), FPDF_RenderPageBitmapWithMatrix(), and PageToDevice().

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

◆ GetDocument()

CPDF_Document * CPDF_Page::GetDocument ( ) const
overridevirtual

◆ GetMutableAnnotsArray()

RetainPtr< CPDF_Array > CPDF_Page::GetMutableAnnotsArray ( )

Definition at line 191 of file cpdf_page.cpp.

◆ GetOrCreateAnnotsArray()

RetainPtr< CPDF_Array > CPDF_Page::GetOrCreateAnnotsArray ( )

Definition at line 187 of file cpdf_page.cpp.

◆ GetPageHeight()

float CPDF_Page::GetPageHeight ( ) const
overridevirtual

Implements IPDF_Page.

Definition at line 59 of file cpdf_page.cpp.

Referenced by FPDF_RenderPageBitmapWithMatrix(), and CFFL_InteractiveFormFiller::QueryWherePopup().

+ Here is the caller graph for this function:

◆ GetPageImageCache()

CPDF_PageImageCache * CPDF_Page::GetPageImageCache ( )
inline

Definition at line 83 of file cpdf_page.h.

Referenced by CPDF_Annot::DrawAppearance(), and CPDF_Image::ResetCache().

+ Here is the caller graph for this function:

◆ GetPageMatrix()

const CFX_Matrix & CPDF_Page::GetPageMatrix ( ) const
inline

Definition at line 75 of file cpdf_page.h.

◆ GetPageRotation()

int CPDF_Page::GetPageRotation ( ) const

Definition at line 180 of file cpdf_page.cpp.

Referenced by FPDFPage_GetRotation(), and UpdateDimensions().

+ Here is the caller graph for this function:

◆ GetPageSize()

const CFX_SizeF & CPDF_Page::GetPageSize ( ) const
inline

Definition at line 74 of file cpdf_page.h.

◆ GetPageWidth()

float CPDF_Page::GetPageWidth ( ) const
overridevirtual

Implements IPDF_Page.

Definition at line 55 of file cpdf_page.cpp.

Referenced by FPDF_RenderPageBitmapWithMatrix(), and CFFL_InteractiveFormFiller::QueryWherePopup().

+ Here is the caller graph for this function:

◆ GetRenderContext()

RenderContextIface * CPDF_Page::GetRenderContext ( )
inline

Definition at line 84 of file cpdf_page.h.

Referenced by FPDF_RenderPage_Continue().

+ Here is the caller graph for this function:

◆ IsPage()

bool CPDF_Page::IsPage ( ) const
overridevirtual

Reimplemented from CPDF_PageObjectHolder.

Definition at line 63 of file cpdf_page.cpp.

◆ PageToDevice()

absl::optional< CFX_PointF > CPDF_Page::PageToDevice ( const FX_RECT & rect,
int rotate,
const CFX_PointF & page_point ) const
overridevirtual

Implements IPDF_Page.

Definition at line 115 of file cpdf_page.cpp.

References GetDisplayMatrix(), and CFX_Matrix::Transform().

+ Here is the call graph for this function:

◆ ParseContent()

void CPDF_Page::ParseContent ( )

Definition at line 67 of file cpdf_page.cpp.

References CPDF_PageObjectHolder::ContinueParse(), CPDF_PageObjectHolder::GetParseState(), CPDF_PageObjectHolder::kParsed, and CPDF_PageObjectHolder::kParsing.

+ Here is the call graph for this function:

◆ SetRenderContext()

void CPDF_Page::SetRenderContext ( std::unique_ptr< RenderContextIface > pContext)

Definition at line 203 of file cpdf_page.cpp.

◆ SetView()

void CPDF_Page::SetView ( View * pView)
inline

Definition at line 92 of file cpdf_page.h.

Referenced by CPDFSDK_PageView::CPDFSDK_PageView().

+ Here is the caller graph for this function:

◆ UpdateDimensions()

void CPDF_Page::UpdateDimensions ( )

Definition at line 218 of file cpdf_page.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_Matrix::CFX_Matrix(), CFX_FloatRect::bottom, GetPageRotation(), CFX_FloatRect::Intersect(), CFX_FloatRect::IsEmpty(), pdfium::page_object::kCropBox, pdfium::page_object::kMediaBox, CFX_FloatRect::left, CPDF_PageObjectHolder::m_BBox, CFX_FloatRect::operator=(), CFX_Matrix::operator=(), CFX_FloatRect::right, and CFX_FloatRect::top.

Referenced by FPDFPage_SetRotation().

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

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_Page::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 52 of file cpdf_page.h.


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