LibreOffice Module vcl (master) 1
|
Dictionary object: a set key-value pairs. More...
#include <pdfdocument.hxx>
Public Member Functions | |
PDFDictionaryElement () | |
bool | Read (SvStream &rStream) override |
void | SetKeyOffset (const OString &rKey, sal_uInt64 nOffset) |
sal_uInt64 | GetKeyOffset (const OString &rKey) const |
void | SetKeyValueLength (const OString &rKey, sal_uInt64 nLength) |
sal_uInt64 | GetKeyValueLength (const OString &rKey) const |
const std::map< OString, PDFElement * > & | GetItems () const |
PDFObjectElement * | LookupObject (const OString &rDictionaryKey) |
Looks up an object which is only referenced in this dictionary. More... | |
PDFElement * | LookupElement (const OString &rDictionaryKey) |
Looks up an element which is contained in this dictionary. More... | |
sal_uInt64 | GetLocation () const |
void | insert (OString const &rKey, PDFElement *pPDFElement) |
void | writeString (OStringBuffer &rBuffer) override |
Public Member Functions inherited from vcl::filter::PDFElement | |
PDFElement ()=default | |
virtual bool | Read (SvStream &rStream)=0 |
virtual | ~PDFElement ()=default |
void | setVisiting (bool bVisiting) |
bool | alreadyVisiting () const |
void | setParsing (bool bParsing) |
bool | alreadyParsing () const |
virtual void | writeString (OStringBuffer &rBuffer)=0 |
Static Public Member Functions | |
static PDFElement * | Lookup (const std::map< OString, PDFElement * > &rDictionary, const OString &rKey) |
Private Attributes | |
std::map< OString, PDFElement * > | m_aItems |
Key-value pairs when the dictionary is a nested value. More... | |
sal_uInt64 | m_nLocation = 0 |
Offset after the '<<' token. More... | |
std::map< OString, sal_uInt64 > | m_aDictionaryKeyOffset |
Position after the '/' token. More... | |
std::map< OString, sal_uInt64 > | m_aDictionaryKeyValueLength |
Length of the dictionary key and value, till (before) the next token. More... | |
Dictionary object: a set key-value pairs.
Definition at line 244 of file pdfdocument.hxx.
|
default |
References Read.
const std::map< OString, PDFElement * > & vcl::filter::PDFDictionaryElement::GetItems | ( | ) | const |
Definition at line 2428 of file pdfdocument.cxx.
References m_aItems.
Referenced by vcl::filter::PDFObjectElement::GetDictionaryItems().
sal_uInt64 vcl::filter::PDFDictionaryElement::GetKeyOffset | ( | const OString & | rKey | ) | const |
Definition at line 2410 of file pdfdocument.cxx.
References m_aDictionaryKeyOffset.
Referenced by vcl::filter::PDFDocument::WriteCatalogObject(), and vcl::filter::PDFDocument::WritePageObject().
sal_uInt64 vcl::filter::PDFDictionaryElement::GetKeyValueLength | ( | const OString & | rKey | ) | const |
Definition at line 2419 of file pdfdocument.cxx.
References m_aDictionaryKeyValueLength.
Referenced by vcl::filter::PDFDocument::WriteCatalogObject(), and vcl::filter::PDFDocument::WritePageObject().
|
inline |
Definition at line 270 of file pdfdocument.hxx.
|
inline |
Definition at line 271 of file pdfdocument.hxx.
|
static |
Definition at line 2312 of file pdfdocument.cxx.
Referenced by vcl::filter::PDFObjectElement::Lookup(), LookupElement(), and LookupObject().
PDFElement * vcl::filter::PDFDictionaryElement::LookupElement | ( | const OString & | rDictionaryKey | ) |
Looks up an element which is contained in this dictionary.
Definition at line 2337 of file pdfdocument.cxx.
References Lookup(), and m_aItems.
Referenced by vcl::filter::PDFTrailerElement::Lookup().
PDFObjectElement * vcl::filter::PDFDictionaryElement::LookupObject | ( | const OString & | rDictionaryKey | ) |
Looks up an object which is only referenced in this dictionary.
Definition at line 2322 of file pdfdocument.cxx.
|
overridevirtual |
Implements vcl::filter::PDFElement.
Definition at line 2746 of file pdfdocument.cxx.
References ch, SvStream::eof(), m_nLocation, SvStream::ReadChar(), SAL_INFO, SAL_WARN, and SvStream::Tell().
void vcl::filter::PDFDictionaryElement::SetKeyOffset | ( | const OString & | rKey, |
sal_uInt64 | nOffset | ||
) |
Definition at line 2400 of file pdfdocument.cxx.
References m_aDictionaryKeyOffset.
void vcl::filter::PDFDictionaryElement::SetKeyValueLength | ( | const OString & | rKey, |
sal_uInt64 | nLength | ||
) |
Definition at line 2405 of file pdfdocument.cxx.
References m_aDictionaryKeyValueLength, and nLength.
|
inlineoverridevirtual |
Implements vcl::filter::PDFElement.
Definition at line 276 of file pdfdocument.hxx.
|
private |
Position after the '/' token.
Definition at line 251 of file pdfdocument.hxx.
Referenced by GetKeyOffset(), and SetKeyOffset().
|
private |
Length of the dictionary key and value, till (before) the next token.
Definition at line 253 of file pdfdocument.hxx.
Referenced by GetKeyValueLength(), and SetKeyValueLength().
|
private |
Key-value pairs when the dictionary is a nested value.
Definition at line 247 of file pdfdocument.hxx.
Referenced by GetItems(), LookupElement(), and LookupObject().
|
private |