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

Reference object: something with a unique ID. More...

#include <pdfdocument.hxx>

Inheritance diagram for vcl::filter::PDFReferenceElement:
Collaboration diagram for vcl::filter::PDFReferenceElement:

Public Member Functions

 PDFReferenceElement (PDFDocument &rDoc, PDFNumberElement &rObject, PDFNumberElement const &rGeneration)
bool Read (SvStream &rStream) override
double LookupNumber (SvStream &rStream) const
 Assuming the reference points to a number object, return its value. More...
PDFObjectElementLookupObject ()
 Lookup referenced object, without assuming anything about its contents. More...
int GetObjectValue () const
int GetGenerationValue () const
sal_uInt64 GetOffset () const
PDFNumberElementGetObjectElement () const
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

Private Attributes

int m_fObjectValue
int m_fGenerationValue
sal_uInt64 m_nOffset = 0
 Location after the 'R' token. More...
 The element providing the object number. More...

Detailed Description

Reference object: something with a unique ID.

Definition at line 167 of file pdfdocument.hxx.

Constructor & Destructor Documentation

◆ PDFReferenceElement()

vcl::filter::PDFReferenceElement::PDFReferenceElement ( PDFDocument rDoc,
PDFNumberElement rObject,
PDFNumberElement const &  rGeneration 

Definition at line 2642 of file pdfdocument.cxx.

References GetValue, and m_rDoc.

Member Function Documentation

◆ GetGenerationValue()

int vcl::filter::PDFReferenceElement::GetGenerationValue ( ) const

Definition at line 2744 of file pdfdocument.cxx.

References m_fGenerationValue.

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

◆ GetObjectElement()

PDFNumberElement & vcl::filter::PDFReferenceElement::GetObjectElement ( ) const

Definition at line 2651 of file pdfdocument.cxx.

References m_rObject.

◆ GetObjectValue()

int vcl::filter::PDFReferenceElement::GetObjectValue ( ) const

Definition at line 2742 of file pdfdocument.cxx.

References m_fObjectValue.

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

◆ GetOffset()

sal_uInt64 vcl::filter::PDFReferenceElement::GetOffset ( ) const

Definition at line 2661 of file pdfdocument.cxx.

References m_nOffset.

◆ LookupNumber()

double vcl::filter::PDFReferenceElement::LookupNumber ( SvStream rStream) const

◆ LookupObject()

PDFObjectElement * vcl::filter::PDFReferenceElement::LookupObject ( )

Lookup referenced object, without assuming anything about its contents.

Definition at line 2724 of file pdfdocument.cxx.

References vcl::filter::PDFDocument::LookupObject(), m_fObjectValue, and m_rDoc.

Referenced by vcl::filter::PDFDocument::GetCatalog(), and vcl::filter::PDFDocument::WriteCatalogObject().

◆ Read()

bool vcl::filter::PDFReferenceElement::Read ( SvStream rStream)

◆ writeString()

void vcl::filter::PDFReferenceElement::writeString ( OStringBuffer &  rBuffer)

Implements vcl::filter::PDFElement.

Definition at line 190 of file pdfdocument.hxx.

Member Data Documentation

◆ m_fGenerationValue

int vcl::filter::PDFReferenceElement::m_fGenerationValue

Definition at line 171 of file pdfdocument.hxx.

Referenced by GetGenerationValue(), LookupNumber(), and Read().

◆ m_fObjectValue

int vcl::filter::PDFReferenceElement::m_fObjectValue

Definition at line 170 of file pdfdocument.hxx.

Referenced by GetObjectValue(), LookupNumber(), LookupObject(), and Read().

◆ m_nOffset

sal_uInt64 vcl::filter::PDFReferenceElement::m_nOffset = 0

Location after the 'R' token.

Definition at line 173 of file pdfdocument.hxx.

Referenced by GetOffset(), and Read().

◆ m_rDoc

PDFDocument& vcl::filter::PDFReferenceElement::m_rDoc

Definition at line 169 of file pdfdocument.hxx.

Referenced by LookupNumber(), and LookupObject().

◆ m_rObject

PDFNumberElement& vcl::filter::PDFReferenceElement::m_rObject

The element providing the object number.

Definition at line 175 of file pdfdocument.hxx.

Referenced by GetObjectElement().

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