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_dictionary.h>
Public Types | |
using | DictMap = std::map<ByteString, RetainPtr<CPDF_Object>, std::less<>> |
using | const_iterator = DictMap::const_iterator |
Public Types inherited from CPDF_Object | |
enum | Type { kBoolean = 1 , kNumber , kString , kName , kArray , kDictionary , kStream , kNullobj , kReference } |
Public Attributes | |
CONSTRUCT_VIA_MAKE_RETAIN | |
Private Member Functions | |
~CPDF_Dictionary () override | |
const CPDF_Dictionary * | GetDictInternal () const override |
RetainPtr< CPDF_Object > | CloneNonCyclic (bool bDirect, std::set< const CPDF_Object * > *visited) const override |
Friends | |
class | CPDF_DictionaryLocker |
Additional Inherited Members | |
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_Object * | GetDirectInternal () const |
RetainPtr< CPDF_Object > | CloneObjectNonCyclic (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 |
Definition at line 29 of file cpdf_dictionary.h.
using CPDF_Dictionary::const_iterator = DictMap::const_iterator |
Definition at line 32 of file cpdf_dictionary.h.
using CPDF_Dictionary::DictMap = std::map<ByteString, RetainPtr<CPDF_Object>, std::less<>> |
Definition at line 31 of file cpdf_dictionary.h.
|
overrideprivate |
Definition at line 31 of file cpdf_dictionary.cpp.
References CPDF_Object::kInvalidObjNum, and CPDF_Object::m_ObjNum.
|
overridevirtual |
Reimplemented from CPDF_Object.
Definition at line 45 of file cpdf_dictionary.cpp.
|
overridevirtual |
Implements CPDF_Object.
Definition at line 49 of file cpdf_dictionary.cpp.
References CPDF_Object::CloneObjectNonCyclic().
|
overrideprivatevirtual |
Reimplemented from CPDF_Object.
Definition at line 53 of file cpdf_dictionary.cpp.
References CPDF_DictionaryLocker::CPDF_DictionaryLocker().
void CPDF_Dictionary::ConvertToIndirectObjectFor | ( | const ByteString & | key, |
CPDF_IndirectObjectHolder * | pHolder ) |
Definition at line 286 of file cpdf_dictionary.cpp.
References CPDF_IndirectObjectHolder::AddIndirectObject(), and IsLocked().
RetainPtr< const CPDF_Array > CPDF_Dictionary::GetArrayFor | ( | const ByteString & | key | ) | const |
Definition at line 187 of file cpdf_dictionary.cpp.
Referenced by FPDF_GetNamedDest(), CPDF_Parser::GetIDArray(), GetQuadPointsArrayFromDictionary(), and CPDFSDK_FormFillEnvironment::ProcOpenAction().
bool CPDF_Dictionary::GetBooleanFor | ( | const ByteString & | key, |
bool | bDefault ) const |
Definition at line 127 of file cpdf_dictionary.cpp.
References CPDF_Object::GetInteger(), and ToBoolean().
Referenced by FPDF_GetFormType().
ByteString CPDF_Dictionary::GetByteStringFor | ( | const ByteString & | key | ) | const |
Definition at line 104 of file cpdf_dictionary.cpp.
References fxcrt::ByteString::ByteString(), and CPDF_Object::GetString().
Referenced by CheckForUnsupportedAnnot(), FPDFPage_Flatten(), CPDFSDK_BAAnnot::GetAppState(), CPDF_FileSpec::GetFileName(), and CPDF_SimpleFont::LoadPDFEncoding().
ByteString CPDF_Dictionary::GetByteStringFor | ( | const ByteString & | key, |
const ByteString & | default_str ) const |
Definition at line 109 of file cpdf_dictionary.cpp.
References fxcrt::ByteString::ByteString(), and CPDF_Object::GetString().
Referenced by CPDF_OCContext::CheckOCGDictVisible(), and CPDF_PageLabel::GetLabel().
|
inline |
Definition at line 126 of file cpdf_dictionary.h.
RetainPtr< const CPDF_Dictionary > CPDF_Dictionary::GetDictFor | ( | const ByteString & | key | ) | const |
Definition at line 163 of file cpdf_dictionary.cpp.
Referenced by FORM_DoDocumentAAction(), CPDFSDK_BAAnnot::GetAAction(), CPDFSDK_BAAnnot::GetAction(), CPDF_BookmarkTree::GetFirstChild(), CPDF_FormField::GetFullNameForDict(), and CPDFSDK_BAAnnot::IsAppearanceValid().
|
overrideprivatevirtual |
Reimplemented from CPDF_Object.
Definition at line 153 of file cpdf_dictionary.cpp.
int CPDF_Dictionary::GetDirectIntegerFor | ( | const ByteString & | key | ) | const |
Definition at line 143 of file cpdf_dictionary.cpp.
References CPDF_Number::GetInteger(), and ToNumber().
Referenced by CPDF_Parser::StartLinearizedParse().
RetainPtr< const CPDF_Object > CPDF_Dictionary::GetDirectObjectFor | ( | const ByteString & | key | ) | const |
Definition at line 93 of file cpdf_dictionary.cpp.
Referenced by CPDFSDK_BAAnnot::GetDestination(), and CPDF_CryptoHandler::IsSignatureDictionary().
float CPDF_Dictionary::GetFloatFor | ( | const ByteString & | key | ) | const |
Definition at line 148 of file cpdf_dictionary.cpp.
References CPDF_Object::GetNumber().
int CPDF_Dictionary::GetIntegerFor | ( | const ByteString & | key | ) | const |
Definition at line 133 of file cpdf_dictionary.cpp.
References CPDF_Object::GetInteger().
Referenced by CPDF_LinearizedHeader::CPDF_LinearizedHeader(), CreateFaxDecoder(), CreateFlateDecoder(), FlateOrLZWDecode(), FPDFAnnot_GetFlags(), CPDFSDK_BAAnnot::GetFlags(), CPDF_Function::Load(), CPDF_SimpleFont::LoadCharWidths(), LoadCryptInfo(), CPDF_Font::LoadFontDescriptor(), CPDF_Document::MovePages(), and CPDF_FlateEncoder::UpdateLength().
int CPDF_Dictionary::GetIntegerFor | ( | const ByteString & | key, |
int | default_int ) const |
Definition at line 138 of file cpdf_dictionary.cpp.
References CPDF_Object::GetInteger().
Referenced by CreateFaxDecoder(), CreateFlateDecoder(), FlateOrLZWDecode(), CPDF_PageLabel::GetLabel(), LoadCryptInfo(), and CPDF_Font::LoadFontDescriptor().
std::vector< ByteString > CPDF_Dictionary::GetKeys | ( | ) | const |
Definition at line 259 of file cpdf_dictionary.cpp.
References CPDF_DictionaryLocker::CPDF_DictionaryLocker().
CFX_Matrix CPDF_Dictionary::GetMatrixFor | ( | const ByteString & | key | ) | const |
Definition at line 248 of file cpdf_dictionary.cpp.
References CFX_Matrix::CFX_Matrix(), and CPDF_Array::GetMatrix().
RetainPtr< CPDF_Array > CPDF_Dictionary::GetMutableArrayFor | ( | const ByteString & | key | ) |
Definition at line 192 of file cpdf_dictionary.cpp.
RetainPtr< CPDF_Dictionary > CPDF_Dictionary::GetMutableDictFor | ( | const ByteString & | key | ) |
Definition at line 168 of file cpdf_dictionary.cpp.
RetainPtr< CPDF_Object > CPDF_Dictionary::GetMutableDirectObjectFor | ( | const ByteString & | key | ) |
Definition at line 98 of file cpdf_dictionary.cpp.
RetainPtr< CPDF_Object > CPDF_Dictionary::GetMutableObjectFor | ( | const ByteString & | key | ) |
Definition at line 81 of file cpdf_dictionary.cpp.
RetainPtr< CPDF_Stream > CPDF_Dictionary::GetMutableStreamFor | ( | const ByteString & | key | ) |
Definition at line 215 of file cpdf_dictionary.cpp.
ByteString CPDF_Dictionary::GetNameFor | ( | const ByteString & | key | ) | const |
Definition at line 122 of file cpdf_dictionary.cpp.
References fxcrt::ByteString::ByteString(), CPDF_Name::GetString(), and ToName().
Referenced by FPDFEditEmbedderTest::CheckFontDescriptor(), FPDFAnnot_GetSubtype(), ValidateDictOptionalType(), and ValidateDictType().
RetainPtr< const CPDF_Number > CPDF_Dictionary::GetNumberFor | ( | const ByteString & | key | ) | const |
Definition at line 226 of file cpdf_dictionary.cpp.
RetainPtr< const CPDF_Object > CPDF_Dictionary::GetObjectFor | ( | const ByteString & | key | ) | const |
Definition at line 76 of file cpdf_dictionary.cpp.
Referenced by TEST().
RetainPtr< CPDF_Array > CPDF_Dictionary::GetOrCreateArrayFor | ( | const ByteString & | key | ) |
Definition at line 197 of file cpdf_dictionary.cpp.
RetainPtr< CPDF_Dictionary > CPDF_Dictionary::GetOrCreateDictFor | ( | const ByteString & | key | ) |
Definition at line 174 of file cpdf_dictionary.cpp.
CFX_FloatRect CPDF_Dictionary::GetRectFor | ( | const ByteString & | key | ) | const |
Definition at line 241 of file cpdf_dictionary.cpp.
References CFX_FloatRect::CFX_FloatRect(), and CPDF_Array::GetRect().
Referenced by FPDFAnnot_GetRect(), FPDFLink_GetAnnotRect(), FPDFPage_Flatten(), and CPDF_GenerateAP::GenerateFormAP().
RetainPtr< const CPDF_Stream > CPDF_Dictionary::GetStreamFor | ( | const ByteString & | key | ) | const |
Definition at line 210 of file cpdf_dictionary.cpp.
Referenced by CPDFSDK_Widget::IsWidgetAppearanceValid(), and CPDF_Font::LoadFontDescriptor().
RetainPtr< const CPDF_String > CPDF_Dictionary::GetStringFor | ( | const ByteString & | key | ) | const |
Definition at line 236 of file cpdf_dictionary.cpp.
|
overridevirtual |
Implements CPDF_Object.
Definition at line 41 of file cpdf_dictionary.cpp.
References CPDF_Object::kDictionary.
WideString CPDF_Dictionary::GetUnicodeTextFor | ( | const ByteString & | key | ) | const |
Definition at line 115 of file cpdf_dictionary.cpp.
References fxcrt::WideString::WideString(), CPDF_Reference::GetDirectInternal(), CPDF_Object::GetUnicodeText(), and ToReference().
Referenced by FPDFAnnot_GetStringValue(), CPDFSDK_BAAnnot::GetAnnotName(), CPDF_FileSpec::GetFileStream(), CPDF_FormField::GetFullNameForDict(), and CPDF_PageLabel::GetLabel().
|
inline |
Definition at line 43 of file cpdf_dictionary.h.
Referenced by ConvertToIndirectObjectFor(), RemoveFor(), and ReplaceKey().
bool CPDF_Dictionary::KeyExist | ( | const ByteString & | key | ) | const |
Definition at line 255 of file cpdf_dictionary.cpp.
Referenced by FPDFAnnot_HasKey(), CPDF_PageLabel::GetLabel(), CPDF_SimpleFont::LoadCharWidths(), CPDF_Font::LoadFontDescriptor(), ReportUnsupportedFeatures(), TEST_F(), and ValidateDictOptionalType().
RetainPtr< CPDF_Object > CPDF_Dictionary::RemoveFor | ( | ByteStringView | key | ) |
Definition at line 298 of file cpdf_dictionary.cpp.
References IsLocked().
Referenced by CPDFSecurityHandlerEmbedderTest::RemoveTrailerIdFromDocument().
void CPDF_Dictionary::ReplaceKey | ( | const ByteString & | oldkey, |
const ByteString & | newkey ) |
Definition at line 309 of file cpdf_dictionary.cpp.
References IsLocked().
void CPDF_Dictionary::SetFor | ( | const ByteString & | key, |
RetainPtr< CPDF_Object > | object ) |
Definition at line 267 of file cpdf_dictionary.cpp.
|
delete |
void CPDF_Dictionary::SetMatrixFor | ( | const ByteString & | key, |
const CFX_Matrix & | matrix ) |
Definition at line 333 of file cpdf_dictionary.cpp.
References CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, and CFX_Matrix::f.
|
inline |
Definition at line 95 of file cpdf_dictionary.h.
|
inline |
Definition at line 101 of file cpdf_dictionary.h.
void CPDF_Dictionary::SetRectFor | ( | const ByteString & | key, |
const CFX_FloatRect & | rect ) |
Definition at line 324 of file cpdf_dictionary.cpp.
References CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.
|
inline |
Definition at line 45 of file cpdf_dictionary.h.
|
overridevirtual |
Implements CPDF_Object.
Definition at line 348 of file cpdf_dictionary.cpp.
References CPDF_DictionaryLocker::CPDF_DictionaryLocker(), CPDF_CryptoHandler::IsSignatureDictionary(), and IFX_WriteStream::WriteString().
Referenced by CPDF_FlateEncoder::WriteDictTo().
|
friend |
Definition at line 129 of file cpdf_dictionary.h.
CPDF_Dictionary::CONSTRUCT_VIA_MAKE_RETAIN |
Definition at line 34 of file cpdf_dictionary.h.