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

#include <cpdf_reference.h>

+ Inheritance diagram for CPDF_Reference:
+ Collaboration diagram for CPDF_Reference:

Public Member Functions

Type GetType () const override
 
RetainPtr< CPDF_ObjectClone () const override
 
ByteString GetString () const override
 
float GetNumber () const override
 
int GetInteger () const override
 
CPDF_ReferenceAsMutableReference () override
 
bool WriteTo (IFX_ArchiveStream *archive, const CPDF_Encryptor *encryptor) const override
 
RetainPtr< CPDF_ReferenceMakeReference (CPDF_IndirectObjectHolder *holder) const override
 
uint32_t GetRefObjNum () const
 
bool HasIndirectObjectHolder () const
 
void SetRef (CPDF_IndirectObjectHolder *pDoc, uint32_t objnum)
 
- Public Member Functions inherited from CPDF_Object
uint32_t GetObjNum () const
 
void SetObjNum (uint32_t objnum)
 
uint32_t GetGenNum () const
 
void SetGenNum (uint32_t gennum)
 
bool IsInline () const
 
uint64_t KeyForCache () const
 
RetainPtr< CPDF_ObjectCloneDirectObject () const
 
virtual WideString GetUnicodeText () const
 
virtual void SetString (const ByteString &str)
 
virtual CPDF_ArrayAsMutableArray ()
 
virtual CPDF_BooleanAsMutableBoolean ()
 
virtual CPDF_DictionaryAsMutableDictionary ()
 
virtual CPDF_NameAsMutableName ()
 
virtual CPDF_NullAsMutableNull ()
 
virtual CPDF_NumberAsMutableNumber ()
 
virtual CPDF_StreamAsMutableStream ()
 
virtual CPDF_StringAsMutableString ()
 
RetainPtr< const CPDF_ObjectGetDirect () const
 
RetainPtr< CPDF_ObjectGetMutableDirect ()
 
RetainPtr< const CPDF_DictionaryGetDict () const
 
RetainPtr< CPDF_DictionaryGetMutableDict ()
 
const CPDF_ArrayAsArray () const
 
const CPDF_BooleanAsBoolean () const
 
const CPDF_DictionaryAsDictionary () const
 
const CPDF_NameAsName () const
 
const CPDF_NullAsNull () const
 
const CPDF_NumberAsNumber () const
 
const CPDF_ReferenceAsReference () const
 
const CPDF_StreamAsStream () const
 
const CPDF_StringAsString () const
 
bool IsArray () const
 
bool IsBoolean () const
 
bool IsDictionary () const
 
bool IsName () const
 
bool IsNull () const
 
bool IsNumber () const
 
bool IsReference () const
 
bool IsStream () const
 
bool IsString () const
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Private Member Functions

 ~CPDF_Reference () override
 
const CPDF_ObjectGetDirectInternal () const override
 
const CPDF_DictionaryGetDictInternal () const override
 
RetainPtr< CPDF_ObjectCloneNonCyclic (bool bDirect, std::set< const CPDF_Object * > *pVisited) const override
 

Friends

class CPDF_Dictionary
 

Additional Inherited Members

- Public Types inherited from CPDF_Object
enum  Type {
  kBoolean = 1 , kNumber , kString , kName ,
  kArray , kDictionary , kStream , kNullobj ,
  kReference
}
 
- Static Public Attributes inherited from CPDF_Object
static constexpr uint32_t kInvalidObjNum = static_cast<uint32_t>(-1)
 
- Protected Member Functions inherited from CPDF_Object
 CPDF_Object ()=default
 
 CPDF_Object (const CPDF_Object &src)=delete
 
 ~CPDF_Object () override
 
RetainPtr< CPDF_ObjectCloneObjectNonCyclic (bool bDirect) const
 
- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 
- Protected Attributes inherited from CPDF_Object
uint32_t m_ObjNum = 0
 
uint32_t m_GenNum = 0
 

Detailed Description

Definition at line 18 of file cpdf_reference.h.

