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

#include <genericelements.hxx>

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

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
 
TextElementgetFirstTextChild () 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 TextElementdynCastAsTextElement () const
 To avoid some dynamic_cast cost. More...
 
virtual TextElementdynCastAsTextElement ()
 
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
 
ElementParent
 
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)
 

Detailed Description

Definition at line 190 of file genericelements.hxx.

Member Enumeration Documentation

◆ ParagraphType

Enumerator
Normal 
Headline 

Definition at line 206 of file genericelements.hxx.

Constructor & Destructor Documentation

◆ ParagraphElement()

pdfi::ParagraphElement::ParagraphElement ( Element pParent)
inlineexplicit

Definition at line 193 of file genericelements.hxx.

Member Function Documentation

◆ getFirstTextChild()

TextElement * pdfi::ParagraphElement::getFirstTextChild ( ) const

◆ getLineHeight()

double pdfi::ParagraphElement::getLineHeight ( PDFIProcessor rProc) const

◆ isSingleLined()

bool pdfi::ParagraphElement::isSingleLined ( PDFIProcessor const &  rProc) const

◆ visitedBy()

void pdfi::ParagraphElement::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 181 of file genericelements.cxx.

References pdfi::ElementTreeVisitor::visit().

Friends And Related Function Documentation

◆ ElementFactory

friend class ElementFactory
friend

Definition at line 192 of file genericelements.hxx.

Member Data Documentation

◆ bRtl

bool pdfi::ParagraphElement::bRtl

◆ Type

ParagraphType pdfi::ParagraphElement::Type

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