LibreOffice Module sdext (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
pdfi::PageElement Struct Referencefinal

#include <genericelements.hxx>

Inheritance diagram for pdfi::PageElement:
Collaboration diagram for pdfi::PageElement:

Public Member Functions

 PageElement (Element *pParent, sal_Int32 nPageNr)
virtual ~PageElement () override
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...
void resolveHyperlinks ()
void resolveFontStyles (PDFIProcessor const &rProc)
void resolveUnderlines (PDFIProcessor const &rProc)
- 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 TextElementdynCastAsTextElement () const
 To avoid some dynamic_cast cost. More...
virtual TextElementdynCastAsTextElement ()
virtual void emitStructure (int nLevel)

Public Attributes

sal_Int32 PageNumber
ListElement Hyperlinks
double TopMargin
double BottomMargin
double LeftMargin
double RightMargin
std::unique_ptr< ElementHeaderElement
std::unique_ptr< ElementFooterElement
- Public Attributes inherited from pdfi::Element
double x
double y
double w
double h
sal_Int32 StyleId
std::list< std::unique_ptr< Element > > Children

Private Member Functions

bool resolveHyperlink (const std::list< std::unique_ptr< Element > >::iterator &link_it, std::list< std::unique_ptr< Element > > &rElements)


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)

Detailed Description

Definition at line 242 of file genericelements.hxx.

Constructor & Destructor Documentation

◆ PageElement()

pdfi::PageElement::PageElement ( Element pParent,
sal_Int32  nPageNr 

Definition at line 245 of file genericelements.hxx.

◆ ~PageElement()

pdfi::PageElement::~PageElement ( )

Definition at line 253 of file genericelements.cxx.

Member Function Documentation

◆ resolveFontStyles()

void pdfi::PageElement::resolveFontStyles ( PDFIProcessor const &  rProc)

◆ resolveHyperlink()

bool pdfi::PageElement::resolveHyperlink ( const std::list< std::unique_ptr< Element > >::iterator &  link_it,
std::list< std::unique_ptr< Element > > &  rElements 

◆ resolveHyperlinks()

void pdfi::PageElement::resolveHyperlinks ( )

◆ resolveUnderlines()

void pdfi::PageElement::resolveUnderlines ( PDFIProcessor const &  rProc)

◆ visitedBy()

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

To be implemented by every tree node that needs to be visitable.

Implements pdfi::Element.

Definition at line 257 of file genericelements.cxx.

References pdfi::ElementTreeVisitor::visit().

Referenced by pdfi::WriterXmlEmitter::visit().

Friends And Related Function Documentation

◆ ElementFactory

friend class ElementFactory

Definition at line 244 of file genericelements.hxx.

Member Data Documentation

◆ BottomMargin

double pdfi::PageElement::BottomMargin

◆ FooterElement

std::unique_ptr<Element> pdfi::PageElement::FooterElement

◆ HeaderElement

std::unique_ptr<Element> pdfi::PageElement::HeaderElement

◆ Hyperlinks

ListElement pdfi::PageElement::Hyperlinks

◆ LeftMargin

double pdfi::PageElement::LeftMargin

◆ PageNumber

sal_Int32 pdfi::PageElement::PageNumber

◆ RightMargin

double pdfi::PageElement::RightMargin

◆ TopMargin

double pdfi::PageElement::TopMargin

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