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 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 72 of file genericelements.hxx.

Constructor & Destructor Documentation

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

Definition at line 75 of file genericelements.hxx.

References Children.

pdfi::Element::~Element ( )
virtual

Definition at line 33 of file genericelements.cxx.

Member Function Documentation

void pdfi::Element::applyToChildren ( ElementTreeVisitor rVisitor)
void pdfi::Element::emitStructure ( int  nLevel)
virtual

Reimplemented in pdfi::PolyPolyElement.

Definition at line 83 of file genericelements.cxx.

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

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 43 of file genericelements.cxx.

References Children.

Referenced by pdfi::PageElement::resolveHyperlink(), pdfi::WriterXmlOptimizer::visit(), and pdfi::DrawXmlOptimizer::visit().

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

Member Data Documentation

std::list<std::unique_ptr<Element> > pdfi::Element::Children
double pdfi::Element::h
Element* pdfi::Element::Parent
sal_Int32 pdfi::Element::StyleId
double pdfi::Element::w
double pdfi::Element::x
double pdfi::Element::y

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