LibreOffice Module sdext (master) 1
|
#include <genericelements.hxx>
Public Member Functions | |
virtual | ~Element () |
virtual void | visitedBy (ElementTreeVisitor &, const std::list< std::unique_ptr< Element > >::const_iterator &rParentIt)=0 |
To be implemented by every tree node that needs to be visitable. More... | |
void | applyToChildren (ElementTreeVisitor &) |
Apply visitor to all children. More... | |
void | updateGeometryWith (const Element *pMergeFrom) |
Union element geometry with given element. More... | |
virtual const TextElement * | dynCastAsTextElement () const |
To avoid some dynamic_cast cost. More... | |
virtual TextElement * | dynCastAsTextElement () |
virtual void | emitStructure (int nLevel) |
Static Public Member Functions | |
static void | setParent (std::list< std::unique_ptr< Element > >::iterator const &el, Element *pNewParent) |
el must be a valid dereferenceable iterator of el->Parent->Children pNewParent must not be NULL More... | |
Public Attributes | |
double | x |
double | y |
double | w |
double | h |
sal_Int32 | StyleId |
Element * | Parent |
std::list< std::unique_ptr< Element > > | Children |
Protected Member Functions | |
Element (Element *pParent) | |
Definition at line 73 of file genericelements.hxx.
|
inlineexplicitprotected |
Definition at line 76 of file genericelements.hxx.
References Children.
|
virtual |
Definition at line 34 of file genericelements.cxx.
void pdfi::Element::applyToChildren | ( | ElementTreeVisitor & | rVisitor | ) |
Apply visitor to all children.
Definition at line 38 of file genericelements.cxx.
References Children.
Referenced by pdfi::DrawXmlOptimizer::visit(), pdfi::WriterXmlOptimizer::visit(), pdfi::DrawXmlFinalizer::visit(), pdfi::WriterXmlFinalizer::visit(), and pdfi::ListElement::visitedBy().
|
inlinevirtual |
Reimplemented in pdfi::TextElement.
Definition at line 98 of file genericelements.hxx.
|
inlinevirtual |
To avoid some dynamic_cast cost.
Reimplemented in pdfi::TextElement.
Definition at line 97 of file genericelements.hxx.
Referenced by pdfi::PDFIProcessor::endText().
|
virtual |
Reimplemented in pdfi::PolyPolyElement.
Definition at line 84 of file genericelements.cxx.
|
static |
el must be a valid dereferenceable iterator of el->Parent->Children pNewParent must not be NULL
Definition at line 44 of file genericelements.cxx.
References Children.
Referenced by pdfi::PageElement::resolveHyperlink(), pdfi::DrawXmlOptimizer::visit(), and pdfi::WriterXmlOptimizer::visit().
void pdfi::Element::updateGeometryWith | ( | const Element * | pMergeFrom | ) |
Union element geometry with given element.
Definition at line 53 of file genericelements.cxx.
Referenced by pdfi::DrawXmlOptimizer::optimizeTextElements(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::PDFIProcessor::processGlyphLine(), pdfi::DrawXmlOptimizer::visit(), and pdfi::WriterXmlOptimizer::visit().
|
pure virtual |
To be implemented by every tree node that needs to be visitable.
Implemented in pdfi::ListElement, pdfi::HyperlinkElement, pdfi::FrameElement, pdfi::TextElement, pdfi::ImageElement, pdfi::DocumentElement, pdfi::ParagraphElement, pdfi::PolyPolyElement, and pdfi::PageElement.
Referenced by pdfi::StyleContainer::impl_emitStyle().
std::list<std::unique_ptr<Element> > pdfi::Element::Children |
Definition at line 112 of file genericelements.hxx.
Referenced by applyToChildren(), pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), Element(), emitStructure(), pdfi::PolyPolyElement::emitStructure(), pdfi::ParagraphElement::getFirstTextChild(), pdfi::ParagraphElement::getLineHeight(), pdfi::ParagraphElement::isSingleLined(), pdfi::DrawXmlOptimizer::optimizeTextElements(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::PageElement::resolveHyperlink(), pdfi::PageElement::resolveHyperlinks(), pdfi::PageElement::resolveUnderlines(), setParent(), pdfi::PDFIProcessor::sortElements(), pdfi::DrawXmlEmitter::visit(), pdfi::WriterXmlEmitter::visit(), pdfi::DrawXmlFinalizer::visit(), pdfi::WriterXmlFinalizer::visit(), pdfi::DrawXmlOptimizer::visit(), and pdfi::WriterXmlOptimizer::visit().
double pdfi::Element::h |
Definition at line 109 of file genericelements.hxx.
Referenced by pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), emitStructure(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::DrawXmlEmitter::fillFrameProps(), pdfi::ParagraphElement::getLineHeight(), pdfi::ParagraphElement::isSingleLined(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::PDFIProcessor::setupImage(), pdfi::PDFIProcessor::startPage(), pdfi::PolyPolyElement::updateGeometry(), updateGeometryWith(), pdfi::DrawXmlOptimizer::visit(), pdfi::DrawXmlFinalizer::visit(), pdfi::WriterXmlOptimizer::visit(), pdfi::WriterXmlFinalizer::visit(), pdfi::DrawXmlEmitter::visit(), and pdfi::WriterXmlEmitter::visit().
Element* pdfi::Element::Parent |
Definition at line 111 of file genericelements.hxx.
Referenced by pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), pdfi::PDFIProcessor::endText(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::WriterXmlFinalizer::visit(), pdfi::DrawXmlOptimizer::visit(), and pdfi::WriterXmlOptimizer::visit().
sal_Int32 pdfi::Element::StyleId |
Definition at line 110 of file genericelements.hxx.
Referenced by pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::DrawXmlEmitter::fillFrameProps(), pdfi::WriterXmlFinalizer::setFirstOnPage(), pdfi::DrawXmlFinalizer::visit(), pdfi::WriterXmlFinalizer::visit(), pdfi::DrawXmlEmitter::visit(), and pdfi::WriterXmlEmitter::visit().
double pdfi::Element::w |
Definition at line 109 of file genericelements.hxx.
Referenced by emitStructure(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::DrawXmlEmitter::fillFrameProps(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::PDFIProcessor::setupImage(), pdfi::PDFIProcessor::startPage(), pdfi::PolyPolyElement::updateGeometry(), updateGeometryWith(), pdfi::DrawXmlOptimizer::visit(), pdfi::DrawXmlFinalizer::visit(), pdfi::WriterXmlOptimizer::visit(), pdfi::WriterXmlFinalizer::visit(), pdfi::DrawXmlEmitter::visit(), and pdfi::WriterXmlEmitter::visit().
double pdfi::Element::x |
Definition at line 109 of file genericelements.hxx.
Referenced by emitStructure(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::DrawXmlEmitter::fillFrameProps(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::PageElement::resolveUnderlines(), pdfi::PDFIProcessor::setupImage(), pdfi::PolyPolyElement::updateGeometry(), updateGeometryWith(), pdfi::DrawXmlOptimizer::visit(), pdfi::WriterXmlOptimizer::visit(), and pdfi::WriterXmlFinalizer::visit().
double pdfi::Element::y |
Definition at line 109 of file genericelements.hxx.
Referenced by pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), emitStructure(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::DrawXmlEmitter::fillFrameProps(), pdfi::ParagraphElement::isSingleLined(), pdfi::WriterXmlOptimizer::optimizeTextElements(), pdfi::PDFIProcessor::setupImage(), pdfi::PolyPolyElement::updateGeometry(), updateGeometryWith(), pdfi::DrawXmlOptimizer::visit(), pdfi::WriterXmlOptimizer::visit(), and pdfi::WriterXmlFinalizer::visit().