LibreOffice Module sdext (master) 1
|
#include <writertreevisiting.hxx>
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 | |
PDFIProcessor & | m_rProcessor |
css::uno::Reference< css::i18n::XBreakIterator > | mxBreakIter |
Definition at line 34 of file writertreevisiting.hxx.
|
inlineexplicit |
Definition at line 44 of file writertreevisiting.hxx.
References rProcessor.
|
private |
Definition at line 734 of file writertreevisiting.cxx.
References base, pdfi::Element::Children, pdfi::PageElement::FooterElement, pdfi::Element::h, pdfi::PageElement::HeaderElement, pdfi::ParagraphElement::isSingleLined(), m_rProcessor, pdfi::Element::Parent, and pdfi::Element::y.
Referenced by visit().
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().
|
private |
Definition at line 796 of file writertreevisiting.cxx.
References pdfi::ParagraphElement::bRtl, pdfi::Element::Children, pdfi::TextElement::dynCastAsTextElement(), pdfi::GraphicsContext::FillColor, pdfi::TextElement::FontId, pdfi::GraphicalElement::GCId, GetBreakIterator(), pdfi::PDFIProcessor::getGraphicsContext(), pdfi::Element::h, i, pdfi::isComplex(), pdfi::GraphicsContext::isRotatedOrSkewed(), m_rProcessor, name, optimizeTextElements(), pdfi::Element::Parent, pdfi::TextElement::Text, u, pdfi::Element::updateGeometryWith(), pdfi::Element::w, pdfi::Element::x, and pdfi::Element::y.
Referenced by optimizeTextElements(), and visit().
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 955 of file writertreevisiting.cxx.
References pdfi::Element::applyToChildren().
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 433 of file writertreevisiting.cxx.
References pdfi::Element::applyToChildren().
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 425 of file writertreevisiting.cxx.
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 438 of file writertreevisiting.cxx.
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 556 of file writertreevisiting.cxx.
References pdfi::Element::applyToChildren(), checkHeaderAndFooter(), pdfi::Element::Children, pdfi::ElementFactory::createParagraphElement(), pdfi::TextElement::dynCastAsTextElement(), pdfi::PDFIProcessor::getStatusIndicator(), pdfi::Element::h, pdfi::DrawElement::isCharacter, m_rProcessor, pdfi::PageElement::PageNumber, pdfi::Element::Parent, pLink, pdfi::PageElement::resolveFontStyles(), pdfi::PageElement::resolveHyperlinks(), pdfi::Element::setParent(), pdfi::PDFIProcessor::sortElements(), pdfi::Element::updateGeometryWith(), pdfi::Element::w, pdfi::Element::x, and pdfi::Element::y.
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 490 of file writertreevisiting.cxx.
References pdfi::Element::applyToChildren(), pdfi::Element::Children, pdfi::TextElement::FontId, pdfi::FontAttributes::fontWeight, pdfi::ParagraphElement::getFirstTextChild(), pdfi::PDFIProcessor::getFont(), pdfi::ParagraphElement::getLineHeight(), pdfi::Element::h, pdfi::ParagraphElement::Headline, pdfi::ParagraphElement::isSingleLined(), m_rProcessor, optimizeTextElements(), pdfi::Element::Parent, pdfi::ParagraphElement::Type, u, and pdfi::Element::y.
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 442 of file writertreevisiting.cxx.
References pdfi::PolyPolyElement::Action, pdfi::GraphicsContext::BlendMode, pdfi::Element::Children, pdfi::GraphicsContext::Clip, pdfi::GraphicsContext::DashArray, pdfi::GraphicsContext::Flatness, pdfi::GraphicalElement::GCId, pdfi::PDFIProcessor::getGCId(), pdfi::PDFIProcessor::getGraphicsContext(), pdfi::GraphicsContext::LineCap, pdfi::GraphicsContext::LineColor, pdfi::GraphicsContext::LineJoin, pdfi::GraphicsContext::LineWidth, m_rProcessor, pdfi::GraphicsContext::MiterLimit, pdfi::Element::Parent, pdfi::PATH_EOFILL, pdfi::PATH_FILL, pdfi::PATH_STROKE, pdfi::PolyPolyElement::PolyPoly, and pdfi::GraphicsContext::Transformation.
|
overridevirtual |
Implements pdfi::ElementTreeVisitor.
Definition at line 429 of file writertreevisiting.cxx.
|
private |
Definition at line 37 of file writertreevisiting.hxx.
Referenced by checkHeaderAndFooter(), GetBreakIterator(), optimizeTextElements(), and visit().
|
private |
Definition at line 38 of file writertreevisiting.hxx.
Referenced by GetBreakIterator().