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

#include <genericelements.hxx>

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

Public Types

enum  ParagraphType {
  Normal,
  Headline
}
 

Public Member Functions

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

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
 

Protected Member Functions

 ParagraphElement (Element *pParent)
 
- Protected Member Functions inherited from pdfi::Element
 Element (Element *pParent)
 

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

Member Enumeration Documentation

Enumerator
Normal 
Headline 

Definition at line 202 of file genericelements.hxx.

Constructor & Destructor Documentation

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

Definition at line 189 of file genericelements.hxx.

Member Function Documentation

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

Definition at line 242 of file genericelements.cxx.

References pdfi::Element::Children.

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

double pdfi::ParagraphElement::getLineHeight ( PDFIProcessor rProc) const
bool pdfi::ParagraphElement::isSingleLined ( PDFIProcessor const &  rProc) const
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 180 of file genericelements.cxx.

References pdfi::ElementTreeVisitor::visit().

Friends And Related Function Documentation

friend class ElementFactory
friend

Definition at line 187 of file genericelements.hxx.

Member Data Documentation

bool pdfi::ParagraphElement::bRtl
ParagraphType pdfi::ParagraphElement::Type

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