LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
vcl::filter::PDFDictionaryElement Class Reference

Dictionary object: a set key-value pairs. More...

#include <pdfdocument.hxx>

Inheritance diagram for vcl::filter::PDFDictionaryElement:
[legend]
Collaboration diagram for vcl::filter::PDFDictionaryElement:
[legend]

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
 
PDFObjectElementLookupObject (const OString &rDictionaryKey)
 Looks up an object which is only referenced in this dictionary. More...
 
PDFElementLookupElement (const OString &rDictionaryKey)
 Looks up an element which is contained in this dictionary. More...
 
- Public Member Functions inherited from vcl::filter::PDFElement
 PDFElement ()=default
 
virtual ~PDFElement ()=default
 
void setVisiting (bool bVisiting)
 
bool alreadyVisiting () const
 
void setParsing (bool bParsing)
 
bool alreadyParsing () const
 

Static Public Member Functions

static size_t Parse (const std::vector< std::unique_ptr< PDFElement >> &rElements, PDFElement *pThis, std::map< OString, PDFElement * > &rDictionary)
 
static PDFElementLookup (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...
 

Detailed Description

Dictionary object: a set key-value pairs.

Definition at line 216 of file pdfdocument.hxx.

Constructor & Destructor Documentation

vcl::filter::PDFDictionaryElement::PDFDictionaryElement ( )
default

Member Function Documentation

const std::map< OString, PDFElement * > & vcl::filter::PDFDictionaryElement::GetItems ( ) const

Definition at line 2503 of file pdfdocument.cxx.

References m_aItems.

Referenced by vcl::filter::PDFDocument::WriteCatalogObject().

sal_uInt64 vcl::filter::PDFDictionaryElement::GetKeyOffset ( const OString &  rKey) const
sal_uInt64 vcl::filter::PDFDictionaryElement::GetKeyValueLength ( const OString &  rKey) const
PDFElement * vcl::filter::PDFDictionaryElement::Lookup ( const std::map< OString, PDFElement * > &  rDictionary,
const OString &  rKey 
)
static
PDFElement * vcl::filter::PDFDictionaryElement::LookupElement ( const OString &  rDictionaryKey)

Looks up an element which is contained in this dictionary.

Definition at line 2423 of file pdfdocument.cxx.

References Lookup(), and m_aItems.

PDFObjectElement * vcl::filter::PDFDictionaryElement::LookupObject ( const OString &  rDictionaryKey)

Looks up an object which is only referenced in this dictionary.

Definition at line 2408 of file pdfdocument.cxx.

References Lookup(), m_aItems, and SAL_WARN.

size_t vcl::filter::PDFDictionaryElement::Parse ( const std::vector< std::unique_ptr< PDFElement >> &  rElements,
PDFElement pThis,
std::map< OString, PDFElement * > &  rDictionary 
)
static
bool vcl::filter::PDFDictionaryElement::Read ( SvStream rStream)
overridevirtual
void vcl::filter::PDFDictionaryElement::SetKeyOffset ( const OString &  rKey,
sal_uInt64  nOffset 
)

Definition at line 2475 of file pdfdocument.cxx.

References m_aDictionaryKeyOffset.

void vcl::filter::PDFDictionaryElement::SetKeyValueLength ( const OString &  rKey,
sal_uInt64  nLength 
)

Definition at line 2480 of file pdfdocument.cxx.

References m_aDictionaryKeyValueLength.

Member Data Documentation

std::map<OString, sal_uInt64> vcl::filter::PDFDictionaryElement::m_aDictionaryKeyOffset
private

Position after the '/' token.

Definition at line 223 of file pdfdocument.hxx.

Referenced by GetKeyOffset(), and SetKeyOffset().

std::map<OString, sal_uInt64> vcl::filter::PDFDictionaryElement::m_aDictionaryKeyValueLength
private

Length of the dictionary key and value, till (before) the next token.

Definition at line 225 of file pdfdocument.hxx.

Referenced by GetKeyValueLength(), and SetKeyValueLength().

std::map<OString, PDFElement*> vcl::filter::PDFDictionaryElement::m_aItems
private

Key-value pairs when the dictionary is a nested value.

Definition at line 219 of file pdfdocument.hxx.

Referenced by GetItems(), LookupElement(), and LookupObject().

sal_uInt64 vcl::filter::PDFDictionaryElement::m_nLocation = 0
private

Offset after the '<<' token.

Definition at line 221 of file pdfdocument.hxx.

Referenced by Read().


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