LibreOffice Module sdext (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pdfi::WriterXmlOptimizer Class Reference

#include <writertreevisiting.hxx>

Inheritance diagram for pdfi::WriterXmlOptimizer:
[legend]
Collaboration diagram for pdfi::WriterXmlOptimizer:
[legend]

Public Member Functions

const css::uno::Reference< css::i18n::XBreakIterator > & GetBreakIterator ()
 
 WriterXmlOptimizer (PDFIProcessor &rProcessor)
 
virtual void visit (HyperlinkElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (TextElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (ParagraphElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (FrameElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (PolyPolyElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (ImageElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (PageElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
virtual void visit (DocumentElement &, const std::list< std::unique_ptr< Element > >::const_iterator &) override
 
- Public Member Functions inherited from pdfi::ElementTreeVisitor
virtual void visit (HyperlinkElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (TextElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (ParagraphElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (FrameElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (PolyPolyElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (ImageElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (PageElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual void visit (DocumentElement &, const std::list< std::unique_ptr< Element > >::const_iterator &)=0
 
virtual ~ElementTreeVisitor ()
 

Private Member Functions

void optimizeTextElements (Element &rParent)
 
void checkHeaderAndFooter (PageElement &rElem)
 

Private Attributes

PDFIProcessorm_rProcessor
 
css::uno::Reference< css::i18n::XBreakIterator > mxBreakIter
 

Detailed Description

Definition at line 34 of file writertreevisiting.hxx.

Constructor & Destructor Documentation

◆ WriterXmlOptimizer()

pdfi::WriterXmlOptimizer::WriterXmlOptimizer ( PDFIProcessor rProcessor)
inlineexplicit

Definition at line 44 of file writertreevisiting.hxx.

References rProcessor.

Member Function Documentation

◆ checkHeaderAndFooter()

void pdfi::WriterXmlOptimizer::checkHeaderAndFooter ( PageElement rElem)
private

◆ GetBreakIterator()

const Reference< XBreakIterator > & pdfi::WriterXmlOptimizer::GetBreakIterator ( )

Definition at line 46 of file writertreevisiting.cxx.

References m_rProcessor, pdfi::PDFIProcessor::m_xContext, and mxBreakIter.

Referenced by optimizeTextElements().

◆ optimizeTextElements()

void pdfi::WriterXmlOptimizer::optimizeTextElements ( Element rParent)
private

◆ visit() [1/8]

void pdfi::WriterXmlOptimizer::visit ( DocumentElement elem,
const std::list< std::unique_ptr< Element > >::const_iterator &   
)
overridevirtual

Implements pdfi::ElementTreeVisitor.

Definition at line 960 of file writertreevisiting.cxx.

References pdfi::Element::applyToChildren().

◆ visit() [2/8]

void pdfi::WriterXmlOptimizer::visit ( FrameElement elem,
const std::list< std::unique_ptr< Element > >::const_iterator &   
)
overridevirtual

Implements pdfi::ElementTreeVisitor.

Definition at line 438 of file writertreevisiting.cxx.

References pdfi::Element::applyToChildren().

◆ visit() [3/8]

void pdfi::WriterXmlOptimizer::visit ( HyperlinkElement ,
const std::list< std::unique_ptr< Element > >::const_iterator &   
)
overridevirtual

Implements pdfi::ElementTreeVisitor.

Definition at line 430 of file writertreevisiting.cxx.

◆ visit() [4/8]

void pdfi::WriterXmlOptimizer::visit ( ImageElement ,
const std::list< std::unique_ptr< Element > >::const_iterator &   
)
overridevirtual

Implements pdfi::ElementTreeVisitor.

Definition at line 443 of file writertreevisiting.cxx.

◆ visit() [5/8]

void pdfi::WriterXmlOptimizer::visit ( PageElement elem,
const std::list< std::unique_ptr< Element > >::const_iterator &   
)
overridevirtual

◆ visit() [6/8]

void pdfi::WriterXmlOptimizer::visit ( ParagraphElement elem,
const std::list< std::unique_ptr< Element > >::const_iterator &  rParentIt 
)
overridevirtual

◆ visit() [7/8]

void pdfi::WriterXmlOptimizer::visit ( PolyPolyElement elem,
const std::list< std::unique_ptr< Element > >::const_iterator &  elemIt 
)
overridevirtual

◆ visit() [8/8]

void pdfi::WriterXmlOptimizer::visit ( TextElement ,
const std::list< std::unique_ptr< Element > >::const_iterator &   
)
overridevirtual

Implements pdfi::ElementTreeVisitor.

Definition at line 434 of file writertreevisiting.cxx.

Member Data Documentation

◆ m_rProcessor

PDFIProcessor& pdfi::WriterXmlOptimizer::m_rProcessor
private

◆ mxBreakIter

css::uno::Reference<css::i18n::XBreakIterator> pdfi::WriterXmlOptimizer::mxBreakIter
private

Definition at line 38 of file writertreevisiting.hxx.

Referenced by GetBreakIterator().


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