summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-11-21 12:28:25 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-21 12:28:25 -0600
commit83cb7a3edb81be1bbd34a57b0db06f19ea6f6d2c (patch)
treecc1f4f3de5f05eb0cb5aa974f3402435a4745b93 /sdext
parentf65bf1380004a4bdccbf170e36df9685510b2b3d (diff)
remove 'busy' code (code that consume cpu to produce unused result)
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx37
1 files changed, 1 insertions, 36 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index bc24000025c2..1b22f85cfe63 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -120,15 +120,6 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
rtl::OUString str(elem.Text.getStr());
- // Check for CTL
- bool isComplex = false;
- for(int i=0; i< elem.Text.getLength(); i++)
- {
- sal_Int16 nType = GetBreakIterator()->getScriptType( str, i + 1);
- if (nType == ::com::sun::star::i18n::ScriptType::COMPLEX)
- isComplex = true;
- }
-
m_rEmitContext.rEmitter.beginTag( "text:span", aProps );
for(int i=0; i< elem.Text.getLength(); i++)
@@ -688,13 +679,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
std::list< Element* >::iterator next = rParent.Children.begin();
std::list< Element* >::iterator it = next++;
FrameElement* pFrame = dynamic_cast<FrameElement*>(rParent.Parent);
- bool bRotatedFrame = false;
- if( pFrame )
- {
- const GraphicsContext& rFrameGC = m_rProcessor.getGraphicsContext( pFrame->GCId );
- if( rFrameGC.isRotatedOrSkewed() )
- bRotatedFrame = true;
- }
+
while( next != rParent.Children.end() )
{
bool bConcat = false;
@@ -907,26 +892,6 @@ void DrawXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element*
elem.StyleId = m_rStyleContainer.getStyleId( aStyle );
- // update page boundaries
- if( elem.Parent )
- {
- // check for center alignement
- // criterion: paragraph is small relative to parent and distributed around its center
- double p_x = elem.Parent->x;
- double p_y = elem.Parent->y;
- double p_w = elem.Parent->w;
- double p_h = elem.Parent->h;
-
- PageElement* pPage = dynamic_cast<PageElement*>(elem.Parent);
- if( pPage )
- {
- p_x += pPage->LeftMargin;
- p_y += pPage->TopMargin;
- p_w -= pPage->LeftMargin+pPage->RightMargin;
- p_h -= pPage->TopMargin+pPage->BottomMargin;
- }
- }
-
elem.applyToChildren(*this);
}