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

Copies objects from one PDF file into another one. More...

#include <objectcopier.hxx>

Collaboration diagram for vcl::PDFObjectCopier:
[legend]

Public Member Functions

 PDFObjectCopier (PDFObjectContainer &rContainer)
 
OString copyExternalResources (filter::PDFObjectElement &rPage, const OString &rKind, std::map< sal_Int32, sal_Int32 > &rCopiedResources)
 Copies resources of a given kind from an external page to the output, returning what has to be included in the new resource dictionary. More...
 
sal_Int32 copyExternalResource (SvMemoryStream &rDocBuffer, filter::PDFObjectElement &rObject, std::map< sal_Int32, sal_Int32 > &rCopiedResources)
 Copies a single resource from an external document, returns the new object ID in our document. More...
 
void copyPageResources (filter::PDFObjectElement *pPage, OStringBuffer &rLine)
 Copies resources of pPage into rLine. More...
 
void copyPageResources (filter::PDFObjectElement *pPage, OStringBuffer &rLine, std::map< sal_Int32, sal_Int32 > &rCopiedResources)
 

Static Public Member Functions

static sal_Int32 copyPageStreams (std::vector< filter::PDFObjectElement * > &rContentStreams, SvMemoryStream &rStream, bool &rCompressed)
 Copies page one or more page streams from rContentStreams into rStream. More...
 

Private Member Functions

void copyRecursively (OStringBuffer &rLine, filter::PDFElement &rInputElement, SvMemoryStream &rDocBuffer, std::map< sal_Int32, sal_Int32 > &rCopiedResources)
 

Private Attributes

PDFObjectContainerm_rContainer
 

Detailed Description

Copies objects from one PDF file into another one.

Definition at line 32 of file objectcopier.hxx.

Constructor & Destructor Documentation

◆ PDFObjectCopier()

vcl::PDFObjectCopier::PDFObjectCopier ( PDFObjectContainer rContainer)

Definition at line 24 of file pdfobjectcopier.cxx.

Member Function Documentation

◆ copyExternalResource()

sal_Int32 vcl::PDFObjectCopier::copyExternalResource ( SvMemoryStream rDocBuffer,
filter::PDFObjectElement rObject,
std::map< sal_Int32, sal_Int32 > &  rCopiedResources 
)

◆ copyExternalResources()

OString vcl::PDFObjectCopier::copyExternalResources ( filter::PDFObjectElement rPage,
const OString &  rKind,
std::map< sal_Int32, sal_Int32 > &  rCopiedResources 
)

Copies resources of a given kind from an external page to the output, returning what has to be included in the new resource dictionary.

Definition at line 173 of file pdfobjectcopier.cxx.

References copyExternalResource(), vcl::filter::PDFObjectElement::GetDictionaryItems(), vcl::filter::PDFObjectElement::GetDocument(), vcl::filter::PDFDocument::GetEditBuffer(), vcl::filter::PDFObjectElement::Lookup(), vcl::filter::PDFObjectElement::LookupObject(), and pObject.

Referenced by copyPageResources().

◆ copyPageResources() [1/2]

void vcl::PDFObjectCopier::copyPageResources ( filter::PDFObjectElement pPage,
OStringBuffer &  rLine 
)

Copies resources of pPage into rLine.

Definition at line 269 of file pdfobjectcopier.cxx.

References copyPageResources().

Referenced by copyPageResources(), vcl::filter::PDFDocument::WriteAppearanceObject(), and vcl::PDFWriterImpl::writeReferenceXObject().

◆ copyPageResources() [2/2]

void vcl::PDFObjectCopier::copyPageResources ( filter::PDFObjectElement pPage,
OStringBuffer &  rLine,
std::map< sal_Int32, sal_Int32 > &  rCopiedResources 
)

Definition at line 276 of file pdfobjectcopier.cxx.

References copyExternalResources().

◆ copyPageStreams()

sal_Int32 vcl::PDFObjectCopier::copyPageStreams ( std::vector< filter::PDFObjectElement * > &  rContentStreams,
SvMemoryStream rStream,
bool &  rCompressed 
)
static

◆ copyRecursively()

void vcl::PDFObjectCopier::copyRecursively ( OStringBuffer &  rLine,
filter::PDFElement rInputElement,
SvMemoryStream rDocBuffer,
std::map< sal_Int32, sal_Int32 > &  rCopiedResources 
)
private

Member Data Documentation

◆ m_rContainer

PDFObjectContainer& vcl::PDFObjectCopier::m_rContainer
private

Definition at line 34 of file objectcopier.hxx.

Referenced by copyExternalResource().


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