LibreOffice Module sdext (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
pdfi::Element Struct Referenceabstract

#include <genericelements.hxx>

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

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 TextElementdynCastAsTextElement () const
 To avoid some dynamic_cast cost. More...
 
virtual TextElementdynCastAsTextElement ()
 
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
 
ElementParent
 
std::list< std::unique_ptr< Element > > Children
 

Protected Member Functions

 Element (Element *pParent)
 

Detailed Description

Definition at line 73 of file genericelements.hxx.

Constructor & Destructor Documentation

◆ Element()

pdfi::Element::Element ( Element pParent)
inlineexplicitprotected

Definition at line 76 of file genericelements.hxx.

References Children.

◆ ~Element()

pdfi::Element::~Element ( )
virtual

Definition at line 34 of file genericelements.cxx.

Member Function Documentation

◆ applyToChildren()

void pdfi::Element::applyToChildren ( ElementTreeVisitor rVisitor)

◆ dynCastAsTextElement() [1/2]

virtual TextElement * pdfi::Element::dynCastAsTextElement ( )
inlinevirtual

Reimplemented in pdfi::TextElement.

Definition at line 98 of file genericelements.hxx.

◆ dynCastAsTextElement() [2/2]

virtual const TextElement * pdfi::Element::dynCastAsTextElement ( ) const
inlinevirtual

To avoid some dynamic_cast cost.

Reimplemented in pdfi::TextElement.

Definition at line 97 of file genericelements.hxx.

Referenced by pdfi::PDFIProcessor::endText().

◆ emitStructure()

void pdfi::Element::emitStructure ( int  nLevel)
virtual

Reimplemented in pdfi::PolyPolyElement.

Definition at line 84 of file genericelements.cxx.

References Children, h, SAL_INFO, w, x, and y.

◆ setParent()

void pdfi::Element::setParent ( std::list< std::unique_ptr< Element > >::iterator const &  el,
Element pNewParent 
)
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().

◆ updateGeometryWith()

void pdfi::Element::updateGeometryWith ( const Element pMergeFrom)

◆ visitedBy()

virtual void pdfi::Element::visitedBy ( ElementTreeVisitor ,
const std::list< std::unique_ptr< Element > >::const_iterator &  rParentIt 
)
pure virtual

Member Data Documentation

◆ Children

std::list<std::unique_ptr<Element> > pdfi::Element::Children

◆ h

double pdfi::Element::h

◆ Parent

Element* pdfi::Element::Parent

◆ StyleId

sal_Int32 pdfi::Element::StyleId

◆ w

double pdfi::Element::w

◆ x

double pdfi::Element::x

◆ y

double pdfi::Element::y

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