summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2013-08-20 15:50:01 +0300
committerMichael Stahl <mstahl@redhat.com>2013-09-04 13:36:01 +0000
commitd52e46c418c150b7ace2de313252120981fe0959 (patch)
tree199f3f0d5b816fa7c9a5fb0ddd1e92025019c70d /oox
parentced8703387cb49094b0a74b09a145cbf57883215 (diff)
oox: Enhancing the debugging output
Change-Id: Ifc055befd5d7436d44e95ce105c52f3c4f061796 Reviewed-on: https://gerrit.libreoffice.org/5768 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/graphicshapecontext.cxx15
-rw-r--r--oox/source/drawingml/shape.cxx32
2 files changed, 24 insertions, 23 deletions
diff --git a/oox/source/drawingml/graphicshapecontext.cxx b/oox/source/drawingml/graphicshapecontext.cxx
index 0def78514c75..73882f85d45a 100644
--- a/oox/source/drawingml/graphicshapecontext.cxx
+++ b/oox/source/drawingml/graphicshapecontext.cxx
@@ -232,13 +232,14 @@ ContextHandlerRef DiagramGraphicDataContext::onCreateContext( ::sal_Int32 aEleme
getFragmentPathFromRelId( msLo ),
getFragmentPathFromRelId( msQs ),
getFragmentPathFromRelId( msCs ));
- OSL_TRACE("diagram added shape %s of type %s, size (%d,%d,%d,%d)",
- OUSTRING_TO_CSTR( mpShapePtr->getName() ),
- OUSTRING_TO_CSTR( mpShapePtr->getServiceName() ),
- mpShapePtr->getPosition().X,
- mpShapePtr->getPosition().Y,
- mpShapePtr->getSize().Width,
- mpShapePtr->getSize().Height);
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC
+ << "diagram added shape " << mpShapePtr->getName()
+ << " of type " << mpShapePtr->getServiceName()
+ << ", size (" << mpShapePtr->getPosition().X
+ << "," << mpShapePtr->getPosition().Y
+ << "," << mpShapePtr->getSize().Width
+ << "," << mpShapePtr->getSize().Height
+ <<")");
break;
}
default:
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index f065d1b89c74..ee9d9de369fb 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -200,7 +200,7 @@ void Shape::addShape(
const awt::Rectangle* pShapeRect,
ShapeIdMap* pShapeMap )
{
- SAL_INFO("oox", OSL_THIS_FUNC << " id: " << msId);
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC << " id: " << msId);
try
{
@@ -238,7 +238,7 @@ bool Shape::getLockedCanvas()
void Shape::applyShapeReference( const Shape& rReferencedShape, bool bUseText )
{
- SAL_INFO("oox", "apply shape reference: " << rReferencedShape.msId << " to shape id: " << msId);
+ SAL_INFO("oox", OSL_THIS_FUNC << "apply shape reference: " << rReferencedShape.msId << " to shape id: " << msId);
if ( rReferencedShape.mpTextBody.get() && bUseText )
mpTextBody = TextBodyPtr( new TextBody( *rReferencedShape.mpTextBody.get() ) );
@@ -309,16 +309,16 @@ void Shape::addChildren(
aChildTransformation.scale(1/(maChSize.Width ? maChSize.Width : 1.0), 1/(maChSize.Height ? maChSize.Height : 1.0));
aChildTransformation *= aTransformation;
- OSL_TRACE("parent matrix:\n%f %f %f\n%f %f %f\n%f %f %f",
- aChildTransformation.get(0, 0),
- aChildTransformation.get(0, 1),
- aChildTransformation.get(0, 2),
- aChildTransformation.get(1, 0),
- aChildTransformation.get(1, 1),
- aChildTransformation.get(1, 2),
- aChildTransformation.get(2, 0),
- aChildTransformation.get(2, 1),
- aChildTransformation.get(2, 2));
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "parent matrix:\n"
+ << aChildTransformation.get(0, 0)
+ << aChildTransformation.get(0, 1)
+ << aChildTransformation.get(0, 2) << "\n"
+ << aChildTransformation.get(1, 0)
+ << aChildTransformation.get(1, 1)
+ << aChildTransformation.get(1, 2)
+ << aChildTransformation.get(2, 0)
+ << aChildTransformation.get(2, 1)
+ << aChildTransformation.get(2, 2));
std::vector< ShapePtr >::iterator aIter( rMaster.maChildren.begin() );
while( aIter != rMaster.maChildren.end() ) {
@@ -339,7 +339,7 @@ Reference< XShape > Shape::createAndInsert(
FillProperties& rShapeOrParentShapeFillProps )
{
bool bIsEmbMedia = false;
- SAL_INFO("oox", OSL_THIS_FUNC << " id: " << msId);
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC << " id: " << msId);
awt::Rectangle aShapeRectHmm( maPosition.X / 360, maPosition.Y / 360, maSize.Width / 360, maSize.Height / 360 );
@@ -477,7 +477,7 @@ Reference< XShape > Shape::createAndInsert(
if ( mbHidden || mbHiddenMasterShape )
{
- SAL_INFO("oox", "invisible shape with id: " << msId);
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "invisible shape with id: " << msId);
const OUString sVisible( "Visible" );
xSet->setPropertyValue( sVisible, Any( sal_False ) );
}
@@ -613,7 +613,7 @@ Reference< XShape > Shape::createAndInsert(
if( pTheme )
if( const TextCharacterProperties* pCharProps = pTheme->getFontStyle( pFontRef->mnThemedIdx ) )
aCharStyleProperties.assignUsed( *pCharProps );
- SAL_INFO("oox", "use font color");
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "use font color");
aCharStyleProperties.maCharColor.assignIfUsed( pFontRef->maPhClr );
}
@@ -649,7 +649,7 @@ void Shape::moveAllToPosition( const awt::Point &rPoint )
void Shape::setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle )
{
- SAL_INFO("oox", "set master text list style to shape id: " << msId);
+ SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "set master text list style to shape id: " << msId);
mpMasterTextListStyle = pMasterTextListStyle;
}