Ipelib
Public Member Functions | List of all members
ipe::PdfObj Class Referenceabstract

#include <ipepdfparser.h>

Inherited by ipe::PdfArray, ipe::PdfBool, ipe::PdfDict, ipe::PdfName, ipe::PdfNull, ipe::PdfNumber, ipe::PdfRef, and ipe::PdfString.

Public Member Functions

virtual ~PdfObj ()=0
 
virtual const PdfNull * null () const noexcept
 
virtual const PdfBool * boolean () const noexcept
 
virtual const PdfNumber * number () const noexcept
 
virtual const PdfString * string () const noexcept
 
virtual const PdfName * name () const noexcept
 
virtual const PdfRef * ref () const noexcept
 
virtual const PdfArray * array () const noexcept
 
virtual const PdfDict * dict () const noexcept
 
virtual void write (Stream &stream, const PdfRenumber *renumber=nullptr, bool inflate=false) const noexcept=0
 
String repr () const noexcept
 

Detailed Description

Abstract base class for PDF objects.

Constructor & Destructor Documentation

◆ ~PdfObj()

PdfObj::~PdfObj ( )
pure virtual

Pure virtual destructor.

Member Function Documentation

◆ null()

const PdfNull * PdfObj::null ( ) const
virtualnoexcept

Return this object as PDF null object.

Reimplemented in ipe::PdfNull.

Referenced by ipe::PdfNull::PdfNull().

◆ boolean()

const PdfBool * PdfObj::boolean ( ) const
virtualnoexcept

Return this object as PDF bool object.

Reimplemented in ipe::PdfBool.

Referenced by ipe::PdfBool::PdfBool().

◆ number()

const PdfNumber * PdfObj::number ( ) const
virtualnoexcept

◆ string()

const PdfString * PdfObj::string ( ) const
virtualnoexcept

Return this object as PDF string object.

Reimplemented in ipe::PdfString.

Referenced by ipe::CairoPainter::executeStream(), and ipe::PdfString::PdfString().

◆ name()

const PdfName * PdfObj::name ( ) const
virtualnoexcept

◆ ref()

const PdfRef * PdfObj::ref ( ) const
virtualnoexcept

◆ array()

const PdfArray * PdfObj::array ( ) const
virtualnoexcept

◆ dict()

const PdfDict * PdfObj::dict ( ) const
virtualnoexcept

◆ write()

virtual void ipe::PdfObj::write ( Stream &  stream,
const PdfRenumber *  renumber = nullptr,
bool  inflate = false 
) const
pure virtualnoexcept

◆ repr()

String PdfObj::repr ( ) const
noexcept

Return PDF representation of the object.

References write().

Referenced by ipe::PdfResources::collect(), and ipe::CairoPainter::executeStream().


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