diff options
author | Thorsten Behrens <tbehrens@novell.com> | 2011-08-12 15:53:12 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2011-08-12 16:56:31 +0200 |
commit | a81327ff2faaf21c22f1a902bea170942d5207e6 (patch) | |
tree | 907c30a7a582308957d7b2bacbef1877cb03b21a /oox/source/drawingml/textparagraph.cxx | |
parent | f418927e6fc5228d9d08a2d11e0234661038374c (diff) |
Import SmartArt graphics to Impress
Extending the existing functionality to
* properly parse and model the declarative shapes
* provide means for round-tripping, and re-rendering the
shapes from xml snippets
* implements the layouts composite, cycle, linear, and the
special 'text' node
This is based on the initial smartart work from hfiguiere@novell.com
Diffstat (limited to 'oox/source/drawingml/textparagraph.cxx')
-rw-r--r-- | oox/source/drawingml/textparagraph.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/oox/source/drawingml/textparagraph.cxx b/oox/source/drawingml/textparagraph.cxx index 54ae10ba1f80..1f198b7c711b 100644 --- a/oox/source/drawingml/textparagraph.cxx +++ b/oox/source/drawingml/textparagraph.cxx @@ -63,6 +63,9 @@ void TextParagraph::insertAt( Reference< XTextRange > xStart( xAt, UNO_QUERY ); sal_Int16 nLevel = maProperties.getLevel(); + + OSL_TRACE("TextParagraph::insertAt() - level %d", nLevel); + const TextParagraphPropertiesVector& rListStyle = rTextListStyle.getListStyle(); if ( nLevel >= static_cast< sal_Int16 >( rListStyle.size() ) ) nLevel = 0; @@ -118,6 +121,12 @@ void TextParagraph::insertAt( const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) ); xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( -1 ) ) ); } + else if ( nLevel > 1 ) + { + // Even more UGLY HACK + const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) ); + xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( nLevel-1 ) ) ); + } // FIXME this is causing a lot of dispruption (ie does not work). I wonder what to do -- Hub // Reference< XTextRange > xEnd( xAt, UNO_QUERY ); |