Member Function Documentation

◆ ~CPDF_Reference()

CPDF_Reference::~CPDF_Reference ( )
overrideprivatedefault

◆ AsMutableReference()

CPDF_Reference * CPDF_Reference::AsMutableReference ( )
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 44 of file cpdf_reference.cpp.

◆ Clone()

RetainPtr< CPDF_Object > CPDF_Reference::Clone ( ) const
overridevirtual

Implements CPDF_Object.

Definition at line 48 of file cpdf_reference.cpp.

References CPDF_Object::CloneObjectNonCyclic().

+ Here is the call graph for this function:

◆ CloneNonCyclic()

RetainPtr< CPDF_Object > CPDF_Reference::CloneNonCyclic ( bool bDirect,
std::set< const CPDF_Object * > * pVisited ) const
overrideprivatevirtual

Reimplemented from CPDF_Object.

Definition at line 52 of file cpdf_reference.cpp.

◆ GetDictInternal()

const CPDF_Dictionary * CPDF_Reference::GetDictInternal ( ) const
overrideprivatevirtual

Reimplemented from CPDF_Object.

Definition at line 39 of file cpdf_reference.cpp.

References CPDF_Object::GetDictInternal().

+ Here is the call graph for this function:

◆ GetDirectInternal()

const CPDF_Object * CPDF_Reference::GetDirectInternal ( ) const
overrideprivatevirtual

Reimplemented from CPDF_Object.

Definition at line 78 of file cpdf_reference.cpp.

Referenced by CPDF_Dictionary::GetUnicodeTextFor().

+ Here is the caller graph for this function:

◆ GetInteger()

int CPDF_Reference::GetInteger ( ) const
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 34 of file cpdf_reference.cpp.

References CPDF_Object::GetInteger().

+ Here is the call graph for this function:

◆ GetNumber()

float CPDF_Reference::GetNumber ( ) const
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 29 of file cpdf_reference.cpp.

References CPDF_Object::GetNumber().

+ Here is the call graph for this function:

◆ GetRefObjNum()

uint32_t CPDF_Reference::GetRefObjNum ( ) const
inline

Definition at line 34 of file cpdf_reference.h.

Referenced by PDFObjectsTest::Equal(), MakeReference(), operator<<(), and WriteTo().

+ Here is the caller graph for this function:

◆ GetString()

ByteString CPDF_Reference::GetString ( ) const
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 24 of file cpdf_reference.cpp.

References fxcrt::ByteString::ByteString(), and CPDF_Object::GetString().

+ Here is the call graph for this function:

◆ GetType()

CPDF_Object::Type CPDF_Reference::GetType ( ) const
overridevirtual

Implements CPDF_Object.

Definition at line 20 of file cpdf_reference.cpp.

References CPDF_Object::kReference.

◆ HasIndirectObjectHolder()

bool CPDF_Reference::HasIndirectObjectHolder ( ) const
inline

Definition at line 35 of file cpdf_reference.h.

◆ MakeReference()

RetainPtr< CPDF_Reference > CPDF_Reference::MakeReference ( CPDF_IndirectObjectHolder * holder) const
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 89 of file cpdf_reference.cpp.

References GetRefObjNum().

+ Here is the call graph for this function:

◆ SetRef()

void CPDF_Reference::SetRef ( CPDF_IndirectObjectHolder * pDoc,
uint32_t objnum )

Definition at line 73 of file cpdf_reference.cpp.

◆ WriteTo()

bool CPDF_Reference::WriteTo ( IFX_ArchiveStream * archive,
const CPDF_Encryptor * encryptor ) const
overridevirtual

Implements CPDF_Object.

Definition at line 83 of file cpdf_reference.cpp.

References GetRefObjNum(), IFX_WriteStream::WriteDWord(), and IFX_WriteStream::WriteString().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ CPDF_Dictionary

friend class CPDF_Dictionary
friend

Definition at line 39 of file cpdf_reference.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_Reference::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 20 of file cpdf_reference.h.


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