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

#include <genericelements.hxx>

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

Public Member Functions

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 ()
 
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)
 

Public Attributes

sal_Int32 const 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
 
ElementParent
 
std::list< std::unique_ptr< Element > > Children
 

Protected Member Functions

 PageElement (Element *pParent, sal_Int32 nPageNr)
 
- Protected Member Functions inherited from pdfi::Element
 Element (Element *pParent)
 

Private Member Functions

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

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...
 

Detailed Description

Definition at line 240 of file genericelements.hxx.

Constructor & Destructor Documentation

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

Definition at line 244 of file genericelements.hxx.

pdfi::PageElement::~PageElement ( )
overridevirtual

Definition at line 252 of file genericelements.cxx.

Member Function Documentation

void pdfi::PageElement::resolveFontStyles ( PDFIProcessor const &  rProc)
bool pdfi::PageElement::resolveHyperlink ( const std::list< std::unique_ptr< Element >>::iterator &  link_it,
std::list< std::unique_ptr< Element >> &  rElements 
)
private
void pdfi::PageElement::resolveHyperlinks ( )
void pdfi::PageElement::resolveUnderlines ( PDFIProcessor const &  rProc)
void pdfi::PageElement::visitedBy ( ElementTreeVisitor ,
const std::list< std::unique_ptr< Element > >::const_iterator &  rParentIt 
)
overridevirtual

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

Implements pdfi::Element.

Definition at line 256 of file genericelements.cxx.

References pdfi::ElementTreeVisitor::visit().

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

Friends And Related Function Documentation

friend class ElementFactory
friend

Definition at line 242 of file genericelements.hxx.

Member Data Documentation

double pdfi::PageElement::BottomMargin
std::unique_ptr<Element> pdfi::PageElement::FooterElement
std::unique_ptr<Element> pdfi::PageElement::HeaderElement
ListElement pdfi::PageElement::Hyperlinks

Definition at line 261 of file genericelements.hxx.

Referenced by resolveHyperlink(), and resolveHyperlinks().

double pdfi::PageElement::LeftMargin
sal_Int32 const pdfi::PageElement::PageNumber
double pdfi::PageElement::RightMargin
double pdfi::PageElement::TopMargin

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