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

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...
 
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 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 244 of file pdfdocument.hxx.

Constructor & Destructor Documentation

◆ PDFDictionaryElement()

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

References Read.

Member Function Documentation

◆ GetItems()

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

Definition at line 2402 of file pdfdocument.cxx.

References m_aItems.

Referenced by vcl::filter::PDFObjectElement::GetDictionaryItems().

◆ GetKeyOffset()

sal_uInt64 vcl::filter::PDFDictionaryElement::GetKeyOffset ( const OString &  rKey) const

◆ GetKeyValueLength()

sal_uInt64 vcl::filter::PDFDictionaryElement::GetKeyValueLength ( const OString &  rKey) const

◆ GetLocation()

sal_uInt64 vcl::filter::PDFDictionaryElement::GetLocation ( ) const
inline

Definition at line 270 of file pdfdocument.hxx.

◆ insert()

void vcl::filter::PDFDictionaryElement::insert ( OString const &  rKey,
PDFElement pPDFElement 
)
inline

Definition at line 271 of file pdfdocument.hxx.

◆ Lookup()

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

◆ LookupElement()

PDFElement * vcl::filter::PDFDictionaryElement::LookupElement ( const OString &  rDictionaryKey)

Looks up an element which is contained in this dictionary.

Definition at line 2311 of file pdfdocument.cxx.

References Lookup(), and m_aItems.

Referenced by vcl::filter::PDFTrailerElement::Lookup().

◆ LookupObject()

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

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

Definition at line 2296 of file pdfdocument.cxx.

References Lookup(), m_aItems, and SAL_WARN.

◆ Read()

bool vcl::filter::PDFDictionaryElement::Read ( SvStream rStream)
overridevirtual

◆ SetKeyOffset()

void vcl::filter::PDFDictionaryElement::SetKeyOffset ( const OString &  rKey,
sal_uInt64  nOffset 
)

Definition at line 2374 of file pdfdocument.cxx.

References m_aDictionaryKeyOffset.

◆ SetKeyValueLength()

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

Definition at line 2379 of file pdfdocument.cxx.

References m_aDictionaryKeyValueLength, and nLength.

◆ writeString()

void vcl::filter::PDFDictionaryElement::writeString ( OStringBuffer &  rBuffer)
inlineoverridevirtual

Implements vcl::filter::PDFElement.

Definition at line 276 of file pdfdocument.hxx.

Member Data Documentation

◆ m_aDictionaryKeyOffset

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

Position after the '/' token.

Definition at line 251 of file pdfdocument.hxx.

Referenced by GetKeyOffset(), and SetKeyOffset().

◆ m_aDictionaryKeyValueLength

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 253 of file pdfdocument.hxx.

Referenced by GetKeyValueLength(), and SetKeyValueLength().

◆ m_aItems

std::map<OString, PDFElement*> vcl::filter::PDFDictionaryElement::m_aItems
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().

◆ m_nLocation

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

Offset after the '<<' token.

Definition at line 249 of file pdfdocument.hxx.

Referenced by Read().


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