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

#include <drawtreevisiting.hxx>

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

Public Member Functions

const css::uno::Reference< css::i18n::XBreakIterator > & GetBreakIterator ()
 
 DrawXmlOptimizer (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)
 

Private Attributes

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

Detailed Description

Definition at line 32 of file drawtreevisiting.hxx.

Constructor & Destructor Documentation

◆ DrawXmlOptimizer()

pdfi::DrawXmlOptimizer::DrawXmlOptimizer ( PDFIProcessor rProcessor)
inlineexplicit

Definition at line 42 of file drawtreevisiting.hxx.

References rProcessor.

Member Function Documentation

◆ GetBreakIterator()

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

Definition at line 48 of file drawtreevisiting.cxx.

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

Referenced by optimizeTextElements().

◆ optimizeTextElements()

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

◆ visit() [1/8]

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

Implements pdfi::ElementTreeVisitor.

Definition at line 771 of file drawtreevisiting.cxx.

References pdfi::Element::applyToChildren().

◆ visit() [2/8]

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

Implements pdfi::ElementTreeVisitor.

Definition at line 402 of file drawtreevisiting.cxx.

References pdfi::Element::applyToChildren().

◆ visit() [3/8]

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

Implements pdfi::ElementTreeVisitor.

Definition at line 394 of file drawtreevisiting.cxx.

◆ visit() [4/8]

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

Implements pdfi::ElementTreeVisitor.

Definition at line 407 of file drawtreevisiting.cxx.

◆ visit() [5/8]

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

◆ visit() [6/8]

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

◆ visit() [7/8]

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

◆ visit() [8/8]

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

Implements pdfi::ElementTreeVisitor.

Definition at line 398 of file drawtreevisiting.cxx.

Member Data Documentation

◆ m_rProcessor

PDFIProcessor& pdfi::DrawXmlOptimizer::m_rProcessor
private

Definition at line 35 of file drawtreevisiting.hxx.

Referenced by GetBreakIterator(), optimizeTextElements(), and visit().

◆ mxBreakIter

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

Definition at line 36 of file drawtreevisiting.hxx.

Referenced by GetBreakIterator().


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