diff options
Diffstat (limited to 'sdext/source/pdfimport/tree/genericelements.cxx')
-rw-r--r-- | sdext/source/pdfimport/tree/genericelements.cxx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx index 410b371134a8..d4eb7dcc34d8 100644 --- a/sdext/source/pdfimport/tree/genericelements.cxx +++ b/sdext/source/pdfimport/tree/genericelements.cxx @@ -265,36 +265,6 @@ void PageElement::visitedBy( ElementTreeVisitor& rVisit rVisitor.visit(*this, rParentIt); } -void PageElement::updateParagraphGeometry( Element* pEle ) -{ - // update geometry of children - for( auto it = pEle->Children.begin(); - it != pEle->Children.end(); ++it ) - { - updateParagraphGeometry( it->get() ); - } - // if this is a paragraph itself, then update according to children geometry - if( dynamic_cast<ParagraphElement*>(pEle) ) - { - for( auto it = pEle->Children.begin(); - it != pEle->Children.end(); ++it ) - { - Element* pChild = nullptr; - TextElement* pText = dynamic_cast<TextElement*>(it->get()); - if( pText ) - pChild = pText; - else - { - ParagraphElement* pPara = dynamic_cast<ParagraphElement*>(it->get()); - if( pPara ) - pChild = pPara; - } - if( pChild ) - pEle->updateGeometryWith( pChild ); - } - } -} - bool PageElement::resolveHyperlink( const std::list<std::unique_ptr<Element>>::iterator& link_it, std::list<std::unique_ptr<Element>>& rElements ) { HyperlinkElement* pLink = dynamic_cast<HyperlinkElement*>(link_it->get()); |