Kaydet (Commit) d52e46c4 authored tarafından Andres Gomez's avatar Andres Gomez Kaydeden (comit) Michael Stahl

oox: Enhancing the debugging output

Change-Id: Ifc055befd5d7436d44e95ce105c52f3c4f061796
Reviewed-on: https://gerrit.libreoffice.org/5768Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst ced87033
...@@ -131,6 +131,7 @@ certain functionality. ...@@ -131,6 +131,7 @@ certain functionality.
@li @c filter.ms - escher import/export @li @c filter.ms - escher import/export
@li @c filter.xslt - xslt import/export @li @c filter.xslt - xslt import/export
@li @c oox.cscode - see oox/source/drawingml/customshapes/README @li @c oox.cscode - see oox/source/drawingml/customshapes/README
@li @c oox.drawingml - DrawingML
@li @c oox.ppt - pptx filter @li @c oox.ppt - pptx filter
@li @c oox.storage - ZipStorage class @li @c oox.storage - ZipStorage class
@li @c oox.xmlstream - XmlStream class @li @c oox.xmlstream - XmlStream class
......
...@@ -232,13 +232,14 @@ ContextHandlerRef DiagramGraphicDataContext::onCreateContext( ::sal_Int32 aEleme ...@@ -232,13 +232,14 @@ ContextHandlerRef DiagramGraphicDataContext::onCreateContext( ::sal_Int32 aEleme
getFragmentPathFromRelId( msLo ), getFragmentPathFromRelId( msLo ),
getFragmentPathFromRelId( msQs ), getFragmentPathFromRelId( msQs ),
getFragmentPathFromRelId( msCs )); getFragmentPathFromRelId( msCs ));
OSL_TRACE("diagram added shape %s of type %s, size (%d,%d,%d,%d)", SAL_INFO("oox.drawingml", OSL_THIS_FUNC
OUSTRING_TO_CSTR( mpShapePtr->getName() ), << "diagram added shape " << mpShapePtr->getName()
OUSTRING_TO_CSTR( mpShapePtr->getServiceName() ), << " of type " << mpShapePtr->getServiceName()
mpShapePtr->getPosition().X, << ", size (" << mpShapePtr->getPosition().X
mpShapePtr->getPosition().Y, << "," << mpShapePtr->getPosition().Y
mpShapePtr->getSize().Width, << "," << mpShapePtr->getSize().Width
mpShapePtr->getSize().Height); << "," << mpShapePtr->getSize().Height
<<")");
break; break;
} }
default: default:
......
...@@ -200,7 +200,7 @@ void Shape::addShape( ...@@ -200,7 +200,7 @@ void Shape::addShape(
const awt::Rectangle* pShapeRect, const awt::Rectangle* pShapeRect,
ShapeIdMap* pShapeMap ) ShapeIdMap* pShapeMap )
{ {
SAL_INFO("oox", OSL_THIS_FUNC << " id: " << msId); SAL_INFO("oox.drawingml", OSL_THIS_FUNC << " id: " << msId);
try try
{ {
...@@ -238,7 +238,7 @@ bool Shape::getLockedCanvas() ...@@ -238,7 +238,7 @@ bool Shape::getLockedCanvas()
void Shape::applyShapeReference( const Shape& rReferencedShape, bool bUseText ) 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 ) if ( rReferencedShape.mpTextBody.get() && bUseText )
mpTextBody = TextBodyPtr( new TextBody( *rReferencedShape.mpTextBody.get() ) ); mpTextBody = TextBodyPtr( new TextBody( *rReferencedShape.mpTextBody.get() ) );
...@@ -309,16 +309,16 @@ void Shape::addChildren( ...@@ -309,16 +309,16 @@ void Shape::addChildren(
aChildTransformation.scale(1/(maChSize.Width ? maChSize.Width : 1.0), 1/(maChSize.Height ? maChSize.Height : 1.0)); aChildTransformation.scale(1/(maChSize.Width ? maChSize.Width : 1.0), 1/(maChSize.Height ? maChSize.Height : 1.0));
aChildTransformation *= aTransformation; aChildTransformation *= aTransformation;
OSL_TRACE("parent matrix:\n%f %f %f\n%f %f %f\n%f %f %f", SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "parent matrix:\n"
aChildTransformation.get(0, 0), << aChildTransformation.get(0, 0)
aChildTransformation.get(0, 1), << aChildTransformation.get(0, 1)
aChildTransformation.get(0, 2), << aChildTransformation.get(0, 2) << "\n"
aChildTransformation.get(1, 0), << aChildTransformation.get(1, 0)
aChildTransformation.get(1, 1), << aChildTransformation.get(1, 1)
aChildTransformation.get(1, 2), << aChildTransformation.get(1, 2)
aChildTransformation.get(2, 0), << aChildTransformation.get(2, 0)
aChildTransformation.get(2, 1), << aChildTransformation.get(2, 1)
aChildTransformation.get(2, 2)); << aChildTransformation.get(2, 2));
std::vector< ShapePtr >::iterator aIter( rMaster.maChildren.begin() ); std::vector< ShapePtr >::iterator aIter( rMaster.maChildren.begin() );
while( aIter != rMaster.maChildren.end() ) { while( aIter != rMaster.maChildren.end() ) {
...@@ -339,7 +339,7 @@ Reference< XShape > Shape::createAndInsert( ...@@ -339,7 +339,7 @@ Reference< XShape > Shape::createAndInsert(
FillProperties& rShapeOrParentShapeFillProps ) FillProperties& rShapeOrParentShapeFillProps )
{ {
bool bIsEmbMedia = false; 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 ); awt::Rectangle aShapeRectHmm( maPosition.X / 360, maPosition.Y / 360, maSize.Width / 360, maSize.Height / 360 );
...@@ -477,7 +477,7 @@ Reference< XShape > Shape::createAndInsert( ...@@ -477,7 +477,7 @@ Reference< XShape > Shape::createAndInsert(
if ( mbHidden || mbHiddenMasterShape ) 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" ); const OUString sVisible( "Visible" );
xSet->setPropertyValue( sVisible, Any( sal_False ) ); xSet->setPropertyValue( sVisible, Any( sal_False ) );
} }
...@@ -613,7 +613,7 @@ Reference< XShape > Shape::createAndInsert( ...@@ -613,7 +613,7 @@ Reference< XShape > Shape::createAndInsert(
if( pTheme ) if( pTheme )
if( const TextCharacterProperties* pCharProps = pTheme->getFontStyle( pFontRef->mnThemedIdx ) ) if( const TextCharacterProperties* pCharProps = pTheme->getFontStyle( pFontRef->mnThemedIdx ) )
aCharStyleProperties.assignUsed( *pCharProps ); aCharStyleProperties.assignUsed( *pCharProps );
SAL_INFO("oox", "use font color"); SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "use font color");
aCharStyleProperties.maCharColor.assignIfUsed( pFontRef->maPhClr ); aCharStyleProperties.maCharColor.assignIfUsed( pFontRef->maPhClr );
} }
...@@ -649,7 +649,7 @@ void Shape::moveAllToPosition( const awt::Point &rPoint ) ...@@ -649,7 +649,7 @@ void Shape::moveAllToPosition( const awt::Point &rPoint )
void Shape::setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle ) 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; mpMasterTextListStyle = pMasterTextListStyle;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment