LibreOffice Module sdext (master) 1
|
#include <genericelements.hxx>
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 TextElement * | dynCastAsTextElement () const |
To avoid some dynamic_cast cost. More... | |
virtual TextElement * | dynCastAsTextElement () |
virtual void | emitStructure (int nLevel) |
Public Attributes | |
sal_Int32 | PageNumber |
ListElement | Hyperlinks |
double | TopMargin |
double | BottomMargin |
double | LeftMargin |
double | RightMargin |
std::unique_ptr< Element > | HeaderElement |
std::unique_ptr< Element > | FooterElement |
Public Attributes inherited from pdfi::Element | |
double | x |
double | y |
double | w |
double | h |
sal_Int32 | StyleId |
Element * | Parent |
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) |
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) | |
Definition at line 242 of file genericelements.hxx.
|
inline |
Definition at line 245 of file genericelements.hxx.
|
overridevirtual |
Definition at line 253 of file genericelements.cxx.
void pdfi::PageElement::resolveFontStyles | ( | PDFIProcessor const & | rProc | ) |
Definition at line 326 of file genericelements.cxx.
References resolveUnderlines().
Referenced by pdfi::DrawXmlOptimizer::visit(), and pdfi::WriterXmlOptimizer::visit().
|
private |
Definition at line 263 of file genericelements.cxx.
References pdfi::Element::Children, pdfi::TextElement::dynCastAsTextElement(), Hyperlinks, pLink, resolveHyperlink(), and pdfi::Element::setParent().
Referenced by resolveHyperlink(), and resolveHyperlinks().
void pdfi::PageElement::resolveHyperlinks | ( | ) |
Definition at line 315 of file genericelements.cxx.
References pdfi::Element::Children, Hyperlinks, and resolveHyperlink().
Referenced by pdfi::DrawXmlOptimizer::visit(), and pdfi::WriterXmlOptimizer::visit().
void pdfi::PageElement::resolveUnderlines | ( | PDFIProcessor const & | rProc | ) |
Definition at line 331 of file genericelements.cxx.
References pdfi::PolyPolyElement::Action, pdfi::Element::Children, basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), pdfi::TextElement::dynCastAsTextElement(), pdfi::TextElement::FontId, pdfi::GraphicalElement::GCId, basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolyPolygon::getB2DPolygon(), pdfi::PDFIProcessor::getFont(), pdfi::PDFIProcessor::getFontId(), pdfi::PDFIProcessor::getGraphicsContext(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), pdfi::GraphicsContext::isRotatedOrSkewed(), pdfi::FontAttributes::isUnderline, p, pdfi::PATH_STROKE, pdfi::PolyPolyElement::PolyPoly, and pdfi::Element::x.
Referenced by resolveFontStyles().
|
overridevirtual |
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().
|
friend |
Definition at line 244 of file genericelements.hxx.
double pdfi::PageElement::BottomMargin |
Definition at line 264 of file genericelements.hxx.
Referenced by pdfi::DrawXmlFinalizer::visit(), and pdfi::WriterXmlFinalizer::visit().
std::unique_ptr<Element> pdfi::PageElement::FooterElement |
Definition at line 268 of file genericelements.hxx.
Referenced by pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), and pdfi::WriterXmlFinalizer::visit().
std::unique_ptr<Element> pdfi::PageElement::HeaderElement |
Definition at line 267 of file genericelements.hxx.
Referenced by pdfi::WriterXmlOptimizer::checkHeaderAndFooter(), and pdfi::WriterXmlFinalizer::visit().
ListElement pdfi::PageElement::Hyperlinks |
Definition at line 262 of file genericelements.hxx.
Referenced by pdfi::PDFIProcessor::hyperLink(), resolveHyperlink(), and resolveHyperlinks().
double pdfi::PageElement::LeftMargin |
Definition at line 265 of file genericelements.hxx.
Referenced by pdfi::DrawXmlFinalizer::visit(), and pdfi::WriterXmlFinalizer::visit().
sal_Int32 pdfi::PageElement::PageNumber |
Definition at line 261 of file genericelements.hxx.
Referenced by pdfi::PDFIProcessor::endPage(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::PDFIProcessor::startPage(), pdfi::DrawXmlOptimizer::visit(), pdfi::DrawXmlFinalizer::visit(), pdfi::DrawXmlEmitter::visit(), pdfi::WriterXmlOptimizer::visit(), pdfi::WriterXmlFinalizer::visit(), and pdfi::WriterXmlEmitter::visit().
double pdfi::PageElement::RightMargin |
Definition at line 266 of file genericelements.hxx.
Referenced by pdfi::DrawXmlFinalizer::visit(), and pdfi::WriterXmlFinalizer::visit().
double pdfi::PageElement::TopMargin |
Definition at line 263 of file genericelements.hxx.
Referenced by pdfi::DrawXmlFinalizer::visit(), and pdfi::WriterXmlFinalizer::visit().