summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-13 08:07:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-13 08:14:00 +0200
commit3a705ab40597f7cb584bdeaef06701b289f911f1 (patch)
tree70d0b6bbf26c8ad07d8f1ced8e06c9eef02b6dc9 /sdext
parentc3586b684c58e06cd80dea87d7681354acfec80b (diff)
OSL_TRACE->SAL in avmedia..canvas
Change-Id: Id9077ea29e7028c12f40abfd4c57756c863e3cd9
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/genericelements.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx
index c5c61a4d8b74..1ffc3c1b8e35 100644
--- a/sdext/source/pdfimport/tree/genericelements.cxx
+++ b/sdext/source/pdfimport/tree/genericelements.cxx
@@ -90,12 +90,11 @@ void Element::updateGeometryWith( const Element* pMergeFrom )
#include <typeinfo>
void Element::emitStructure( int nLevel)
{
- OSL_TRACE( "%*s<%s %p> (%.1f,%.1f)+(%.1fx%.1f)\n",
- nLevel, "", typeid( *this ).name(), this,
- x, y, w, h );
+ SAL_INFO( "sdext", std::string(nLevel, ' ') << "<" << typeid( *this ).name() << " " << this << "> ("
+ << std::setprecision(1) << x << "," << y << ")+(" << w << "x" << h << ")" );
for( std::list< Element* >::iterator it = Children.begin(); it != Children.end(); ++it )
(*it)->emitStructure(nLevel+1 );
- OSL_TRACE( "%*s</%s>", nLevel, "", typeid( *this ).name() );
+ SAL_INFO( "sdext", std::string(nLevel, ' ') << "</" << typeid( *this ).name() << ">" );
}
#endif
@@ -165,23 +164,24 @@ void PolyPolyElement::visitedBy( ElementTreeVisitor& rV
#if OSL_DEBUG_LEVEL > 0
void PolyPolyElement::emitStructure( int nLevel)
{
- OSL_TRACE( "%*s<%s %p>", nLevel, "", typeid( *this ).name(), this );
- OSL_TRACE( "path=" );
+ SAL_WARN( "sdext", std::string(nLevel, ' ') << "<" << typeid( *this ).name() << " " << this << ">" );
+ SAL_WARN( "sdext", "path=" );
int nPoly = PolyPoly.count();
for( int i = 0; i < nPoly; i++ )
{
+ OUStringBuffer buff;
basegfx::B2DPolygon aPoly = PolyPoly.getB2DPolygon( i );
int nPoints = aPoly.count();
for( int n = 0; n < nPoints; n++ )
{
basegfx::B2DPoint aPoint = aPoly.getB2DPoint( n );
- OSL_TRACE( " (%g,%g)", aPoint.getX(), aPoint.getY() );
+ buff.append( " (").append(aPoint.getX()).append(",").append(aPoint.getY()).append(")");
}
- OSL_TRACE( "\n" );
+ SAL_WARN( "sdext", " " << buff.makeStringAndClear() );
}
for( std::list< Element* >::iterator it = Children.begin(); it != Children.end(); ++it )
(*it)->emitStructure( nLevel+1 );
- OSL_TRACE( "%*s</%s>", nLevel, "", typeid( *this ).name() );
+ SAL_WARN( "sdext", std::string(nLevel, ' ') << "</" << typeid( *this ).name() << ">");
}
#endif