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

#include <cpdf_name.h>

+ Inheritance diagram for CPDF_Name:
+ Collaboration diagram for CPDF_Name:

Public Member Functions

Type GetType () const override
 
RetainPtr< CPDF_ObjectClone () const override
 
ByteString GetString () const override
 
WideString GetUnicodeText () const override
 
void SetString (const ByteString &str) override
 
CPDF_NameAsMutableName () override
 
bool WriteTo (IFX_ArchiveStream *archive, const CPDF_Encryptor *encryptor) const override
 
- 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 float GetNumber () const
 
virtual int GetInteger () const
 
virtual CPDF_ArrayAsMutableArray ()
 
virtual CPDF_BooleanAsMutableBoolean ()
 
virtual CPDF_DictionaryAsMutableDictionary ()
 
virtual CPDF_NullAsMutableNull ()
 
virtual CPDF_NumberAsMutableNumber ()
 
virtual CPDF_ReferenceAsMutableReference ()
 
virtual CPDF_StreamAsMutableStream ()
 
virtual CPDF_StringAsMutableString ()
 
virtual RetainPtr< CPDF_ObjectCloneNonCyclic (bool bDirect, std::set< const CPDF_Object * > *pVisited) const
 
virtual RetainPtr< CPDF_ReferenceMakeReference (CPDF_IndirectObjectHolder *holder) const
 
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_Name () override
 

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
 
virtual const CPDF_ObjectGetDirectInternal () const
 
virtual const CPDF_DictionaryGetDictInternal () const
 
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 15 of file cpdf_name.h.

Member Function Documentation

◆ ~CPDF_Name()

CPDF_Name::~CPDF_Name ( )
overrideprivatedefault

◆ AsMutableName()

CPDF_Name * CPDF_Name::AsMutableName ( )
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 37 of file cpdf_name.cpp.

◆ Clone()

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

Implements CPDF_Object.

Definition at line 25 of file cpdf_name.cpp.

◆ GetString()

ByteString CPDF_Name::GetString ( ) const
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 29 of file cpdf_name.cpp.

Referenced by CPDF_Dictionary::GetNameFor(), and WriteTo().

+ Here is the caller graph for this function:

◆ GetType()

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

Implements CPDF_Object.

Definition at line 21 of file cpdf_name.cpp.

References CPDF_Object::kName.

◆ GetUnicodeText()

WideString CPDF_Name::GetUnicodeText ( ) const
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 41 of file cpdf_name.cpp.

◆ SetString()

void CPDF_Name::SetString ( const ByteString & str)
overridevirtual

Reimplemented from CPDF_Object.

Definition at line 33 of file cpdf_name.cpp.

◆ WriteTo()

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

Implements CPDF_Object.

Definition at line 45 of file cpdf_name.cpp.

References GetString(), fxcrt::ByteString::IsEmpty(), PDF_NameEncode(), and IFX_WriteStream::WriteString().

+ Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_Name::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 17 of file cpdf_name.h.


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