LibreOffice Module sdext (master) 1
|
#include <genericelements.hxx>
Public Types | |
enum | ParagraphType { Normal , Headline } |
Public Member Functions | |
ParagraphElement (Element *pParent) | |
virtual void | visitedBy (ElementTreeVisitor &, const std::list< std::unique_ptr< Element > >::const_iterator &rParentIt) override |
To be implemented by every tree node that needs to be visitable. More... | |
bool | isSingleLined (PDFIProcessor const &rProc) const |
double | getLineHeight (PDFIProcessor &rProc) const |
TextElement * | getFirstTextChild () const |
Public Member Functions inherited from pdfi::Element | |
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) |
Public Attributes | |
ParagraphType | Type |
bool | bRtl |
Public Attributes inherited from pdfi::Element | |
double | x |
double | y |
double | w |
double | h |
sal_Int32 | StyleId |
Element * | Parent |
std::list< std::unique_ptr< Element > > | Children |
Friends | |
class | ElementFactory |
Additional Inherited Members | |
Static Public Member Functions inherited from pdfi::Element | |
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... | |
Protected Member Functions inherited from pdfi::Element | |
Element (Element *pParent) | |
Definition at line 190 of file genericelements.hxx.
Enumerator | |
---|---|
Normal | |
Headline |
Definition at line 206 of file genericelements.hxx.
|
inlineexplicit |
Definition at line 193 of file genericelements.hxx.
TextElement * pdfi::ParagraphElement::getFirstTextChild | ( | ) | const |
Definition at line 243 of file genericelements.cxx.
References pdfi::Element::Children, and pdfi::TextElement::dynCastAsTextElement().
Referenced by pdfi::WriterXmlOptimizer::visit().
double pdfi::ParagraphElement::getLineHeight | ( | PDFIProcessor & | rProc | ) | const |
Definition at line 217 of file genericelements.cxx.
References pdfi::Element::Children, pdfi::TextElement::dynCastAsTextElement(), pdfi::TextElement::FontId, pdfi::PDFIProcessor::getFont(), getLineHeight(), pdfi::Element::h, and pdfi::FontAttributes::size.
Referenced by getLineHeight(), and pdfi::WriterXmlOptimizer::visit().
bool pdfi::ParagraphElement::isSingleLined | ( | PDFIProcessor const & | rProc | ) | const |
Definition at line 187 of file genericelements.cxx.
References pdfi::Element::Children, pdfi::TextElement::dynCastAsTextElement(), pdfi::TextElement::FontId, pdfi::PDFIProcessor::getFont(), pdfi::Element::h, pdfi::FontAttributes::size, and pdfi::Element::y.
Referenced by pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), and pdfi::WriterXmlOptimizer::visit().
|
overridevirtual |
To be implemented by every tree node that needs to be visitable.
Implements pdfi::Element.
Definition at line 181 of file genericelements.cxx.
References pdfi::ElementTreeVisitor::visit().
|
friend |
Definition at line 192 of file genericelements.hxx.
bool pdfi::ParagraphElement::bRtl |
Definition at line 208 of file genericelements.hxx.
Referenced by pdfi::DrawXmlOptimizer::optimizeTextElements(), pdfi::WriterXmlOptimizer::optimizeTextElements(), and pdfi::DrawXmlFinalizer::visit().
ParagraphType pdfi::ParagraphElement::Type |
Definition at line 207 of file genericelements.hxx.
Referenced by pdfi::DrawXmlEmitter::visit(), pdfi::WriterXmlOptimizer::visit(), and pdfi::WriterXmlEmitter::visit().