Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_object.h>
Public Types | |
enum | Type { kBoolean = 1 , kNumber , kString , kName , kArray , kDictionary , kStream , kNullobj , kReference } |
Static Public Attributes | |
static constexpr uint32_t | kInvalidObjNum = static_cast<uint32_t>(-1) |
Protected Member Functions | |
CPDF_Object ()=default | |
CPDF_Object (const CPDF_Object &src)=delete | |
~CPDF_Object () override | |
virtual const CPDF_Object * | GetDirectInternal () const |
virtual const CPDF_Dictionary * | GetDictInternal () const |
RetainPtr< CPDF_Object > | CloneObjectNonCyclic (bool bDirect) const |
Protected Member Functions inherited from fxcrt::Retainable | |
virtual | ~Retainable ()=default |
Protected Attributes | |
uint32_t | m_ObjNum = 0 |
uint32_t | m_GenNum = 0 |
Friends | |
class | CPDF_Dictionary |
class | CPDF_Reference |
Definition at line 50 of file cpdf_object.h.
enum CPDF_Object::Type |
Enumerator | |
---|---|
kBoolean | |
kNumber | |
kString | |
kName | |
kArray | |
kDictionary | |
kStream | |
kNullobj | |
kReference |
Definition at line 53 of file cpdf_object.h.
|
protecteddefault |
|
protecteddelete |
|
overrideprotecteddefault |
const CPDF_Array * CPDF_Object::AsArray | ( | ) | const |
Definition at line 99 of file cpdf_object.cpp.
References AsMutableArray().
Referenced by CPDF_FormField::CountSelectedItems(), PDFObjectsTest::Equal(), CPDF_FormField::GetSelectedIndex(), IsArray(), CPDF_ColorSpace::Load(), operator<<(), and ToArray().
const CPDF_Boolean * CPDF_Object::AsBoolean | ( | ) | const |
Definition at line 107 of file cpdf_object.cpp.
References AsMutableBoolean().
Referenced by IsBoolean(), and ToBoolean().
const CPDF_Dictionary * CPDF_Object::AsDictionary | ( | ) | const |
Definition at line 115 of file cpdf_object.cpp.
References AsMutableDictionary().
Referenced by PDFObjectsTest::Equal(), IsDictionary(), operator<<(), TEST(), and ToDictionary().
|
virtual |
Reimplemented in CPDF_Array.
Definition at line 95 of file cpdf_object.cpp.
Referenced by AsArray(), TEST(), TEST(), and ToArray().
|
virtual |
Reimplemented in CPDF_Boolean.
Definition at line 103 of file cpdf_object.cpp.
Referenced by AsBoolean(), and ToBoolean().
|
virtual |
Reimplemented in CPDF_Dictionary.
Definition at line 111 of file cpdf_object.cpp.
Referenced by AsDictionary(), FPDFAttachment_SetFile(), and ToDictionary().
|
virtual |
Reimplemented in CPDF_Name.
Definition at line 119 of file cpdf_object.cpp.
Referenced by AsName(), and ToName().
|
virtual |
Reimplemented in CPDF_Null.
Definition at line 127 of file cpdf_object.cpp.
Referenced by AsNull().
|
virtual |
Reimplemented in CPDF_Number.
Definition at line 135 of file cpdf_object.cpp.
Referenced by AsNumber(), and ToNumber().
|
virtual |
Reimplemented in CPDF_Reference.
Definition at line 143 of file cpdf_object.cpp.
Referenced by AsReference(), and ToReference().
|
virtual |
Reimplemented in CPDF_Stream.
Definition at line 151 of file cpdf_object.cpp.
Referenced by AsStream(), and ToStream().
|
virtual |
Reimplemented in CPDF_String.
Definition at line 159 of file cpdf_object.cpp.
Referenced by AsString(), and ToString().
const CPDF_Name * CPDF_Object::AsName | ( | ) | const |
Definition at line 123 of file cpdf_object.cpp.
References AsMutableName().
Referenced by IsName(), and ToName().
const CPDF_Null * CPDF_Object::AsNull | ( | ) | const |
Definition at line 131 of file cpdf_object.cpp.
References AsMutableNull().
Referenced by IsNull().
const CPDF_Number * CPDF_Object::AsNumber | ( | ) | const |
Definition at line 139 of file cpdf_object.cpp.
References AsMutableNumber().
Referenced by PDFObjectsTest::Equal(), IsNumber(), and ToNumber().
const CPDF_Reference * CPDF_Object::AsReference | ( | ) | const |
Definition at line 147 of file cpdf_object.cpp.
References AsMutableReference().
Referenced by PDFObjectsTest::Equal(), IsReference(), operator<<(), and ToReference().
const CPDF_Stream * CPDF_Object::AsStream | ( | ) | const |
Definition at line 155 of file cpdf_object.cpp.
References AsMutableStream().
Referenced by CPDF_Function::Init(), IsStream(), CPDF_ColorSpace::Load(), ToStream(), and CPDF_PSFunc::v_Init().
const CPDF_String * CPDF_Object::AsString | ( | ) | const |
Definition at line 163 of file cpdf_object.cpp.
References AsMutableString().
Referenced by IsString(), operator<<(), and ToString().
|
pure virtual |
Implemented in CPDF_Array, CPDF_Boolean, CPDF_Dictionary, CPDF_Name, CPDF_Null, CPDF_Number, CPDF_Reference, CPDF_Stream, and CPDF_String.
Referenced by CloneNonCyclic().
RetainPtr< CPDF_Object > CPDF_Object::CloneDirectObject | ( | ) | const |
Definition at line 53 of file cpdf_object.cpp.
|
virtual |
Reimplemented in CPDF_Array, CPDF_Dictionary, CPDF_Reference, and CPDF_Stream.
Definition at line 57 of file cpdf_object.cpp.
References Clone().
|
protected |
Definition at line 48 of file cpdf_object.cpp.
Referenced by CPDF_Array::Clone(), CPDF_Dictionary::Clone(), CPDF_Reference::Clone(), and CPDF_Stream::Clone().
RetainPtr< const CPDF_Dictionary > CPDF_Object::GetDict | ( | ) | const |
Definition at line 79 of file cpdf_object.cpp.
References GetDictInternal().
Referenced by CPDF_Function::Load(), and CPDF_Stream::WriteTo().
|
protectedvirtual |
Reimplemented in CPDF_Dictionary, CPDF_Reference, and CPDF_Stream.
Definition at line 87 of file cpdf_object.cpp.
Referenced by GetDict(), CPDF_Reference::GetDictInternal(), and GetMutableDict().
RetainPtr< const CPDF_Object > CPDF_Object::GetDirect | ( | ) | const |
Definition at line 40 of file cpdf_object.cpp.
References GetDirectInternal().
|
protectedvirtual |
Reimplemented in CPDF_Reference.
Definition at line 44 of file cpdf_object.cpp.
Referenced by GetDirect(), and GetMutableDirect().
|
inline |
Definition at line 67 of file cpdf_object.h.
References m_GenNum.
Referenced by CPDF_IndirectObjectHolder::ReplaceIndirectObjectIfHigherGeneration().
|
virtual |
Reimplemented in CPDF_Boolean, CPDF_Number, and CPDF_Reference.
Definition at line 75 of file cpdf_object.cpp.
Referenced by PDFObjectsTest::Equal(), CPDF_Array::GetBooleanAt(), CPDF_Dictionary::GetBooleanFor(), CPDF_Reference::GetInteger(), CPDF_Dictionary::GetIntegerFor(), CPDF_Dictionary::GetIntegerFor(), and CPDF_FormField::GetSelectedIndex().
RetainPtr< CPDF_Dictionary > CPDF_Object::GetMutableDict | ( | ) |
Definition at line 83 of file cpdf_object.cpp.
References GetDictInternal().
Referenced by CPDF_Array::GetMutableDictAt().
RetainPtr< CPDF_Object > CPDF_Object::GetMutableDirect | ( | ) |
Definition at line 36 of file cpdf_object.cpp.
References GetDirectInternal().
|
virtual |
Reimplemented in CPDF_Number, and CPDF_Reference.
Definition at line 71 of file cpdf_object.cpp.
Referenced by CPDF_Dictionary::GetFloatFor(), and CPDF_Reference::GetNumber().
|
inline |
Definition at line 65 of file cpdf_object.h.
References m_ObjNum.
Referenced by MakeReference().
|
virtual |
Reimplemented in CPDF_Boolean, CPDF_Name, CPDF_Number, CPDF_Reference, and CPDF_String.
Definition at line 63 of file cpdf_object.cpp.
References fxcrt::ByteString::ByteString().
Referenced by CPDF_FormField::CheckControl(), CPDF_FormField::CountSelectedItems(), PDFObjectsTest::Equal(), CPDF_Dictionary::GetByteStringFor(), CPDF_Dictionary::GetByteStringFor(), CPDF_Reference::GetString(), CPDF_ColorSpace::Load(), and operator<<().
|
pure virtual |
Implemented in CPDF_Array, CPDF_Boolean, CPDF_Dictionary, CPDF_Name, CPDF_Null, CPDF_Number, CPDF_Reference, CPDF_Stream, and CPDF_String.
Referenced by PDFObjectsTest::Equal(), and operator<<().
|
virtual |
Reimplemented in CPDF_Name, CPDF_Stream, and CPDF_String.
Definition at line 67 of file cpdf_object.cpp.
References fxcrt::WideString::WideString().
Referenced by CPDF_FormField::GetSelectedIndex(), and CPDF_Dictionary::GetUnicodeTextFor().
|
inline |
Definition at line 135 of file cpdf_object.h.
References AsArray().
|
inline |
Definition at line 136 of file cpdf_object.h.
References AsBoolean().
|
inline |
Definition at line 137 of file cpdf_object.h.
References AsDictionary().
|
inline |
Definition at line 69 of file cpdf_object.h.
References m_ObjNum.
Referenced by KeyForCache(), and MakeReference().
|
inline |
Definition at line 138 of file cpdf_object.h.
References AsName().
Referenced by CPDF_ColorSpace::Load().
|
inline |
Definition at line 139 of file cpdf_object.h.
References AsNull().
|
inline |
Definition at line 140 of file cpdf_object.h.
References AsNumber().
Referenced by CPDF_FormField::CountSelectedItems(), and CPDF_FormField::GetSelectedIndex().
|
inline |
Definition at line 141 of file cpdf_object.h.
References AsReference().
|
inline |
Definition at line 142 of file cpdf_object.h.
References AsStream().
|
inline |
Definition at line 143 of file cpdf_object.h.
References AsString().
Referenced by CPDF_FormField::CountSelectedItems(), and CPDF_FormField::GetSelectedIndex().
uint64_t CPDF_Object::KeyForCache | ( | ) | const |
Definition at line 28 of file cpdf_object.cpp.
References IsInline(), m_GenNum, and m_ObjNum.
|
virtual |
Reimplemented in CPDF_Reference.
Definition at line 167 of file cpdf_object.cpp.
References GetObjNum(), and IsInline().
|
inline |
Definition at line 68 of file cpdf_object.h.
References m_GenNum.
|
inline |
Definition at line 66 of file cpdf_object.h.
References m_ObjNum.
|
virtual |
Reimplemented in CPDF_Boolean, CPDF_Name, CPDF_Number, and CPDF_String.
Definition at line 91 of file cpdf_object.cpp.
|
pure virtual |
Implemented in CPDF_Array, CPDF_Boolean, CPDF_Dictionary, CPDF_Name, CPDF_Null, CPDF_Number, CPDF_Reference, CPDF_Stream, and CPDF_String.
|
friend |
Definition at line 146 of file cpdf_object.h.
|
friend |
Definition at line 147 of file cpdf_object.h.
|
staticconstexpr |
Definition at line 52 of file cpdf_object.h.
Referenced by CPDF_Array::~CPDF_Array(), CPDF_Dictionary::~CPDF_Dictionary(), CPDF_Stream::~CPDF_Stream(), CPDF_Parser::GetInfoObjNum(), CPDF_Parser::GetRootObjNum(), CPDF_IndirectObjectHolder::ReplaceIndirectObjectIfHigherGeneration(), CPDF_Parser::StartLinearizedParse(), CPDF_Parser::StartParseInternal(), TEST(), and TEST().
|
protected |
Definition at line 158 of file cpdf_object.h.
Referenced by GetGenNum(), KeyForCache(), and SetGenNum().
|
protected |
Definition at line 157 of file cpdf_object.h.
Referenced by CPDF_Array::~CPDF_Array(), CPDF_Dictionary::~CPDF_Dictionary(), CPDF_Stream::~CPDF_Stream(), GetObjNum(), IsInline(), KeyForCache(), and SetObjNum().